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

Unified Diff: third_party/WebKit/Source/platform/FileChooser.h

Issue 2735633004: HTML Media Capture: update capture attribute to use string. (Closed)
Patch Set: Do not propagate String(capture) outside Blink 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
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLInputElement.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/FileChooser.h
diff --git a/third_party/WebKit/Source/platform/FileChooser.h b/third_party/WebKit/Source/platform/FileChooser.h
index 0648d18fbe3fd4e37d36470d707c2f05526fcde8..c4bde99311bb71f3f3859f71fe70de24f140e646 100644
--- a/third_party/WebKit/Source/platform/FileChooser.h
+++ b/third_party/WebKit/Source/platform/FileChooser.h
@@ -40,6 +40,9 @@
namespace blink {
+// https://w3c.github.io/html-media-capture/#dom-capturefacingmode
+enum CaptureFacingMode { CaptureFacingModeUser, CaptureFacingModeEnvironment };
+
class FileChooser;
struct FileChooserFileInfo {
@@ -67,6 +70,7 @@ struct FileChooserSettings {
Vector<String> accept_file_extensions;
Vector<String> selected_files;
bool use_media_capture;
+ CaptureFacingMode capture;
// Returns a combined vector of acceptMIMETypes and acceptFileExtensions.
Vector<String> PLATFORM_EXPORT AcceptTypes() const;
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLInputElement.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698