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

Unified Diff: third_party/WebKit/Source/modules/shapedetection/DetectedBarcode.h

Issue 2502723002: ShapeDetection: implement barcode detection, blink part (Closed)
Patch Set: haraken@ comments Created 4 years, 1 month 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/DetectedBarcode.h
diff --git a/third_party/WebKit/Source/modules/shapedetection/DetectedBarcode.h b/third_party/WebKit/Source/modules/shapedetection/DetectedBarcode.h
new file mode 100644
index 0000000000000000000000000000000000000000..1518e3bc4a46ef36eed7cbf8c4ca04231cd7b6e8
--- /dev/null
+++ b/third_party/WebKit/Source/modules/shapedetection/DetectedBarcode.h
@@ -0,0 +1,38 @@
+// 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 DetectedBarcode_h
+#define DetectedBarcode_h
+
+#include "bindings/core/v8/ScriptWrappable.h"
+#include "modules/ModulesExport.h"
+#include "wtf/text/WTFString.h"
+
+namespace blink {
+
+class DOMRect;
+
+class MODULES_EXPORT DetectedBarcode final
+ : public GarbageCollectedFinalized<DetectedBarcode>,
+ public ScriptWrappable {
+ DEFINE_WRAPPERTYPEINFO();
+
+ public:
+ static DetectedBarcode* create();
+ static DetectedBarcode* create(String, DOMRect*);
+
+ const String& rawValue() const;
+ DOMRect* boundingBox() const;
+ DECLARE_TRACE();
+
+ private:
+ DetectedBarcode(String rawValue, DOMRect* boundingBox);
+
+ const String m_rawValue;
+ const Member<DOMRect> m_boundingBox;
+};
+
+} // namespace blink
+
+#endif // DetectedBarcode_h

Powered by Google App Engine
This is Rietveld 408576698