Update web-platform-tests to revision 7bfa241671d6ca921229f6601d2d7b70dd55da90

This commit is contained in:
WPT Sync Bot 2019-07-27 10:23:05 +00:00
parent f78dd6142e
commit 441c1fa235
47 changed files with 888 additions and 163 deletions

View file

@ -4,6 +4,7 @@
// Source: Accelerated Shape Detection in Images (https://wicg.github.io/shape-detection-api/)
[Exposed=(Window,Worker),
SecureContext,
Constructor(optional FaceDetectorOptions faceDetectorOptions)]
interface FaceDetector {
Promise<sequence<DetectedFace>> detect(ImageBitmapSource image);
@ -14,7 +15,9 @@ dictionary FaceDetectorOptions {
boolean fastMode;
};
[Serializable]
[Exposed=(Window,Worker),
SecureContext,
Serializable]
interface DetectedFace {
[SameObject] readonly attribute DOMRectReadOnly boundingBox;
[SameObject] readonly attribute FrozenArray<Landmark>? landmarks;
@ -32,6 +35,7 @@ enum LandmarkType {
};
[Exposed=(Window,Worker),
SecureContext,
Constructor(optional BarcodeDetectorOptions barcodeDetectorOptions)]
interface BarcodeDetector {
static Promise<sequence<BarcodeFormat>> getSupportedFormats();
@ -43,7 +47,9 @@ dictionary BarcodeDetectorOptions {
sequence<BarcodeFormat> formats;
};
[Serializable]
[Exposed=(Window,Worker),
SecureContext,
Serializable]
interface DetectedBarcode {
[SameObject] readonly attribute DOMRectReadOnly boundingBox;
[SameObject] readonly attribute DOMString rawValue;