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

Unified Diff: chrome/renderer/render_view.cc

Issue 2825051: Add support for a directory file chooser command, which creates a file list b... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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 | « chrome/common/render_messages.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.cc
===================================================================
--- chrome/renderer/render_view.cc (revision 57114)
+++ chrome/renderer/render_view.cc (working copy)
@@ -1968,9 +1968,12 @@
const WebKit::WebFileChooserParams& params,
WebFileChooserCompletion* chooser_completion) {
ViewHostMsg_RunFileChooser_Params ipc_params;
- ipc_params.mode = params.multiSelect ?
- ViewHostMsg_RunFileChooser_Params::OpenMultiple :
- ViewHostMsg_RunFileChooser_Params::Open;
+ if (params.directory)
+ ipc_params.mode = ViewHostMsg_RunFileChooser_Params::OpenFolder;
+ else if (params.multiSelect)
+ ipc_params.mode = ViewHostMsg_RunFileChooser_Params::OpenMultiple;
+ else
+ ipc_params.mode = ViewHostMsg_RunFileChooser_Params::Open;
ipc_params.title = params.title;
ipc_params.default_file_name =
webkit_glue::WebStringToFilePath(params.initialValue);
« no previous file with comments | « chrome/common/render_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698