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

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

Issue 216523005: show avatar bubble in edit mode on mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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/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_

Powered by Google App Engine
This is Rietveld 408576698