From 4e5c1084d36e100572b2bcee0c10caf35e0f2367 Mon Sep 17 00:00:00 2001 From: "jhawkins@chromium.org" Date: Tue, 17 Feb 2009 23:32:51 +0000 Subject: 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 --- chrome/browser/chrome_plugin_host.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'chrome/browser/chrome_plugin_host.cc') 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(static_cast(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; } -- cgit v1.1