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

Unified Diff: content/common/view_messages.h

Issue 6623015: Add a path for a web page to request the enumeration of a directory. This, t... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 | « content/browser/renderer_host/render_view_host.cc ('k') | content/renderer/render_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/view_messages.h
===================================================================
--- content/common/view_messages.h (revision 79702)
+++ content/common/view_messages.h (working copy)
@@ -1028,6 +1028,11 @@
IPC_MESSAGE_ROUTED1(ViewMsg_RunFileChooserResponse,
std::vector<FilePath> /* selected files */)
+// Provides the results of directory enumeration.
+IPC_MESSAGE_ROUTED2(ViewMsg_EnumerateDirectoryResponse,
+ int /* request_id */,
+ std::vector<FilePath> /* files_in_directory */)
+
// When a renderer sends a ViewHostMsg_Focus to the browser process,
// the browser has the option of sending a ViewMsg_CantFocus back to
// the renderer.
@@ -1640,6 +1645,14 @@
IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser,
ViewHostMsg_RunFileChooser_Params)
+// Asks the browser to enumerate a directory. This is equivalent to running
+// the file chooser in directory-enumeration mode and having the user select
+// the given directory. The result is returned in a
+// ViewMsg_EnumerateDirectoryResponse message.
+IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory,
+ int /* request_id */,
+ FilePath /* file_path */)
+
// Tells the browser to move the focus to the next (previous if reverse is
// true) focusable element.
IPC_MESSAGE_ROUTED1(ViewHostMsg_TakeFocus,
« no previous file with comments | « content/browser/renderer_host/render_view_host.cc ('k') | content/renderer/render_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698