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

Side by Side Diff: third_party/WebKit/public/platform/modules/shapedetection/shapedetection.mojom

Issue 2369693002: Shapedetection module: Blink side implementation (Closed)
Patch Set: Naming and const correctness suggestions by mcasas@ Created 4 years, 2 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 module blink.mojom;
6
7 // BoundingBox is defined with its upper-left point, width and height. It is
8 // essentially the same as DOMRect, but needs explicit conversion in blink.
9 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.
10 double x;
11 double y;
12 double width;
13 double height;
14 };
15
16 // https://wicg.github.io/shape-detection-api/#api
17 interface ShapeDetection {
18 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.
19 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698