diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-08 17:26:01 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-08 17:26:01 +0000 |
commit | b71a24d4c87b70586acb34eae882c8532fe86aba (patch) | |
tree | 961c542d97b9c46172e42135822f652fd9c4e6f7 /chrome/browser/bookmarks/bookmark_context_menu.h | |
parent | c8ad40c6b02751c1cc942abe4ecaffbf68bfa611 (diff) | |
download | chromium_src-b71a24d4c87b70586acb34eae882c8532fe86aba.zip chromium_src-b71a24d4c87b70586acb34eae882c8532fe86aba.tar.gz chromium_src-b71a24d4c87b70586acb34eae882c8532fe86aba.tar.bz2 |
GTK bookmark manager: organize menu and aesthetic improvements.
Review URL: http://codereview.chromium.org/118388
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17868 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/bookmarks/bookmark_context_menu.h')
-rw-r--r-- | chrome/browser/bookmarks/bookmark_context_menu.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/bookmarks/bookmark_context_menu.h b/chrome/browser/bookmarks/bookmark_context_menu.h index 75f72f4..4bc1e35 100644 --- a/chrome/browser/bookmarks/bookmark_context_menu.h +++ b/chrome/browser/bookmarks/bookmark_context_menu.h @@ -73,8 +73,17 @@ class BookmarkContextMenu : public BookmarkModelObserver, #elif defined(OS_LINUX) // Pops up this menu. This call doesn't block. void PopupAsContext(guint32 event_time); + + // Returns the menu. + GtkWidget* menu() const { return menu_->widget(); } #endif + void set_parent(BookmarkNode* parent) { parent_ = parent; } + + void set_selection(const std::vector<BookmarkNode*>& selection) { + selection_ = selection; + } + // Menu::Delegate / MenuGtk::Delegate methods. virtual void ExecuteCommand(int id); virtual bool IsItemChecked(int id) const; |