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

Unified Diff: chrome/plugin/webplugin_delegate_stub.cc

Issue 146078: linux: OOP windowed plugins (Closed)
Patch Set: new version Created 11 years, 5 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 | « chrome/plugin/plugin_main.cc ('k') | chrome/plugin/webplugin_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/plugin/webplugin_delegate_stub.cc
diff --git a/chrome/plugin/webplugin_delegate_stub.cc b/chrome/plugin/webplugin_delegate_stub.cc
index e607667adab1b68933e27b79d81f4ae842761d48..3bfd00299dc179f6940ac81444ceadf24b6981b0 100644
--- a/chrome/plugin/webplugin_delegate_stub.cc
+++ b/chrome/plugin/webplugin_delegate_stub.cc
@@ -128,14 +128,15 @@ void WebPluginDelegateStub::OnInit(const PluginMsg_Init_Params& params,
FilePath path = FilePath::FromWStringHack(
command_line.GetSwitchValue(switches::kPluginPath));
+
+ gfx::PluginWindowHandle parent = NULL;
#if defined(OS_WIN)
- delegate_ = WebPluginDelegate::Create(
- path, mime_type_, gfx::NativeViewFromId(params.containing_window));
-#else
- NOTIMPLEMENTED() << " need to figure out nativeview id business";
- delegate_ = WebPluginDelegate::Create(
- path, mime_type_, NULL);
+ parent = gfx::NativeViewFromId(params.containing_window);
+#elif defined(OS_LINUX)
+ PluginThread::current()->Send(new PluginProcessHostMsg_MapNativeViewId(
+ params.containing_window, &parent));
#endif
+ delegate_ = WebPluginDelegate::Create(path, mime_type_, parent);
if (delegate_) {
webplugin_ = new WebPluginProxy(channel_, instance_id_, delegate_);
« no previous file with comments | « chrome/plugin/plugin_main.cc ('k') | chrome/plugin/webplugin_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698