summaryrefslogtreecommitdiffstats
path: root/WebKit/chromium/public/WebFileChooserParams.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/chromium/public/WebFileChooserParams.h')
-rw-r--r--WebKit/chromium/public/WebFileChooserParams.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/WebKit/chromium/public/WebFileChooserParams.h b/WebKit/chromium/public/WebFileChooserParams.h
index 6359f14..8e56d70 100644
--- a/WebKit/chromium/public/WebFileChooserParams.h
+++ b/WebKit/chromium/public/WebFileChooserParams.h
@@ -40,6 +40,8 @@ namespace WebKit {
struct WebFileChooserParams {
// If |multiSelect| is true, the dialog allow to select multiple files.
bool multiSelect;
+ // If |directory| is true, the dialog allows the user to select a directory.
+ bool directory;
// |title| is a title of a file chooser dialog. It can be an empty string.
WebString title;
// |initialValue| is a filename which the dialog should select by default.
@@ -57,6 +59,12 @@ struct WebFileChooserParams {
// - replacing with other files
// before opening a file chooser dialog.
WebVector<WebString> selectedFiles;
+
+ WebFileChooserParams()
+ : multiSelect(false)
+ , directory(false)
+ {
+ }
};
} // namespace WebKit