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

Unified Diff: Source/WebKit/chromium/public/WebFileChooserParams.h

Issue 15015006: HTML Media Capture: Update implementation, part 1. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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: Source/WebKit/chromium/public/WebFileChooserParams.h
diff --git a/Source/WebKit/chromium/public/WebFileChooserParams.h b/Source/WebKit/chromium/public/WebFileChooserParams.h
index 10b9769257d9759b2c66d362c7b5af84b6133c98..cff667c7c1ca79c42ab869c58365132bb30f6b86 100644
--- a/Source/WebKit/chromium/public/WebFileChooserParams.h
+++ b/Source/WebKit/chromium/public/WebFileChooserParams.h
@@ -31,6 +31,8 @@
#ifndef WebFileChooserParams_h
#define WebFileChooserParams_h
+#define NEW_MEDIA_CAPTURE_IMPLEMENTATION
+
#include "../../../Platform/chromium/public/WebString.h"
#include "../../../Platform/chromium/public/WebVector.h"
#include "WebFileChooserCompletion.h"
@@ -65,18 +67,16 @@ struct WebFileChooserParams {
// before opening a file chooser dialog.
WebVector<WebString> selectedFiles;
// See http://www.w3.org/TR/html-media-capture/ for the semantics of the
- // capture attribute. This string will either be empty (meaning the feature
- // is disabled) or one of the following values:
- // - filesystem (default)
- // - camera
- // - camcorder
- // - microphone
- WebString capture;
+ // capture attribute. If |capture| is true, the media types indicated in
+ // |acceptTypes| should be obtained from the device's environment using a
+ // media capture mechanism.
+ bool capture;
WebFileChooserParams()
: multiSelect(false)
, directory(false)
, saveAs(false)
+ , capture(false)
{
}
};

Powered by Google App Engine
This is Rietveld 408576698