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

Issue 679633005: Expose native, desktop and mobile gesture detection defaults (Closed)

Created:
6 years, 1 month ago by jdduke (slow)
Modified:
6 years ago
CC:
chromium-reviews, creis+watch_chromium.org, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, nasko+codewatch_chromium.org, jam, penghuang+watch_chromium.org, sadrul, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, ben+aura_chromium.org, tdresser+watch_chromium.org, James Su, jdduke+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Expose native, desktop and mobile gesture detection defaults Provide generic desktop and mobile gesture configurations, in addition to the native platform configuration. This will allow devtools touch emulation to more faithfully emulate a particular device. Note that this change involved decoupling the TouchEventQueue from platform-specific slop region constants, afforded by a WebTouchEvent flag indicating whether the event may cause scrolling as a default action. BUG=425586 Committed: https://crrev.com/11e45a87addf6fa39f6a7d505ff318236b7b82f4 Cr-Commit-Position: refs/heads/master@{#308429}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Initialize #

Total comments: 7

Patch Set 3 : Fix tests #

Patch Set 4 : Use explicit result #

Total comments: 5

Patch Set 5 : Sanity check #

Patch Set 6 : Sanity check #

Total comments: 2

Patch Set 7 : Fix CrOS #

Patch Set 8 : Fix tests #

Total comments: 4

