| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_AVATAR_MENU_H_ |
| 6 #define CHROME_BROWSER_PROFILES_AVATAR_MENU_H_ | 6 #define CHROME_BROWSER_PROFILES_AVATAR_MENU_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 base::string16 GetManagedUserInformation() const; | 121 base::string16 GetManagedUserInformation() const; |
| 122 | 122 |
| 123 // Returns the icon for the managed user which will be displayed in the | 123 // Returns the icon for the managed user which will be displayed in the |
| 124 // avatar menu. | 124 // avatar menu. |
| 125 const gfx::Image& GetManagedUserIcon() const; | 125 const gfx::Image& GetManagedUserIcon() const; |
| 126 | 126 |
| 127 // This menu is also used for the always-present Mac system menubar. If the | 127 // This menu is also used for the always-present Mac system menubar. If the |
| 128 // last active browser changes, the menu will need to reference that browser. | 128 // last active browser changes, the menu will need to reference that browser. |
| 129 void ActiveBrowserChanged(Browser* browser); | 129 void ActiveBrowserChanged(Browser* browser); |
| 130 | 130 |
| 131 // Start the sign-out process for this profile. |
| 132 content::WebContents* BeginSignOut(); |
| 133 |
| 134 // Use a different URL for logout (for testing only). |
| 135 void SetLogoutURL(const std::string& logout_url); |
| 136 |
| 131 // Returns true if the add profile link should be shown. | 137 // Returns true if the add profile link should be shown. |
| 132 bool ShouldShowAddNewProfileLink() const; | 138 bool ShouldShowAddNewProfileLink() const; |
| 133 | 139 |
| 134 // Returns true if the edit profile link should be shown. | 140 // Returns true if the edit profile link should be shown. |
| 135 bool ShouldShowEditProfileLink() const; | 141 bool ShouldShowEditProfileLink() const; |
| 136 | 142 |
| 137 // content::NotificationObserver: | 143 // content::NotificationObserver: |
| 138 virtual void Observe(int type, | 144 virtual void Observe(int type, |
| 139 const content::NotificationSource& source, | 145 const content::NotificationSource& source, |
| 140 const content::NotificationDetails& details) OVERRIDE; | 146 const content::NotificationDetails& details) OVERRIDE; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 155 // Browser in which this avatar menu resides. Weak. | 161 // Browser in which this avatar menu resides. Weak. |
| 156 Browser* browser_; | 162 Browser* browser_; |
| 157 | 163 |
| 158 // Listens for notifications from the ProfileInfoCache. | 164 // Listens for notifications from the ProfileInfoCache. |
| 159 content::NotificationRegistrar registrar_; | 165 content::NotificationRegistrar registrar_; |
| 160 | 166 |
| 161 DISALLOW_COPY_AND_ASSIGN(AvatarMenu); | 167 DISALLOW_COPY_AND_ASSIGN(AvatarMenu); |
| 162 }; | 168 }; |
| 163 | 169 |
| 164 #endif // CHROME_BROWSER_PROFILES_AVATAR_MENU_H_ | 170 #endif // CHROME_BROWSER_PROFILES_AVATAR_MENU_H_ |
| OLD | NEW |