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

Unified Diff: content/plugin/webplugin_delegate_stub.cc

Issue 10905122: Initial NPAPI plugin support in Win Aura. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 8 years, 3 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: content/plugin/webplugin_delegate_stub.cc
===================================================================
--- content/plugin/webplugin_delegate_stub.cc (revision 156019)
+++ content/plugin/webplugin_delegate_stub.cc (working copy)
@@ -163,7 +163,12 @@
gfx::PluginWindowHandle parent = gfx::kNullPluginWindow;
#if defined(USE_AURA)
+#if defined(OS_WIN)
+ // Copy of gfx::NativeViewFromId that's defined without Aura.
+ parent = reinterpret_cast<HWND>(params.containing_window);
+#else
// Nothing.
+#endif
#elif defined(OS_WIN)
parent = gfx::NativeViewFromId(params.containing_window);
#elif defined(OS_LINUX)
« no previous file with comments | « content/browser/renderer_host/test_render_view_host.h ('k') | content/port/browser/render_widget_host_view_port.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698