| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 114 |
| 115 // Called after SystemTray has been instantiated. | 115 // Called after SystemTray has been instantiated. |
| 116 virtual void Initialize(); | 116 virtual void Initialize(); |
| 117 | 117 |
| 118 // Gets information about the active user. | 118 // Gets information about the active user. |
| 119 virtual LoginStatus GetUserLoginStatus() const; | 119 virtual LoginStatus GetUserLoginStatus() const; |
| 120 | 120 |
| 121 // Returns the domain that manages the device, if it is enterprise-enrolled. | 121 // Returns the domain that manages the device, if it is enterprise-enrolled. |
| 122 virtual std::string GetEnterpriseDomain() const; | 122 virtual std::string GetEnterpriseDomain() const; |
| 123 | 123 |
| 124 // Returns the AD realm that manages the device, if it is domain joined. |
| 125 virtual std::string GetEnterpriseRealm() const; |
| 126 |
| 124 // Returns notification for enterprise enrolled devices. | 127 // Returns notification for enterprise enrolled devices. |
| 125 virtual base::string16 GetEnterpriseMessage() const; | 128 virtual base::string16 GetEnterpriseMessage() const; |
| 126 | 129 |
| 127 // Returns the display email of the user that manages the current supervised | 130 // Returns the display email of the user that manages the current supervised |
| 128 // user. | 131 // user. |
| 129 virtual std::string GetSupervisedUserManager() const; | 132 virtual std::string GetSupervisedUserManager() const; |
| 130 | 133 |
| 131 // Returns the name of the user that manages the current supervised user. | 134 // Returns the name of the user that manages the current supervised user. |
| 132 virtual base::string16 GetSupervisedUserManagerName() const; | 135 virtual base::string16 GetSupervisedUserManagerName() const; |
| 133 | 136 |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 // Creates a system tray item for display rotation lock. | 267 // Creates a system tray item for display rotation lock. |
| 265 // TODO(jamescook): Remove this when mus has support for display management | 268 // TODO(jamescook): Remove this when mus has support for display management |
| 266 // and we have a DisplayManager equivalent. See http://crbug.com/548429 | 269 // and we have a DisplayManager equivalent. See http://crbug.com/548429 |
| 267 virtual std::unique_ptr<SystemTrayItem> CreateRotationLockTrayItem( | 270 virtual std::unique_ptr<SystemTrayItem> CreateRotationLockTrayItem( |
| 268 SystemTray* tray); | 271 SystemTray* tray); |
| 269 }; | 272 }; |
| 270 | 273 |
| 271 } // namespace ash | 274 } // namespace ash |
| 272 | 275 |
| 273 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 276 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
| OLD | NEW |