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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 scoped_ptr<VolumeControlDelegate> delegate) = 0; | 307 scoped_ptr<VolumeControlDelegate> delegate) = 0; |
308 | 308 |
309 // Retrieves the session start time. Returns |false| if the time is not set. | 309 // Retrieves the session start time. Returns |false| if the time is not set. |
310 virtual bool GetSessionStartTime(base::TimeTicks* session_start_time) = 0; | 310 virtual bool GetSessionStartTime(base::TimeTicks* session_start_time) = 0; |
311 | 311 |
312 // Retrieves the session length limit. Returns |false| if no limit is set. | 312 // Retrieves the session length limit. Returns |false| if no limit is set. |
313 virtual bool GetSessionLengthLimit(base::TimeDelta* session_length_limit) = 0; | 313 virtual bool GetSessionLengthLimit(base::TimeDelta* session_length_limit) = 0; |
314 | 314 |
315 // Get the system tray menu size in pixels (dependent on the language). | 315 // Get the system tray menu size in pixels (dependent on the language). |
316 virtual int GetSystemTrayMenuWidth() = 0; | 316 virtual int GetSystemTrayMenuWidth() = 0; |
| 317 |
| 318 // The active user has been changed. This will be called when the UI is ready |
| 319 // to be switched to the new user. |
| 320 // Note: This will happen after SessionStateObserver::ActiveUserChanged fires. |
| 321 virtual void ActiveUserWasChanged() = 0; |
317 }; | 322 }; |
318 | 323 |
319 } // namespace ash | 324 } // namespace ash |
320 | 325 |
321 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 326 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
OLD | NEW |