Do not set RootView's gesture handler on last ET_GESTURE_END
commit6fce66d70cf96989c5a274a7f8f0d333b2be43aa
authormohsen@chromium.org <mohsen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 11 Mar 2014 20:41:24 +0000 (11 20:41 +0000)
committermohsen@chromium.org <mohsen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 11 Mar 2014 20:41:24 +0000 (11 20:41 +0000)
treec92dc928539195045297c10322acdf772f618a97
parent85889c7bf73b695f54ec9d4596d6b767b74ed2da
Do not set RootView's gesture handler on last ET_GESTURE_END

There might be cases that a RootView is trying to dispatch an
ET_GESTURE_END event and no gesture handler is set for that. In such
cases, after the event is handled by a view, it should not set that view
as the gesture handler for the RootView, since that gesture sequence is
finished.

BUG=334968

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

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