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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 // Returns the display email of the user that manages the current supervised | 112 // Returns the display email of the user that manages the current supervised |
113 // user. | 113 // user. |
114 virtual const std::string GetSupervisedUserManager() const = 0; | 114 virtual const std::string GetSupervisedUserManager() const = 0; |
115 | 115 |
116 // Returns the name of the user that manages the current supervised user. | 116 // Returns the name of the user that manages the current supervised user. |
117 virtual const base::string16 GetSupervisedUserManagerName() const = 0; | 117 virtual const base::string16 GetSupervisedUserManagerName() const = 0; |
118 | 118 |
119 // Returns the notification for supervised users. | 119 // Returns the notification for supervised users. |
120 virtual const base::string16 GetSupervisedUserMessage() const = 0; | 120 virtual const base::string16 GetSupervisedUserMessage() const = 0; |
121 | 121 |
| 122 // Returns true if the current user is supervised. |
| 123 virtual bool IsUserSupervised() const = 0; |
| 124 |
122 // Returns whether a system upgrade is available. | 125 // Returns whether a system upgrade is available. |
123 virtual bool SystemShouldUpgrade() const = 0; | 126 virtual bool SystemShouldUpgrade() const = 0; |
124 | 127 |
125 // Returns the desired hour clock type. | 128 // Returns the desired hour clock type. |
126 virtual base::HourClockType GetHourClockType() const = 0; | 129 virtual base::HourClockType GetHourClockType() const = 0; |
127 | 130 |
128 // Shows settings. | 131 // Shows settings. |
129 virtual void ShowSettings() = 0; | 132 virtual void ShowSettings() = 0; |
130 | 133 |
131 // Returns true if settings menu item should appear. | 134 // Returns true if settings menu item should appear. |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 virtual bool IsSearchKeyMappedToCapsLock() = 0; | 299 virtual bool IsSearchKeyMappedToCapsLock() = 0; |
297 | 300 |
298 // Returns accounts delegate for given user. | 301 // Returns accounts delegate for given user. |
299 virtual tray::UserAccountsDelegate* GetUserAccountsDelegate( | 302 virtual tray::UserAccountsDelegate* GetUserAccountsDelegate( |
300 const std::string& user_id) = 0; | 303 const std::string& user_id) = 0; |
301 }; | 304 }; |
302 | 305 |
303 } // namespace ash | 306 } // namespace ash |
304 | 307 |
305 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 308 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
OLD | NEW |