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

Issue 1557993002: Add scroll units in GestureEvents. (Closed)

Created:
4 years, 11 months ago by dtapuska
Modified:
4 years, 11 months ago
Reviewers:
tdresser, Rick Byers
CC:
chromium-reviews, blink-reviews-events_chromium.org, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, kinuko+watch, blink-reviews-api_chromium.org, rwlbuis, skobes
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add scroll units in GestureEvents. Allow scroll units to be conveyed on GestureEvents to allow for page based gesture scrolls. The struct is memset to 0; so the default is PrecisePixels (0). BUG=568183 Committed: https://crrev.com/b1c5ecea48eacd4322a5ce3bb84f1a4acbb58cbd Cr-Commit-Position: refs/heads/master@{#370039}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Remove the PageScroll limiting; to be done when gesture is generated. #

Patch Set 3 : Fix bit packing build issue on Windows #

Patch Set 4 : Add layout tests #

Patch Set 5 : Fix default value for scroll units in event sender #

Patch Set 6 : Add expected results #

Patch Set 7 : Fix issue with scroll customization consume touchpad events #

Patch Set 8 : Fix layout test on Mac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+199 lines, -21 lines) Patch
M components/test_runner/event_sender.cc View 1 2 3 4 2 chunks +26 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/events/touch/gesture/gesture-scroll-by-page.html View 1 2 3 4 5 6 7 1 chunk +60 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/events/touch/gesture/gesture-scroll-by-page-expected.txt View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/events/touch/gesture/gesture-scroll-by-pixel.html View 1 2 3 4 5 6 1 chunk +58 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/events/touch/gesture/gesture-scroll-by-pixel-expected.txt View 1 2 3 4 5 6 7 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/LocalFrame.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/LocalFrame.cpp View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.cpp View 1 2 3 4 5 6 4 chunks +7 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/PlatformGestureEvent.h View 5 chunks +10 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebInputEvent.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebInputEventConversion.cpp View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/VisualViewportTest.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/WebInputEventConversionTest.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/web/WebInputEvent.h View 1 2 3 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (7 generated)
dtapuska
4 years, 11 months ago (2016-01-04 22:14:06 UTC) #3
tdresser
https://codereview.chromium.org/1557993002/diff/1/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/1557993002/diff/1/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode2514 third_party/WebKit/Source/core/input/EventHandler.cpp:2514: delta.setHeight(delta.height() > 0 ? 1 : -1); If a ...
4 years, 11 months ago (2016-01-05 16:07:33 UTC) #4
tdresser
LGTM, with nit. https://codereview.chromium.org/1557993002/diff/1/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/1557993002/diff/1/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode2514 third_party/WebKit/Source/core/input/EventHandler.cpp:2514: delta.setHeight(delta.height() > 0 ? 1 : ...
4 years, 11 months ago (2016-01-05 16:27:32 UTC) #5
dtapuska
https://codereview.chromium.org/1557993002/diff/1/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/1557993002/diff/1/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode2514 third_party/WebKit/Source/core/input/EventHandler.cpp:2514: delta.setHeight(delta.height() > 0 ? 1 : -1); On 2016/01/05 ...
4 years, 11 months ago (2016-01-05 16:52:28 UTC) #6
dtapuska
4 years, 11 months ago (2016-01-05 16:53:41 UTC) #8
tdresser
On 2016/01/05 16:53:41, dtapuska wrote: Still LGTM
4 years, 11 months ago (2016-01-05 17:00:20 UTC) #9
Rick Byers
Looks good except that you should probably add a test of some sort that verifies ...
4 years, 11 months ago (2016-01-08 21:54:18 UTC) #10
dtapuska
On 2016/01/08 21:54:18, Rick Byers wrote: > Looks good except that you should probably add ...
4 years, 11 months ago (2016-01-14 18:59:11 UTC) #11
Rick Byers
LGTM
4 years, 11 months ago (2016-01-15 19:49:04 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1557993002/130001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1557993002/130001
4 years, 11 months ago (2016-01-18 18:09:37 UTC) #15
commit-bot: I haz the power
Committed patchset #8 (id:130001)
4 years, 11 months ago (2016-01-18 18:18:11 UTC) #17
commit-bot: I haz the power
4 years, 11 months ago (2016-01-18 18:19:24 UTC) #19
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/b1c5ecea48eacd4322a5ce3bb84f1a4acbb58cbd
Cr-Commit-Position: refs/heads/master@{#370039}

Powered by Google App Engine
This is Rietveld 408576698