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