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

Issue 170603002: Make touch-action apply to double-tap zoom (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

Make touch-action apply to double-tap zoom Filter out GestureDoubleTap events on elements with touch-actions other than auto. When GestureDoubleTap is being filtered out, we also eliminate the tap delay. BUG=337534 TEST=TouchActionFilterTest.DoubleTap, TouchActionFilterTest.DoubleTapWithTouchActionAuto Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252073

Patch Set 1 #

Total comments: 11

Patch Set 2 : Fix gcc only error in tests. #

Patch Set 3 : Address rbyers@ nits. #

Patch Set 4 : Fix naming of |drop_current_tap_ending_event_|. #

Total comments: 4

Patch Set 5 : Address rbyers@ nits. #

Total comments: 2

Patch Set 6 : Tests more accurately reflect real gesture streams. #

Patch Set 7 : Convert filtered double tap gesture into tap cancel. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -0 lines) Patch
M content/browser/renderer_host/input/touch_action_filter.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/touch_action_filter.cc View 1 2 3 4 5 6 2 chunks +28 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/touch_action_filter_unittest.cc View 1 2 3 4 5 6 1 chunk +95 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
tdresser
rbyers@, can you do a preliminary review?
6 years, 10 months ago (2014-02-18 15:37:26 UTC) #1
Rick Byers
Thanks. A couple minor issues. https://codereview.chromium.org/170603002/diff/1/content/browser/renderer_host/input/touch_action_filter.cc File content/browser/renderer_host/input/touch_action_filter.cc (right): https://codereview.chromium.org/170603002/diff/1/content/browser/renderer_host/input/touch_action_filter.cc#newcode93 content/browser/renderer_host/input/touch_action_filter.cc:93: if (!drop_next_tap_event_) I'd find ...
6 years, 10 months ago (2014-02-18 16:14:43 UTC) #2
tdresser
https://codereview.chromium.org/170603002/diff/1/content/browser/renderer_host/input/touch_action_filter.cc File content/browser/renderer_host/input/touch_action_filter.cc (right): https://codereview.chromium.org/170603002/diff/1/content/browser/renderer_host/input/touch_action_filter.cc#newcode93 content/browser/renderer_host/input/touch_action_filter.cc:93: if (!drop_next_tap_event_) On 2014/02/18 16:14:43, Rick Byers wrote: > ...
6 years, 10 months ago (2014-02-18 20:12:14 UTC) #3
Rick Byers
lgtm with nits https://codereview.chromium.org/170603002/diff/50022/content/browser/renderer_host/input/touch_action_filter.cc File content/browser/renderer_host/input/touch_action_filter.cc (right): https://codereview.chromium.org/170603002/diff/50022/content/browser/renderer_host/input/touch_action_filter.cc#newcode99 content/browser/renderer_host/input/touch_action_filter.cc:99: case WebInputEvent::GestureTapCancel: maybe combine this case ...
6 years, 10 months ago (2014-02-18 20:40:16 UTC) #4
tdresser
jdduke, PTAL. https://codereview.chromium.org/170603002/diff/50022/content/browser/renderer_host/input/touch_action_filter.cc File content/browser/renderer_host/input/touch_action_filter.cc (right): https://codereview.chromium.org/170603002/diff/50022/content/browser/renderer_host/input/touch_action_filter.cc#newcode99 content/browser/renderer_host/input/touch_action_filter.cc:99: case WebInputEvent::GestureTapCancel: On 2014/02/18 20:40:16, Rick Byers ...
6 years, 10 months ago (2014-02-18 21:27:14 UTC) #5
jdduke (slow)
https://codereview.chromium.org/170603002/diff/230001/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/170603002/diff/230001/content/browser/renderer_host/input/touch_action_filter_unittest.cc#newcode459 content/browser/renderer_host/input/touch_action_filter_unittest.cc:459: WebGestureEvent unconfirmed_tap = SyntheticWebGestureEventBuilder::Build( Hmm, these sequences seem a ...
6 years, 10 months ago (2014-02-18 21:51:55 UTC) #6
Rick Byers
On 2014/02/18 21:51:55, jdduke wrote: > https://codereview.chromium.org/170603002/diff/230001/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/170603002/diff/230001/content/browser/renderer_host/input/touch_action_filter_unittest.cc#newcode459 ...
6 years, 10 months ago (2014-02-18 22:09:08 UTC) #7
tdresser
The new set of tests is clearer and also reflects a realistic gesture stream. https://codereview.chromium.org/170603002/diff/230001/content/browser/renderer_host/input/touch_action_filter_unittest.cc ...
6 years, 10 months ago (2014-02-18 22:15:55 UTC) #8
jdduke (slow)
lgtm per offline discussion with tdresser@ that we should convert the dropped DoubleTap to TapCancel.
6 years, 10 months ago (2014-02-18 22:43:03 UTC) #9
tdresser
The CQ bit was checked by tdresser@chromium.org
6 years, 10 months ago (2014-02-19 14:24:57 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdresser@chromium.org/170603002/330001
6 years, 10 months ago (2014-02-19 14:25:09 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdresser@chromium.org/170603002/330001
6 years, 10 months ago (2014-02-19 15:03:25 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdresser@chromium.org/170603002/330001
6 years, 10 months ago (2014-02-19 15:31:30 UTC) #13
commit-bot: I haz the power
6 years, 10 months ago (2014-02-19 20:48:28 UTC) #14
Message was sent while issue was closed.
Change committed as 252073

Powered by Google App Engine
This is Rietveld 408576698