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_CHROMEOS_PROFILES_AVATAR_MENU_ACTIONS_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_PROFILES_AVATAR_MENU_ACTIONS_CHROMEOS_H_ |
6 #define CHROME_BROWSER_CHROMEOS_PROFILES_AVATAR_MENU_ACTIONS_CHROMEOS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_PROFILES_AVATAR_MENU_ACTIONS_CHROMEOS_H_ |
7 | 7 |
8 #include "chrome/browser/profiles/avatar_menu_actions.h" | 8 #include "chrome/browser/profiles/avatar_menu_actions.h" |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 class Browser; | 12 class Browser; |
13 | 13 |
14 namespace chromeos { | 14 namespace chromeos { |
15 | 15 |
16 // This interface controls the behavior of avatar menu actions on ChromeOS. | 16 // This interface controls the behavior of avatar menu actions on ChromeOS. |
17 class AvatarMenuActionsChromeOS : public AvatarMenuActions { | 17 class AvatarMenuActionsChromeOS : public AvatarMenuActions { |
18 public: | 18 public: |
19 AvatarMenuActionsChromeOS(); | 19 AvatarMenuActionsChromeOS(); |
20 virtual ~AvatarMenuActionsChromeOS(); | 20 virtual ~AvatarMenuActionsChromeOS(); |
21 | 21 |
22 // AvatarMenuActions overrides: | 22 // AvatarMenuActions overrides: |
23 virtual void AddNewProfile(ProfileMetrics::ProfileAdd type) OVERRIDE; | 23 virtual void AddNewProfile(ProfileMetrics::ProfileAdd type) override; |
24 virtual void EditProfile(Profile* profile, size_t index) OVERRIDE; | 24 virtual void EditProfile(Profile* profile, size_t index) override; |
25 virtual bool ShouldShowAddNewProfileLink() const OVERRIDE; | 25 virtual bool ShouldShowAddNewProfileLink() const override; |
26 virtual bool ShouldShowEditProfileLink() const OVERRIDE; | 26 virtual bool ShouldShowEditProfileLink() const override; |
27 virtual void ActiveBrowserChanged(Browser* browser) OVERRIDE; | 27 virtual void ActiveBrowserChanged(Browser* browser) override; |
28 | 28 |
29 private: | 29 private: |
30 // Browser in which this avatar menu resides. Weak. | 30 // Browser in which this avatar menu resides. Weak. |
31 Browser* browser_; | 31 Browser* browser_; |
32 | 32 |
33 DISALLOW_COPY_AND_ASSIGN(AvatarMenuActionsChromeOS); | 33 DISALLOW_COPY_AND_ASSIGN(AvatarMenuActionsChromeOS); |
34 }; | 34 }; |
35 | 35 |
36 } // namespace chromeos | 36 } // namespace chromeos |
37 | 37 |
38 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_AVATAR_MENU_ACTIONS_CHROMEOS_H_ | 38 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_AVATAR_MENU_ACTIONS_CHROMEOS_H_ |
OLD | NEW |