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

Unified Diff: third_party/WebKit/LayoutTests/shapedetection/resources/mock-barcodedetection.js

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/LayoutTests/shapedetection/resources/mock-barcodedetection.js
diff --git a/third_party/WebKit/LayoutTests/shapedetection/resources/mock-barcodedetection.js b/third_party/WebKit/LayoutTests/shapedetection/resources/mock-barcodedetection.js
index bcf191dda27c2e2c8915e6d2e32bf941bfe0c346..ed870babd3f34f07c3743cc48a72a75c2af133d2 100644
--- a/third_party/WebKit/LayoutTests/shapedetection/resources/mock-barcodedetection.js
+++ b/third_party/WebKit/LayoutTests/shapedetection/resources/mock-barcodedetection.js
@@ -29,11 +29,23 @@ let mockBarcodeDetectionReady = define(
results: [
{
raw_value : "cats",
- bounding_box: { x : 1.0, y: 1.0, width: 100.0, height: 100.0 },
+ bounding_box: { x: 1.0, y: 1.0, width: 100.0, height: 100.0 },
+ corner_points: [
+ { x: 1.0, y: 1.0 },
+ { x: 101.0, y: 1.0 },
+ { x: 101.0, y: 101.0 },
+ { x: 1.0, y: 101.0 }
+ ],
},
{
raw_value : "dogs",
- bounding_box: { x : 2.0, y: 2.0, width: 50.0, height: 50.0 },
+ bounding_box: { x: 2.0, y: 2.0, width: 50.0, height: 50.0 },
+ corner_points: [
+ { x: 2.0, y: 2.0 },
+ { x: 52.0, y: 2.0 },
+ { x: 52.0, y: 52.0 },
+ { x: 2.0, y: 52.0 }
+ ],
},
],
});

Powered by Google App Engine
This is Rietveld 408576698