| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef FaceDetector_h | 5 #ifndef FaceDetector_h |
| 6 #define FaceDetector_h | 6 #define FaceDetector_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
| 9 #include "bindings/core/v8/ScriptPromiseResolver.h" | 9 #include "bindings/core/v8/ScriptPromiseResolver.h" |
| 10 #include "bindings/core/v8/ScriptWrappable.h" | |
| 11 #include "modules/ModulesExport.h" | 10 #include "modules/ModulesExport.h" |
| 12 #include "modules/canvas2d/CanvasRenderingContext2D.h" | 11 #include "modules/canvas2d/CanvasRenderingContext2D.h" |
| 13 #include "modules/shapedetection/ShapeDetector.h" | 12 #include "modules/shapedetection/ShapeDetector.h" |
| 13 #include "platform/bindings/ScriptWrappable.h" |
| 14 #include "services/shape_detection/public/interfaces/facedetection.mojom-blink.h
" | 14 #include "services/shape_detection/public/interfaces/facedetection.mojom-blink.h
" |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 | 17 |
| 18 class FaceDetectorOptions; | 18 class FaceDetectorOptions; |
| 19 | 19 |
| 20 class MODULES_EXPORT FaceDetector final : public ShapeDetector, | 20 class MODULES_EXPORT FaceDetector final : public ShapeDetector, |
| 21 public ScriptWrappable { | 21 public ScriptWrappable { |
| 22 DEFINE_WRAPPERTYPEINFO(); | 22 DEFINE_WRAPPERTYPEINFO(); |
| 23 | 23 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 39 void OnFaceServiceConnectionError(); | 39 void OnFaceServiceConnectionError(); |
| 40 | 40 |
| 41 shape_detection::mojom::blink::FaceDetectionPtr face_service_; | 41 shape_detection::mojom::blink::FaceDetectionPtr face_service_; |
| 42 | 42 |
| 43 HeapHashSet<Member<ScriptPromiseResolver>> face_service_requests_; | 43 HeapHashSet<Member<ScriptPromiseResolver>> face_service_requests_; |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 } // namespace blink | 46 } // namespace blink |
| 47 | 47 |
| 48 #endif // FaceDetector_h | 48 #endif // FaceDetector_h |
| OLD | NEW |