Support displaying browser and page actions on IDC_BOOKMARK_PAGE when overriding...
commitddc9239a95f02f309f6296d8617f9d6799b8c4d5
authorwittman@chromium.org <wittman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 25 Feb 2014 13:41:39 +0000 (25 13:41 +0000)
committerwittman@chromium.org <wittman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Tue, 25 Feb 2014 13:41:39 +0000 (25 13:41 +0000)
tree96a3ae6c5229c770a75b0a9b7dcc20891c756482
parent01867bd2b6158f867106ae83f44e2031767f414c
Support displaying browser and page actions on IDC_BOOKMARK_PAGE when overriding the bookmark shortcut

Implements the "Bookmark this page..." menu override for
Views from the Remove Bookmark Shortcut Chrome API proposal:
https://docs.google.com/a/chromium.org/document/d/1C2Mle92O9uGlji5y5gGDM5tNJ_tVE1Vb-2xgsZPNDTk

Remaining to be implemented:
- remove the "Bookmark this page..." menu item if the extension removes but does not replace the shortcut
- handling for binding to named commands rather than page/browser actions
- Cocoa support

BUG=335655

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253145 0039d316-1c4b-4281-b951-d872f2087c98
21 files changed:
chrome/browser/extensions/api/commands/command_service.cc
chrome/browser/extensions/api/commands/command_service.h
chrome/browser/ui/bookmarks/bookmark_utils.cc
chrome/browser/ui/bookmarks/bookmark_utils.h
chrome/browser/ui/browser_commands.cc
chrome/browser/ui/browser_window.h
chrome/browser/ui/cocoa/browser_window_cocoa.h
chrome/browser/ui/cocoa/browser_window_cocoa.mm
chrome/browser/ui/gtk/browser_window_gtk.cc
chrome/browser/ui/gtk/browser_window_gtk.h
chrome/browser/ui/views/extensions/extension_installed_bubble_view.cc
chrome/browser/ui/views/frame/browser_view.cc
chrome/browser/ui/views/frame/browser_view.h
chrome/browser/ui/views/location_bar/location_bar_view.cc
chrome/browser/ui/views/location_bar/location_bar_view.h
chrome/browser/ui/views/toolbar/browser_actions_container.cc
chrome/browser/ui/views/toolbar/browser_actions_container.h
chrome/browser/ui/views/toolbar/toolbar_view.cc
chrome/browser/ui/views/toolbar/toolbar_view.h
chrome/test/base/test_browser_window.cc
chrome/test/base/test_browser_window.h