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

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

Issue 15932008: Add managed user avatar menu for mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add unit test. Created 7 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
Index: chrome/browser/ui/cocoa/browser/avatar_menu_bubble_controller.h
diff --git a/chrome/browser/ui/cocoa/browser/avatar_menu_bubble_controller.h b/chrome/browser/ui/cocoa/browser/avatar_menu_bubble_controller.h
index 01c3dce16ac26eaf8dc1400685a642892598d744..f3f77f4eca2e6c3bde86922c8ad880b9ffd6396e 100644
--- a/chrome/browser/ui/cocoa/browser/avatar_menu_bubble_controller.h
+++ b/chrome/browser/ui/cocoa/browser/avatar_menu_bubble_controller.h
@@ -24,6 +24,9 @@ class Browser;
// Array of the below view controllers.
scoped_nsobject<NSMutableArray> items_;
+
+ // Is set to true if the managed user has clicked on Switch Users.
+ BOOL expanded_;
}
// Designated initializer. The browser is passed to the model for profile
@@ -31,7 +34,7 @@ class Browser;
- (id)initWithBrowser:(Browser*)parentBrowser
anchoredAt:(NSPoint)point;
-// Creats a new profile.
+// Creates a new profile.
- (IBAction)newProfile:(id)sender;
// Switches to a given profile. |sender| is an AvatarMenuItemController.
@@ -40,6 +43,10 @@ class Browser;
// Edits a given profile. |sender| is an AvatarMenuItemController.
- (IBAction)editProfile:(id)sender;
+// Switches from the managed user avatar menu to the normal avatar menu which
+// allows to switch profiles.
+- (IBAction)switchProfile:(id)sender;
+
@end
////////////////////////////////////////////////////////////////////////////////

Powered by Google App Engine
This is Rietveld 408576698