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 content::WebContents* BeginSignOut() OVERRIDE; | 27 virtual void BeginSignOut() OVERRIDE; |
28 virtual void SetLogoutURL(const std::string& logout_url) OVERRIDE; | |
29 virtual void ActiveBrowserChanged(Browser* browser) OVERRIDE; | 28 virtual void ActiveBrowserChanged(Browser* browser) OVERRIDE; |
30 | 29 |
31 private: | 30 private: |
32 // Browser in which this avatar menu resides. Weak. | 31 // Browser in which this avatar menu resides. Weak. |
33 Browser* browser_; | 32 Browser* browser_; |
34 | 33 |
35 DISALLOW_COPY_AND_ASSIGN(AvatarMenuActionsChromeOS); | 34 DISALLOW_COPY_AND_ASSIGN(AvatarMenuActionsChromeOS); |
36 }; | 35 }; |
37 | 36 |
38 } // namespace chromeos | 37 } // namespace chromeos |
39 | 38 |
40 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_AVATAR_MENU_ACTIONS_CHROMEOS_H_ | 39 #endif // CHROME_BROWSER_CHROMEOS_PROFILES_AVATAR_MENU_ACTIONS_CHROMEOS_H_ |
OLD | NEW |