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

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

Issue 2575943002: Barcode Detection: Add |cornerPoints| to DetectedBarcode.idl (Closed)
Patch Set: 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..9ef3342792b74fe728434af64c328b0fec209495 100644
--- a/third_party/WebKit/Source/modules/shapedetection/DetectedBarcode.idl
+++ b/third_party/WebKit/Source/modules/shapedetection/DetectedBarcode.idl
@@ -10,5 +10,9 @@
] interface DetectedBarcode {
// TODO(mcasas): Implement missing fields. https://crbug.com/646083
[SameObject] readonly attribute DOMString rawValue;
+ // |x|, |y| refer to the coordinates of the bottom-left corner.
mcasas 2016/12/15 19:01:58 Who are |x| and |y| inside |boundingBox| ?
xianglu 2016/12/16 00:01:25 I meant to say that boundingBox and cornerPoints s
[SameObject] readonly attribute DOMRect boundingBox;
+ // 4 corner points in clockwise direction starting with bottom-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