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

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

Issue 2369693002: Shapedetection module: Blink side implementation (Closed)
Patch Set: rockot@ comments Created 4 years, 2 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.cpp
diff --git a/third_party/WebKit/Source/modules/shapedetection/DetectedFace.cpp b/third_party/WebKit/Source/modules/shapedetection/DetectedFace.cpp
index ba0e81a044baf33d4d891a04892bb1084dbd1c37..22973c25aae32462197c0bbc403b58085b0a39ec 100644
--- a/third_party/WebKit/Source/modules/shapedetection/DetectedFace.cpp
+++ b/third_party/WebKit/Source/modules/shapedetection/DetectedFace.cpp
@@ -4,6 +4,8 @@
#include "modules/shapedetection/DetectedFace.h"
+#include "core/dom/DOMRect.h"
+
namespace blink {
DetectedFace* DetectedFace::create()
@@ -11,4 +13,14 @@ DetectedFace* DetectedFace::create()
return new DetectedFace();
}
+DOMRect* DetectedFace::boundingBox() const
+{
+ return m_boundingBox.get();
+}
+
+DEFINE_TRACE(DetectedFace)
+{
+ visitor->trace(m_boundingBox);
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698