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

Issue 156783006: Consuming a touch move prevents only the next scroll update. (Closed)

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

Description

Consuming a touch move prevents only the next scroll update. This implements (In Clank) the touch disposition handling method outlined here: https://docs.google.com/a/chromium.org/document/d/176xYUC3WbiSl7qd08SBW4NiI4_gO0N4PN6tPAq49-68/edit?pli=1#bookmark=id.wu82d53abe2w We also modify the way in which Aura handles touch move events to line up with the new way Android handles them. That is, consuming a touch move event prevents the next scroll update event, but does not prevent future scroll update events. This change will have little impact until https://codereview.chromium.org/166923002/ has landed. BUG=328503 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251533

Patch Set 1 #

Total comments: 10

Patch Set 2 : Address jdduke's comments, and add tests. #

Patch Set 3 : Fix minor nit. #

Patch Set 4 : Clean up error handling and tests. #

Total comments: 18

Patch Set 5 : Address jdduke's comments. #

Total comments: 17

Patch Set 6 : Address jdduke comments. #

Patch Set 7 : Remove touch scroll modes flags. #

Patch Set 8 : Reuploading to try to avoid chunk mismatch. #

Total comments: 22

Patch Set 9 : Address rbyers' comments. #

Total comments: 15

Patch Set 10 : Address jdduke's comments. #

