Commit 935af327 authored by Reilly Grant's avatar Reilly Grant Committed by Commit Bot

Enable Shape Detection Origin Trial

This change creates an Origin Trial for the Shape Detection API.

Intent to Experiment:
https://groups.google.com/a/chromium.org/d/msg/blink-dev/eJnB-5Sg-mQ/uvdWnO2OBQAJ

Bug: 646035
Change-Id: Ib7b18f8544c0f9d7d4bb8730102800d63cc54c9f
Reviewed-on: https://chromium-review.googlesource.com/1159684Reviewed-by: default avatarChris Harrelson <chrishtr@chromium.org>
Commit-Queue: Reilly Grant <reillyg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#580259}
parent 5caaea09
......@@ -9,7 +9,7 @@
ConstructorCallWith=ExecutionContext,
Exposed=(Window,Worker),
MeasureAs=ShapeDetection_BarcodeDetectorConstructor,
RuntimeEnabled=ShapeDetection
OriginTrialEnabled=ShapeDetection
] interface BarcodeDetector {
[CallWith=ScriptState] Promise<sequence<DetectedBarcode>> detect(ImageBitmapSource image);
};
......@@ -6,7 +6,7 @@
[
Constructor,
RuntimeEnabled=ShapeDetection
OriginTrialEnabled=ShapeDetection
] interface DetectedBarcode {
// TODO(mcasas): Implement missing fields. https://crbug.com/646083
[SameObject] readonly attribute DOMString rawValue;
......
......@@ -6,7 +6,7 @@
[
Constructor,
RuntimeEnabled=ShapeDetection
OriginTrialEnabled=ShapeDetection
] interface DetectedFace {
// TODO(xianglu): Implement any other fields. https://crbug.com/646083
[SameObject] readonly attribute DOMRectReadOnly boundingBox;
......
......@@ -6,7 +6,7 @@
[
Constructor,
RuntimeEnabled=ShapeDetection
OriginTrialEnabled=ShapeDetection
] interface DetectedText {
[SameObject] readonly attribute DOMString rawValue;
[SameObject] readonly attribute DOMRectReadOnly boundingBox;
......
......@@ -9,7 +9,7 @@
ConstructorCallWith=ExecutionContext,
Exposed=(Window,Worker),
MeasureAs=ShapeDetection_FaceDetectorConstructor,
RuntimeEnabled=ShapeDetection
OriginTrialEnabled=ShapeDetection
] interface FaceDetector {
[CallWith=ScriptState] Promise<sequence<DetectedFace>> detect(ImageBitmapSource image);
};
......@@ -9,7 +9,7 @@
ConstructorCallWith=ExecutionContext,
Exposed=(Window,Worker),
MeasureAs=ShapeDetection_TextDetectorConstructor,
RuntimeEnabled=ShapeDetection
OriginTrialEnabled=ShapeDetection
] interface TextDetector {
[CallWith=ScriptState] Promise<sequence<DetectedText>> detect(ImageBitmapSource image);
};
......@@ -1190,6 +1190,7 @@
},
{
name: "ShapeDetection",
origin_trial_feature_name: "ShapeDetection",
status: "experimental",
},
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment