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

Unified Diff: third_party/WebKit/Source/core/html/HTMLInputElement.idl

Issue 2735633004: HTML Media Capture: update capture attribute to use string. (Closed)
Patch Set: Fix comments Created 3 years, 8 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/core/html/HTMLInputElement.idl
diff --git a/third_party/WebKit/Source/core/html/HTMLInputElement.idl b/third_party/WebKit/Source/core/html/HTMLInputElement.idl
index da1ac353ab4652680b30671bcc93d3269a31a725..b4d285127fb66789e2c1be9614ae0000f8166480 100644
--- a/third_party/WebKit/Source/core/html/HTMLInputElement.idl
+++ b/third_party/WebKit/Source/core/html/HTMLInputElement.idl
@@ -23,6 +23,9 @@
enum SelectionMode { "select", "start", "end", "preserve" };
+// https://w3c.github.io/html-media-capture/#dom-capturefacingmode
+enum CaptureFacingMode { "user", "environment" };
+
interface HTMLInputElement : HTMLElement {
[CEReactions, Reflect] attribute DOMString accept;
[CEReactions, Reflect] attribute DOMString alt;
@@ -103,9 +106,7 @@ interface HTMLInputElement : HTMLElement {
// HTML Media Capture
// https://w3c.github.io/html-media-capture/#the-capture-attribute
- // TODO(mcasas): |capture| is a |CaptureFacingMode| enum in the spec.
- // https://crbug.com/698853
- [Measure, RuntimeEnabled=MediaCapture, Reflect] attribute boolean capture;
+ [Measure, RuntimeEnabled=MediaCapture, Reflect] attribute CaptureFacingMode capture;
foolip 2017/05/03 15:27:03 I've filed https://github.com/w3c/html-media-captu
// Non-standard APIs
[Reflect, MeasureAs=PrefixedDirectoryAttribute] attribute boolean webkitdirectory;
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLInputElement.cpp ('k') | third_party/WebKit/Source/core/html/forms/FileInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698