summaryrefslogtreecommitdiffstats
path: root/chrome/browser/bookmarks/bookmark_context_menu.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-08 17:26:01 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-08 17:26:01 +0000
commitb71a24d4c87b70586acb34eae882c8532fe86aba (patch)
tree961c542d97b9c46172e42135822f652fd9c4e6f7 /chrome/browser/bookmarks/bookmark_context_menu.h
parentc8ad40c6b02751c1cc942abe4ecaffbf68bfa611 (diff)
downloadchromium_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.h9
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;