summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chrome_plugin_host.cc
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-17 23:32:51 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-17 23:32:51 +0000
commit4e5c1084d36e100572b2bcee0c10caf35e0f2367 (patch)
tree2b1b80512adcbbf1c7552cf4c25d8905cbd13326 /chrome/browser/chrome_plugin_host.cc
parent0cbd2d367068d9b5cc00cf39238f0277cef5ba15 (diff)
downloadchromium_src-4e5c1084d36e100572b2bcee0c10caf35e0f2367.zip
chromium_src-4e5c1084d36e100572b2bcee0c10caf35e0f2367.tar.gz
chromium_src-4e5c1084d36e100572b2bcee0c10caf35e0f2367.tar.bz2
Make gears_integration.cc compile on Posix. Change the GearsCreateShortcut callback to use GearsShortCutData2.
Review URL: http://codereview.chromium.org/20412 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9918 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chrome_plugin_host.cc')
-rw-r--r--chrome/browser/chrome_plugin_host.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/chrome_plugin_host.cc b/chrome/browser/chrome_plugin_host.cc
index 9b67490..88fd40e 100644
--- a/chrome/browser/chrome_plugin_host.cc
+++ b/chrome/browser/chrome_plugin_host.cc
@@ -412,6 +412,7 @@ CPError STDCALL CPB_ShowHtmlDialog(
ChromePluginLib* plugin = ChromePluginLib::FromCPID(id);
CHECK(plugin);
+#if defined(OS_WIN)
HWND parent_hwnd = reinterpret_cast<HWND>(static_cast<uintptr_t>(context));
PluginService* service = PluginService::GetInstance();
if (!service)
@@ -421,6 +422,11 @@ CPError STDCALL CPB_ShowHtmlDialog(
new ModelessHtmlDialogDelegate(GURL(url), width, height, json_arguments,
plugin_context, plugin, main_message_loop,
parent_hwnd);
+#else
+ // TODO(port): port ModelessHtmlDialogDelegate
+ NOTIMPLEMENTED();
+#endif
+
return CPERR_SUCCESS;
}