diff options
author | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-08 14:46:36 +0000 |
---|---|---|
committer | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-08 14:46:36 +0000 |
commit | 2e1f49096ed49419de8c740a20ab106c14ffbf44 (patch) | |
tree | 787ff8465a8c859105a38b155ce89057c13ea8ce /chrome/browser/views/bookmark_bar_view.cc | |
parent | 30039e6ec600f1ac2a34e0881f4c0c10ee6f80cd (diff) | |
download | chromium_src-2e1f49096ed49419de8c740a20ab106c14ffbf44.zip chromium_src-2e1f49096ed49419de8c740a20ab106c14ffbf44.tar.gz chromium_src-2e1f49096ed49419de8c740a20ab106c14ffbf44.tar.bz2 |
This patch is from Andrew Brampton <me@bramp.net>.
This patches allows menu items in PopUpMenus to be clicked with the right mouse
button.
menu.cc controls the web content popup menus, and some others
chrome_menu{.cc,.h} controls popup menu on the chrome, for example right
clicking on a tab.
BUG=718
TEST=Bring up any menu (wrench/document) and right click on one of the items. This should select the item. Try the same with any of the bookmark menus.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1838 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/bookmark_bar_view.cc')
-rw-r--r-- | chrome/browser/views/bookmark_bar_view.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/views/bookmark_bar_view.cc b/chrome/browser/views/bookmark_bar_view.cc index 191aa04..d7fbabf 100644 --- a/chrome/browser/views/bookmark_bar_view.cc +++ b/chrome/browser/views/bookmark_bar_view.cc @@ -488,7 +488,7 @@ class MenuRunner : public ChromeViews::MenuDelegate, return result; } - virtual void ShowContextMenu(MenuItemView* source, + virtual bool ShowContextMenu(MenuItemView* source, int id, int x, int y, @@ -498,6 +498,7 @@ class MenuRunner : public ChromeViews::MenuDelegate, new BookmarkBarContextMenuController(view_, menu_id_to_node_map_[id])); context_menu_->RunMenuAt(x, y); context_menu_.reset(NULL); + return true; } virtual void DropMenuClosed(MenuItemView* menu) { |