Chromium Code Reviews| 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..4e5eaa861c8d0bdd7002f53c45db62568da140fd 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> |
| +#include "base/memory/scoped_nsobject.h" |
|
Robert Sesek
2013/06/04 20:59:10
#import
Adrian Kuegel
2013/06/05 16:01:38
Done.
|
| #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,11 +34,17 @@ class Observer; |
| // The menu controller, if the menu is open. |
| __weak AvatarMenuBubbleController* menuController_; |
| + |
| + // The managed user avatar label. |
| + scoped_nsobject<NSTextField> label_; |
| } |
| // The view cast to a button. |
| @property (readonly, nonatomic) NSButton* buttonView; |
| +// The managed user avatar label. |
| +@property (readonly, nonatomic) NSTextField* labelView; |
|
Robert Sesek
2013/06/04 20:59:10
nit: (and please fix the one above) no space befor
Adrian Kuegel
2013/06/05 16:01:38
Done.
|
| + |
| // Designated initializer. |
| - (id)initWithBrowser:(Browser*)browser; |
| @@ -41,6 +52,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; |