| 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_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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |