Change when GESTURE_BEGIN and GESTURE_END events are dispatched to views
commit7d76a9fead474da115870c9a0f3d0f36be9cca1a
authortdanderson@chromium.org <tdanderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 30 Jul 2014 15:49:53 +0000 (30 15:49 +0000)
committertdanderson@chromium.org <tdanderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 30 Jul 2014 15:49:53 +0000 (30 15:49 +0000)
tree17c1f98378c1f310b61912b1c48c53ff1f119ffe
parent0efb771d5b7987375956d61d15751c1b3a632ba5
Change when GESTURE_BEGIN and GESTURE_END events are dispatched to views

No longer dispatch ui::ET_GESTURE_BEGIN events
to views, as the dispatch of ui::ET_GESTURE_TAP_DOWN
is sufficient to represent the start of a gesture
sequence for the first touch point. Furthermore,
only dispatch the ui::ET_GESTURE_END corresponding
to the removal of the last touch point.

BUG=397564
TEST=RootViewTest.ContextMenuFromLongPress,
WidgetTestInteractive.ResetCaptureOnGestureEnd,
WidgetTest.EventHandlersOnRootView,
WidgetTest.GestureBeginAndEndEvents

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286523 0039d316-1c4b-4281-b951-d872f2087c98
ui/views/widget/root_view.cc
ui/views/widget/root_view_unittest.cc
ui/views/widget/widget_interactive_uitest.cc
ui/views/widget/widget_unittest.cc