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

Issue 200623003: Adopt "QuickScale" double-tap drag zoom code in the GestureProvider (Closed)

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

Description

Adopt "QuickScale" double-tap drag zoom code in the GestureProvider QuickScale, aka double-tap drag zoom, was added in KitKat on Android. However, the corresponding code in ScaleGestureDetector went unused by Chromium in the old Java-based gesture detection pipeline. Remove the current custom code for double-tap drag zoom, adopting the implementation in ScaleGestureDetector. Note that we maintain one slight difference with the Android platform: instead of diminishing the relative scale delta as the drag focus deiviates from the anchor, continue using a distance-invariant scale delta computation. BUG=332418, 359615 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261552

Patch Set 1 #

Patch Set 2 : Rebase and fix #

Patch Set 3 : Cleanup #

Patch Set 4 : Coalesce pinches #

Patch Set 5 : Comment #

Total comments: 10

Patch Set 6 : Comments #

Patch Set 7 : Add pinch coalesce test #

Total comments: 1

Patch Set 8 : Yeah... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+241 lines, -265 lines) Patch
M content/browser/renderer_host/input/gesture_event_queue.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/common/input/web_input_event_traits.cc View 1 2 3 4 5 6 7 1 chunk +24 lines, -6 lines 0 comments Download
M content/common/input/web_input_event_traits_unittest.cc View 1 2 3 4 5 6 5 chunks +68 lines, -25 lines 0 comments Download
M ui/events/gesture_detection/gesture_config_helper_android.cc View 1 chunk +1 line, -3 lines 0 comments Download
M ui/events/gesture_detection/gesture_config_helper_aura.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ui/events/gesture_detection/gesture_detector.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M ui/events/gesture_detection/gesture_provider.h View 1 2 3 4 5 3 chunks +10 lines, -1 line 0 comments Download
M ui/events/gesture_detection/gesture_provider.cc View 1 2 3 4 5 23 chunks +102 lines, -163 lines 0 comments Download
M ui/events/gesture_detection/gesture_provider_unittest.cc View 1 4 chunks +25 lines, -59 lines 0 comments Download
M ui/events/gesture_detection/scale_gesture_detector.h View 2 chunks +1 line, -1 line 0 comments Download
M ui/events/gesture_detection/scale_gesture_detector.cc View 3 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
jdduke (slow)
tdresser@: PTAL. I had planned on landing this after the DIP change (https://codereview.chromium.org/220063002/), but there ...
6 years, 8 months ago (2014-04-03 17:29:21 UTC) #1
tdresser
https://codereview.chromium.org/200623003/diff/80001/content/common/input/web_input_event_traits.cc File content/common/input/web_input_event_traits.cc (right): https://codereview.chromium.org/200623003/diff/80001/content/common/input/web_input_event_traits.cc#newcode156 content/common/input/web_input_event_traits.cc:156: if (event.type == WebInputEvent::GesturePinchUpdate && Can you add a ...
6 years, 8 months ago (2014-04-03 17:53:29 UTC) #2
jdduke (slow)
https://codereview.chromium.org/200623003/diff/80001/content/common/input/web_input_event_traits.cc File content/common/input/web_input_event_traits.cc (right): https://codereview.chromium.org/200623003/diff/80001/content/common/input/web_input_event_traits.cc#newcode156 content/common/input/web_input_event_traits.cc:156: if (event.type == WebInputEvent::GesturePinchUpdate && On 2014/04/03 17:53:30, tdresser ...
6 years, 8 months ago (2014-04-03 19:28:01 UTC) #3
tdresser
LGTM with nit. https://codereview.chromium.org/200623003/diff/120001/content/common/input/web_input_event_traits.cc File content/common/input/web_input_event_traits.cc (right): https://codereview.chromium.org/200623003/diff/120001/content/common/input/web_input_event_traits.cc#newcode156 content/common/input/web_input_event_traits.cc:156: // GesturePinchUpdate scales can be cominbed ...
6 years, 8 months ago (2014-04-03 19:33:48 UTC) #4
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 8 months ago (2014-04-03 19:47:50 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/200623003/140001
6 years, 8 months ago (2014-04-03 19:48:22 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-03 22:29:52 UTC) #7
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
6 years, 8 months ago (2014-04-03 22:29:53 UTC) #8
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 8 months ago (2014-04-03 22:35:05 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/200623003/140001
6 years, 8 months ago (2014-04-03 22:35:23 UTC) #10
commit-bot: I haz the power
6 years, 8 months ago (2014-04-03 22:37:09 UTC) #11
Message was sent while issue was closed.
Change committed as 261552

Powered by Google App Engine
This is Rietveld 408576698