| 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_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
| 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 // Gets information about the active user. | 137 // Gets information about the active user. |
| 138 virtual user::LoginStatus GetUserLoginStatus() const; | 138 virtual user::LoginStatus GetUserLoginStatus() const; |
| 139 | 139 |
| 140 // Shows UI for changing user's profile picture. | 140 // Shows UI for changing user's profile picture. |
| 141 virtual void ChangeProfilePicture(); | 141 virtual void ChangeProfilePicture(); |
| 142 | 142 |
| 143 // Returns the domain that manages the device, if it is enterprise-enrolled. | 143 // Returns the domain that manages the device, if it is enterprise-enrolled. |
| 144 virtual std::string GetEnterpriseDomain() const; | 144 virtual std::string GetEnterpriseDomain() const; |
| 145 | 145 |
| 146 // Returns notification for enterprise enrolled devices. | 146 // Returns notification for enterprise enrolled devices. |
| 147 virtual const base::string16 GetEnterpriseMessage() const; | 147 virtual base::string16 GetEnterpriseMessage() const; |
| 148 | 148 |
| 149 // Returns the display email of the user that manages the current supervised | 149 // Returns the display email of the user that manages the current supervised |
| 150 // user. | 150 // user. |
| 151 virtual const std::string GetSupervisedUserManager() const; | 151 virtual std::string GetSupervisedUserManager() const; |
| 152 | 152 |
| 153 // Returns the name of the user that manages the current supervised user. | 153 // Returns the name of the user that manages the current supervised user. |
| 154 virtual const base::string16 GetSupervisedUserManagerName() const; | 154 virtual base::string16 GetSupervisedUserManagerName() const; |
| 155 | 155 |
| 156 // Returns the notification for supervised users. | 156 // Returns the notification for supervised users. |
| 157 virtual const base::string16 GetSupervisedUserMessage() const; | 157 virtual base::string16 GetSupervisedUserMessage() const; |
| 158 | 158 |
| 159 // Returns true if the current user is supervised: has legacy supervised | 159 // Returns true if the current user is supervised: has legacy supervised |
| 160 // account or kid account. | 160 // account or kid account. |
| 161 virtual bool IsUserSupervised() const; | 161 virtual bool IsUserSupervised() const; |
| 162 | 162 |
| 163 // Returns true if the current user is child. | 163 // Returns true if the current user is child. |
| 164 // TODO(merkulova): remove on FakeUserManager componentization. | 164 // TODO(merkulova): remove on FakeUserManager componentization. |
| 165 // crbug.com/443119 | 165 // crbug.com/443119 |
| 166 virtual bool IsUserChild() const; | 166 virtual bool IsUserChild() const; |
| 167 | 167 |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 // asynchronously calls |callback| once a trusted policy becomes available. | 335 // asynchronously calls |callback| once a trusted policy becomes available. |
| 336 virtual void ShouldRebootOnShutdown(const RebootOnShutdownCallback& callback); | 336 virtual void ShouldRebootOnShutdown(const RebootOnShutdownCallback& callback); |
| 337 | 337 |
| 338 // Returns VPNDelegate. May return nullptr. | 338 // Returns VPNDelegate. May return nullptr. |
| 339 virtual VPNDelegate* GetVPNDelegate() const; | 339 virtual VPNDelegate* GetVPNDelegate() const; |
| 340 }; | 340 }; |
| 341 | 341 |
| 342 } // namespace ash | 342 } // namespace ash |
| 343 | 343 |
| 344 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 344 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
| OLD | NEW |