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

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

Issue 10677009: Move command handling and updating off Browser and onto a helper object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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/browser_window_gtk.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
===================================================================
--- chrome/browser/ui/gtk/global_menu_bar.h (revision 144460)
+++ chrome/browser/ui/gtk/global_menu_bar.h (working copy)
@@ -8,7 +8,7 @@
#include <map>
#include "base/compiler_specific.h"
-#include "chrome/browser/command_updater.h"
+#include "chrome/browser/command_observer.h"
#include "chrome/browser/prefs/pref_change_registrar.h"
#include "chrome/browser/ui/gtk/global_history_menu.h"
#include "content/public/browser/notification_observer.h"
@@ -30,7 +30,7 @@
// GtkMenuBar found. Thankfully, these systems don't check to see if the menu
// bar itself is visible, so we insert a GtkMenuBar into the window hierarchy
// and set it to be invisible.
-class GlobalMenuBar : public CommandUpdater::CommandObserver,
+class GlobalMenuBar : public CommandObserver,
public content::NotificationObserver {
public:
static const int TAG_NORMAL = 0;
@@ -65,7 +65,7 @@
std::map<int, GtkWidget*>* id_to_menu_item,
GtkWidget* menu_to_add_to);
- // CommandUpdater::CommandObserver:
+ // CommandObserver:
virtual void EnabledStateChangedForCommand(int id, bool enabled) OVERRIDE;
// content::NotificationObserver:
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.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