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

Unified Diff: ui/aura/remote_root_window_host_win.cc

Issue 141953014: Adding support for sending horizonatal mouse wheel information in Chrome ASH on Windows 8. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 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 | ui/metro_viewer/metro_viewer_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/remote_root_window_host_win.cc
===================================================================
--- ui/aura/remote_root_window_host_win.cc (revision 244940)
+++ ui/aura/remote_root_window_host_win.cc (working copy)
@@ -524,7 +524,9 @@
SetEventFlags(params.flags | key_event_flags());
if (params.event_type == ui::ET_MOUSEWHEEL) {
- ui::MouseWheelEvent wheel_event(mouse_event, 0, params.extra);
+ int x_offset = params.is_horizontal_wheel ? params.extra : 0;
+ int y_offset = !params.is_horizontal_wheel ? params.extra : 0;
+ ui::MouseWheelEvent wheel_event(mouse_event, x_offset, y_offset);
delegate_->OnHostMouseEvent(&wheel_event);
} else if (params.event_type == ui::ET_MOUSE_PRESSED) {
// TODO(shrikant): Ideally modify code in event.cc by adding automatic
« no previous file with comments | « no previous file | ui/metro_viewer/metro_viewer_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698