OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_AVATAR_BUTTON_ERROR_CONTROLLER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_AVATAR_BUTTON_ERROR_CONTROLLER_DELEGATE_H_ |
6 #define CHROME_BROWSER_UI_AVATAR_BUTTON_ERROR_CONTROLLER_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_AVATAR_BUTTON_ERROR_CONTROLLER_DELEGATE_H_ |
7 | 7 |
8 // Delegate that allows AvatarButtonErrorController to communicate to | 8 // Delegate that allows AvatarButtonErrorController to communicate to |
9 // NewAvatarButton. | 9 // AvatarButton. |
10 class AvatarButtonErrorControllerDelegate { | 10 class AvatarButtonErrorControllerDelegate { |
11 public: | 11 public: |
12 // Called when the signin/sync errors that should be exposed in the avatar | 12 // Called when the signin/sync errors that should be exposed in the avatar |
13 // button change. | 13 // button change. |
14 virtual void OnAvatarErrorChanged() = 0; | 14 virtual void OnAvatarErrorChanged() = 0; |
15 | 15 |
16 protected: | 16 protected: |
17 virtual ~AvatarButtonErrorControllerDelegate() {} | 17 virtual ~AvatarButtonErrorControllerDelegate() {} |
18 }; | 18 }; |
19 | 19 |
20 #endif // CHROME_BROWSER_UI_AVATAR_BUTTON_ERROR_CONTROLLER_DELEGATE_H_ | 20 #endif // CHROME_BROWSER_UI_AVATAR_BUTTON_ERROR_CONTROLLER_DELEGATE_H_ |
OLD | NEW |