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

Issue 321563002: Support minimum gesture bounds in GestureProvider (Closed)

Created:
6 years, 6 months ago by jdduke (slow)
Modified:
6 years, 6 months ago
Reviewers:
sadrul, tdresser
CC:
chromium-reviews, darin-cc_chromium.org, jdduke+watch_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Support minimum gesture bounds in GestureProvider Some touch devices report either zero or unreasonably small touch sizes. While this doesn't present a problem for gesture detection, it does affect the behavior of the touch-derived gestures. For example, tap disambiguation is prevented if the tap gesture's size is sufficiently small. As a workaround, provide a platform-specific minimum gesture bounds length in GestureProvider. On Android, this value is the same as was used before the unified gesture detector, and on Aura we simply use half the default touch size. BUG=379876 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276550

Patch Set 1 #

Patch Set 2 : Cleanup #

Total comments: 4

Patch Set 3 : Fix type #

Patch Set 4 : Expose GetRawTouchMajor #

Patch Set 5 : min_gesture_bound_length #

Patch Set 6 : Tweak test #

Total comments: 3

Patch Set 7 : Move DCHECK and fix typos #

Patch Set 8 : Fix compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -115 lines) Patch
M content/browser/renderer_host/input/web_input_event_util.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/events/gesture_detection/gesture_config_helper_android.cc View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M ui/events/gesture_detection/gesture_config_helper_aura.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ui/events/gesture_detection/gesture_event_data.h View 1 2 3 4 2 chunks +5 lines, -6 lines 0 comments Download
M ui/events/gesture_detection/gesture_event_data.cc View 1 2 3 4 5 6 2 chunks +8 lines, -16 lines 0 comments Download
M ui/events/gesture_detection/gesture_event_data_packet.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/events/gesture_detection/gesture_provider.h View 1 2 3 4 4 chunks +11 lines, -4 lines 0 comments Download
M ui/events/gesture_detection/gesture_provider.cc View 1 2 3 4 16 chunks +45 lines, -51 lines 0 comments Download
M ui/events/gesture_detection/gesture_provider_unittest.cc View 1 2 3 4 5 6 19 chunks +55 lines, -22 lines 0 comments Download
M ui/events/gesture_detection/touch_disposition_gesture_filter.cc View 1 2 3 4 4 chunks +13 lines, -9 lines 0 comments Download
M ui/events/gesture_detection/touch_disposition_gesture_filter_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/events/gesture_event_details.h View 1 2 3 4 5 6 2 chunks +5 lines, -1 line 0 comments Download
M ui/events/gesture_event_details.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M ui/events/gestures/gesture_provider_aura.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
jdduke (slow)
PTAL, thanks.
6 years, 6 months ago (2014-06-06 16:46:16 UTC) #1
tdresser
Don't you need to switch to using GetRawTouchMajor when constructing WebInputEvents? Can you add a ...
6 years, 6 months ago (2014-06-06 16:58:05 UTC) #2
jdduke (slow)
Rick, how important is it that we report the raw values for radiusX currently? I ...
6 years, 6 months ago (2014-06-06 17:18:13 UTC) #3
tdresser
Yeah, if it's going to be a headache, I'm fine without a test here.
6 years, 6 months ago (2014-06-06 17:32:05 UTC) #4
jdduke (slow)
OK, I exposed GetRawTouchMajor, PTAL, thanks.
6 years, 6 months ago (2014-06-06 17:59:49 UTC) #5
tdresser
LGTM
6 years, 6 months ago (2014-06-06 18:18:57 UTC) #6
Rick Byers
On 2014/06/06 17:59:49, jdduke wrote: > OK, I exposed GetRawTouchMajor, PTAL, thanks. I'd prefer to ...
6 years, 6 months ago (2014-06-06 18:52:36 UTC) #7
jdduke (slow)
On 2014/06/06 18:52:36, Rick Byers wrote: > On 2014/06/06 17:59:49, jdduke wrote: > > OK, ...
6 years, 6 months ago (2014-06-06 19:03:56 UTC) #8
jdduke (slow)
On 2014/06/06 19:03:56, jdduke wrote: > On 2014/06/06 18:52:36, Rick Byers wrote: > > On ...
6 years, 6 months ago (2014-06-06 19:24:16 UTC) #9
jdduke (slow)
Rick, Tim, what do you think of this approach? I went ahead and removed the ...
6 years, 6 months ago (2014-06-06 22:28:17 UTC) #10
tdresser
Thanks for getting rid of the redundant type. LGTM Nit: should we refer to the ...
6 years, 6 months ago (2014-06-09 13:36:38 UTC) #11
jdduke (slow)
On 2014/06/09 13:36:38, tdresser wrote: > Thanks for getting rid of the redundant type. > ...
6 years, 6 months ago (2014-06-09 15:40:57 UTC) #12
sadrul
lgtm
6 years, 6 months ago (2014-06-11 16:37:29 UTC) #13
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 6 months ago (2014-06-11 16:38:39 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/321563002/120001
6 years, 6 months ago (2014-06-11 16:40:04 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 20:52:05 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 20:56:39 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_dbg_simulator/builds/160318) ios_rel_device on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_rel_device/builds/149739) ios_rel_device_ninja ...
6 years, 6 months ago (2014-06-11 20:56:40 UTC) #18
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 6 months ago (2014-06-11 21:04:46 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/321563002/140001
6 years, 6 months ago (2014-06-11 21:08:24 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 22:26:46 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 22:29:07 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_rel_device/builds/149813) ios_rel_device_ninja on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_rel_device_ninja/builds/21912) mac_chromium_compile_dbg ...
6 years, 6 months ago (2014-06-11 22:29:08 UTC) #23
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 6 months ago (2014-06-11 22:30:49 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/321563002/140001
6 years, 6 months ago (2014-06-11 22:32:49 UTC) #25
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 23:49:39 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-12 00:07:12 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_rel_device_ninja/builds/21962)
6 years, 6 months ago (2014-06-12 00:07:14 UTC) #28
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 6 months ago (2014-06-12 01:02:37 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/321563002/140001
6 years, 6 months ago (2014-06-12 01:04:24 UTC) #30
commit-bot: I haz the power
6 years, 6 months ago (2014-06-12 06:33:06 UTC) #31
Message was sent while issue was closed.
Change committed as 276550

Powered by Google App Engine
This is Rietveld 408576698