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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 141 |
142 // Shows UI for changing user's profile picture. | 142 // Shows UI for changing user's profile picture. |
143 virtual void ChangeProfilePicture() = 0; | 143 virtual void ChangeProfilePicture() = 0; |
144 | 144 |
145 // Returns the domain that manages the device, if it is enterprise-enrolled. | 145 // Returns the domain that manages the device, if it is enterprise-enrolled. |
146 virtual const std::string GetEnterpriseDomain() const = 0; | 146 virtual const std::string GetEnterpriseDomain() const = 0; |
147 | 147 |
148 // Returns notification for enterprise enrolled devices. | 148 // Returns notification for enterprise enrolled devices. |
149 virtual const base::string16 GetEnterpriseMessage() const = 0; | 149 virtual const base::string16 GetEnterpriseMessage() const = 0; |
150 | 150 |
| 151 // Returns the email of user that manages current locally managed user. |
| 152 virtual const std::string GetLocallyManagedUserManager() const = 0; |
| 153 |
| 154 // Returns notification for locally managed users. |
| 155 virtual const base::string16 GetLocallyManagedUserMessage() const = 0; |
| 156 |
151 // Returns whether a system upgrade is available. | 157 // Returns whether a system upgrade is available. |
152 virtual bool SystemShouldUpgrade() const = 0; | 158 virtual bool SystemShouldUpgrade() const = 0; |
153 | 159 |
154 // Returns the desired hour clock type. | 160 // Returns the desired hour clock type. |
155 virtual base::HourClockType GetHourClockType() const = 0; | 161 virtual base::HourClockType GetHourClockType() const = 0; |
156 | 162 |
157 // Gets the current power supply status. | 163 // Gets the current power supply status. |
158 virtual PowerSupplyStatus GetPowerSupplyStatus() const = 0; | 164 virtual PowerSupplyStatus GetPowerSupplyStatus() const = 0; |
159 | 165 |
160 // Requests a status update. | 166 // Requests a status update. |
(...skipping 25 matching lines...) Expand all Loading... |
186 | 192 |
187 // Show accessilibity help. | 193 // Show accessilibity help. |
188 virtual void ShowAccessibilityHelp() = 0; | 194 virtual void ShowAccessibilityHelp() = 0; |
189 | 195 |
190 // Shows more information about public account mode. | 196 // Shows more information about public account mode. |
191 virtual void ShowPublicAccountInfo() = 0; | 197 virtual void ShowPublicAccountInfo() = 0; |
192 | 198 |
193 // Shows information about enterprise enrolled devices. | 199 // Shows information about enterprise enrolled devices. |
194 virtual void ShowEnterpriseInfo() = 0; | 200 virtual void ShowEnterpriseInfo() = 0; |
195 | 201 |
| 202 // Shows information about locally managed users. |
| 203 virtual void ShowLocallyManagedUserInfo() = 0; |
| 204 |
196 // Shows login UI to add other users to this session. | 205 // Shows login UI to add other users to this session. |
197 virtual void ShowUserLogin() = 0; | 206 virtual void ShowUserLogin() = 0; |
198 | 207 |
199 // Attempts to shut down the system. | 208 // Attempts to shut down the system. |
200 virtual void ShutDown() = 0; | 209 virtual void ShutDown() = 0; |
201 | 210 |
202 // Attempts to sign out the user. | 211 // Attempts to sign out the user. |
203 virtual void SignOut() = 0; | 212 virtual void SignOut() = 0; |
204 | 213 |
205 // Attempts to lock the screen. | 214 // Attempts to lock the screen. |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 // Speaks the given text if spoken feedback is enabled. | 372 // Speaks the given text if spoken feedback is enabled. |
364 virtual void MaybeSpeak(const std::string& utterance) const = 0; | 373 virtual void MaybeSpeak(const std::string& utterance) const = 0; |
365 | 374 |
366 // Creates a dummy delegate for testing. | 375 // Creates a dummy delegate for testing. |
367 static SystemTrayDelegate* CreateDummyDelegate(); | 376 static SystemTrayDelegate* CreateDummyDelegate(); |
368 }; | 377 }; |
369 | 378 |
370 } // namespace ash | 379 } // namespace ash |
371 | 380 |
372 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 381 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
OLD | NEW |