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

Issue 657323003: Mac: Don't allow history swiping after substantial vertical motion. (Closed)

Created:
6 years, 2 months ago by erikchen
Modified:
6 years, 2 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Mac: Don't allow history swiping after substantial vertical motion. Previously, the logic for history swiping depended on the relative Y distance of the gesture's current location from the gesture's start location. Gestures which consisted of a large up motion, followed by a large down motion, followed by a horizontal motion could still cause history swiping. The new logic depends on the total Y distance of the gesture, which fixes this problem. This CL also includes a change to allowed the gesture recognizer state machine to enter the state kCancelled directly from the state kPending. Previously, it was possible for the history overlay to show for a very brief period of time even if the gesture was about to be cancelled. This CL also includes a minor refactor: - Renamed several methods to better reflect their intended purpose. - Removed lastProcessedGestureId_ and currentGestureId_, which did not cause a functional change. BUG=421629 Committed: https://crrev.com/bedaa557ad182057363cfe43140935e2a30cb63e Cr-Commit-Position: refs/heads/master@{#300199}

Patch Set 1 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -101 lines) Patch
M chrome/browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper.h View 5 chunks +21 lines, -15 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper.mm View 18 chunks +71 lines, -66 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper_unit_test.mm View 5 chunks +41 lines, -20 lines 1 comment Download

Messages

Total messages: 16 (7 generated)
erikchen
avi: Please review.
6 years, 2 months ago (2014-10-16 20:39:46 UTC) #4
Avi (use Gerrit)
lgtm
6 years, 2 months ago (2014-10-17 19:53:55 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/657323003/40001
6 years, 2 months ago (2014-10-17 20:57:50 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/18437)
6 years, 2 months ago (2014-10-17 21:06:09 UTC) #9
erikchen
thestig: Please review.
6 years, 2 months ago (2014-10-17 23:28:01 UTC) #11
Lei Zhang
lgtm stamp https://codereview.chromium.org/657323003/diff/40001/chrome/browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper_unit_test.mm File chrome/browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper_unit_test.mm (right): https://codereview.chromium.org/657323003/diff/40001/chrome/browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper_unit_test.mm#newcode284 chrome/browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper_unit_test.mm:284: EXPECT_EQ(begin_count_, 0); preferably EXPECT_EQ(expected_, actual), but there ...
6 years, 2 months ago (2014-10-17 23:56:11 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/657323003/40001
6 years, 2 months ago (2014-10-18 00:21:01 UTC) #14
commit-bot: I haz the power
Committed patchset #1 (id:40001)
6 years, 2 months ago (2014-10-18 01:48:28 UTC) #15
commit-bot: I haz the power
6 years, 2 months ago (2014-10-18 01:49:14 UTC) #16
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/bedaa557ad182057363cfe43140935e2a30cb63e
Cr-Commit-Position: refs/heads/master@{#300199}

Powered by Google App Engine
This is Rietveld 408576698