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

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

Issue 2459073003: [Mac] Implement an active state for the avatar button (Closed)
Patch Set: Updated comment Created 4 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/profiles/avatar_button.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BASE_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_PROFILES_AVATAR_BASE_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_PROFILES_AVATAR_BASE_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_PROFILES_AVATAR_BASE_CONTROLLER_H_
7 7
8 #import <AppKit/AppKit.h> 8 #import <AppKit/AppKit.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 // Designated initializer. 46 // Designated initializer.
47 - (id)initWithBrowser:(Browser*)browser; 47 - (id)initWithBrowser:(Browser*)browser;
48 48
49 // Shows the avatar bubble in the given mode. 49 // Shows the avatar bubble in the given mode.
50 - (void)showAvatarBubbleAnchoredAt:(NSView*)anchor 50 - (void)showAvatarBubbleAnchoredAt:(NSView*)anchor
51 withMode:(BrowserWindow::AvatarBubbleMode)mode 51 withMode:(BrowserWindow::AvatarBubbleMode)mode
52 withServiceType:(signin::GAIAServiceType)serviceType 52 withServiceType:(signin::GAIAServiceType)serviceType
53 fromAccessPoint:(signin_metrics::AccessPoint)accessPoint; 53 fromAccessPoint:(signin_metrics::AccessPoint)accessPoint;
54 54
55 // Called when the avatar bubble will close.
56 - (void)bubbleWillClose:(NSNotification*)notif;
57
55 @end 58 @end
56 59
57 @interface AvatarBaseController (ExposedForTesting) 60 @interface AvatarBaseController (ExposedForTesting)
58 - (BaseBubbleController*)menuController; 61 - (BaseBubbleController*)menuController;
59 62
60 - (BOOL)isCtrlPressed; 63 - (BOOL)isCtrlPressed;
61 @end 64 @end
62 65
63 class ProfileUpdateObserver : public ProfileAttributesStorage::Observer, 66 class ProfileUpdateObserver : public ProfileAttributesStorage::Observer,
64 public AvatarButtonErrorControllerDelegate { 67 public AvatarButtonErrorControllerDelegate {
(...skipping 18 matching lines...) Expand all
83 86
84 private: 87 private:
85 AvatarButtonErrorController errorController_; 88 AvatarButtonErrorController errorController_;
86 Profile* profile_; 89 Profile* profile_;
87 AvatarBaseController* avatarController_; // Weak; owns this. 90 AvatarBaseController* avatarController_; // Weak; owns this.
88 91
89 DISALLOW_COPY_AND_ASSIGN(ProfileUpdateObserver); 92 DISALLOW_COPY_AND_ASSIGN(ProfileUpdateObserver);
90 }; 93 };
91 94
92 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_AVATAR_BASE_CONTROLLER_H_ 95 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_AVATAR_BASE_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/profiles/avatar_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698