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

Unified Diff: chrome/common/render_messages.h

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/chrome_browser.gypi ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/render_messages.h
===================================================================
--- chrome/common/render_messages.h (revision 57114)
+++ chrome/common/render_messages.h (working copy)
@@ -823,6 +823,9 @@
// Like Open, but allows picking multiple files to open.
OpenMultiple,
+ // Like Open, but selects a folder.
+ OpenFolder,
+
// Allows picking a nonexistent file, and prompts to overwrite if the file
// already exists.
Save,
@@ -2567,6 +2570,7 @@
return false;
if (mode != param_type::Open &&
mode != param_type::OpenMultiple &&
+ mode != param_type::OpenFolder &&
mode != param_type::Save)
return false;
p->mode = static_cast<param_type::Mode>(mode);
@@ -2582,6 +2586,9 @@
case param_type::OpenMultiple:
l->append("(OpenMultiple, ");
break;
+ case param_type::OpenFolder:
+ l->append("(OpenFolder, ");
+ break;
case param_type::Save:
l->append("(Save, ");
break;
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698