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

Issue 10928066: Add GestureTapCancel gesture type (Closed)

Created:
8 years, 3 months ago by Rick Byers
Modified:
8 years, 3 months ago
Reviewers:
rjkroege, sadrul, sky
CC:
chromium-reviews, yusukes+watch_chromium.org, ben+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su, aelias_OOO_until_Jul13
Visibility:
Public.

Description

Add GestureTapCancel gesture type GestureTapCancel fires whenever a TapDown will not result in a Tap. This can be used, for example, to cancel a pressed state triggered by TapDown. BUG=146364 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=156026

Patch Set 1 #

Patch Set 2 : Remove the gesture_event_filter portions of this change since we don't have the WebKit side yet #

Total comments: 2

Patch Set 3 : Fix event order and update tests to check it #

Total comments: 2

Patch Set 4 : sky cr feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+181 lines, -136 lines) Patch
M content/browser/renderer_host/gesture_event_filter.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_win.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/web_input_event_aurax11.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/aura/gestures/gesture_recognizer_unittest.cc View 1 2 83 chunks +151 lines, -131 lines 0 comments Download
M ui/aura/window_unittest.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M ui/base/events/event_constants.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/base/gestures/gesture_sequence.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ui/base/gestures/gesture_sequence.cc View 1 2 4 chunks +17 lines, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
Rick Byers
Rob, Can you please review this CL to add GestureTapCancel on the Aura side? Once ...
8 years, 3 months ago (2012-09-08 23:28:55 UTC) #1
rjkroege
lgtm
8 years, 3 months ago (2012-09-09 17:29:56 UTC) #2
sadrul
http://codereview.chromium.org/10928066/diff/3002/ui/base/gestures/gesture_sequence.cc File ui/base/gestures/gesture_sequence.cc (right): http://codereview.chromium.org/10928066/diff/3002/ui/base/gestures/gesture_sequence.cc#newcode378 ui/base/gestures/gesture_sequence.cc:378: AppendTapCancelGestureEvent(point, gestures.get()); This will add TAP_CANCEL after SCROLL_START. I ...
8 years, 3 months ago (2012-09-09 18:33:02 UTC) #3
Rick Byers
Thanks guys. I'll work on updating the CL tomorrow. http://codereview.chromium.org/10928066/diff/3002/ui/base/gestures/gesture_sequence.cc File ui/base/gestures/gesture_sequence.cc (right): http://codereview.chromium.org/10928066/diff/3002/ui/base/gestures/gesture_sequence.cc#newcode378 ui/base/gestures/gesture_sequence.cc:378: ...
8 years, 3 months ago (2012-09-10 00:56:25 UTC) #4
sadrul
[snip] > BTW, this is something I don't like about our existing gesture recognizer unit ...
8 years, 3 months ago (2012-09-10 13:18:45 UTC) #5
Rick Byers
On 2012/09/10 13:18:45, sadrul wrote: > [snip] > > BTW, this is something I don't ...
8 years, 3 months ago (2012-09-10 19:38:01 UTC) #6
Rick Byers
+sky for owners now that this is mostly settled
8 years, 3 months ago (2012-09-10 19:38:55 UTC) #7
sky
LGTM http://codereview.chromium.org/10928066/diff/2003/content/browser/renderer_host/gesture_event_filter.cc File content/browser/renderer_host/gesture_event_filter.cc (right): http://codereview.chromium.org/10928066/diff/2003/content/browser/renderer_host/gesture_event_filter.cc#newcode142 content/browser/renderer_host/gesture_event_filter.cc:142: DCHECK(coalesced_gesture_events_.front().type == type); DCHECK_EQ
8 years, 3 months ago (2012-09-10 21:17:44 UTC) #8
Rick Byers
Thanks Scott. Sadrul, are you happy with this now? http://codereview.chromium.org/10928066/diff/2003/content/browser/renderer_host/gesture_event_filter.cc File content/browser/renderer_host/gesture_event_filter.cc (right): http://codereview.chromium.org/10928066/diff/2003/content/browser/renderer_host/gesture_event_filter.cc#newcode142 content/browser/renderer_host/gesture_event_filter.cc:142: ...
8 years, 3 months ago (2012-09-11 14:04:54 UTC) #9
sadrul
On 2012/09/11 14:04:54, Rick Byers wrote: > Thanks Scott. > > Sadrul, are you happy ...
8 years, 3 months ago (2012-09-11 14:28:11 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rbyers@chromium.org/10928066/3004
8 years, 3 months ago (2012-09-11 14:30:48 UTC) #11
commit-bot: I haz the power
8 years, 3 months ago (2012-09-11 16:38:00 UTC) #12
Change committed as 156026

Powered by Google App Engine
This is Rietveld 408576698