Prevents double-clicks on a tab close button from aslo maximizing the browser
commitc2c7eedd925458f895f7134f47e88551b28e1709
authorjonross@chromium.org <jonross@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 15 Apr 2014 14:30:07 +0000 (15 14:30 +0000)
committerjonross@chromium.org <jonross@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 15 Apr 2014 14:30:07 +0000 (15 14:30 +0000)
treeab5154c644da71850da06aa469e00ba2410a35b8
parentd5ec2063a3039897a4adb6addc027362b57fb36a
Prevents double-clicks on a tab close button from aslo maximizing the browser

The code responsible for listening to a double-click, and for maximizing the
browser is platform dependant. The path on Aura desktop differs from that of
Chrome OS. In both cases they use alternate means to trigger the maximizing.

This change modifies both so that they only attempt to maximize if the initial
click has the same target as the second click. Tab deletion is destructive by
nature, lead do different targets processing different parts of the same series
of user events.

TEST=WorkspaceEventHandlerTest
BUG=348817

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263841 0039d316-1c4b-4281-b951-d872f2087c98
ash/wm/toplevel_window_event_handler.cc
ash/wm/workspace/workspace_event_handler.cc
ash/wm/workspace/workspace_event_handler.h
ash/wm/workspace/workspace_event_handler_unittest.cc
ui/views/widget/desktop_aura/desktop_screen_x11_unittest.cc
ui/views/widget/desktop_aura/x11_window_event_filter.cc
ui/views/widget/desktop_aura/x11_window_event_filter.h