Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: third_party/WebKit/Source/modules/shapedetection/FaceDetector.h

Issue 2564163003: ShapeDetection: Add ShapeDetectionProvider (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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" 10 #include "bindings/core/v8/ScriptWrappable.h"
(...skipping 22 matching lines...) Expand all
33 33
34 ScriptPromise doDetect(ScriptPromiseResolver*, 34 ScriptPromise doDetect(ScriptPromiseResolver*,
35 mojo::ScopedSharedBufferHandle, 35 mojo::ScopedSharedBufferHandle,
36 int imageWidth, 36 int imageWidth,
37 int imageHeight) override; 37 int imageHeight) override;
38 void onDetectFaces(ScriptPromiseResolver*, 38 void onDetectFaces(ScriptPromiseResolver*,
39 mojom::blink::FaceDetectionResultPtr); 39 mojom::blink::FaceDetectionResultPtr);
40 void onFaceServiceConnectionError(); 40 void onFaceServiceConnectionError();
41 41
42 mojom::blink::FaceDetectionPtr m_faceService; 42 mojom::blink::FaceDetectionPtr m_faceService;
43 mojom::blink::FaceDetectorOptionsPtr m_faceDetectorOptions;
44 43
45 HeapHashSet<Member<ScriptPromiseResolver>> m_faceServiceRequests; 44 HeapHashSet<Member<ScriptPromiseResolver>> m_faceServiceRequests;
46 }; 45 };
47 46
48 } // namespace blink 47 } // namespace blink
49 48
50 #endif // FaceDetector_h 49 #endif // FaceDetector_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698