| Index: third_party/WebKit/Source/modules/shapedetection/FaceDetector.h
|
| diff --git a/third_party/WebKit/Source/modules/shapedetection/FaceDetector.h b/third_party/WebKit/Source/modules/shapedetection/FaceDetector.h
|
| index 83b6054cc24f7320da13303ce73f9b3fe95b547b..d19521f98f5681b7e1d4b21a8b6c5b8ea0fea7d3 100644
|
| --- a/third_party/WebKit/Source/modules/shapedetection/FaceDetector.h
|
| +++ b/third_party/WebKit/Source/modules/shapedetection/FaceDetector.h
|
| @@ -10,7 +10,9 @@
|
| #include "bindings/core/v8/ScriptWrappable.h"
|
| #include "modules/ModulesExport.h"
|
| #include "modules/canvas2d/CanvasRenderingContext2D.h"
|
| +#include "modules/shapedetection/FaceDetectorOptions.h"
|
| #include "modules/shapedetection/ShapeDetector.h"
|
| +#include "public/platform/modules/shapedetection/facedetection.mojom-blink.h"
|
|
|
| namespace blink {
|
|
|
| @@ -29,6 +31,16 @@ class MODULES_EXPORT FaceDetector final : public ShapeDetector,
|
| private:
|
| FaceDetector(LocalFrame&, const FaceDetectorOptions&);
|
| ~FaceDetector() override = default;
|
| +
|
| + void onDetectFaces(ScriptPromiseResolver*,
|
| + mojom::blink::FaceDetectionResultPtr);
|
| + // Error handlers for use if mojo service doesn't connect.
|
| + void onFaceServiceConnectionError();
|
| +
|
| + mojom::blink::FaceDetectionPtr m_faceService;
|
| + mojom::blink::FaceDetectorOptionsPtr m_faceDetectorOptions;
|
| +
|
| + HeapHashSet<Member<ScriptPromiseResolver>> m_faceServiceRequests;
|
| };
|
|
|
| } // namespace blink
|
|
|