Patch Set 9 : Code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+419 lines, -233 lines) Patch
M content/browser/frame_host/render_widget_host_view_guest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/input/input_router_config_helper.cc View 1 2 3 chunks +2 lines, -18 lines 0 comments Download
M content/browser/renderer_host/input/stylus_text_selector.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/renderer_host/input/touch_emulator.h View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/renderer_host/input/touch_emulator.cc View 1 2 3 4 9 chunks +23 lines, -22 lines 0 comments Download
M content/browser/renderer_host/input/touch_event_queue.h View 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/renderer_host/input/touch_event_queue.cc View 1 2 3 4 5 6 chunks +23 lines, -33 lines 0 comments Download
M content/browser/renderer_host/input/touch_event_queue_unittest.cc View 1 2 3 4 9 chunks +18 lines, -49 lines 0 comments Download
M content/browser/renderer_host/input/web_input_event_util.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/input/web_input_event_util.cc View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/renderer_host/input/web_input_event_util_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 7 2 chunks +6 lines, -3 lines 0 comments Download
M content/browser/renderer_host/ui_events_helper.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/common/input/synthetic_web_input_event_builders.cc View 1 2 3 4 5 6 7 3 chunks +10 lines, -3 lines 0 comments Download
M content/common/input/web_input_event_traits.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/window_event_dispatcher.cc View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
M ui/aura/window_event_dispatcher_unittest.cc View 1 2 3 4 5 6 7 8 6 chunks +56 lines, -1 line 0 comments Download
M ui/chromeos/touch_exploration_controller.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -3 lines 0 comments Download
M ui/events/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/event.h View 1 2 3 4 5 6 7 8 4 chunks +11 lines, -2 lines 0 comments Download
M ui/events/event.cc View 1 2 3 4 3 chunks +6 lines, -3 lines 0 comments Download
M ui/events/events.gyp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/gesture_detection/filtered_gesture_provider.h View 1 2 3 4 3 chunks +17 lines, -4 lines 0 comments Download
M ui/events/gesture_detection/filtered_gesture_provider.cc View 1 2 3 4 2 chunks +23 lines, -8 lines 0 comments Download
A ui/events/gesture_detection/filtered_gesture_provider_unittest.cc View 1 2 3 1 chunk +84 lines, -0 lines 0 comments Download
M ui/events/gesture_detection/gesture_detector.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M ui/events/gesture_detection/gesture_provider_config_helper.h View 1 chunk +8 lines, -1 line 0 comments Download
M ui/events/gesture_detection/gesture_provider_config_helper.cc View 1 2 3 1 chunk +59 lines, -35 lines 0 comments Download
M ui/events/gesture_detection/scale_gesture_detector.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ui/events/gestures/gesture_provider_aura.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/events/gestures/gesture_provider_aura.cc View 1 2 3 4 3 chunks +21 lines, -14 lines 0 comments Download
M ui/events/gestures/gesture_provider_aura_unittest.cc View 1 2 8 chunks +15 lines, -13 lines 0 comments Download
M ui/events/gestures/gesture_recognizer.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/events/gestures/gesture_recognizer_impl.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/events/gestures/gesture_recognizer_impl.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M ui/events/gestures/gesture_recognizer_impl_mac.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 29 (5 generated)
jdduke (slow)
tdresser@: I haven't added any tests, but I wanted to get your thoughts on this ...
6 years, 1 month ago (2014-10-27 21:55:21 UTC) #2
jdduke (slow)
On 2014/10/27 21:55:21, jdduke wrote: > tdresser@: I haven't added any tests, but I wanted ...
6 years, 1 month ago (2014-10-27 21:56:16 UTC) #3
jdduke (slow)
https://codereview.chromium.org/679633005/diff/1/ui/events/event.h File ui/events/event.h (right): https://codereview.chromium.org/679633005/diff/1/ui/events/event.h#newcode519 ui/events/event.h:519: void set_may_cause_scrolling(bool causes) { may_cause_scrolling_ = causes; } This ...
6 years, 1 month ago (2014-10-27 22:00:15 UTC) #4
dgozman
https://codereview.chromium.org/679633005/diff/20001/content/browser/renderer_host/input/touch_emulator.cc File content/browser/renderer_host/input/touch_emulator.cc (right): https://codereview.chromium.org/679633005/diff/20001/content/browser/renderer_host/input/touch_emulator.cc#newcode34 content/browser/renderer_host/input/touch_emulator.cc:34: ui::GestureProviderConfigType::GENERIC_MOBILE); Great! https://codereview.chromium.org/679633005/diff/20001/content/browser/renderer_host/input/touch_emulator.cc#newcode423 content/browser/renderer_host/input/touch_emulator.cc:423: touch_event_.defaultActionMayCauseScrolling = So, this function ...
6 years, 1 month ago (2014-10-28 11:25:22 UTC) #6
tdresser
One possibility I've thrown around is to do a small pre-processing phase before gesture recognition ...
6 years, 1 month ago (2014-10-28 13:41:41 UTC) #7
jdduke (slow)
On 2014/10/28 13:41:41, tdresser wrote: > One possibility I've thrown around is to do a ...
6 years, 1 month ago (2014-10-28 22:08:53 UTC) #8
jdduke (slow)
It's probably worth deferring this patch until eager GR lands. https://codereview.chromium.org/679633005/diff/20001/content/browser/renderer_host/input/touch_emulator.cc File content/browser/renderer_host/input/touch_emulator.cc (right): https://codereview.chromium.org/679633005/diff/20001/content/browser/renderer_host/input/touch_emulator.cc#newcode34 ...
6 years, 1 month ago (2014-10-30 22:06:56 UTC) #9
dgozman
> https://codereview.chromium.org/679633005/diff/20001/content/browser/renderer_host/input/touch_emulator.cc#newcode423 > content/browser/renderer_host/input/touch_emulator.cc:423: > touch_event_.defaultActionMayCauseScrolling = > On 2014/10/28 11:25:22, dgozman wrote: > > ...
6 years, 1 month ago (2014-10-31 06:47:41 UTC) #10
tdresser
Nits. https://codereview.chromium.org/679633005/diff/20001/content/browser/renderer_host/input/touch_emulator.cc File content/browser/renderer_host/input/touch_emulator.cc (right): https://codereview.chromium.org/679633005/diff/20001/content/browser/renderer_host/input/touch_emulator.cc#newcode34 content/browser/renderer_host/input/touch_emulator.cc:34: ui::GestureProviderConfigType::GENERIC_MOBILE); On 2014/10/30 22:06:54, jdduke wrote: > On ...
6 years, 1 month ago (2014-10-31 12:34:12 UTC) #11
tdresser
On 2014/10/31 12:34:12, tdresser wrote: > Nits. > > https://codereview.chromium.org/679633005/diff/20001/content/browser/renderer_host/input/touch_emulator.cc > File content/browser/renderer_host/input/touch_emulator.cc (right): > ...
6 years, 1 month ago (2014-10-31 12:34:44 UTC) #12
jdduke (slow)
Per Rick's suggestion I'm pulling out the touch/scroll related changes into a separate patch: https://codereview.chromium.org/718153002 ...
6 years, 1 month ago (2014-11-12 19:10:20 UTC) #13
dgozman
On 2014/11/12 19:10:20, jdduke wrote: > Per Rick's suggestion I'm pulling out the touch/scroll related ...
6 years, 1 month ago (2014-11-20 15:17:52 UTC) #14
tdresser
On 2014/11/20 15:17:52, dgozman wrote: > On 2014/11/12 19:10:20, jdduke wrote: > > Per Rick's ...
6 years, 1 month ago (2014-11-20 15:28:16 UTC) #15
jdduke (slow)
+sadrul@ for ui/events/event.* and the base file change sin content/browser/renderer_host. https://codereview.chromium.org/679633005/diff/100001/ui/events/event.h File ui/events/event.h (right): https://codereview.chromium.org/679633005/diff/100001/ui/events/event.h#newcode525 ...
6 years ago (2014-12-11 19:06:38 UTC) #16
jdduke (slow)
https://codereview.chromium.org/679633005/diff/100001/ui/events/event.h File ui/events/event.h (right): https://codereview.chromium.org/679633005/diff/100001/ui/events/event.h#newcode576 ui/events/event.h:576: bool may_cause_scrolling_; Awfully tempting to make this mutable... Would ...
6 years ago (2014-12-11 19:32:54 UTC) #17
jdduke (slow)
Oops, actually adding sadrul@. On 2014/12/11 19:06:38, jdduke wrote: > +sadrul@ for ui/events/event.* and the ...
6 years ago (2014-12-11 19:49:49 UTC) #19
sadrul
The try failures look related. Mind taking a look at those?
6 years ago (2014-12-12 16:24:25 UTC) #20
jdduke (slow)
On 2014/12/12 16:24:25, sadrul wrote: > The try failures look related. Mind taking a look ...
6 years ago (2014-12-15 16:11:09 UTC) #21
sadrul
LGTM https://codereview.chromium.org/679633005/diff/140001/ui/aura/window_event_dispatcher.cc File ui/aura/window_event_dispatcher.cc (right): https://codereview.chromium.org/679633005/diff/140001/ui/aura/window_event_dispatcher.cc#newcode897 ui/aura/window_event_dispatcher.cc:897: Can you add a test to make sure ...
6 years ago (2014-12-15 17:40:46 UTC) #22
jdduke (slow)
+sievers@ for content/browser/frame_host/render_widget_host_view_guest.cc owner review. https://codereview.chromium.org/679633005/diff/140001/ui/aura/window_event_dispatcher.cc File ui/aura/window_event_dispatcher.cc (right): https://codereview.chromium.org/679633005/diff/140001/ui/aura/window_event_dispatcher.cc#newcode897 ui/aura/window_event_dispatcher.cc:897: On 2014/12/15 17:40:46, sadrul ...
6 years ago (2014-12-15 18:37:38 UTC) #24
no sievers
On 2014/12/15 18:37:38, jdduke wrote: > +sievers@ for content/browser/frame_host/render_widget_host_view_guest.cc owner > review. lgtm
6 years ago (2014-12-15 19:47:06 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/679633005/160001
6 years ago (2014-12-15 20:58:40 UTC) #27
commit-bot: I haz the power
Committed patchset #9 (id:160001)
6 years ago (2014-12-15 21:49:16 UTC) #28
commit-bot: I haz the power
6 years ago (2014-12-15 21:50:55 UTC) #29
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/11e45a87addf6fa39f6a7d505ff318236b7b82f4
Cr-Commit-Position: refs/heads/master@{#308429}

Powered by Google App Engine
This is Rietveld 408576698