mac: Fix a crash in the history swiper for magic mouse momentum events.
commit8c3603d7aa9361b89caf434fc5220e2ef12b0c4a
authorerikchen@chromium.org <erikchen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 4 Jan 2014 04:15:27 +0000 (4 04:15 +0000)
committererikchen@chromium.org <erikchen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 4 Jan 2014 04:15:27 +0000 (4 04:15 +0000)
tree2516db953e657d2c68d9757376fa6f95e9c68691
parentdc42cb9bd5220952d18c104d484c4b71bf6a4d8c
mac: Fix a crash in the history swiper for magic mouse momentum events.

The 'trackSwipeWithEvent:' api throws an exception if the event passed in is a
momentum scroll event. We started using momentum scroll events in our logic for
magic trackpads, since we're working directly with hardware touches. We failed
to filter out momentum events when falling back to the 'trackSwipeWithEvent:'
api for magic mouse events.

BUG=331506

Review URL: https://codereview.chromium.org/124313002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243003 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper.h
chrome/browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper.mm
chrome/browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper_unit_test.mm