Patch Set 11 : Undo accidental whitespace change. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+625 lines, -164 lines) Patch
content/browser/renderer_host/input/gesture_event_packet.h View 1 2 3 4 5 1 chunk +8 lines, -4 lines 0 comments Download
content/browser/renderer_host/input/gesture_event_packet.cc View 1 2 3 4 5 1 chunk +24 lines, -16 lines 0 comments Download
content/browser/renderer_host/input/touch_disposition_gesture_filter.h View 1 2 3 4 5 6 7 8 9 3 chunks +31 lines, -11 lines 0 comments Download
content/browser/renderer_host/input/touch_disposition_gesture_filter.cc View 1 2 3 4 5 6 7 8 9 7 chunks +148 lines, -46 lines 0 comments Download
M content/browser/renderer_host/input/touch_disposition_gesture_filter_unittest.cc View 1 2 3 4 5 6 7 8 9 9 chunks +276 lines, -18 lines 0 comments Download
content/browser/renderer_host/input/touch_event_queue_unittest.cc View 1 2 3 4 5 6 43 chunks +74 lines, -67 lines 0 comments Download
M ui/aura/gestures/gesture_recognizer_unittest.cc View 1 1 chunk +57 lines, -0 lines 0 comments Download
M ui/events/gestures/gesture_sequence.cc View 3 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
jdduke (slow)
In general, I think this is a nice addition and should make it a good ...
6 years, 10 months ago (2014-02-11 16:02:25 UTC) #1
tdresser
https://codereview.chromium.org/156783006/diff/1/content/browser/renderer_host/input/gesture_event_packet.h File content/browser/renderer_host/input/gesture_event_packet.h (right): https://codereview.chromium.org/156783006/diff/1/content/browser/renderer_host/input/gesture_event_packet.h#newcode22 content/browser/renderer_host/input/gesture_event_packet.h:22: TOUCH_END, // A touch point lifted. On 2014/02/11 16:02:25, ...
6 years, 10 months ago (2014-02-11 21:04:32 UTC) #2
jdduke (slow)
https://codereview.chromium.org/156783006/diff/1/content/browser/renderer_host/input/touch_disposition_gesture_filter.cc File content/browser/renderer_host/input/touch_disposition_gesture_filter.cc (right): https://codereview.chromium.org/156783006/diff/1/content/browser/renderer_host/input/touch_disposition_gesture_filter.cc#newcode307 content/browser/renderer_host/input/touch_disposition_gesture_filter.cc:307: (last_event_of_type_dropped_.count( On 2014/02/11 21:04:33, tdresser wrote: > On 2014/02/11 ...
6 years, 10 months ago (2014-02-11 21:18:16 UTC) #3
tdresser
https://codereview.chromium.org/156783006/diff/1/content/browser/renderer_host/input/touch_disposition_gesture_filter.cc File content/browser/renderer_host/input/touch_disposition_gesture_filter.cc (right): https://codereview.chromium.org/156783006/diff/1/content/browser/renderer_host/input/touch_disposition_gesture_filter.cc#newcode307 content/browser/renderer_host/input/touch_disposition_gesture_filter.cc:307: (last_event_of_type_dropped_.count( On 2014/02/11 21:18:16, jdduke wrote: > On 2014/02/11 ...
6 years, 10 months ago (2014-02-11 21:50:43 UTC) #4
tdresser
6 years, 10 months ago (2014-02-13 16:20:58 UTC) #5
jdduke (slow)
https://codereview.chromium.org/156783006/diff/270001/content/browser/renderer_host/input/touch_disposition_gesture_filter.cc File content/browser/renderer_host/input/touch_disposition_gesture_filter.cc (right): https://codereview.chromium.org/156783006/diff/270001/content/browser/renderer_host/input/touch_disposition_gesture_filter.cc#newcode99 content/browser/renderer_host/input/touch_disposition_gesture_filter.cc:99: CancelTapIfNecessary(); I'm not sure we can cancel the tap ...
6 years, 10 months ago (2014-02-13 16:53:06 UTC) #6
tdresser
https://codereview.chromium.org/156783006/diff/270001/content/browser/renderer_host/input/touch_disposition_gesture_filter.cc File content/browser/renderer_host/input/touch_disposition_gesture_filter.cc (right): https://codereview.chromium.org/156783006/diff/270001/content/browser/renderer_host/input/touch_disposition_gesture_filter.cc#newcode99 content/browser/renderer_host/input/touch_disposition_gesture_filter.cc:99: CancelTapIfNecessary(); On 2014/02/13 16:53:06, jdduke wrote: > I'm not ...
6 years, 10 months ago (2014-02-13 18:14:08 UTC) #7
jdduke (slow)
This is looking pretty good, maybe rbyers@ can take another look and we can see ...
6 years, 10 months ago (2014-02-13 19:39:59 UTC) #8
tdresser
sadrul@, can you take a look at ui/aura? joi@, can you take a look at ...
6 years, 10 months ago (2014-02-13 20:34:31 UTC) #9
sadrul
Is the CL description up-to-date?
6 years, 10 months ago (2014-02-13 20:39:22 UTC) #10
tdresser
On 2014/02/13 20:39:22, sadrul wrote: > Is the CL description up-to-date? Hmmm, yeah, this really ...
6 years, 10 months ago (2014-02-13 20:47:52 UTC) #11
tdresser
On 2014/02/13 20:47:52, tdresser wrote: > On 2014/02/13 20:39:22, sadrul wrote: > > Is the ...
6 years, 10 months ago (2014-02-13 21:09:05 UTC) #12
Rick Byers
This looks pretty good to me, thanks! Overall I think it does give us the ...
6 years, 10 months ago (2014-02-13 21:59:24 UTC) #13
tdresser
https://codereview.chromium.org/156783006/diff/690001/content/browser/renderer_host/input/touch_disposition_gesture_filter.cc File content/browser/renderer_host/input/touch_disposition_gesture_filter.cc (left): https://codereview.chromium.org/156783006/diff/690001/content/browser/renderer_host/input/touch_disposition_gesture_filter.cc#oldcode54 content/browser/renderer_host/input/touch_disposition_gesture_filter.cc:54: // Handle the timeout packet immediately if the packet ...
6 years, 10 months ago (2014-02-14 13:52:41 UTC) #14
jdduke (slow)
content/browser/renderer_host/input lgtm with a couple more nits. https://codereview.chromium.org/156783006/diff/770001/content/browser/renderer_host/input/touch_disposition_gesture_filter.cc File content/browser/renderer_host/input/touch_disposition_gesture_filter.cc (left): https://codereview.chromium.org/156783006/diff/770001/content/browser/renderer_host/input/touch_disposition_gesture_filter.cc#oldcode181 content/browser/renderer_host/input/touch_disposition_gesture_filter.cc:181: // TouchDispositionGestureFilter::GestureSequence ...
6 years, 10 months ago (2014-02-14 16:59:52 UTC) #15
tdresser
sadrul@, can you take a look at this? Thanks! https://codereview.chromium.org/156783006/diff/770001/content/browser/renderer_host/input/touch_disposition_gesture_filter.cc File content/browser/renderer_host/input/touch_disposition_gesture_filter.cc (left): https://codereview.chromium.org/156783006/diff/770001/content/browser/renderer_host/input/touch_disposition_gesture_filter.cc#oldcode181 content/browser/renderer_host/input/touch_disposition_gesture_filter.cc:181: ...
6 years, 10 months ago (2014-02-14 17:56:10 UTC) #16
sadrul
gestures lgtm
6 years, 10 months ago (2014-02-14 18:41:00 UTC) #17
tdresser
The CQ bit was checked by tdresser@chromium.org
6 years, 10 months ago (2014-02-14 18:56:03 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdresser@chromium.org/156783006/970001
6 years, 10 months ago (2014-02-14 18:57:35 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-14 20:19:57 UTC) #20
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=264537
6 years, 10 months ago (2014-02-14 20:19:58 UTC) #21
tdresser
The CQ bit was checked by tdresser@chromium.org
6 years, 10 months ago (2014-02-14 20:21:49 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdresser@chromium.org/156783006/970001
6 years, 10 months ago (2014-02-14 20:22:58 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-14 22:34:14 UTC) #24
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=264628
6 years, 10 months ago (2014-02-14 22:34:15 UTC) #25
tdresser
The CQ bit was checked by tdresser@chromium.org
6 years, 10 months ago (2014-02-14 22:42:29 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdresser@chromium.org/156783006/970001
6 years, 10 months ago (2014-02-14 22:44:59 UTC) #27
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-15 00:56:40 UTC) #28
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=264781
6 years, 10 months ago (2014-02-15 00:56:40 UTC) #29
tdresser
The CQ bit was checked by tdresser@chromium.org
6 years, 10 months ago (2014-02-15 03:28:19 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdresser@chromium.org/156783006/970001
6 years, 10 months ago (2014-02-15 03:29:06 UTC) #31
commit-bot: I haz the power
6 years, 10 months ago (2014-02-15 05:15:27 UTC) #32
Message was sent while issue was closed.
Change committed as 251533

Powered by Google App Engine
This is Rietveld 408576698