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

Unified Diff: chrome/browser/ui/cocoa/profile_menu_button.h

Issue 7054031: Mac: Use cross-platform menu model for profile button. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: chrome/browser/ui/cocoa/profile_menu_button.h
diff --git a/chrome/browser/ui/cocoa/profile_menu_button.h b/chrome/browser/ui/cocoa/profile_menu_button.h
index ca5dc8277e7a1c75c6608aebd6caf530eae61e56..ac8d4914690a840a038061b9e96280bef0b0af61 100644
--- a/chrome/browser/ui/cocoa/profile_menu_button.h
+++ b/chrome/browser/ui/cocoa/profile_menu_button.h
@@ -9,6 +9,10 @@
#import <Cocoa/Cocoa.h>
#include "base/memory/scoped_nsobject.h"
+#include "base/memory/scoped_ptr.h"
+#import "chrome/browser/ui/cocoa/menu_controller.h"
+
+class ProfileMenuModel;
// PopUp button that shows the multiprofile menu.
@interface ProfileMenuButton : NSPopUpButton {
@@ -20,6 +24,10 @@
// Cache the various button states when creating |cachedTabImage_|. If
// any of these states change then the cached image is invalidated.
BOOL cachedTabImageIsPressed_;
+
+ // The popup menu and its model.
+ scoped_nsobject<MenuController> menu_;
+ scoped_ptr<ProfileMenuModel> profile_menu_model_;
}
@property(assign,nonatomic) BOOL shouldShowProfileDisplayName;
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/profile_menu_button.mm » ('j') | chrome/browser/ui/profile_menu_model.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698