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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 | 218 |
219 // Returns NetworkingConfigDelegate. May return nullptr. | 219 // Returns NetworkingConfigDelegate. May return nullptr. |
220 virtual NetworkingConfigDelegate* GetNetworkingConfigDelegate() const; | 220 virtual NetworkingConfigDelegate* GetNetworkingConfigDelegate() const; |
221 | 221 |
222 // Retrieves the session start time. Returns |false| if the time is not set. | 222 // Retrieves the session start time. Returns |false| if the time is not set. |
223 virtual bool GetSessionStartTime(base::TimeTicks* session_start_time); | 223 virtual bool GetSessionStartTime(base::TimeTicks* session_start_time); |
224 | 224 |
225 // Retrieves the session length limit. Returns |false| if no limit is set. | 225 // Retrieves the session length limit. Returns |false| if no limit is set. |
226 virtual bool GetSessionLengthLimit(base::TimeDelta* session_length_limit); | 226 virtual bool GetSessionLengthLimit(base::TimeDelta* session_length_limit); |
227 | 227 |
228 // Get the system tray menu size in pixels (dependent on the language). | |
229 virtual int GetSystemTrayMenuWidth(); | |
230 | |
231 // The active user has been changed. This will be called when the UI is ready | 228 // The active user has been changed. This will be called when the UI is ready |
232 // to be switched to the new user. | 229 // to be switched to the new user. |
233 // Note: This will happen after SessionStateObserver::ActiveUserChanged fires. | 230 // Note: This will happen after SessionStateObserver::ActiveUserChanged fires. |
234 virtual void ActiveUserWasChanged(); | 231 virtual void ActiveUserWasChanged(); |
235 | 232 |
236 // Returns true when the Search key is configured to be treated as Caps Lock. | 233 // Returns true when the Search key is configured to be treated as Caps Lock. |
237 virtual bool IsSearchKeyMappedToCapsLock(); | 234 virtual bool IsSearchKeyMappedToCapsLock(); |
238 | 235 |
239 // Adding observers that are notified when supervised info is being changed. | 236 // Adding observers that are notified when supervised info is being changed. |
240 virtual void AddCustodianInfoTrayObserver( | 237 virtual void AddCustodianInfoTrayObserver( |
(...skipping 20 matching lines...) Expand all Loading... |
261 // Creates a system tray item for display rotation lock. | 258 // Creates a system tray item for display rotation lock. |
262 // TODO(jamescook): Remove this when mus has support for display management | 259 // TODO(jamescook): Remove this when mus has support for display management |
263 // and we have a DisplayManager equivalent. See http://crbug.com/548429 | 260 // and we have a DisplayManager equivalent. See http://crbug.com/548429 |
264 virtual std::unique_ptr<SystemTrayItem> CreateRotationLockTrayItem( | 261 virtual std::unique_ptr<SystemTrayItem> CreateRotationLockTrayItem( |
265 SystemTray* tray); | 262 SystemTray* tray); |
266 }; | 263 }; |
267 | 264 |
268 } // namespace ash | 265 } // namespace ash |
269 | 266 |
270 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 267 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
OLD | NEW |