[Extensions Toolbar Mac] Make context menus work for overflowed actions
commita77c96672dbed5e8e346a51da731d5720d7ecf88
authorrdevlin.cronin <rdevlin.cronin@chromium.org>
Sat, 17 Jan 2015 02:31:32 +0000 (16 18:31 -0800)
committerCommit bot <commit-bot@chromium.org>
Sat, 17 Jan 2015 02:32:22 +0000 (17 02:32 +0000)
treec6d93776353dda1556f9aec1bb1eed5fff95320f
parent8a5f52535eb21a139d630aa2f4c295e3b9db99c9
[Extensions Toolbar Mac] Make context menus work for overflowed actions

On Mac, it doesn't look like nested menus (meaning a completely separate menu
running in an original menu, not to be mistaken with submenus) are supported.
This is very unfortunate. For overflowed toolbar actions, close the wrench menu,
then pop up the context menu over the wrench button (this is similar to what we
do for overflowed extension popups).

BUG=429810

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

Cr-Commit-Position: refs/heads/master@{#312013}
chrome/browser/ui/cocoa/extensions/browser_action_button.h
chrome/browser/ui/cocoa/extensions/browser_action_button.mm
chrome/browser/ui/cocoa/extensions/browser_action_button_interactive_uitest.mm [new file with mode: 0644]
chrome/browser/ui/cocoa/extensions/browser_actions_controller.h
chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm
chrome/browser/ui/cocoa/toolbar/toolbar_controller.h
chrome/browser/ui/cocoa/wrench_menu/wrench_menu_controller.h
chrome/browser/ui/cocoa/wrench_menu/wrench_menu_controller.mm
chrome/chrome_tests.gypi