Index: third_party/WebKit/Source/modules/shapedetection/Detector.h |
diff --git a/third_party/WebKit/Source/modules/shapedetection/Detector.h b/third_party/WebKit/Source/modules/shapedetection/Detector.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..83235beebc60b2c0353f407f47fe127591763471 |
--- /dev/null |
+++ b/third_party/WebKit/Source/modules/shapedetection/Detector.h |
@@ -0,0 +1,30 @@ |
+// 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. |
+ |
+#ifndef Detector_h |
+#define Detector_h |
+ |
+#include "bindings/core/v8/ScriptPromise.h" |
mcasas
2016/09/27 17:58:51
nit: probably not needed (or move to DetectedFace.
|
+#include "bindings/core/v8/ScriptWrappable.h" |
+#include "modules/ModulesExport.h" |
+ |
+namespace blink { |
+ |
+class DetectedObject; |
+class HTMLImageElement; |
+ |
+class MODULES_EXPORT Detector |
+ : public GarbageCollected<Detector> |
+ , public ScriptWrappable { |
+ DEFINE_WRAPPERTYPEINFO(); |
+ |
+public: |
+ static Detector* create(); |
+ virtual ScriptPromise detect(ScriptState*, const HTMLImageElement*) = 0; |
+ DEFINE_INLINE_VIRTUAL_TRACE() {} |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // Detector_h |