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