summaryrefslogtreecommitdiffstats
path: root/chrome/browser/app_controller_mac.h
diff options
context:
space:
mode:
authorjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-25 22:11:43 +0000
committerjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-25 22:11:43 +0000
commit3f34599d40afee4d071e33c12278931764dd7c56 (patch)
tree018bf8b9a56134fd022a12b964e297999fcb17f2 /chrome/browser/app_controller_mac.h
parentc9d989b20d74fcd1de89d5aad90f5ad11d11801c (diff)
downloadchromium_src-3f34599d40afee4d071e33c12278931764dd7c56.zip
chromium_src-3f34599d40afee4d071e33c12278931764dd7c56.tar.gz
chromium_src-3f34599d40afee4d071e33c12278931764dd7c56.tar.bz2
Bookmark menu work. Notes:
- "add bookmark" menu item enable state (e.g. disabled if no windows) - bookmark menus built dynamically (like before) - bookmark menus rebuild when a bookmark is added/removed - bookmark menus take the current browser to where you want to go - works with multiple windows (main window goes to bookmark location) - works with no windows (bookmarks open a new window) Review URL: http://codereview.chromium.org/49005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12501 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/app_controller_mac.h')
-rw-r--r--chrome/browser/app_controller_mac.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/app_controller_mac.h b/chrome/browser/app_controller_mac.h
index db562a3..b64fe7b 100644
--- a/chrome/browser/app_controller_mac.h
+++ b/chrome/browser/app_controller_mac.h
@@ -7,7 +7,9 @@
#import <Cocoa/Cocoa.h>
+class BookmarkMenuBridge;
class CommandUpdater;
+class Profile;
// The application controller object, created by loading the MainMenu nib.
// This handles things like responding to menus when there are no windows
@@ -15,9 +17,15 @@ class CommandUpdater;
@interface AppController : NSObject<NSUserInterfaceValidations> {
@public
CommandUpdater* menuState_; // strong ref
+ @private
+ // Management of the bookmark menu which spans across all windows
+ // (and Browser*s). This is dynamically allocated to keep objc
+ // happy.
+ BookmarkMenuBridge* bookmarkMenuBridge_;
}
- (IBAction)quit:(id)sender;
+- (Profile*)defaultProfile;
@end