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

Issue 171283002: Always reset touch action at the beginning of a new gesture sequence (Closed)

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

Description

Always reset touch action at the beginning of a new gesture sequence The InputRouter now tells the TouchActionFilter when a new gesture sequence is starting, and the allowed_touch_action_ is set to auto. BUG=344536 TESTS=TouchActionFilterTest.TouchActionResetsOnNewTouchActionSequence Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=253841

Patch Set 1 #

Total comments: 12

Patch Set 2 : Address rbyers' comments. #

Total comments: 6

Patch Set 3 : Renaming for consistency. #

Patch Set 4 : Fix case where touch handler is removed. #

Total comments: 6

Patch Set 5 : Address rbyers' comments. #

Patch Set 6 : Add comment I missed last time. #

Patch Set 7 : Fix some compilation issues. #

Total comments: 4

Patch Set 8 : Address jdduke comments. #

Total comments: 2

Patch Set 9 : Fix test name. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -49 lines) Patch
M content/browser/renderer_host/input/gesture_event_packet.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/gesture_event_packet.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/input_router_impl.cc View 1 2 3 4 5 6 7 3 chunks +10 lines, -1 line 0 comments Download
M content/browser/renderer_host/input/input_router_impl_unittest.cc View 1 2 3 4 5 6 3 chunks +102 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/touch_action_filter.h View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/touch_action_filter.cc View 1 2 3 4 5 6 7 2 chunks +6 lines, -1 line 0 comments Download
M content/browser/renderer_host/input/touch_action_filter_unittest.cc View 1 2 3 4 5 6 7 8 30 chunks +70 lines, -22 lines 0 comments Download
M content/browser/renderer_host/input/touch_disposition_gesture_filter.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/input/touch_event_queue.cc View 1 2 3 7 chunks +6 lines, -18 lines 0 comments Download
A content/browser/renderer_host/input/web_touch_event_traits.h View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
A content/browser/renderer_host/input/web_touch_event_traits.cc View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
tdresser
rbyers@, can you take a first look at this?
6 years, 10 months ago (2014-02-18 21:23:09 UTC) #1
Rick Byers
https://codereview.chromium.org/171283002/diff/1/content/browser/renderer_host/input/input_router_impl.cc File content/browser/renderer_host/input/input_router_impl.cc (right): https://codereview.chromium.org/171283002/diff/1/content/browser/renderer_host/input/input_router_impl.cc#newcode262 content/browser/renderer_host/input/input_router_impl.cc:262: if (WebInputEventTraits::IsNewTouchSequence(touch_event.event)) Doesn't this need to go in SendTouchEventImmediately ...
6 years, 10 months ago (2014-02-18 22:01:15 UTC) #2
tdresser
https://codereview.chromium.org/171283002/diff/1/content/browser/renderer_host/input/input_router_impl.cc File content/browser/renderer_host/input/input_router_impl.cc (right): https://codereview.chromium.org/171283002/diff/1/content/browser/renderer_host/input/input_router_impl.cc#newcode262 content/browser/renderer_host/input/input_router_impl.cc:262: if (WebInputEventTraits::IsNewTouchSequence(touch_event.event)) On 2014/02/18 22:01:15, Rick Byers wrote: > ...
6 years, 10 months ago (2014-02-20 18:37:56 UTC) #3
Rick Byers
lgtm
6 years, 10 months ago (2014-02-21 03:06:46 UTC) #4
tdresser
Jared, can you take a look?
6 years, 10 months ago (2014-02-21 14:20:52 UTC) #5
jdduke (slow)
https://codereview.chromium.org/171283002/diff/240001/content/browser/renderer_host/input/input_router_impl.cc File content/browser/renderer_host/input/input_router_impl.cc (right): https://codereview.chromium.org/171283002/diff/240001/content/browser/renderer_host/input/input_router_impl.cc#newcode289 content/browser/renderer_host/input/input_router_impl.cc:289: if (WebInputEventTraits::IsNewTouchSequence(touch_event.event)) Hmm, what if the touch handler is ...
6 years, 10 months ago (2014-02-21 15:45:32 UTC) #6
jdduke (slow)
https://codereview.chromium.org/171283002/diff/240001/content/browser/renderer_host/input/input_router_impl.cc File content/browser/renderer_host/input/input_router_impl.cc (right): https://codereview.chromium.org/171283002/diff/240001/content/browser/renderer_host/input/input_router_impl.cc#newcode289 content/browser/renderer_host/input/input_router_impl.cc:289: if (WebInputEventTraits::IsNewTouchSequence(touch_event.event)) On 2014/02/21 15:45:33, jdduke wrote: > Hmm, ...
6 years, 10 months ago (2014-02-21 15:50:09 UTC) #7
tdresser
https://codereview.chromium.org/171283002/diff/240001/content/browser/renderer_host/input/input_router_impl.cc File content/browser/renderer_host/input/input_router_impl.cc (right): https://codereview.chromium.org/171283002/diff/240001/content/browser/renderer_host/input/input_router_impl.cc#newcode289 content/browser/renderer_host/input/input_router_impl.cc:289: if (WebInputEventTraits::IsNewTouchSequence(touch_event.event)) On 2014/02/21 15:50:10, jdduke wrote: > On ...
6 years, 10 months ago (2014-02-21 19:14:03 UTC) #8
Rick Byers
https://codereview.chromium.org/171283002/diff/240001/content/browser/renderer_host/input/input_router_impl.cc File content/browser/renderer_host/input/input_router_impl.cc (right): https://codereview.chromium.org/171283002/diff/240001/content/browser/renderer_host/input/input_router_impl.cc#newcode289 content/browser/renderer_host/input/input_router_impl.cc:289: if (WebInputEventTraits::IsNewTouchSequence(touch_event.event)) On 2014/02/21 19:14:03, tdresser wrote: > On ...
6 years, 10 months ago (2014-02-21 19:52:13 UTC) #9
Rick Byers
On 2014/02/21 19:52:13, Rick Byers wrote: > https://codereview.chromium.org/171283002/diff/240001/content/browser/renderer_host/input/input_router_impl.cc > File content/browser/renderer_host/input/input_router_impl.cc (right): > > https://codereview.chromium.org/171283002/diff/240001/content/browser/renderer_host/input/input_router_impl.cc#newcode289 ...
6 years, 10 months ago (2014-02-21 19:52:46 UTC) #10
jdduke (slow)
On 2014/02/21 19:52:46, Rick Byers wrote: > On 2014/02/21 19:52:13, Rick Byers wrote: > > ...
6 years, 10 months ago (2014-02-21 20:03:48 UTC) #11
Rick Byers
On 2014/02/21 20:03:48, jdduke wrote: > On 2014/02/21 19:52:46, Rick Byers wrote: > > On ...
6 years, 10 months ago (2014-02-21 20:13:22 UTC) #12
tdresser
I think the simple option makes the most sense for now. On an ack indicating ...
6 years, 10 months ago (2014-02-25 16:44:50 UTC) #13
Rick Byers
https://codereview.chromium.org/171283002/diff/500001/content/browser/renderer_host/input/input_router_impl.cc File content/browser/renderer_host/input/input_router_impl.cc (right): https://codereview.chromium.org/171283002/diff/500001/content/browser/renderer_host/input/input_router_impl.cc#newcode342 content/browser/renderer_host/input/input_router_impl.cc:342: touch_action_filter_.OnTouchSequenceStart(); I think we want to do this for ...
6 years, 10 months ago (2014-02-25 23:03:36 UTC) #14
tdresser
https://codereview.chromium.org/171283002/diff/500001/content/browser/renderer_host/input/input_router_impl.cc File content/browser/renderer_host/input/input_router_impl.cc (right): https://codereview.chromium.org/171283002/diff/500001/content/browser/renderer_host/input/input_router_impl.cc#newcode342 content/browser/renderer_host/input/input_router_impl.cc:342: touch_action_filter_.OnTouchSequenceStart(); On 2014/02/25 23:03:37, Rick Byers wrote: > I ...
6 years, 10 months ago (2014-02-26 14:04:48 UTC) #15
Rick Byers
lgtm with nit https://codereview.chromium.org/171283002/diff/500001/content/browser/renderer_host/input/input_router_impl.cc File content/browser/renderer_host/input/input_router_impl.cc (right): https://codereview.chromium.org/171283002/diff/500001/content/browser/renderer_host/input/input_router_impl.cc#newcode342 content/browser/renderer_host/input/input_router_impl.cc:342: touch_action_filter_.OnTouchSequenceStart(); On 2014/02/26 14:04:49, tdresser wrote: ...
6 years, 10 months ago (2014-02-26 14:32:32 UTC) #16
tdresser
https://codereview.chromium.org/171283002/diff/500001/content/browser/renderer_host/input/input_router_impl.cc File content/browser/renderer_host/input/input_router_impl.cc (right): https://codereview.chromium.org/171283002/diff/500001/content/browser/renderer_host/input/input_router_impl.cc#newcode342 content/browser/renderer_host/input/input_router_impl.cc:342: touch_action_filter_.OnTouchSequenceStart(); On 2014/02/26 14:32:33, Rick Byers wrote: > On ...
6 years, 10 months ago (2014-02-26 15:16:13 UTC) #17
jdduke (slow)
https://codereview.chromium.org/171283002/diff/560001/content/browser/renderer_host/input/input_router_impl.cc File content/browser/renderer_host/input/input_router_impl.cc (right): https://codereview.chromium.org/171283002/diff/560001/content/browser/renderer_host/input/input_router_impl.cc#newcode343 content/browser/renderer_host/input/input_router_impl.cc:343: if (event.event.type == WebInputEvent::TouchStart && Shouldn't this be |IsTouchSequenceStart()|? ...
6 years, 10 months ago (2014-02-26 15:40:55 UTC) #18
tdresser
https://codereview.chromium.org/171283002/diff/560001/content/browser/renderer_host/input/input_router_impl.cc File content/browser/renderer_host/input/input_router_impl.cc (right): https://codereview.chromium.org/171283002/diff/560001/content/browser/renderer_host/input/input_router_impl.cc#newcode343 content/browser/renderer_host/input/input_router_impl.cc:343: if (event.event.type == WebInputEvent::TouchStart && On 2014/02/26 15:40:55, jdduke ...
6 years, 10 months ago (2014-02-26 19:31:26 UTC) #19
jdduke (slow)
lgtm with nit. https://codereview.chromium.org/171283002/diff/580001/content/browser/renderer_host/input/touch_action_filter_unittest.cc File content/browser/renderer_host/input/touch_action_filter_unittest.cc (right): https://codereview.chromium.org/171283002/diff/580001/content/browser/renderer_host/input/touch_action_filter_unittest.cc#newcode557 content/browser/renderer_host/input/touch_action_filter_unittest.cc:557: TEST(TouchActionFilterTest, TouchActionResetsResetTouchAction) { Nit: Maybe rename ...
6 years, 10 months ago (2014-02-26 19:39:42 UTC) #20
tdresser
https://codereview.chromium.org/171283002/diff/580001/content/browser/renderer_host/input/touch_action_filter_unittest.cc File content/browser/renderer_host/input/touch_action_filter_unittest.cc (right): https://codereview.chromium.org/171283002/diff/580001/content/browser/renderer_host/input/touch_action_filter_unittest.cc#newcode557 content/browser/renderer_host/input/touch_action_filter_unittest.cc:557: TEST(TouchActionFilterTest, TouchActionResetsResetTouchAction) { On 2014/02/26 19:39:43, jdduke wrote: > ...
6 years, 10 months ago (2014-02-26 20:14:35 UTC) #21
tdresser
The CQ bit was checked by tdresser@chromium.org
6 years, 10 months ago (2014-02-26 20:14:42 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/171283002/600001
6 years, 10 months ago (2014-02-26 20:21:09 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-26 21:14:03 UTC) #24
commit-bot: I haz the power
Retried try job too often on ios_rel_device for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_rel_device&number=119465
6 years, 10 months ago (2014-02-26 21:14:04 UTC) #25
tdresser
The CQ bit was checked by tdresser@chromium.org
6 years, 9 months ago (2014-02-27 14:24:23 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/171283002/600001
6 years, 9 months ago (2014-02-27 14:25:38 UTC) #27
commit-bot: I haz the power
6 years, 9 months ago (2014-02-27 16:28:04 UTC) #28
Message was sent while issue was closed.
Change committed as 253841

Powered by Google App Engine
This is Rietveld 408576698