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

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

Issue 2575943002: Barcode Detection: Add |cornerPoints| to DetectedBarcode.idl (Closed)
Patch Set: Correct coordinates (in clockwise direction starting with top-left) 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/DetectedBarcode.h
diff --git a/third_party/WebKit/Source/modules/shapedetection/DetectedBarcode.h b/third_party/WebKit/Source/modules/shapedetection/DetectedBarcode.h
index 563c8568d9f207478e942f0af84fcb6aa09a3795..ab590fcdd09bf70f4585b40fd7069394e99a68f5 100644
--- a/third_party/WebKit/Source/modules/shapedetection/DetectedBarcode.h
+++ b/third_party/WebKit/Source/modules/shapedetection/DetectedBarcode.h
@@ -7,6 +7,7 @@
#include "bindings/core/v8/ScriptWrappable.h"
#include "modules/ModulesExport.h"
+#include "modules/imagecapture/Point2D.h"
#include "wtf/text/WTFString.h"
namespace blink {
@@ -20,17 +21,19 @@ class MODULES_EXPORT DetectedBarcode final
public:
static DetectedBarcode* create();
- static DetectedBarcode* create(String, DOMRect*);
+ static DetectedBarcode* create(String, DOMRect*, HeapVector<Point2D>);
const String& rawValue() const;
DOMRect* boundingBox() const;
+ const HeapVector<Point2D>& cornerPoints() const;
DECLARE_TRACE();
private:
- DetectedBarcode(String, DOMRect*);
+ DetectedBarcode(String, DOMRect*, HeapVector<Point2D>);
const String m_rawValue;
const Member<DOMRect> m_boundingBox;
+ const HeapVector<Point2D> m_cornerPoints;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698