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

Side by Side Diff: chrome/browser/ui/cocoa/profiles/avatar_button_controller.h

Issue 2636473003: [Mac] Update the Text Color for the Avatar Button (Closed)
Patch Set: Added comment Created 3 years, 10 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 unified diff | Download patch
OLDNEW
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 20 // Whether the signed in profile has an authentication error. Used to
21 // display an error icon next to the button text. 21 // display an error icon next to the button text.
22 BOOL hasError_; 22 BOOL hasError_;
23
24 // The window associated with the avatar button. Weak.
25 NSWindow* window_;
23 } 26 }
24 // Designated initializer. 27 // Designated initializer. The parameter |window| is required because
25 - (id)initWithBrowser:(Browser*)browser; 28 // browser->window() might be null when the initalizer is called.
29 - (id)initWithBrowser:(Browser*)browser window:(NSWindow*)window;
30
31 // Returns YES if the browser window's frame color is dark.
32 - (BOOL)isFrameColorDark;
26 33
27 // Overridden so that we can change the active state of the avatar button. 34 // Overridden so that we can change the active state of the avatar button.
28 - (void)showAvatarBubbleAnchoredAt:(NSView*)anchor 35 - (void)showAvatarBubbleAnchoredAt:(NSView*)anchor
29 withMode:(BrowserWindow::AvatarBubbleMode)mode 36 withMode:(BrowserWindow::AvatarBubbleMode)mode
30 withServiceType:(signin::GAIAServiceType)serviceType 37 withServiceType:(signin::GAIAServiceType)serviceType
31 fromAccessPoint:(signin_metrics::AccessPoint)accessPoint; 38 fromAccessPoint:(signin_metrics::AccessPoint)accessPoint;
32 - (void)bubbleWillClose:(NSNotification*)notif; 39 - (void)bubbleWillClose:(NSNotification*)notif;
33 40
34 @end 41 @end
35 42
36 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_AVATAR_BUTTON_CONTROLLER_H_ 43 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_AVATAR_BUTTON_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller.mm ('k') | chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698