| 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 ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 5 #ifndef ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
| 6 #define ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 6 #define ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 | 109 |
| 110 // Called after SystemTray has been instantiated. | 110 // Called after SystemTray has been instantiated. |
| 111 virtual void Initialize(); | 111 virtual void Initialize(); |
| 112 | 112 |
| 113 // Returns true if system tray should be visible on startup. | 113 // Returns true if system tray should be visible on startup. |
| 114 virtual bool GetTrayVisibilityOnStartup(); | 114 virtual bool GetTrayVisibilityOnStartup(); |
| 115 | 115 |
| 116 // Gets information about the active user. | 116 // Gets information about the active user. |
| 117 virtual LoginStatus GetUserLoginStatus() const; | 117 virtual LoginStatus GetUserLoginStatus() const; |
| 118 | 118 |
| 119 // Shows UI for changing user's profile picture. | |
| 120 virtual void ChangeProfilePicture(); | |
| 121 | |
| 122 // Returns the domain that manages the device, if it is enterprise-enrolled. | 119 // Returns the domain that manages the device, if it is enterprise-enrolled. |
| 123 virtual std::string GetEnterpriseDomain() const; | 120 virtual std::string GetEnterpriseDomain() const; |
| 124 | 121 |
| 125 // Returns notification for enterprise enrolled devices. | 122 // Returns notification for enterprise enrolled devices. |
| 126 virtual base::string16 GetEnterpriseMessage() const; | 123 virtual base::string16 GetEnterpriseMessage() const; |
| 127 | 124 |
| 128 // Returns the display email of the user that manages the current supervised | 125 // Returns the display email of the user that manages the current supervised |
| 129 // user. | 126 // user. |
| 130 virtual std::string GetSupervisedUserManager() const; | 127 virtual std::string GetSupervisedUserManager() const; |
| 131 | 128 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 | 193 |
| 197 // Shows the settings related to the palette. | 194 // Shows the settings related to the palette. |
| 198 virtual void ShowPaletteSettings(); | 195 virtual void ShowPaletteSettings(); |
| 199 | 196 |
| 200 // Shows more information about public account mode. | 197 // Shows more information about public account mode. |
| 201 virtual void ShowPublicAccountInfo(); | 198 virtual void ShowPublicAccountInfo(); |
| 202 | 199 |
| 203 // Shows information about enterprise enrolled devices. | 200 // Shows information about enterprise enrolled devices. |
| 204 virtual void ShowEnterpriseInfo(); | 201 virtual void ShowEnterpriseInfo(); |
| 205 | 202 |
| 206 // Shows information about supervised users. | |
| 207 virtual void ShowSupervisedUserInfo(); | |
| 208 | |
| 209 // Shows login UI to add other users to this session. | 203 // Shows login UI to add other users to this session. |
| 210 virtual void ShowUserLogin(); | 204 virtual void ShowUserLogin(); |
| 211 | 205 |
| 212 // Attempts to sign out the user. | 206 // Attempts to sign out the user. |
| 213 virtual void SignOut(); | 207 virtual void SignOut(); |
| 214 | 208 |
| 215 // Attempts to restart the system for update. | 209 // Attempts to restart the system for update. |
| 216 virtual void RequestRestartForUpdate(); | 210 virtual void RequestRestartForUpdate(); |
| 217 | 211 |
| 218 // Attempts to shut down the system. | 212 // Attempts to shut down the system. |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 // Returns whether bluetooth capability is available. | 255 // Returns whether bluetooth capability is available. |
| 262 virtual bool GetBluetoothAvailable(); | 256 virtual bool GetBluetoothAvailable(); |
| 263 | 257 |
| 264 // Returns whether bluetooth is enabled. | 258 // Returns whether bluetooth is enabled. |
| 265 virtual bool GetBluetoothEnabled(); | 259 virtual bool GetBluetoothEnabled(); |
| 266 | 260 |
| 267 // Returns whether the delegate has initiated a bluetooth discovery session. | 261 // Returns whether the delegate has initiated a bluetooth discovery session. |
| 268 virtual bool GetBluetoothDiscovering(); | 262 virtual bool GetBluetoothDiscovering(); |
| 269 | 263 |
| 270 // Shows UI for changing proxy settings. | 264 // Shows UI for changing proxy settings. |
| 271 virtual void ChangeProxySettings(); | 265 virtual void ShowProxySettings(); |
| 272 | 266 |
| 273 // Returns CastConfigDelegate. May return nullptr. | 267 // Returns CastConfigDelegate. May return nullptr. |
| 274 virtual CastConfigDelegate* GetCastConfigDelegate(); | 268 virtual CastConfigDelegate* GetCastConfigDelegate(); |
| 275 | 269 |
| 276 // Returns NetworkingConfigDelegate. May return nullptr. | 270 // Returns NetworkingConfigDelegate. May return nullptr. |
| 277 virtual NetworkingConfigDelegate* GetNetworkingConfigDelegate() const; | 271 virtual NetworkingConfigDelegate* GetNetworkingConfigDelegate() const; |
| 278 | 272 |
| 279 // Returns VolumeControlDelegate. May return nullptr. | 273 // Returns VolumeControlDelegate. May return nullptr. |
| 280 virtual VolumeControlDelegate* GetVolumeControlDelegate() const; | 274 virtual VolumeControlDelegate* GetVolumeControlDelegate() const; |
| 281 | 275 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 // Creates a system tray item for display rotation lock. | 319 // Creates a system tray item for display rotation lock. |
| 326 // TODO(jamescook): Remove this when mus has support for display management | 320 // TODO(jamescook): Remove this when mus has support for display management |
| 327 // and we have a DisplayManager equivalent. See http://crbug.com/548429 | 321 // and we have a DisplayManager equivalent. See http://crbug.com/548429 |
| 328 virtual std::unique_ptr<SystemTrayItem> CreateRotationLockTrayItem( | 322 virtual std::unique_ptr<SystemTrayItem> CreateRotationLockTrayItem( |
| 329 SystemTray* tray); | 323 SystemTray* tray); |
| 330 }; | 324 }; |
| 331 | 325 |
| 332 } // namespace ash | 326 } // namespace ash |
| 333 | 327 |
| 334 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 328 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
| OLD | NEW |