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_DESKTOP_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_AVATAR_MENU_ACTIONS_DESKTOP_H_ |
6 #define CHROME_BROWSER_PROFILES_AVATAR_MENU_ACTIONS_DESKTOP_H_ | 6 #define CHROME_BROWSER_PROFILES_AVATAR_MENU_ACTIONS_DESKTOP_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 | 11 |
| 12 #include "base/macros.h" |
10 #include "chrome/browser/profiles/avatar_menu_actions.h" | 13 #include "chrome/browser/profiles/avatar_menu_actions.h" |
11 #include "chrome/browser/profiles/profile_metrics.h" | 14 #include "chrome/browser/profiles/profile_metrics.h" |
12 | 15 |
13 class Profile; | 16 class Profile; |
14 | 17 |
15 // This interface controls the behavior of avatar menu actions. | 18 // This interface controls the behavior of avatar menu actions. |
16 class AvatarMenuActionsDesktop : public AvatarMenuActions { | 19 class AvatarMenuActionsDesktop : public AvatarMenuActions { |
17 public: | 20 public: |
18 AvatarMenuActionsDesktop(); | 21 AvatarMenuActionsDesktop(); |
19 ~AvatarMenuActionsDesktop() override; | 22 ~AvatarMenuActionsDesktop() override; |
20 | 23 |
21 // AvatarMenuActions overrides: | 24 // AvatarMenuActions overrides: |
22 void AddNewProfile(ProfileMetrics::ProfileAdd type) override; | 25 void AddNewProfile(ProfileMetrics::ProfileAdd type) override; |
23 void EditProfile(Profile* profile, size_t index) override; | 26 void EditProfile(Profile* profile, size_t index) override; |
24 bool ShouldShowAddNewProfileLink() const override; | 27 bool ShouldShowAddNewProfileLink() const override; |
25 bool ShouldShowEditProfileLink() const override; | 28 bool ShouldShowEditProfileLink() const override; |
26 void ActiveBrowserChanged(Browser* browser) override; | 29 void ActiveBrowserChanged(Browser* browser) override; |
27 | 30 |
28 private: | 31 private: |
29 // Browser in which this avatar menu resides. Weak. | 32 // Browser in which this avatar menu resides. Weak. |
30 Browser* browser_; | 33 Browser* browser_; |
31 | 34 |
32 // Special "override" logout URL used to let tests work. | 35 // Special "override" logout URL used to let tests work. |
33 std::string logout_override_; | 36 std::string logout_override_; |
34 | 37 |
35 DISALLOW_COPY_AND_ASSIGN(AvatarMenuActionsDesktop); | 38 DISALLOW_COPY_AND_ASSIGN(AvatarMenuActionsDesktop); |
36 }; | 39 }; |
37 | 40 |
38 #endif // CHROME_BROWSER_PROFILES_AVATAR_MENU_ACTIONS_DESKTOP_H_ | 41 #endif // CHROME_BROWSER_PROFILES_AVATAR_MENU_ACTIONS_DESKTOP_H_ |
OLD | NEW |