summaryrefslogtreecommitdiffstats
path: root/chrome/views
diff options
context:
space:
mode:
authorsky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-20 21:38:29 +0000
committersky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-20 21:38:29 +0000
commit8e261756c62de3737c5dc9b9418857e2b58a7618 (patch)
tree7f531ce7155a09f517c21c7e1f9eb95240465216 /chrome/views
parent2756834856ac17385e6f690f5c73361a877c668d (diff)
downloadchromium_src-8e261756c62de3737c5dc9b9418857e2b58a7618.zip
chromium_src-8e261756c62de3737c5dc9b9418857e2b58a7618.tar.gz
chromium_src-8e261756c62de3737c5dc9b9418857e2b58a7618.tar.bz2
Adds a bookmark menu. This is experimental. To turn on you need
--bookmark-menu. BUG=3206 TEST=Turn on the bookmark menu via --bookmark-menu and make sure it works. Also make sure I didn't break anything on the bookmark bar. Review URL: http://codereview.chromium.org/42460 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12217 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views')
-rw-r--r--chrome/views/controls/button/menu_button.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/views/controls/button/menu_button.h b/chrome/views/controls/button/menu_button.h
index 458853e..438d191 100644
--- a/chrome/views/controls/button/menu_button.h
+++ b/chrome/views/controls/button/menu_button.h
@@ -35,6 +35,10 @@ class MenuButton : public TextButton {
bool show_menu_marker);
virtual ~MenuButton();
+ void set_menu_delegate(ViewMenuDelegate* delegate) {
+ menu_delegate_ = delegate;
+ }
+
// Activate the button (called when the button is pressed).
virtual bool Activate();