Index: third_party/WebKit/Source/modules/shapedetection/FaceDetector.cpp |
diff --git a/third_party/WebKit/Source/modules/shapedetection/FaceDetector.cpp b/third_party/WebKit/Source/modules/shapedetection/FaceDetector.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9f7100f852d2c4b2cae09b6e5dcec0929f0eeca3 |
--- /dev/null |
+++ b/third_party/WebKit/Source/modules/shapedetection/FaceDetector.cpp |
@@ -0,0 +1,25 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "modules/shapedetection/FaceDetector.h" |
+ |
+#include "bindings/core/v8/ScriptPromiseResolver.h" |
+#include "core/dom/DOMException.h" |
+ |
+namespace blink { |
+ |
+FaceDetector* FaceDetector::create() |
+{ |
+ return new FaceDetector(); |
+} |
+ |
+ScriptPromise FaceDetector::detect(ScriptState* scriptState, const HTMLImageElement* image) |
+{ |
+ ScriptPromiseResolver* resolver = ScriptPromiseResolver::create(scriptState); |
+ ScriptPromise promise = resolver->promise(); |
+ resolver->reject(DOMException::create(NotSupportedError, "Not implemented")); |
+ return promise; |
+} |
+ |
+} // namespace blink |