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

Issue 393953012: Eager Gesture Recognition on Aura (Closed)

Created:
6 years, 5 months ago by tdresser
Modified:
6 years, 4 months ago
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, jdduke+watch_chromium.org, miu+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Eager Gesture Recognition on Aura This enables eager gesture recognition on Aura for the unified gesture detector. BUG=332418 TEST=GestureRecognizer/GestureRecognizerTest Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288236

Patch Set 1 #

Patch Set 2 : Fix Mac compile, and add test for eagerness. #

Patch Set 3 : Fix tests. #

Total comments: 6

Patch Set 4 : Detect Gestures in WindowEventDispatcher::PreDispatchTouchEvent #

Patch Set 5 : Fix mac build. #

Patch Set 6 : Playing with explicitly always allowing touch cancel events (worried about tab dragging on windows) #

Patch Set 7 : Rebase. #

Patch Set 8 : Try again? #

Patch Set 9 : Fix test. #

Patch Set 10 : Fix test. #

Patch Set 11 : Fix tests. #

Patch Set 12 : Move touch exploration changes to separate CL. #

Patch Set 13 : Comments. #

Patch Set 14 : Rebase. #

Total comments: 12

Patch Set 15 : Address jdduke's feedback. #

Total comments: 1

Patch Set 16 : Refactor based on Jared's comments. #

Total comments: 6

Patch Set 17 : Address Jared's comments, and fix some compilation issues. #

Total comments: 6

Patch Set 18 : Address sadrul's comments. #

Patch Set 19 : Fix Android GN build. #

Total comments: 6

Patch Set 20 : Remove unneeded casts. #

Patch Set 21 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+392 lines, -102 lines) Patch
M chrome/browser/chromeos/accessibility/touch_exploration_controller_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_guest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +5 lines, -1 line 0 comments Download
M content/browser/renderer_host/input/input_router_impl.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/ui_events_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -7 lines 0 comments Download
M content/public/test/browser_test_utils.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -13 lines 0 comments Download
M ui/aura/gestures/gesture_recognizer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +47 lines, -0 lines 0 comments Download
M ui/aura/window_event_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +33 lines, -9 lines 0 comments Download
M ui/aura/window_event_dispatcher_unittest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +9 lines, -8 lines 0 comments Download
M ui/aura/window_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +4 lines, -4 lines 0 comments Download
M ui/events/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +6 lines, -0 lines 0 comments Download
M ui/events/events.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +2 lines, -0 lines 0 comments Download
M ui/events/gesture_detection/gesture_config_helper_aura.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -1 line 0 comments Download
M ui/events/gesture_detection/gesture_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M ui/events/gesture_detection/gesture_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +9 lines, -17 lines 0 comments Download
M ui/events/gesture_detection/gesture_provider_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +20 lines, -12 lines 0 comments Download
M ui/events/gestures/gesture_provider_aura.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +10 lines, -2 lines 0 comments Download
A ui/events/gestures/gesture_provider_aura_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +152 lines, -0 lines 0 comments Download
M ui/events/gestures/gesture_recognizer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +14 lines, -5 lines 0 comments Download
M ui/events/gestures/gesture_recognizer_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +11 lines, -2 lines 0 comments Download
M ui/events/gestures/gesture_recognizer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +44 lines, -16 lines 0 comments Download
M ui/events/gestures/gesture_recognizer_impl_mac.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +13 lines, -1 line 0 comments Download

Messages

