| 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 <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 // Returns the realm that manages the device, if it is enterprise enrolled | 63 // Returns the realm that manages the device, if it is enterprise enrolled |
| 64 // with Active Directory and joined the realm (Active Directory domain). | 64 // with Active Directory and joined the realm (Active Directory domain). |
| 65 virtual std::string GetEnterpriseRealm() const; | 65 virtual std::string GetEnterpriseRealm() const; |
| 66 | 66 |
| 67 // Returns notification for enterprise enrolled devices. | 67 // Returns notification for enterprise enrolled devices. |
| 68 virtual base::string16 GetEnterpriseMessage() const; | 68 virtual base::string16 GetEnterpriseMessage() const; |
| 69 | 69 |
| 70 // Returns the display email of the user that manages the current supervised | 70 // Returns the display email of the user that manages the current supervised |
| 71 // user. | 71 // user. |
| 72 // TODO(jamescook): Migrate to SessionController. http://crbug.com/712799 |
| 72 virtual std::string GetSupervisedUserManager() const; | 73 virtual std::string GetSupervisedUserManager() const; |
| 73 | 74 |
| 74 // Returns the name of the user that manages the current supervised user. | 75 // Returns the name of the user that manages the current supervised user. |
| 76 // TODO(jamescook): Migrate to SessionController. http://crbug.com/712799 |
| 75 virtual base::string16 GetSupervisedUserManagerName() const; | 77 virtual base::string16 GetSupervisedUserManagerName() const; |
| 76 | 78 |
| 77 // Returns the notification for supervised users. | 79 // Returns the notification for supervised users. |
| 80 // TODO(jamescook): Migrate to SessionController. http://crbug.com/712799 |
| 78 virtual base::string16 GetSupervisedUserMessage() const; | 81 virtual base::string16 GetSupervisedUserMessage() const; |
| 79 | 82 |
| 80 // Returns true if the current user is supervised: has legacy supervised | |
| 81 // account or kid account. | |
| 82 virtual bool IsUserSupervised() const; | |
| 83 | |
| 84 // Returns true if the current user is child. | |
| 85 // TODO(merkulova): remove on FakeUserManager componentization. | |
| 86 // crbug.com/443119 | |
| 87 virtual bool IsUserChild() const; | |
| 88 | |
| 89 // Shows information about enterprise enrolled devices. | 83 // Shows information about enterprise enrolled devices. |
| 90 virtual void ShowEnterpriseInfo(); | 84 virtual void ShowEnterpriseInfo(); |
| 91 | 85 |
| 92 // Shows login UI to add other users to this session. | 86 // Shows login UI to add other users to this session. |
| 93 virtual void ShowUserLogin(); | 87 virtual void ShowUserLogin(); |
| 94 | 88 |
| 95 // Returns the currently selected IME. | 89 // Returns the currently selected IME. |
| 96 virtual void GetCurrentIME(IMEInfo* info); | 90 virtual void GetCurrentIME(IMEInfo* info); |
| 97 | 91 |
| 98 // Returns a list of availble IMEs. | 92 // Returns a list of availble IMEs. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 // Creates a system tray item for display rotation lock. | 131 // Creates a system tray item for display rotation lock. |
| 138 // TODO(jamescook): Remove this when mus has support for display management | 132 // TODO(jamescook): Remove this when mus has support for display management |
| 139 // and we have a DisplayManager equivalent. See http://crbug.com/548429 | 133 // and we have a DisplayManager equivalent. See http://crbug.com/548429 |
| 140 virtual std::unique_ptr<SystemTrayItem> CreateRotationLockTrayItem( | 134 virtual std::unique_ptr<SystemTrayItem> CreateRotationLockTrayItem( |
| 141 SystemTray* tray); | 135 SystemTray* tray); |
| 142 }; | 136 }; |
| 143 | 137 |
| 144 } // namespace ash | 138 } // namespace ash |
| 145 | 139 |
| 146 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 140 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
| OLD | NEW |