Suppress sending mousedown / mouseup when in fling
commit13a016d52277755897c27502160a0bfbfb69e455
authormohsen@chromium.org <mohsen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 5 Dec 2012 22:41:06 +0000 (5 22:41 +0000)
committermohsen@chromium.org <mohsen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 5 Dec 2012 22:41:06 +0000 (5 22:41 +0000)
tree38ae859ca0d44da4e6598b07ad95ea244bf33802
parent25b725f5e57c1534830829e865cb78c4827ac0c3
Suppress sending mousedown / mouseup when in fling

Tapping on the touchpad during a fling should stop the scroll, but
should not generate mousedown and mouseup events.
TapSuppressionController is used to suppress mousedown / mouseup events
in this case.

Also, added some tests for TapSuppressionController to content unit tests.

BUG=152287

Review URL: https://chromiumcodereview.appspot.com/11361150

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171338 0039d316-1c4b-4281-b951-d872f2087c98
content/browser/renderer_host/gesture_event_filter.cc
content/browser/renderer_host/render_widget_host_impl.cc
content/browser/renderer_host/render_widget_host_impl.h
content/browser/renderer_host/render_widget_host_unittest.cc
content/browser/renderer_host/tap_suppression_controller.h
content/browser/renderer_host/tap_suppression_controller_aura.cc