Index: chrome/browser/ui/cocoa/browser/avatar_button_controller.h |
diff --git a/chrome/browser/ui/cocoa/browser/avatar_button_controller.h b/chrome/browser/ui/cocoa/browser/avatar_button_controller.h |
index 776573c75a3b754b8189d0db0334fd00ddc8dc58..e3830a880aafdce9017be4683ee55ef002f7bb11 100644 |
--- a/chrome/browser/ui/cocoa/browser/avatar_button_controller.h |
+++ b/chrome/browser/ui/cocoa/browser/avatar_button_controller.h |
@@ -7,6 +7,7 @@ |
#import <AppKit/AppKit.h> |
+#import "base/memory/scoped_nsobject.h" |
#include "base/memory/scoped_ptr.h" |
@class AvatarMenuBubbleController; |
@@ -16,6 +17,10 @@ namespace AvatarButtonControllerInternal { |
class Observer; |
} |
+namespace ui { |
+class ThemeProvider; |
+} |
+ |
// This view controller manages the button/image that sits in the top of the |
// window frame when using multi-profiles. It shows the current profile's |
// avatar, or, when in Incognito, the spy dude. With multi-profiles, clicking |
@@ -29,10 +34,19 @@ class Observer; |
// The menu controller, if the menu is open. |
__weak AvatarMenuBubbleController* menuController_; |
+ |
+ // The avatar button. |
+ scoped_nsobject<NSButton> button_; |
+ |
+ // The managed user avatar label. Only used for managed user profiles. |
+ scoped_nsobject<NSTextField> label_; |
} |
-// The view cast to a button. |
-@property (readonly, nonatomic) NSButton* buttonView; |
+// The avatar button view. |
+@property(readonly, nonatomic) NSButton* buttonView; |
+ |
+// The managed user avatar label view. |
+@property(readonly, nonatomic) NSTextField* labelView; |
// Designated initializer. |
- (id)initWithBrowser:(Browser*)browser; |
@@ -41,6 +55,10 @@ class Observer; |
// and will be resized to the frame of the button. |
- (void)setImage:(NSImage*)image; |
+// Updates the text color and the background color of the avatar label |
+// according to the chosen theme. |
+- (void)updateColors:(ui::ThemeProvider*)themeProvider; |
+ |
// Shows the avatar bubble. |
- (void)showAvatarBubble; |