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

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

Issue 12221144: Make zoom using ctrl+mouse wheel work in win aura. Windows -non-aura had a hack that was a layering… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 10 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/browser/renderer_host/render_widget_host_view_win.cc
===================================================================
--- content/browser/renderer_host/render_widget_host_view_win.cc (revision 180972)
+++ content/browser/renderer_host/render_widget_host_view_win.cc (working copy)
@@ -1875,25 +1875,7 @@
reinterpret_cast<LPARAM>(toplevel_hwnd));
}
- // This is a bit of a hack, but will work for now since we don't want to
- // pollute this object with WebContentsImpl-specific functionality...
- bool handled_by_WebContentsImpl = false;
- if (!is_fullscreen_ && GetParent()) {
- // Use a special reflected message to break recursion. If we send
- // WM_MOUSEWHEEL, the focus manager subclass of web contents will
- // route it back here.
- MSG new_message = {0};
- new_message.hwnd = m_hWnd;
- new_message.message = message;
- new_message.wParam = wparam;
- new_message.lParam = lparam;
-
- handled_by_WebContentsImpl =
- !!::SendMessage(GetParent(), base::win::kReflectedMessage, 0,
- reinterpret_cast<LPARAM>(&new_message));
- }
-
- if (!handled_by_WebContentsImpl && render_widget_host_) {
+ if (render_widget_host_) {
render_widget_host_->ForwardWheelEvent(
WebInputEventFactory::mouseWheelEvent(m_hWnd, message, wparam,
lparam));
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698