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 |
228 // The active user has been changed. This will be called when the UI is ready | 231 // The active user has been changed. This will be called when the UI is ready |
229 // to be switched to the new user. | 232 // to be switched to the new user. |
230 // Note: This will happen after SessionStateObserver::ActiveUserChanged fires. | 233 // Note: This will happen after SessionStateObserver::ActiveUserChanged fires. |
231 virtual void ActiveUserWasChanged(); | 234 virtual void ActiveUserWasChanged(); |
232 | 235 |
233 // Returns true when the Search key is configured to be treated as Caps Lock. | 236 // Returns true when the Search key is configured to be treated as Caps Lock. |
234 virtual bool IsSearchKeyMappedToCapsLock(); | 237 virtual bool IsSearchKeyMappedToCapsLock(); |
235 | 238 |
236 // Adding observers that are notified when supervised info is being changed. | 239 // Adding observers that are notified when supervised info is being changed. |
237 virtual void AddCustodianInfoTrayObserver( | 240 virtual void AddCustodianInfoTrayObserver( |
(...skipping 20 matching lines...) Expand all Loading... |
258 // Creates a system tray item for display rotation lock. | 261 // Creates a system tray item for display rotation lock. |
259 // TODO(jamescook): Remove this when mus has support for display management | 262 // TODO(jamescook): Remove this when mus has support for display management |
260 // and we have a DisplayManager equivalent. See http://crbug.com/548429 | 263 // and we have a DisplayManager equivalent. See http://crbug.com/548429 |
261 virtual std::unique_ptr<SystemTrayItem> CreateRotationLockTrayItem( | 264 virtual std::unique_ptr<SystemTrayItem> CreateRotationLockTrayItem( |
262 SystemTray* tray); | 265 SystemTray* tray); |
263 }; | 266 }; |
264 | 267 |
265 } // namespace ash | 268 } // namespace ash |
266 | 269 |
267 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 270 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
OLD | NEW |