summaryrefslogtreecommitdiffstats
path: root/chrome/plugin/chrome_plugin_host.cc
diff options
context:
space:
mode:
authorzork@google.com <zork@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-13 23:54:57 +0000
committerzork@google.com <zork@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-13 23:54:57 +0000
commitb62d1a8c6795a9feefe4a2e688463c56ce46a6bd (patch)
tree229f2d9bd915151f13642b5841c58603b0819690 /chrome/plugin/chrome_plugin_host.cc
parent10dd1a30fbaee0315e78d1752cbf1fa8e22c99e4 (diff)
downloadchromium_src-b62d1a8c6795a9feefe4a2e688463c56ce46a6bd.zip
chromium_src-b62d1a8c6795a9feefe4a2e688463c56ce46a6bd.tar.gz
chromium_src-b62d1a8c6795a9feefe4a2e688463c56ce46a6bd.tar.bz2
Updating so that Gears can spawn file selectors when running in the renderer process
Review URL: http://codereview.chromium.org/14907 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7986 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/plugin/chrome_plugin_host.cc')
-rw-r--r--chrome/plugin/chrome_plugin_host.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/plugin/chrome_plugin_host.cc b/chrome/plugin/chrome_plugin_host.cc
index 677404f..2002fa90 100644
--- a/chrome/plugin/chrome_plugin_host.cc
+++ b/chrome/plugin/chrome_plugin_host.cc
@@ -544,6 +544,18 @@ CPError STDCALL CPB_PluginThreadAsyncCall(CPID id,
return CPERR_SUCCESS;
}
+CPError STDCALL CPB_OpenFileDialog(CPID id,
+ CPBrowsingContext context,
+ bool multiple_files,
+ const char *title,
+ const char *filter,
+ void *user_data) {
+ NOTREACHED() <<
+ "Open file dialog should only be called from the renderer process.";
+
+ return CPERR_FAILURE;
+}
+
} // namespace
CPBrowserFuncs* GetCPBrowserFuncsForPlugin() {
@@ -574,6 +586,7 @@ CPBrowserFuncs* GetCPBrowserFuncsForPlugin() {
browser_funcs.handle_command = CPB_HandleCommand;
browser_funcs.send_sync_message = CPB_SendSyncMessage;
browser_funcs.plugin_thread_async_call = CPB_PluginThreadAsyncCall;
+ browser_funcs.open_file_dialog = CPB_OpenFileDialog;
browser_funcs.request_funcs = &request_funcs;
browser_funcs.response_funcs = &response_funcs;