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

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

Issue 2360783003: shapedetection module: Introduce basic structure for face detection (Closed)
Patch Set: haraken@ 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "modules/shapedetection/FaceDetector.h"
6
7 #include "bindings/core/v8/ScriptPromiseResolver.h"
8 #include "core/dom/DOMException.h"
9
10 namespace blink {
11
12 FaceDetector* FaceDetector::create()
13 {
14 return new FaceDetector();
15 }
16
17 ScriptPromise FaceDetector::detect(ScriptState* scriptState, const HTMLImageElem ent* image)
18 {
19 ScriptPromiseResolver* resolver = ScriptPromiseResolver::create(scriptState) ;
20 ScriptPromise promise = resolver->promise();
21 resolver->reject(DOMException::create(NotSupportedError, "Not implemented")) ;
22 return promise;
23 }
24
25 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698