Total messages: 35 (0 generated)
tdresser
sadrul, can you take a look?
6 years, 5 months ago (2014-07-16 18:04:23 UTC) #1
sadrul
https://codereview.chromium.org/393953012/diff/40001/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/393953012/diff/40001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode1923 content/browser/renderer_host/render_widget_host_view_aura.cc:1923: window_->GetHost()->dispatcher()->OnForwardingTouchEvent(event, window_); Can you explain what OnForwardingTouchEvent does, and ...
6 years, 5 months ago (2014-07-16 21:07:49 UTC) #2
tdresser
On 2014/07/16 21:07:49, sadrul wrote: > https://codereview.chromium.org/393953012/diff/40001/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/393953012/diff/40001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode1923 > ...
6 years, 5 months ago (2014-07-17 17:05:28 UTC) #3
sadrul
On 2014/07/17 17:05:28, tdresser wrote: > On 2014/07/16 21:07:49, sadrul wrote: > > > https://codereview.chromium.org/393953012/diff/40001/content/browser/renderer_host/render_widget_host_view_aura.cc ...
6 years, 5 months ago (2014-07-18 16:14:01 UTC) #4
tdresser
Jared, what do you think about this? I was initially inclined to not send 0-delta ...
6 years, 5 months ago (2014-07-18 17:08:48 UTC) #5
jdduke (slow)
On 2014/07/18 17:08:48, tdresser wrote: > Jared, what do you think about this? > > ...
6 years, 5 months ago (2014-07-18 17:19:37 UTC) #6
jdduke (slow)
On 2014/07/18 17:19:37, jdduke wrote: > So if a user's finger is stationary, we're getting ...
6 years, 5 months ago (2014-07-18 17:24:28 UTC) #7
tdresser
On 2014/07/18 17:19:37, jdduke wrote: > On 2014/07/18 17:08:48, tdresser wrote: > > Jared, what ...
6 years, 5 months ago (2014-07-18 17:28:00 UTC) #8
tdresser
On 2014/07/18 17:28:00, tdresser wrote: > On 2014/07/18 17:19:37, jdduke wrote: > > On 2014/07/18 ...
6 years, 5 months ago (2014-07-23 14:49:52 UTC) #9
jdduke (slow)
On 2014/07/23 14:49:52, tdresser wrote: > I'm not convinced that we want to let the ...
6 years, 5 months ago (2014-07-23 15:10:49 UTC) #10
tdresser
On 2014/07/23 15:10:49, jdduke wrote: > On 2014/07/23 14:49:52, tdresser wrote: > > I'm not ...
6 years, 5 months ago (2014-07-23 15:54:41 UTC) #11
jdduke (slow)
On 2014/07/23 15:54:41, tdresser wrote: > Do you have any better ideas? For now, what ...
6 years, 5 months ago (2014-07-23 16:02:09 UTC) #12
tdresser
I'm moved the necessary changes to the touch exploration code to https://codereview.chromium.org/428673002. I'll land it ...
6 years, 4 months ago (2014-07-28 18:22:10 UTC) #13
tdresser
Jared, does this seem like a reasonable approach to you?
6 years, 4 months ago (2014-07-30 13:52:36 UTC) #14
jdduke (slow)
https://codereview.chromium.org/393953012/diff/260001/content/browser/frame_host/render_widget_host_view_guest.cc File content/browser/frame_host/render_widget_host_view_guest.cc (right): https://codereview.chromium.org/393953012/diff/260001/content/browser/frame_host/render_widget_host_view_guest.cc#newcode120 content/browser/frame_host/render_widget_host_view_guest.cc:120: } else { This branching is unfortunate but I ...
6 years, 4 months ago (2014-07-30 15:29:32 UTC) #15
tdresser
https://codereview.chromium.org/393953012/diff/260001/content/browser/frame_host/render_widget_host_view_guest.cc File content/browser/frame_host/render_widget_host_view_guest.cc (right): https://codereview.chromium.org/393953012/diff/260001/content/browser/frame_host/render_widget_host_view_guest.cc#newcode120 content/browser/frame_host/render_widget_host_view_guest.cc:120: } else { On 2014/07/30 15:29:32, jdduke wrote: > ...
6 years, 4 months ago (2014-07-31 15:33:32 UTC) #16
jdduke (slow)
https://codereview.chromium.org/393953012/diff/260001/ui/aura/window_event_dispatcher.cc File ui/aura/window_event_dispatcher.cc (right): https://codereview.chromium.org/393953012/diff/260001/ui/aura/window_event_dispatcher.cc#newcode166 ui/aura/window_event_dispatcher.cc:166: if (ui::IsUnifiedGestureDetectorEnabled()) { Would it be crazy to abstract ...
6 years, 4 months ago (2014-07-31 16:19:03 UTC) #17
tdresser
https://codereview.chromium.org/393953012/diff/260001/ui/aura/window_event_dispatcher.cc File ui/aura/window_event_dispatcher.cc (right): https://codereview.chromium.org/393953012/diff/260001/ui/aura/window_event_dispatcher.cc#newcode166 ui/aura/window_event_dispatcher.cc:166: if (ui::IsUnifiedGestureDetectorEnabled()) { On 2014/07/31 16:19:02, jdduke wrote: > ...
6 years, 4 months ago (2014-08-01 13:35:32 UTC) #18
jdduke (slow)
content/browser/renderer_host/input and ui/events/gesture_detection lgtm. https://codereview.chromium.org/393953012/diff/300001/content/browser/frame_host/render_widget_host_view_guest.cc File content/browser/frame_host/render_widget_host_view_guest.cc (right): https://codereview.chromium.org/393953012/diff/300001/content/browser/frame_host/render_widget_host_view_guest.cc#newcode113 content/browser/frame_host/render_widget_host_view_guest.cc:113: this)) { I can't tell ...
6 years, 4 months ago (2014-08-01 14:27:22 UTC) #19
tdresser
https://codereview.chromium.org/393953012/diff/300001/content/browser/frame_host/render_widget_host_view_guest.cc File content/browser/frame_host/render_widget_host_view_guest.cc (right): https://codereview.chromium.org/393953012/diff/300001/content/browser/frame_host/render_widget_host_view_guest.cc#newcode113 content/browser/frame_host/render_widget_host_view_guest.cc:113: this)) { On 2014/08/01 14:27:22, jdduke wrote: > I ...
6 years, 4 months ago (2014-08-01 18:54:00 UTC) #20
sadrul
https://codereview.chromium.org/393953012/diff/320001/ui/aura/window_event_dispatcher.cc File ui/aura/window_event_dispatcher.cc (right): https://codereview.chromium.org/393953012/diff/320001/ui/aura/window_event_dispatcher.cc#newcode166 ui/aura/window_event_dispatcher.cc:166: // Once we've fully migrated to the unified gesture ...
6 years, 4 months ago (2014-08-01 21:00:06 UTC) #21
tdresser
https://codereview.chromium.org/393953012/diff/320001/ui/aura/window_event_dispatcher.cc File ui/aura/window_event_dispatcher.cc (right): https://codereview.chromium.org/393953012/diff/320001/ui/aura/window_event_dispatcher.cc#newcode166 ui/aura/window_event_dispatcher.cc:166: // Once we've fully migrated to the unified gesture ...
6 years, 4 months ago (2014-08-05 14:40:14 UTC) #22
sadrul
LGTM https://codereview.chromium.org/393953012/diff/360001/ui/aura/window_event_dispatcher.cc File ui/aura/window_event_dispatcher.cc (right): https://codereview.chromium.org/393953012/diff/360001/ui/aura/window_event_dispatcher.cc#newcode164 ui/aura/window_event_dispatcher.cc:164: static_cast<Window*>(window), Don't need the casts here. https://codereview.chromium.org/393953012/diff/360001/ui/aura/window_event_dispatcher.cc#newcode885 ui/aura/window_event_dispatcher.cc:885: ...
6 years, 4 months ago (2014-08-06 00:46:09 UTC) #23
tdresser
jochen@, can you take a look at: content/browser/frame_host/render_widget_host_view_guest.cc chrome/browser/chromeos/accessibility/touch_exploration_controller_browsertest.cc content/public/test/browser_test_utils.cc https://codereview.chromium.org/393953012/diff/360001/ui/aura/window_event_dispatcher.cc File ui/aura/window_event_dispatcher.cc (right): https://codereview.chromium.org/393953012/diff/360001/ui/aura/window_event_dispatcher.cc#newcode164 ...
6 years, 4 months ago (2014-08-06 12:47:04 UTC) #24
jochen (gone - plz use gerrit)
lgtm
6 years, 4 months ago (2014-08-07 14:59:37 UTC) #25
tdresser
The CQ bit was checked by tdresser@chromium.org
6 years, 4 months ago (2014-08-07 15:21:58 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/393953012/380001
6 years, 4 months ago (2014-08-07 15:23:03 UTC) #27
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-07 15:35:12 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-07 15:36:44 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/38581) ios_dbg_simulator on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/3432) ios_rel_device ...
6 years, 4 months ago (2014-08-07 15:36:45 UTC) #30
tdresser
The CQ bit was checked by tdresser@chromium.org
6 years, 4 months ago (2014-08-07 17:45:10 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdresser@chromium.org/393953012/400001
6 years, 4 months ago (2014-08-07 17:56:19 UTC) #32
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win8_chromium_rel on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-07 19:38:49 UTC) #33
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-08 00:59:04 UTC) #34
commit-bot: I haz the power
6 years, 4 months ago (2014-08-08 06:46:37 UTC) #35
Message was sent while issue was closed.
Change committed as 288236

Powered by Google App Engine
This is Rietveld 408576698