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

Issue 9319: Implement WM_MOUSEHWHEEL events.... (Closed)

Created:
12 years, 1 month ago by Hironori Bono
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Implements a WM_MOUSEHWHEEL message handler. A change r2266 removed fake scroll bars used to handle WM_MOUSEWHEEL messages. This change prevents Windows from sending WM_HSCROLL messages when tilting a mouse wheel (Windows sends WM_HSCROLL messages only to a window which has scroll bars.) and this causes a regression problem that we cannot use tilt-wheel to scroll horizontally. To solve this problem, this change implements a WM_MOUSEHWHEEL (0x020E) message handler to dispatch tilt-wheel events to the RenderWidgetHostViewWin::OnWheelEvents() function. Also, It changes scroll direction in creating a WebMouseWheelEvent instance. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=5095

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -12 lines) Patch
M chrome/browser/render_widget_host_view_win.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M webkit/glue/webinputevent_win.cc View 1 2 3 1 chunk +4 lines, -12 lines 1 comment Download

Messages

Total messages: 12 (0 generated)
Hironori Bono
12 years, 1 month ago (2008-11-05 03:07:45 UTC) #1
Peter Kasting
I'm opposed to use the key_state |= MK_SHIFT hack long-term, although perhaps it's expedient now ...
12 years, 1 month ago (2008-11-05 05:33:52 UTC) #2
Hironori Bono
Thank you for your review and comment. On 2008/11/05 05:33:52, pkasting wrote: > I'm opposed ...
12 years, 1 month ago (2008-11-05 06:40:49 UTC) #3
Peter Kasting
Don't wait for LGTM from me on this one, as after tonight I'll be gone ...
12 years, 1 month ago (2008-11-05 07:03:23 UTC) #4
Hironori Bono
Thank you for your quick review and comments. I wish you have happy holidays. http://codereview.chromium.org/9319/diff/4/5 ...
12 years, 1 month ago (2008-11-05 11:22:14 UTC) #5
Peter Kasting
http://codereview.chromium.org/9319/diff/4/5 File webkit/glue/webinputevent_win.cc (right): http://codereview.chromium.org/9319/diff/4/5#newcode183 Line 183: key_state |= MK_SHIFT; On 2008/11/05 11:22:14, hbono wrote: ...
12 years, 1 month ago (2008-11-05 15:52:07 UTC) #6
amit
http://codereview.chromium.org/9319/diff/8/207 File webkit/glue/webinputevent_win.cc (right): http://codereview.chromium.org/9319/diff/8/207#newcode173 Line 173: } Good that you removed this! http://codereview.chromium.org/9319/diff/8/207#newcode223 Line ...
12 years, 1 month ago (2008-11-05 23:53:05 UTC) #7
Hironori Bono
Thank you for your review and comments. http://codereview.chromium.org/9319/diff/8/207 File webkit/glue/webinputevent_win.cc (right): http://codereview.chromium.org/9319/diff/8/207#newcode223 Line 223: if ...
12 years, 1 month ago (2008-11-06 05:09:29 UTC) #8
amit
http://codereview.chromium.org/9319/diff/8/207 File webkit/glue/webinputevent_win.cc (right): http://codereview.chromium.org/9319/diff/8/207#newcode223 Line 223: if (key_state & MK_SHIFT || WM_MOUSEHWHEEL == message) ...
12 years, 1 month ago (2008-11-06 05:26:42 UTC) #9
Hironori Bono
Thank you for your comments. Is it possible to review the updated one? http://codereview.chromium.org/9319/diff/8/207 File ...
12 years, 1 month ago (2008-11-07 11:09:07 UTC) #10
amit
LGTM
12 years, 1 month ago (2008-11-07 15:44:33 UTC) #11
Peter Kasting
12 years, 1 month ago (2008-11-10 19:00:29 UTC) #12
Please open a bug for this if there is not already one.  Use of the shift hack
aside, this doesn't seem like it does the right thing.

http://codereview.chromium.org/9319/diff/801/405
File webkit/glue/webinputevent_win.cc (left):

http://codereview.chromium.org/9319/diff/801/405#oldcode182
Line 182: if (WM_HSCROLL == message) {
I still don't think this can possibly be the right change.

We're inside a block handling WM_HSCROLL, but we've now removed the shift hack
for WM_HSCROLL.  It seems like only two things are possible:
* We never receive WM_HSCROLL now that we have WM_MOUSEHWEEL support, and all
WM_HSCROLL code can disappear.  This seems unlikely because I thought this code
also got triggered by some trackpad drivers.
* Removing this code was wrong.

We need to know precisely when this code is triggered and be able to test it to
know what should happen; we can't just change it based on theories about what
might be right.  Does anyone have this info?

Powered by Google App Engine
This is Rietveld 408576698