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

Issue 600743003: Mac: Fix history swiping bug on Yosemite. (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: Fix history swiping bug on Yosemite. There are 3 different sets of callbacks generated by AppKit in response to swipe events. The previous code relied on assumptions about the timing of the callbacks. It expected to receive the beginGestureWithEvent: callback before receiving any touchesMovedWithEvent: callbacks. Yosemite AppKit broke this assumption. The new code stops using beginGestureWithEvent: except to determine edge cases associated with the Magic Mouse, thus removing this implicit assumption. Because history swiping direction is determined very early on in the life cycle of the gesture, this CL adds some logic to ensure that the direction isn't determined prematurely. BUG=414103 TEST=History swiping should work as expected with both magic mouse and trackpad. Committed: https://crrev.com/97627459714233ddb254a877760d575c997068b0 Cr-Commit-Position: refs/heads/master@{#296795}

Patch Set 1 : First #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -48 lines) Patch
M chrome/browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper.h View 2 chunks +4 lines, -13 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper.mm View 9 chunks +38 lines, -33 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper_unit_test.mm View 3 chunks +48 lines, -2 lines 1 comment Download

Messages

Total messages: 16 (7 generated)
erikchen
avi: Please review.
6 years, 2 months ago (2014-09-24 23:04:42 UTC) #4
Avi (use Gerrit)
LGTM
6 years, 2 months ago (2014-09-25 04:18:35 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/600743003/40001
6 years, 2 months ago (2014-09-25 16:53:41 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/13493)
6 years, 2 months ago (2014-09-25 17:01:24 UTC) #9
erikchen
thestig: Looking for an OWNER review.
6 years, 2 months ago (2014-09-25 20:30:50 UTC) #11
Lei Zhang
lgtm https://codereview.chromium.org/600743003/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/600743003/diff/40001/chrome/browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper_unit_test.mm#newcode431 chrome/browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper_unit_test.mm:431: EXPECT_EQ(begin_count_, 0); nit: EXPECT_EQ(expected, actual); No need to ...
6 years, 2 months ago (2014-09-25 21:12:37 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/600743003/40001
6 years, 2 months ago (2014-09-25 21:15:31 UTC) #14
commit-bot: I haz the power
Committed patchset #1 (id:40001) as 100208ac04eebd6fd20ff443d15c72eeaab0f733
6 years, 2 months ago (2014-09-25 21:21:07 UTC) #15
commit-bot: I haz the power
6 years, 2 months ago (2014-09-25 21:21:34 UTC) #16
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/97627459714233ddb254a877760d575c997068b0
Cr-Commit-Position: refs/heads/master@{#296795}

Powered by Google App Engine
This is Rietveld 408576698