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

Issue 130993003: Prevent partial touch sequences from reaching the renderer (Closed)

Created:
6 years, 11 months ago by jdduke (slow)
Modified:
6 years, 11 months ago
Reviewers:
tdresser, Rick Byers
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Prevent partial touch sequences from reaching the renderer Consolidate the various state-related members of TouchEventQueue, instead relying on but one state variable to determine touch dispatch. In addition, support touch forwarding suppression per-touch sequence. This prevents cases where a partial touch sequence might be forwarded, e.g., if a touch handler is added in the middle of a gesture, or a scroll-ending event is received in the middle of a gesture. BUG=295075 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=246893

Patch Set 1 #

Patch Set 2 : Test #

Total comments: 4

Patch Set 3 : Cleanup #

Patch Set 4 : Rebase #

Total comments: 8

Patch Set 5 : Cleanup and code review #

Patch Set 6 : Name cleanup #

Total comments: 2

Patch Set 7 : Comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -119 lines) Patch
content/browser/renderer_host/input/input_router_impl.cc View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
content/browser/renderer_host/input/touch_event_queue.h View 1 2 3 4 2 chunks +10 lines, -10 lines 0 comments Download
content/browser/renderer_host/input/touch_event_queue.cc View 1 2 3 4 5 6 11 chunks +66 lines, -65 lines 0 comments Download
content/browser/renderer_host/input/touch_event_queue_unittest.cc View 1 2 3 4 5 19 chunks +92 lines, -42 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
jdduke (slow)
tdresser@: PTAL. This completes the transfer of touch disposition handling logic from ContentViewGestureHandler. Hopefully these ...
6 years, 11 months ago (2014-01-17 02:20:23 UTC) #1
tdresser
https://codereview.chromium.org/130993003/diff/60001/content/browser/renderer_host/input/touch_event_queue.cc File content/browser/renderer_host/input/touch_event_queue.cc (right): https://codereview.chromium.org/130993003/diff/60001/content/browser/renderer_host/input/touch_event_queue.cc#newcode345 content/browser/renderer_host/input/touch_event_queue.cc:345: // We assume the scroll event are generated synchronously ...
6 years, 11 months ago (2014-01-17 14:33:40 UTC) #2
jdduke (slow)
https://codereview.chromium.org/130993003/diff/60001/content/browser/renderer_host/input/touch_event_queue.cc File content/browser/renderer_host/input/touch_event_queue.cc (right): https://codereview.chromium.org/130993003/diff/60001/content/browser/renderer_host/input/touch_event_queue.cc#newcode345 content/browser/renderer_host/input/touch_event_queue.cc:345: // We assume the scroll event are generated synchronously ...
6 years, 11 months ago (2014-01-17 18:29:07 UTC) #3
Rick Byers
https://codereview.chromium.org/130993003/diff/220001/content/browser/renderer_host/input/touch_event_queue.cc File content/browser/renderer_host/input/touch_event_queue.cc (right): https://codereview.chromium.org/130993003/diff/220001/content/browser/renderer_host/input/touch_event_queue.cc#newcode255 content/browser/renderer_host/input/touch_event_queue.cc:255: if (touch_handling_state_ == NO_TOUCH_HANDLER) { Shouldn't we be able ...
6 years, 11 months ago (2014-01-21 22:00:24 UTC) #4
jdduke (slow)
Thanks for review. The more input from those that will be needing to tweak this ...
6 years, 11 months ago (2014-01-22 02:46:59 UTC) #5
jdduke (slow)
rbyers@: Anything else you'd like to see in this patch? If you think this kind ...
6 years, 11 months ago (2014-01-23 16:35:41 UTC) #6
tdresser
LGTM
6 years, 11 months ago (2014-01-23 18:26:17 UTC) #7
Rick Byers
I think this is a good change overall, thanks Jared! LGTM. Do you think I ...
6 years, 11 months ago (2014-01-23 18:40:13 UTC) #8
jdduke (slow)
On 2014/01/23 18:40:13, Rick Byers wrote: > I think this is a good change overall, ...
6 years, 11 months ago (2014-01-23 22:10:44 UTC) #9
jdduke (slow)
https://codereview.chromium.org/130993003/diff/330002/content/browser/renderer_host/input/touch_event_queue.cc File content/browser/renderer_host/input/touch_event_queue.cc (right): https://codereview.chromium.org/130993003/diff/330002/content/browser/renderer_host/input/touch_event_queue.cc#newcode383 content/browser/renderer_host/input/touch_event_queue.cc:383: touch_filtering_state_ = DROP_ALL_TOUCHES; On 2014/01/23 18:40:14, Rick Byers wrote: ...
6 years, 11 months ago (2014-01-24 05:29:21 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/130993003/440001
6 years, 11 months ago (2014-01-24 05:32:04 UTC) #11
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests, browser_tests_swarm http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=251114
6 years, 11 months ago (2014-01-24 09:26:58 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/130993003/440001
6 years, 11 months ago (2014-01-24 13:04:22 UTC) #13
commit-bot: I haz the power
6 years, 11 months ago (2014-01-24 15:21:48 UTC) #14
Message was sent while issue was closed.
Change committed as 246893

Powered by Google App Engine
This is Rietveld 408576698