| Index: chrome/browser/ui/cocoa/browser/profile_chooser_controller.h
|
| diff --git a/chrome/browser/ui/cocoa/browser/profile_chooser_controller.h b/chrome/browser/ui/cocoa/browser/profile_chooser_controller.h
|
| index 01574052af8a59258cdea6c35758f5db8ce00c48..7bda8ae13b5f9d52998e3a5718941932b5ff2ef1 100644
|
| --- a/chrome/browser/ui/cocoa/browser/profile_chooser_controller.h
|
| +++ b/chrome/browser/ui/cocoa/browser/profile_chooser_controller.h
|
| @@ -23,7 +23,7 @@ class WebContents;
|
| // This window controller manages the bubble that displays a "menu" of profiles.
|
| // It is brought open by clicking on the avatar icon in the window frame.
|
| @interface ProfileChooserController : BaseBubbleController {
|
| - @private
|
| + @public
|
| // Different views that can be displayed in the bubble.
|
| enum BubbleViewMode {
|
| PROFILE_CHOOSER_VIEW, // Shows a "fast profile switcher" view.
|
| @@ -32,6 +32,7 @@ class WebContents;
|
| GAIA_ADD_ACCOUNT_VIEW // Shows a web view for adding secondary accounts.
|
| };
|
|
|
| + @private
|
| // The menu that contains the data from the backend.
|
| scoped_ptr<AvatarMenu> avatarMenu_;
|
|
|
| @@ -60,7 +61,9 @@ class WebContents;
|
| BOOL isGuestSession_;
|
| }
|
|
|
| -- (id)initWithBrowser:(Browser*)browser anchoredAt:(NSPoint)point;
|
| +- (id)initWithBrowser:(Browser*)browser
|
| + anchoredAt:(NSPoint)point
|
| + viewMode:(BubbleViewMode)viewToDisplay;
|
|
|
| // Creates all the subviews of the avatar bubble for |viewToDisplay|.
|
| - (void)initMenuContentsWithView:(BubbleViewMode)viewToDisplay;
|
| @@ -105,7 +108,9 @@ class WebContents;
|
| // Testing API /////////////////////////////////////////////////////////////////
|
|
|
| @interface ProfileChooserController (ExposedForTesting)
|
| -- (id)initWithBrowser:(Browser*)browser anchoredAt:(NSPoint)point;
|
| +- (id)initWithBrowser:(Browser*)browser
|
| + anchoredAt:(NSPoint)point
|
| + viewMode:(BubbleViewMode)viewToDisplay;
|
| @end
|
|
|
| #endif // CHROME_BROWSER_UI_COCOA_BROWSER_PROFILE_CHOOSER_CONTROLLER_H_
|
|
|