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

Issue 183013010: Don't send touchcancel on touch scroll start (Closed)

Created:
6 years, 9 months ago by Rick Byers
Modified:
6 years, 9 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, tdresser, aelias_OOO_until_Jul13
Visibility:
Public.

Description

Don't send touchcancel on touch scroll start This switches the default touch scrolling mode from 'touch cancel on scroll' to our new 'touch move absorption' behavior. Briefly: touchmove events still aren't sent during active scrolling (for performance reasons), but will be sent when overscrolling. See https://docs.google.com/a/chromium.org/document/d/1MGuCb0Lb7UfaDmH44bp9YKVG-CVfH6WtKTZl93BXwQw/edit# for details. This exposes the touch scrolling mode in chrome://flags/#touch-scrolling-mode so that we can easily switch back to the old behavior for diagnostics purposes. This will be removed after this has reached stable (crbug.com/350430). Fixes a bug where (depending on timing) we could send one or more extra touchmove events at the start of a scroll sequence. Now we start every scroll with moves being absorbed and switch to sending move events only after we've seen an unconsumed GestureScrollUpdate. Fixes a bug where scrolling the top controls (Android) wouldn't mark the GestureScrollUpdate event as consumed. Adds a unit test covering this and other basic parts of LayerTreeHostImpl's scrolling behavior with respect to top controls. Updates some tests to support both the original "touchcancel" mode and the new "touchmove absorption" mode. This way if we uncover problems after branch, we can simply flip the default mode (rather than reverting this entire CL). BUG=346693 R=aelias@chromium.org, jdduke@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255787

Patch Set 1 #

Patch Set 2 : Update tests, fix one bug #

Patch Set 3 : More fixes #

Patch Set 4 : Fix top controls scrolling and add test #

Patch Set 5 : Update test #

Total comments: 2

Patch Set 6 : Add a couple tests #

Total comments: 6

Patch Set 7 : Fix resource description #

Patch Set 8 : Merge with trunk (no changes) #

Patch Set 9 : Fix win compile warning #

Unified diffs Side-by-side diffs Delta from patch set Stats (+240 lines, -26 lines) Patch
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 4 chunks +7 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 2 chunks +58 lines, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 2 chunks +20 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/input_router_impl.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/touch_action_browsertest.cc View 1 2 2 chunks +9 lines, -4 lines 0 comments Download
M content/browser/renderer_host/input/touch_event_queue.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
M content/browser/renderer_host/input/touch_event_queue.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/touch_event_queue_unittest.cc View 1 2 3 4 5 6 7 4 chunks +70 lines, -10 lines 0 comments Download
M ui/events/gesture_detection/gesture_provider_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +51 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Rick Byers
Jared, please review.
6 years, 9 months ago (2014-03-07 17:05:14 UTC) #1
jdduke (slow)
content/browser/renderer_host/input lgtm. I guess we still have the GSU race, but it won't really hurt ...
6 years, 9 months ago (2014-03-07 18:03:16 UTC) #2
Rick Byers
On 2014/03/07 18:03:16, jdduke wrote: > content/browser/renderer_host/input lgtm. Thanks. Are the about_flags and resource strings ...
6 years, 9 months ago (2014-03-07 20:58:53 UTC) #3
jdduke (slow)
Resource/flag changes look good with one exception. https://codereview.chromium.org/183013010/diff/90001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/183013010/diff/90001/chrome/app/generated_resources.grd#newcode6984 chrome/app/generated_resources.grd:6984: + <message ...
6 years, 9 months ago (2014-03-07 21:07:32 UTC) #4
aelias_OOO_until_Jul13
https://codereview.chromium.org/183013010/diff/90001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/183013010/diff/90001/cc/trees/layer_tree_host_impl.cc#newcode2307 cc/trees/layer_tree_host_impl.cc:2307: if (did_scroll_content) { I think this should also have ...
6 years, 9 months ago (2014-03-07 21:09:08 UTC) #5
aelias_OOO_until_Jul13
lgtm for cc/ https://codereview.chromium.org/183013010/diff/90001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/183013010/diff/90001/cc/trees/layer_tree_host_impl.cc#newcode2307 cc/trees/layer_tree_host_impl.cc:2307: if (did_scroll_content) { On 2014/03/07 21:09:09, ...
6 years, 9 months ago (2014-03-07 21:12:31 UTC) #6
Rick Byers
Thanks guys! https://codereview.chromium.org/183013010/diff/90001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/183013010/diff/90001/chrome/app/generated_resources.grd#newcode6984 chrome/app/generated_resources.grd:6984: + <message name="IDS_FLAGS_TOUCH_SCROLLING_MODE_DESCRIPTION" desc="Description for the flag ...
6 years, 9 months ago (2014-03-07 21:24:40 UTC) #7
Rick Byers
The CQ bit was checked by rbyers@chromium.org
6 years, 9 months ago (2014-03-07 21:24:46 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rbyers@chromium.org/183013010/110001
6 years, 9 months ago (2014-03-07 21:26:01 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-07 23:27:26 UTC) #10
commit-bot: I haz the power
Retried try job too often on win_x64_rel for step(s) base_unittests, chrome_elf_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_x64_rel&number=82864
6 years, 9 months ago (2014-03-07 23:27:26 UTC) #11
Rick Byers
The CQ bit was checked by rbyers@chromium.org
6 years, 9 months ago (2014-03-08 04:06:04 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rbyers@chromium.org/183013010/150001
6 years, 9 months ago (2014-03-08 10:59:04 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-08 12:59:20 UTC) #14
commit-bot: I haz the power
Retried try job too often on win for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win&number=157461
6 years, 9 months ago (2014-03-08 12:59:20 UTC) #15
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 9 months ago (2014-03-08 16:25:15 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rbyers@chromium.org/183013010/150001
6 years, 9 months ago (2014-03-08 16:26:00 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-08 17:27:23 UTC) #18
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) telemetry_perf_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=234484
6 years, 9 months ago (2014-03-08 17:27:24 UTC) #19
Rick Byers
6 years, 9 months ago (2014-03-08 18:03:30 UTC) #20
Message was sent while issue was closed.
Committed patchset #9 manually as r255787 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698