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

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

Issue 2564123003: Face Detection: Use DetectedFace in FaceDetector.cpp iso DOMRect (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 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 ee3a5ad50ea948d637e7b09ed24c20f332f9f583..a2fa886ea3c0602a2ab2ed4c5a0c1eb88ffe88a0 100644
--- a/third_party/WebKit/Source/modules/shapedetection/DetectedFace.cpp
+++ b/third_party/WebKit/Source/modules/shapedetection/DetectedFace.cpp
@@ -9,13 +9,19 @@
namespace blink {
DetectedFace* DetectedFace::create() {
- return new DetectedFace();
+ return new DetectedFace(DOMRect::create());
+}
+
+DetectedFace* DetectedFace::create(DOMRect* boundingBox) {
+ return new DetectedFace(boundingBox);
}
DOMRect* DetectedFace::boundingBox() const {
return m_boundingBox.get();
}
+DetectedFace::DetectedFace(DOMRect* boundingBox) : m_boundingBox(boundingBox) {}
+
DEFINE_TRACE(DetectedFace) {
visitor->trace(m_boundingBox);
}

Powered by Google App Engine
This is Rietveld 408576698