OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_PROFILES_AVATAR_MENU_ACTIONS_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_AVATAR_MENU_ACTIONS_H_ |
6 #define CHROME_BROWSER_PROFILES_AVATAR_MENU_ACTIONS_H_ | 6 #define CHROME_BROWSER_PROFILES_AVATAR_MENU_ACTIONS_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 | 11 |
10 #include "chrome/browser/profiles/avatar_menu.h" | 12 #include "chrome/browser/profiles/avatar_menu.h" |
11 #include "chrome/browser/profiles/profile_metrics.h" | 13 #include "chrome/browser/profiles/profile_metrics.h" |
12 | 14 |
13 class Profile; | 15 class Profile; |
14 | 16 |
15 // This interface controls the behavior of avatar menu actions. | 17 // This interface controls the behavior of avatar menu actions. |
16 class AvatarMenuActions { | 18 class AvatarMenuActions { |
17 public: | 19 public: |
(...skipping 12 matching lines...) Expand all Loading... |
30 | 32 |
31 // Returns true if the edit profile link should be shown. | 33 // Returns true if the edit profile link should be shown. |
32 virtual bool ShouldShowEditProfileLink() const = 0; | 34 virtual bool ShouldShowEditProfileLink() const = 0; |
33 | 35 |
34 // Updates the browser. | 36 // Updates the browser. |
35 // TODO: Delegate browser actions to remove dependency on Browser class. | 37 // TODO: Delegate browser actions to remove dependency on Browser class. |
36 virtual void ActiveBrowserChanged(Browser* browser) = 0; | 38 virtual void ActiveBrowserChanged(Browser* browser) = 0; |
37 }; | 39 }; |
38 | 40 |
39 #endif // CHROME_BROWSER_PROFILES_AVATAR_MENU_ACTIONS_H_ | 41 #endif // CHROME_BROWSER_PROFILES_AVATAR_MENU_ACTIONS_H_ |
OLD | NEW |