summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/bookmark_bar_gtk.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/gtk/bookmark_bar_gtk.h')
-rw-r--r--chrome/browser/gtk/bookmark_bar_gtk.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/chrome/browser/gtk/bookmark_bar_gtk.h b/chrome/browser/gtk/bookmark_bar_gtk.h
index d45fcdbb..930a26f 100644
--- a/chrome/browser/gtk/bookmark_bar_gtk.h
+++ b/chrome/browser/gtk/bookmark_bar_gtk.h
@@ -13,6 +13,7 @@
#include "chrome/common/owned_widget_gtk.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
+class BookmarkContextMenuGtk;
class Browser;
class CustomContainerButton;
class PageNavigator;
@@ -111,13 +112,15 @@ class BookmarkBarGtk : public BookmarkModelObserver {
BookmarkNode* GetNodeForToolButton(GtkWidget* button);
// Creates and displays a popup menu for BookmarkNode |node|.
- void PopupMenuForNode(BookmarkNode* node, GdkEventButton* event);
+ void PopupMenuForNode(GtkWidget* sender, BookmarkNode* node,
+ GdkEventButton* event);
// GtkButton callbacks
static gboolean OnButtonPressed(GtkWidget* sender,
GdkEventButton* event,
BookmarkBarGtk* bar);
- static gboolean OnButtonReleased(GtkWidget* sender, GdkEventButton* event,
+ static gboolean OnButtonReleased(GtkWidget* sender,
+ GdkEventButton* event,
BookmarkBarGtk* bar);
static gboolean OnButtonExpose(GtkWidget* widget, GdkEventExpose* e,
BookmarkBarGtk* button);
@@ -188,6 +191,10 @@ class BookmarkBarGtk : public BookmarkModelObserver {
// Whether we should show the instructional text in the bookmark bar.
bool show_instructions_;
+
+ // The last displayed right click menu, or NULL if no menus have been
+ // displayed yet.
+ scoped_ptr<BookmarkContextMenuGtk> current_context_menu_;
};
#endif // CHROME_BROWSER_GTK_BOOKMARK_BAR_GTK_H_