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

Unified Diff: third_party/WebKit/Source/modules/shapedetection/DetectedFace.h

Issue 2859413002: Shape Detection: add idl and mojom for face landmarks and wire for Mac (Closed)
Patch Set: service-worker's global-interface-listing-expected.txt updated Created 3 years, 7 months 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/shapedetection/DetectedFace.h
diff --git a/third_party/WebKit/Source/modules/shapedetection/DetectedFace.h b/third_party/WebKit/Source/modules/shapedetection/DetectedFace.h
index 88a30885413b1ba81e0a8e9a1797d801973867dd..5c14f1d62987fee0dea8787d2f1802b218a4a2cc 100644
--- a/third_party/WebKit/Source/modules/shapedetection/DetectedFace.h
+++ b/third_party/WebKit/Source/modules/shapedetection/DetectedFace.h
@@ -11,6 +11,7 @@
namespace blink {
class DOMRect;
+class Landmark;
class MODULES_EXPORT DetectedFace final : public GarbageCollected<DetectedFace>,
public ScriptWrappable {
@@ -19,14 +20,19 @@ class MODULES_EXPORT DetectedFace final : public GarbageCollected<DetectedFace>,
public:
static DetectedFace* Create();
static DetectedFace* Create(DOMRect*);
+ static DetectedFace* Create(DOMRect*, const HeapVector<Landmark>&);
DOMRect* boundingBox() const;
+ const HeapVector<Landmark>& landmarks() const;
+
DECLARE_TRACE();
private:
explicit DetectedFace(DOMRect*);
+ DetectedFace(DOMRect*, const HeapVector<Landmark>&);
Member<DOMRect> bounding_box_;
+ HeapVector<Landmark> landmarks_;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698