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

Unified Diff: third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom

Issue 2502723002: ShapeDetection: implement barcode detection, blink part (Closed)
Patch Set: Created 4 years, 1 month 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/public/platform/modules/shapedetection/shapedetection.mojom
diff --git a/third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom b/third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom
index d437ccbb45844cb7cde1cf3f5265a77005caa6f6..a3b197d80789e26c547e350a3babe895f96bbd48 100644
--- a/third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom
+++ b/third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom
@@ -8,16 +8,24 @@ module blink.mojom;
import "ui/gfx/geometry/mojo/geometry.mojom";
-// Because "//ui/gfx/geometry/mojo" is not exposed to blink, we need to declare
+// Since "//ui/gfx/geometry/mojo" is not exposed to blink, we need to declare
// a wrapper struct, so that gfx.mojom.RectF will not be directly referenced
-// inside blink, and browser can still use gfx types.
+// inside Blink, and browser can still use gfx types.
struct FaceDetectionResult {
array<gfx.mojom.RectF> boundingBoxes;
};
+struct BarcodeDetectionResult {
+ string raw_value;
Tom Sepez 2016/11/15 18:31:00 What values can this string take? Can we use an e
mcasas 2016/11/15 19:05:25 This is the string encoded in a QR/barcode and can
+ gfx.mojom.RectF bounding_box;
+};
+
interface ShapeDetection {
- // frame_data contains tightly packed image pixels in ARGB32 format,
+ // |frame_data| contains tightly packed image pixels in ARGB32 format,
// row-major order.
- DetectFace(handle<shared_buffer> frame_data, uint32 width, uint32 height)
+ DetectFaces(handle<shared_buffer> frame_data, uint32 width, uint32 height)
=> (FaceDetectionResult result);
+
+ DetectBarcodes(handle<shared_buffer> frame_data, uint32 width, uint32 height)
dcheng 2016/11/15 01:47:38 I think rsesek@ has mentioned this elsewhere, but
mcasas 2016/11/15 19:05:25 Added a TODO+bug to address this suggestion, thank
+ => (array<BarcodeDetectionResult> results);
};

Powered by Google App Engine
This is Rietveld 408576698