Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(514)

Unified Diff: chrome/browser/ui/gtk/global_menu_bar.h

Issue 6980011: GTK: Implement the global bookmarks menu. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 'GlobalBookmarkMenu' Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/gtk/global_bookmark_menu.cc ('k') | chrome/browser/ui/gtk/global_menu_bar.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/global_menu_bar.h
diff --git a/chrome/browser/ui/gtk/global_menu_bar.h b/chrome/browser/ui/gtk/global_menu_bar.h
index 0497a649203dbf9e88912cddc8b925cf5aa108ac..1364e51a27df2035120964de1c39d89245573c62 100644
--- a/chrome/browser/ui/gtk/global_menu_bar.h
+++ b/chrome/browser/ui/gtk/global_menu_bar.h
@@ -8,6 +8,7 @@
#include <map>
#include "chrome/browser/command_updater.h"
+#include "chrome/browser/ui/gtk/global_bookmark_menu.h"
#include "chrome/browser/ui/gtk/global_history_menu.h"
#include "chrome/browser/ui/gtk/owned_widget_gtk.h"
#include "content/common/notification_observer.h"
@@ -36,6 +37,7 @@ class GlobalMenuBar : public CommandUpdater::CommandObserver,
static const int TAG_RECENTLY_CLOSED = 2;
static const int TAG_MOST_VISITED_HEADER = 3;
static const int TAG_RECENTLY_CLOSED_HEADER = 4;
+ static const int TAG_BOOKMARK_CLEARABLE = 5;
explicit GlobalMenuBar(Browser* browser);
virtual ~GlobalMenuBar();
@@ -79,6 +81,9 @@ class GlobalMenuBar : public CommandUpdater::CommandObserver,
// history menu fresh.
GlobalHistoryMenu history_menu_;
+ // Listens to the bookmark model and updates the menu.
+ GlobalBookmarkMenu bookmark_menu_;
+
// For some menu items, we want to show the accelerator, but not actually
// explicitly handle it. To this end we connect those menu items' accelerators
// to this group, but don't attach this group to any top level window.
« no previous file with comments | « chrome/browser/ui/gtk/global_bookmark_menu.cc ('k') | chrome/browser/ui/gtk/global_menu_bar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698