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

Unified Diff: chrome/browser/app_controller_mac.h

Issue 100206: Initial prefs window xib from Cole. Hook the menu up to (empty) code. Use sco... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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
Index: chrome/browser/app_controller_mac.h
===================================================================
--- chrome/browser/app_controller_mac.h (revision 14938)
+++ chrome/browser/app_controller_mac.h (working copy)
@@ -7,26 +7,33 @@
#import <Cocoa/Cocoa.h>
+#include "base/scoped_nsobject.h"
+#include "base/scoped_ptr.h"
+
class BookmarkMenuBridge;
class CommandUpdater;
+@class PreferencesWindowController;
class Profile;
// The application controller object, created by loading the MainMenu nib.
// This handles things like responding to menus when there are no windows
// open, etc and acts as the NSApplication delegate.
@interface AppController : NSObject<NSUserInterfaceValidations> {
- @public
- CommandUpdater* menuState_; // strong ref
@private
+ scoped_ptr<CommandUpdater> menuState_;
// Management of the bookmark menu which spans across all windows
- // (and Browser*s). This is dynamically allocated to keep objc
- // happy.
- BookmarkMenuBridge* bookmarkMenuBridge_;
+ // (and Browser*s).
+ scoped_ptr<BookmarkMenuBridge> bookmarkMenuBridge_;
+ scoped_nsobject<PreferencesWindowController> prefsController_;
}
- (IBAction)quit:(id)sender;
- (Profile*)defaultProfile;
+// Show the preferences window, or bring it to the front if it's already
+// visible.
+- (IBAction)showPreferences:(id)sender;
+
@end
#endif

Powered by Google App Engine
This is Rietveld 408576698