mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Update web-platform-tests to revision 7bfa241671d6ca921229f6601d2d7b70dd55da90
This commit is contained in:
parent
f78dd6142e
commit
441c1fa235
47 changed files with 888 additions and 163 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue