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

Unified Diff: chrome/browser/renderer_host/render_widget_host_view_win.cc

Issue 549025: Set disabled style on GPU window and plugin intermediate window so mouse mess... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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 | « no previous file | chrome/plugin/webplugin_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/render_widget_host_view_win.cc
===================================================================
--- chrome/browser/renderer_host/render_widget_host_view_win.cc (revision 36167)
+++ chrome/browser/renderer_host/render_widget_host_view_win.cc (working copy)
@@ -440,10 +440,16 @@
}
DCHECK(window_class);
+ // TODO(apatrick): the parent window is disabled if the plugin window is
+ // disabled so that mouse messages from the plugin window are passed on to the
+ // browser window. This does not work for regular plugins because it prevents
+ // them from receiving mouse and keyboard input. WS_DISABLED is not
+ // needed when the GPU process stops using child windows for 3D rendering.
+ DWORD enabled_style = ::GetWindowLong(window, GWL_STYLE) & WS_DISABLED;
HWND parent = CreateWindowEx(
WS_EX_LEFT | WS_EX_LTRREADING | WS_EX_RIGHTSCROLLBAR,
MAKEINTATOM(window_class), 0,
- WS_CHILD | WS_CLIPCHILDREN | WS_CLIPSIBLINGS,
+ WS_CHILD | WS_CLIPCHILDREN | WS_CLIPSIBLINGS | enabled_style,
0, 0, 0, 0, ::GetParent(window), 0, GetModuleHandle(NULL), 0);
DCHECK(parent);
::SetParent(window, parent);
« no previous file with comments | « no previous file | chrome/plugin/webplugin_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698