Index: third_party/WebKit/Source/modules/shapedetection/FaceDetector.idl |
diff --git a/third_party/WebKit/Source/modules/shapedetection/FaceDetector.idl b/third_party/WebKit/Source/modules/shapedetection/FaceDetector.idl |
index 06a8551560332bff6c75fc193d28f48dc9d66788..c1f0f1692bc7df696b3c574fa932127ca0ee3bd7 100644 |
--- a/third_party/WebKit/Source/modules/shapedetection/FaceDetector.idl |
+++ b/third_party/WebKit/Source/modules/shapedetection/FaceDetector.idl |
@@ -7,7 +7,8 @@ |
// TODO(xianglu): Add [Constructor(optional FaceDetectorOptions faceDetectorOptions)]. https://crbug.com/646083 |
[ |
Constructor, |
+ ConstructorCallWith=ScriptState, |
RuntimeEnabled=ShapeDetection, |
] interface FaceDetector { |
+ [CallWith=ScriptState] Promise<sequence<DetectedObject>> detect(HTMLImageElement htmlImageElement); |
}; |
-FaceDetector implements Detector; |