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

Unified Diff: third_party/WebKit/Source/modules/shapedetection/BarcodeDetector.cpp

Issue 2928413002: Add RectF and PointF typemaps in blink. (Closed)
Patch Set: address comment Created 3 years, 6 months 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/shapedetection/FaceDetector.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/shapedetection/BarcodeDetector.cpp
diff --git a/third_party/WebKit/Source/modules/shapedetection/BarcodeDetector.cpp b/third_party/WebKit/Source/modules/shapedetection/BarcodeDetector.cpp
index 7f5f3a37049edd5f0ff564ebc2d57930ad1ee9b7..df25107bb1ba44b118a6d033f19ee8428b550c1d 100644
--- a/third_party/WebKit/Source/modules/shapedetection/BarcodeDetector.cpp
+++ b/third_party/WebKit/Source/modules/shapedetection/BarcodeDetector.cpp
@@ -54,15 +54,15 @@ void BarcodeDetector::OnDetectBarcodes(
HeapVector<Point2D> corner_points;
for (const auto& corner_point : barcode->corner_points) {
Point2D point;
- point.setX(corner_point->x);
- point.setY(corner_point->y);
+ point.setX(corner_point.x);
+ point.setY(corner_point.y);
corner_points.push_back(point);
}
detected_barcodes.push_back(DetectedBarcode::Create(
barcode->raw_value,
- DOMRect::Create(barcode->bounding_box->x, barcode->bounding_box->y,
- barcode->bounding_box->width,
- barcode->bounding_box->height),
+ DOMRect::Create(barcode->bounding_box.x, barcode->bounding_box.y,
+ barcode->bounding_box.width,
+ barcode->bounding_box.height),
corner_points));
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/shapedetection/FaceDetector.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698