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

Unified Diff: chrome/browser/renderer_host/render_view_host_delegate.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
Index: chrome/browser/renderer_host/render_view_host_delegate.h
===================================================================
--- chrome/browser/renderer_host/render_view_host_delegate.h (revision 57114)
+++ chrome/browser/renderer_host/render_view_host_delegate.h (working copy)
@@ -598,6 +598,19 @@
virtual ~SSL() {}
};
+ // FileSelect ----------------------------------------------------------------
+ // Interface for handling file selection.
+
+ class FileSelect {
+ public:
+ // A file chooser should be shown.
+ virtual void RunFileChooser(
+ const ViewHostMsg_RunFileChooser_Params& params) = 0;
+
+ protected:
+ virtual ~FileSelect() {}
+ };
+
// ---------------------------------------------------------------------------
// Returns the current delegate associated with a feature. May return NULL if
@@ -615,6 +628,7 @@
virtual BookmarkDrag* GetBookmarkDragDelegate();
virtual BlockedPlugin* GetBlockedPluginDelegate();
virtual SSL* GetSSLDelegate();
+ virtual FileSelect* GetFileSelectDelegate();
// Return the delegate for registering RenderViewHosts for automation resource
// routing.
@@ -726,10 +740,6 @@
const std::string& origin,
const std::string& target) {}
- // A file chooser should be shown.
- virtual void RunFileChooser(
- const ViewHostMsg_RunFileChooser_Params& params) {}
-
// A javascript message, confirmation or prompt should be shown.
virtual void RunJavaScriptMessage(const std::wstring& message,
const std::wstring& default_prompt,
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.cc ('k') | chrome/browser/renderer_host/render_view_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698