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 |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3b30a487e70e3f0c3ad7f5bfd35a62ddc1b9c6ef |
--- /dev/null |
+++ b/third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom |
@@ -0,0 +1,19 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+module blink.mojom; |
+ |
+// BoundingBox is defined with its upper-left point, width and height. It is |
+// essentially the same as DOMRect, but needs explicit conversion in blink. |
+struct BoundingBox { |
Ken Rockot(use gerrit already)
2016/09/30 18:05:24
Note that ui/gfx/geometry/mojo/geometry.mojom alre
xianglu
2016/10/03 18:12:07
Done.
|
+ double x; |
+ double y; |
+ double width; |
+ double height; |
+}; |
+ |
+// https://wicg.github.io/shape-detection-api/#api |
+interface ShapeDetection { |
+ DetectFace(handle<shared_buffer> frame_data, uint32 width, uint32 height) => (array<BoundingBox> boundingBoxes); |
Ken Rockot(use gerrit already)
2016/09/30 18:05:24
nit: Please document the format of frame_data. Spe
xianglu
2016/10/03 18:12:08
Done.
|
+}; |