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

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

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.idl
diff --git a/third_party/WebKit/Source/modules/shapedetection/DetectedBarcode.idl b/third_party/WebKit/Source/modules/shapedetection/DetectedBarcode.idl
index 7875f6acb706d20912856703bce995da08d1bbc1..e9271a52baa335c5bb4b80c22089147326bba920 100644
--- a/third_party/WebKit/Source/modules/shapedetection/DetectedBarcode.idl
+++ b/third_party/WebKit/Source/modules/shapedetection/DetectedBarcode.idl
@@ -11,4 +11,7 @@
// TODO(mcasas): Implement missing fields. https://crbug.com/646083
[SameObject] readonly attribute DOMString rawValue;
[SameObject] readonly attribute DOMRect boundingBox;
+ // 4 corner points in clockwise direction starting with top-left. Due to
+ // possible perspective distortions, this is not necessarily a rectangle.
+ [SameObject] readonly attribute sequence<Point2D> cornerPoints;
};

Powered by Google App Engine
This is Rietveld 408576698