diff options
| author | Ben Murdoch <benm@google.com> | 2012-01-11 10:54:53 +0000 |
|---|---|---|
| committer | Ben Murdoch <benm@google.com> | 2012-04-13 10:09:03 +0100 |
| commit | 16e49e63e74d9236b0d8b72846201697a8ebaedc (patch) | |
| tree | f7a2226792e2d34fed9a65bc6986b120bd0a1277 /Source/WebCore/platform | |
| parent | b62fb73a22ae38019efcdb050bf61e0e22327b9d (diff) | |
| download | external_webkit-16e49e63e74d9236b0d8b72846201697a8ebaedc.zip external_webkit-16e49e63e74d9236b0d8b72846201697a8ebaedc.tar.gz external_webkit-16e49e63e74d9236b0d8b72846201697a8ebaedc.tar.bz2 | |
Add support for HTML Media Capture "capture" attribute.
Add support in WebKit for the newly specified "capture"
attribute to be used on HTML file pickers. Maintains
support for the legacy implementation of the API
(a MIME type parameter on the 'accept' attribute) for
backwards compatibility. Note the 'capture' attribute takes
precedent over a MIME type parameter.
See http://www.w3.org/TR/html-media-capture/#captureparam
for details.
Requires changes in the framework
(I494adc1274ca21ce8fe52a6c7b6b758217927e66)
and Browser (I38dfe2df043fdba1388384dbd3b5370737eb38e5).
Bug: 5771207
Change-Id: I0a921be31fda79a43c05da4fe22d9c808d92709c
Diffstat (limited to 'Source/WebCore/platform')
| -rw-r--r-- | Source/WebCore/platform/FileChooser.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/WebCore/platform/FileChooser.h b/Source/WebCore/platform/FileChooser.h index ac5e0e6..6c382d1 100644 --- a/Source/WebCore/platform/FileChooser.h +++ b/Source/WebCore/platform/FileChooser.h @@ -50,6 +50,9 @@ public: virtual String acceptTypes() = 0; virtual void chooseIconForFiles(FileChooser*, const Vector<String>&) = 0; virtual ~FileChooserClient(); +#if PLATFORM(ANDROID) && ENABLE(MEDIA_CAPTURE) + virtual String capture() = 0; +#endif }; class FileChooser : public RefCounted<FileChooser> { @@ -79,6 +82,10 @@ public: // Acceptable MIME types. It's an 'accept' attribute value of the corresponding INPUT element. String acceptTypes() const { return m_client ? m_client->acceptTypes() : String(); } +#if PLATFORM(ANDROID) && ENABLE(MEDIA_CAPTURE) + String capture() const { return m_client ? m_client->capture() : String(); } +#endif + private: FileChooser(FileChooserClient*, const Vector<String>& initialFilenames); void initialize(); |
