| 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 38a28179b15459260baa1844d8701a726ce2344b..76b35adf4ae0f365105a10829a673a59d3b8aa07 100644
|
| --- a/third_party/WebKit/Source/modules/shapedetection/FaceDetector.h
|
| +++ b/third_party/WebKit/Source/modules/shapedetection/FaceDetector.h
|
| @@ -6,18 +6,36 @@
|
| #define FaceDetector_h
|
|
|
| #include "bindings/core/v8/ScriptPromise.h"
|
| +#include "bindings/core/v8/ScriptPromiseResolver.h"
|
| +#include "bindings/core/v8/ScriptWrappable.h"
|
| #include "modules/ModulesExport.h"
|
| -#include "modules/shapedetection/Detector.h"
|
| +#include "public/platform/modules/shapedetection/shapedetection.mojom-blink.h"
|
|
|
| namespace blink {
|
|
|
| -class MODULES_EXPORT FaceDetector final : public Detector {
|
| +class Document;
|
| +class HTMLImageElement;
|
| +class LocalDOMWindow;
|
| +class LocalFrame;
|
| +
|
| +class MODULES_EXPORT FaceDetector final
|
| + : public GarbageCollectedFinalized<FaceDetector>,
|
| + public ScriptWrappable {
|
| DEFINE_WRAPPERTYPEINFO();
|
|
|
| public:
|
| - static FaceDetector* create();
|
| -
|
| + static FaceDetector* create(ScriptState*);
|
| ScriptPromise detect(ScriptState*, const HTMLImageElement*);
|
| + DECLARE_TRACE();
|
| +
|
| + private:
|
| + explicit FaceDetector(LocalFrame&);
|
| + void onDetectFace(ScriptPromiseResolver*,
|
| + mojom::blink::FaceDetectionResultPtr);
|
| +
|
| + mojom::blink::ShapeDetectionPtr m_service;
|
| +
|
| + HeapHashSet<Member<ScriptPromiseResolver>> m_serviceRequests;
|
| };
|
|
|
| } // namespace blink
|
|
|