aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/interfaces/shape-detection-api.idl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/interfaces/shape-detection-api.idl')
-rw-r--r--tests/wpt/web-platform-tests/interfaces/shape-detection-api.idl22
1 files changed, 8 insertions, 14 deletions
diff --git a/tests/wpt/web-platform-tests/interfaces/shape-detection-api.idl b/tests/wpt/web-platform-tests/interfaces/shape-detection-api.idl
index 51c996959be..5b1c45a7739 100644
--- a/tests/wpt/web-platform-tests/interfaces/shape-detection-api.idl
+++ b/tests/wpt/web-platform-tests/interfaces/shape-detection-api.idl
@@ -15,12 +15,9 @@ dictionary FaceDetectorOptions {
boolean fastMode;
};
-[Exposed=(Window,Worker),
- SecureContext,
- Serializable]
-interface DetectedFace {
- [SameObject] readonly attribute DOMRectReadOnly boundingBox;
- [SameObject] readonly attribute FrozenArray<Landmark>? landmarks;
+dictionary DetectedFace {
+ required DOMRectReadOnly boundingBox;
+ required FrozenArray<Landmark>? landmarks;
};
dictionary Landmark {
@@ -47,14 +44,11 @@ dictionary BarcodeDetectorOptions {
sequence<BarcodeFormat> formats;
};
-[Exposed=(Window,Worker),
- SecureContext,
- Serializable]
-interface DetectedBarcode {
- [SameObject] readonly attribute DOMRectReadOnly boundingBox;
- [SameObject] readonly attribute DOMString rawValue;
- [SameObject] readonly attribute BarcodeFormat format;
- [SameObject] readonly attribute FrozenArray<Point2D> cornerPoints;
+dictionary DetectedBarcode {
+ required DOMRectReadOnly boundingBox;
+ required DOMString rawValue;
+ required BarcodeFormat format;
+ required FrozenArray<Point2D> cornerPoints;
};
enum BarcodeFormat {