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

Issue 503883004: Don't pass touches to gesture recognizer for async acks. (Closed)

Created:
6 years, 3 months ago by tdresser
Modified:
5 years, 10 months ago
Reviewers:
sadrul
CC:
chromium-reviews, ben+aura_chromium.org, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, tdresser+watch_chromium.org, jam, penghuang+watch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't pass touches to gesture recognizer for async acks. Previously, in RenderWidgetHostViewAura, upon receipt of a touch ack, we would convert the WebTouchEvent associated with the ack into ui::TouchEvents. With the eager GR, this is no longer necessary. BUG=407645 TEST=GestureRecognizerTest.* Committed: https://crrev.com/b1663498ac1d59fc3baa085c155f84a1726ca87d Cr-Commit-Position: refs/heads/master@{#317072}

Patch Set 1 #

Patch Set 2 : Fix mac build. #

Total comments: 2

Patch Set 3 : Send the right number of acks. #

Patch Set 4 : Fix bug, add test. #

Total comments: 2

Patch Set 5 : Rebase. #

Patch Set 6 : Rebase. #

Patch Set 7 : Rebase. #

Total comments: 8

Patch Set 8 : Address (most of) sadrul's comments. #

Total comments: 4

Patch Set 9 : Address sadrul's comments. #

Total comments: 2

