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

Issue 1018183002: Add rails to input wheel events. (Closed)

Created:
5 years, 9 months ago by ccameron
Modified:
5 years, 9 months ago
CC:
blink-reviews, shans, rjwright, dstockwell, blink-reviews-animation_chromium.org, eae+blinkwatch, Timothy Loh, Mike Lawther (Google), blink-reviews-events_chromium.org, dglazkov+blink, darktears, Steve Block, Eric Willigers
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Add rails to input wheel events. Allow wheel events to specify that they wish to be on horizontal or vertical rails. Honor this specification in wheel event scrolling code in ScrollableArea and PinchViewport. BUG=468454 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192298

Patch Set 1 #

Total comments: 4

Patch Set 2 : Incorporate review feedback #

Total comments: 3

Patch Set 3 : More plumbing and tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -13 lines) Patch
M Source/core/events/Event.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/events/WheelEvent.h View 1 2 4 chunks +5 lines, -3 lines 0 comments Download
M Source/core/events/WheelEvent.cpp View 1 2 4 chunks +6 lines, -2 lines 0 comments Download
M Source/core/frame/PinchViewport.cpp View 1 1 chunk +9 lines, -3 lines 0 comments Download
M Source/platform/PlatformEvent.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M Source/platform/PlatformWheelEvent.h View 1 4 chunks +5 lines, -0 lines 0 comments Download
M Source/platform/scroll/ScrollAnimator.cpp View 1 1 chunk +4 lines, -2 lines 0 comments Download
M Source/web/WebInputEvent.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebInputEventConversion.cpp View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M Source/web/tests/WebInputEventConversionTest.cpp View 1 2 3 chunks +51 lines, -2 lines 0 comments Download
M public/web/WebInputEvent.h View 1 3 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
Rick Byers
https://codereview.chromium.org/1018183002/diff/1/public/web/WebInputEvent.h File public/web/WebInputEvent.h (right): https://codereview.chromium.org/1018183002/diff/1/public/web/WebInputEvent.h#newcode349 public/web/WebInputEvent.h:349: enum RailMode { We'll want to use this from ...
5 years, 9 months ago (2015-03-18 23:30:58 UTC) #2
ccameron
Good point -- updated. https://codereview.chromium.org/1018183002/diff/1/public/web/WebInputEvent.h File public/web/WebInputEvent.h (right): https://codereview.chromium.org/1018183002/diff/1/public/web/WebInputEvent.h#newcode349 public/web/WebInputEvent.h:349: enum RailMode { On 2015/03/18 ...
5 years, 9 months ago (2015-03-19 00:05:11 UTC) #3
ccameron
Ping on this, and adding kbr@ for OWNER of platform+web
5 years, 9 months ago (2015-03-19 22:43:38 UTC) #5
Ken Russell (switch to Gerrit)
LGTM overall https://codereview.chromium.org/1018183002/diff/20001/Source/web/WebInputEvent.cpp File Source/web/WebInputEvent.cpp (right): https://codereview.chromium.org/1018183002/diff/20001/Source/web/WebInputEvent.cpp#newcode54 Source/web/WebInputEvent.cpp:54: int mousewheelData[11]; These magic constants are awful. ...
5 years, 9 months ago (2015-03-20 02:35:21 UTC) #6
ccameron
Thanks! https://codereview.chromium.org/1018183002/diff/20001/Source/web/WebInputEvent.cpp File Source/web/WebInputEvent.cpp (right): https://codereview.chromium.org/1018183002/diff/20001/Source/web/WebInputEvent.cpp#newcode54 Source/web/WebInputEvent.cpp:54: int mousewheelData[11]; On 2015/03/20 02:35:21, Ken Russell wrote: ...
5 years, 9 months ago (2015-03-20 18:45:27 UTC) #7
Rick Byers
I think there's code somewhere that creates a WebMouseWheelEvent from a PlatformMouseWheelEvent (inverse of PlatformMouseWheelEventBuilder), ...
5 years, 9 months ago (2015-03-20 18:53:52 UTC) #8
Rick Byers
On 2015/03/20 18:53:52, Rick Byers wrote: > I think there's code somewhere that creates a ...
5 years, 9 months ago (2015-03-20 18:57:05 UTC) #9
lazyboy
On 2015/03/20 18:57:05, Rick Byers wrote: > On 2015/03/20 18:53:52, Rick Byers wrote: > > ...
5 years, 9 months ago (2015-03-20 21:00:33 UTC) #10
ccameron
Sounds good -- added the extra plumbing and tests (umm, and found some sad bugs ...
5 years, 9 months ago (2015-03-20 21:03:37 UTC) #11
Rick Byers
Thanks LGTM. Changes like this really make the 3 layers of event abstractions obviously silly ...
5 years, 9 months ago (2015-03-20 21:29:05 UTC) #12
ccameron
Thanks! I see that the use of powers of 2 for non-combinable enums is everywhere ...
5 years, 9 months ago (2015-03-20 21:57:07 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1018183002/40001
5 years, 9 months ago (2015-03-20 21:58:09 UTC) #16
commit-bot: I haz the power
5 years, 9 months ago (2015-03-21 00:01:19 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=192298

Powered by Google App Engine
This is Rietveld 408576698