diff options
Diffstat (limited to 'Source/WebKit/chromium/public/WebFileChooserParams.h')
| -rw-r--r-- | Source/WebKit/chromium/public/WebFileChooserParams.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Source/WebKit/chromium/public/WebFileChooserParams.h b/Source/WebKit/chromium/public/WebFileChooserParams.h index 31e37b55e..90dee7036 100644 --- a/Source/WebKit/chromium/public/WebFileChooserParams.h +++ b/Source/WebKit/chromium/public/WebFileChooserParams.h @@ -50,11 +50,14 @@ struct WebFileChooserParams { // |initialValue| is a filename which the dialog should select by default. // It can be an empty string. WebString initialValue; - // This contains MIME type strings such as "audio/*" "text/plain". - // The dialog may restrict selectable files to the specified MIME types. + // This contains MIME type strings such as "audio/*" "text/plain" or file + // extensions beginning with a period (.) such as ".mp3" ".txt". + // The dialog may restrict selectable files to files with the specified MIME + // types or file extensions. // This list comes from an 'accept' attribute value of an INPUT element, and - // it contains only lower-cased MIME type strings of which format is valid. - WebVector<WebString> acceptMIMETypes; + // it contains only lower-cased MIME type strings and file extensions. + WebVector<WebString> acceptTypes; + WebVector<WebString> acceptMIMETypes; // FIXME: Remove this once https://chromiumcodereview.appspot.com/10414085 lands. // |selectedFiles| has filenames which a file upload control already selected. // A WebViewClient implementation may ask a user to select // - removing a file from the selected files, |