Patch Set 10 : Remove code churn. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -54 lines) Patch
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 6 7 8 9 1 chunk +30 lines, -10 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 2 3 4 5 6 7 8 5 chunks +51 lines, -0 lines 0 comments Download
M ui/aura/gestures/gesture_recognizer_unittest.cc View 1 2 3 4 5 6 4 chunks +5 lines, -18 lines 0 comments Download
M ui/aura/test/aura_test_utils.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M ui/aura/test/aura_test_utils.cc View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -0 lines 0 comments Download
M ui/aura/window_event_dispatcher.h View 1 2 3 4 5 6 1 chunk +1 line, -3 lines 0 comments Download
M ui/aura/window_event_dispatcher.cc View 1 2 3 4 5 6 1 chunk +2 lines, -6 lines 0 comments Download
M ui/aura/window_event_dispatcher_unittest.cc View 1 2 3 4 5 6 2 chunks +3 lines, -7 lines 0 comments Download
M ui/events/gesture_detection/touch_disposition_gesture_filter.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/events/gestures/gesture_recognizer.h View 1 2 3 4 5 6 1 chunk +2 lines, -4 lines 0 comments Download
M ui/events/gestures/gesture_recognizer_impl.h View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M ui/events/gestures/gesture_recognizer_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M ui/events/gestures/gesture_recognizer_impl_mac.cc View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 23 (1 generated)
tdresser
tdresser@chromium.org changed reviewers: + sadrul@chromium.org
6 years, 3 months ago (2014-08-26 18:15:16 UTC) #1
tdresser
Sadrul, can you take a look?
6 years, 3 months ago (2014-08-26 18:15:16 UTC) #2
sadrul
> Previously, in WindowEventDispatcher, upon receipt of a touch ack, > we would convert the ...
6 years, 3 months ago (2014-08-26 20:03:29 UTC) #3
tdresser
On 2014/08/26 20:03:29, sadrul wrote: > > Previously, in WindowEventDispatcher, upon receipt of a touch ...
6 years, 3 months ago (2014-08-26 20:04:25 UTC) #4
sadrul
https://codereview.chromium.org/503883004/diff/20001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/503883004/diff/20001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode1151 content/browser/renderer_host/render_widget_host_view_aura.cc:1151: host->dispatcher()->ProcessedTouchEvent(window_, result); With this change, we are going to ...
6 years, 3 months ago (2014-08-26 20:09:07 UTC) #5
tdresser
https://codereview.chromium.org/503883004/diff/20001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/503883004/diff/20001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode1151 content/browser/renderer_host/render_widget_host_view_aura.cc:1151: host->dispatcher()->ProcessedTouchEvent(window_, result); On 2014/08/26 20:09:07, sadrul wrote: > With ...
6 years, 3 months ago (2014-08-27 17:40:24 UTC) #6
sadrul
On 2014/08/27 17:40:24, tdresser wrote: > https://codereview.chromium.org/503883004/diff/20001/content/browser/renderer_host/render_widget_host_view_aura.cc > File content/browser/renderer_host/render_widget_host_view_aura.cc (right): > > https://codereview.chromium.org/503883004/diff/20001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode1151 > ...
6 years, 3 months ago (2014-08-28 13:31:23 UTC) #7
sadrul
On 2014/08/27 17:40:24, tdresser wrote: ... > https://code.google.com/p/chromium/codesearch#chromium/src/ui/events/gesture_detection/touch_disposition_gesture_filter.cc&l=171 Btw, you normally wouldn't refer to 'renderer' ...
6 years, 3 months ago (2014-08-28 13:40:39 UTC) #8
tdresser
https://codereview.chromium.org/503883004/diff/60001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/503883004/diff/60001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode1168 content/browser/renderer_host/render_widget_host_view_aura.cc:1168: DCHECK(false); Should be NOTREACHED().
6 years ago (2014-12-03 19:49:52 UTC) #9
tdresser
6 years ago (2014-12-11 15:12:04 UTC) #10
tdresser
https://codereview.chromium.org/503883004/diff/60001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/503883004/diff/60001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode1168 content/browser/renderer_host/render_widget_host_view_aura.cc:1168: DCHECK(false); On 2014/12/03 19:49:52, tdresser wrote: > Should be ...
5 years, 10 months ago (2015-02-06 17:43:49 UTC) #11
tdresser
On 2015/02/06 17:43:49, tdresser wrote: > https://codereview.chromium.org/503883004/diff/60001/content/browser/renderer_host/render_widget_host_view_aura.cc > File content/browser/renderer_host/render_widget_host_view_aura.cc (right): > > https://codereview.chromium.org/503883004/diff/60001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode1168 > ...
5 years, 10 months ago (2015-02-06 17:44:50 UTC) #12
sadrul
https://codereview.chromium.org/503883004/diff/120001/ui/aura/test/aura_test_utils.h File ui/aura/test/aura_test_utils.h (right): https://codereview.chromium.org/503883004/diff/120001/ui/aura/test/aura_test_utils.h#newcode11 ui/aura/test/aura_test_utils.h:11: nit: maybe use forward declarations instead (at least for ...
5 years, 10 months ago (2015-02-07 17:25:34 UTC) #13
tdresser
https://codereview.chromium.org/503883004/diff/120001/ui/aura/test/aura_test_utils.h File ui/aura/test/aura_test_utils.h (right): https://codereview.chromium.org/503883004/diff/120001/ui/aura/test/aura_test_utils.h#newcode11 ui/aura/test/aura_test_utils.h:11: On 2015/02/07 17:25:34, sadrul wrote: > nit: maybe use ...
5 years, 10 months ago (2015-02-09 15:23:39 UTC) #14
sadrul
https://codereview.chromium.org/503883004/diff/120001/ui/events/gestures/gesture_recognizer.h File ui/events/gestures/gesture_recognizer.h (right): https://codereview.chromium.org/503883004/diff/120001/ui/events/gestures/gesture_recognizer.h#newcode42 ui/events/gestures/gesture_recognizer.h:42: virtual Gestures* AckSyncTouchEvent(const uint64 unique_event_id, On 2015/02/09 15:23:39, tdresser ...
5 years, 10 months ago (2015-02-10 19:10:15 UTC) #15
tdresser
https://codereview.chromium.org/503883004/diff/120001/ui/events/gestures/gesture_recognizer.h File ui/events/gestures/gesture_recognizer.h (right): https://codereview.chromium.org/503883004/diff/120001/ui/events/gestures/gesture_recognizer.h#newcode42 ui/events/gestures/gesture_recognizer.h:42: virtual Gestures* AckSyncTouchEvent(const uint64 unique_event_id, On 2015/02/10 19:10:15, sadrul ...
5 years, 10 months ago (2015-02-11 16:10:25 UTC) #16
sadrul
The try failures look relevant. Mind taking a look? > > The caller should tell ...
5 years, 10 months ago (2015-02-13 01:53:12 UTC) #17
tdresser
I've filed crbug.com/459339: "Unify GestureRecognizer::AckAsyncTouchEvent and AckSyncTouchEvent" https://codereview.chromium.org/503883004/diff/160001/ui/aura/window_tree_host.h File ui/aura/window_tree_host.h (right): https://codereview.chromium.org/503883004/diff/160001/ui/aura/window_tree_host.h#newcode200 ui/aura/window_tree_host.h:200: #endif // ...
5 years, 10 months ago (2015-02-18 20:05:37 UTC) #18
sadrul
lgtm
5 years, 10 months ago (2015-02-19 17:22:15 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/503883004/180001
5 years, 10 months ago (2015-02-19 17:48:47 UTC) #21
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 10 months ago (2015-02-19 17:52:52 UTC) #22
commit-bot: I haz the power
5 years, 10 months ago (2015-02-19 17:53:57 UTC) #23
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/b1663498ac1d59fc3baa085c155f84a1726ca87d
Cr-Commit-Position: refs/heads/master@{#317072}

Powered by Google App Engine
This is Rietveld 408576698