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

Unified Diff: chrome/browser/ui/cocoa/command_observer_bridge.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/cocoa/browser_window_utils.mm ('k') | chrome/browser/ui/cocoa/command_observer_bridge.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/command_observer_bridge.h
===================================================================
--- chrome/browser/ui/cocoa/command_observer_bridge.h (revision 144460)
+++ chrome/browser/ui/cocoa/command_observer_bridge.h (working copy)
@@ -9,10 +9,12 @@
#import <Cocoa/Cocoa.h>
#include "base/compiler_specific.h"
-#include "chrome/browser/command_updater.h"
+#include "chrome/browser/command_observer.h"
@protocol CommandObserverProtocol;
+class CommandUpdater;
+
// A C++ bridge class that handles listening for updates to commands and
// passing them back to an object that supports the protocol delcared below.
// The observer will create one of these bridges, call ObserveCommand() on the
@@ -21,7 +23,7 @@
// bridge will handle automatically unregistering for updates, so there's no
// need to do that manually.
-class CommandObserverBridge : public CommandUpdater::CommandObserver {
+class CommandObserverBridge : public CommandObserver {
public:
CommandObserverBridge(id<CommandObserverProtocol> observer,
CommandUpdater* commands);
@@ -31,7 +33,7 @@
void ObserveCommand(int command);
protected:
- // Overridden from CommandUpdater::CommandObserver
+ // Overridden from CommandObserver
virtual void EnabledStateChangedForCommand(int command,
bool enabled) OVERRIDE;
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_utils.mm ('k') | chrome/browser/ui/cocoa/command_observer_bridge.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698