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

Unified Diff: third_party/WebKit/Source/modules/shapedetection/Landmark.idl

Issue 2859413002: Shape Detection: add idl and mojom for face landmarks and wire for Mac (Closed)
Patch Set: service-worker's global-interface-listing-expected.txt updated Created 3 years, 7 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
Index: third_party/WebKit/Source/modules/shapedetection/Landmark.idl
diff --git a/third_party/WebKit/Source/modules/shapedetection/Landmark.idl b/third_party/WebKit/Source/modules/shapedetection/Landmark.idl
new file mode 100644
index 0000000000000000000000000000000000000000..6f578861faa76fdbb17df4e83dfee05817596854
--- /dev/null
+++ b/third_party/WebKit/Source/modules/shapedetection/Landmark.idl
@@ -0,0 +1,12 @@
+// Copyright 2017 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.
+
+// https://wicg.github.io/shape-detection-api/#enumdef-landmarktype
+enum LandmarkType { "mouth", "eye" };
+
+// https://wicg.github.io/shape-detection-api/#dictdef-landmark
+dictionary Landmark {
+ required Point2D location;
+ LandmarkType type;
+};

Powered by Google App Engine
This is Rietveld 408576698