OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_COCOA_PROFILES_AVATAR_BUTTON_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_PROFILES_AVATAR_BUTTON_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_PROFILES_AVATAR_BUTTON_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_PROFILES_AVATAR_BUTTON_CONTROLLER_H_ |
7 | 7 |
8 #import <AppKit/AppKit.h> | 8 #import <AppKit/AppKit.h> |
9 | 9 |
10 #import "chrome/browser/ui/cocoa/profiles/avatar_base_controller.h" | 10 #import "chrome/browser/ui/cocoa/profiles/avatar_base_controller.h" |
11 | 11 |
12 class Browser; | 12 class Browser; |
13 | 13 |
14 // This view controller manages the button that sits in the top of the | 14 // This view controller manages the button that sits in the top of the |
15 // window frame when using multi-profiles, and shows the current profile's | 15 // window frame when using multi-profiles, and shows the current profile's |
16 // name. Clicking the button will open the profile menu. | 16 // name. Clicking the button will open the profile menu. |
17 @interface AvatarButtonController : AvatarBaseController { | 17 @interface AvatarButtonController : AvatarBaseController { |
18 @private | 18 @private |
19 BOOL isThemedWindow_; | 19 BOOL isThemedWindow_; |
20 // Whether the signed in profile has an authentication error. Used to | |
21 // display an error icon next to the button text. | |
22 BOOL hasError_; | |
20 } | 23 } |
21 // Designated initializer. | 24 // Designated initializer. |
22 - (id)initWithBrowser:(Browser*)browser; | 25 - (id)initWithBrowser:(Browser*)browser; |
23 | 26 |
24 @end | 27 @end |
25 | 28 |
29 @interface AvatarButtonController (ExposedForTesting) | |
groby-ooo-7-16
2014/09/29 17:55:43
I wouldn't expose it in the header - just do it in
| |
30 - (void)updateErrorStatus:(BOOL)hasError; | |
31 @end | |
32 | |
26 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_AVATAR_BUTTON_CONTROLLER_H_ | 33 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_AVATAR_BUTTON_CONTROLLER_H_ |
OLD | NEW |