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

Issue 340343013: Provide max gesture bounds and option to ignore touch size during pinch (Closed)

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

Description

Provide max gesture bounds and option to ignore touch size during pinch Certain devices produce garbage |MotionEvent.getTouchMajor()| values, either unreasonably small or unreasonable large, with extreme variance between touches. This can cause a number of problems with the current gesture detection pipeline. Add a maximum gesture bounds size as a sanity fallback for tap disambiguation. Also disable by default the use of touch size when calculating the pinch scale factor. Its use does not seem to add any measurable benefit, but can produce severe scale artifacts on devices with unpredictable touch sizes. This phenomenon appears to be more common on devices originally targetted for ICS. BUG=376618 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=281078

Patch Set 1 #

Patch Set 2 : Fix comment #

Patch Set 3 : Disable for pre-JBMR1 #

Patch Set 4 : Fix test name #

Patch Set 5 : Fix DCHECK #

Total comments: 6

Patch Set 6 : Code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -21 lines) Patch
M ui/android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java View 1 2 3 4 5 2 chunks +9 lines, -0 lines 0 comments Download
M ui/events/gesture_detection/gesture_config_helper_android.cc View 1 2 3 4 5 3 chunks +14 lines, -0 lines 0 comments Download
M ui/events/gesture_detection/gesture_provider.h View 2 chunks +5 lines, -3 lines 0 comments Download
M ui/events/gesture_detection/gesture_provider.cc View 1 2 3 4 4 chunks +28 lines, -8 lines 0 comments Download
M ui/events/gesture_detection/gesture_provider_unittest.cc View 1 2 3 4 5 3 chunks +122 lines, -2 lines 0 comments Download
M ui/events/gesture_detection/scale_gesture_detector.h View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M ui/events/gesture_detection/scale_gesture_detector.cc View 1 2 3 4 5 5 chunks +14 lines, -7 lines 0 comments Download
M ui/events/gestures/gesture_configuration.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/android/view_configuration.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/android/view_configuration.cc View 1 2 3 4 5 4 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
jdduke (slow)
tdresser@: PTAL. I haven't really finalized this yet, but I wanted to get your thoughts. ...
6 years, 5 months ago (2014-06-29 01:53:10 UTC) #1
tdresser
Seems like a reasonable approach. I'm in favor of getting rid of all touch dimension ...
6 years, 5 months ago (2014-07-02 13:43:10 UTC) #2
tdresser
On 2014/07/02 13:43:10, tdresser wrote: > Seems like a reasonable approach. > > I'm in ...
6 years, 5 months ago (2014-07-02 13:46:29 UTC) #3
jdduke (slow)
https://codereview.chromium.org/340343013/diff/80001/ui/android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java File ui/android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java (right): https://codereview.chromium.org/340343013/diff/80001/ui/android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java#newcode139 ui/android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java:139: private static boolean getTouchMajorUsedInScalingSpan() { On 2014/07/02 13:43:10, tdresser ...
6 years, 5 months ago (2014-07-02 16:24:18 UTC) #4
tdresser
LGTM.
6 years, 5 months ago (2014-07-02 16:28:49 UTC) #5
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 5 months ago (2014-07-02 16:51:40 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/340343013/100001
6 years, 5 months ago (2014-07-02 16:52:32 UTC) #7
commit-bot: I haz the power
6 years, 5 months ago (2014-07-02 19:36:05 UTC) #8
Message was sent while issue was closed.
Change committed as 281078

Powered by Google App Engine
This is Rietveld 408576698