diff options
author | tapted@chromium.org <tapted@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-07 21:41:24 +0000 |
---|---|---|
committer | tapted@chromium.org <tapted@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-07 21:41:24 +0000 |
commit | 60e9143637b518ac1d977c055922321082aaa818 (patch) | |
tree | 9a15a1800d62f1c72845904c3ca4a106387515c3 /ui/aura/test/test_focus_client.h | |
parent | a0e7e86682f9804b06d59d9163f8118484e30c91 (diff) | |
download | chromium_src-60e9143637b518ac1d977c055922321082aaa818.zip chromium_src-60e9143637b518ac1d977c055922321082aaa818.tar.gz chromium_src-60e9143637b518ac1d977c055922321082aaa818.tar.bz2 |
Squelch context menus on the OSX App List when both buttons are pressed.
The apps grid uses [NSView menuForEvent:..] for its menus, so needs to
check the button state explicitly to match the behaviour of [NSButton
menu] (which isn't used, e.g., because the NSButton doesn't fill the
grid cell).
This CL adds a check to suppress the menu when the button is in the
"lit" state, which occurs when the button is being held down.
BUG=328835
TEST=Hold the left, then the right, mouse buttons over a app launcher
item. A menu shouldn't appear. Releasing the left button (without moving
the mouse cursor) will launch the item.
Review URL: https://codereview.chromium.org/93793012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243391 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/test/test_focus_client.h')
0 files changed, 0 insertions, 0 deletions