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_LOGOUT_BUTTON_LOGOUT_BUTTON_OBSERVER_H_ | 5 #ifndef ASH_SYSTEM_LOGOUT_BUTTON_LOGOUT_BUTTON_OBSERVER_H_ |
6 #define ASH_SYSTEM_LOGOUT_BUTTON_LOGOUT_BUTTON_OBSERVER_H_ | 6 #define ASH_SYSTEM_LOGOUT_BUTTON_LOGOUT_BUTTON_OBSERVER_H_ |
7 | 7 |
| 8 #include "ash/ash_export.h" |
| 9 #include "base/time/time.h" |
| 10 |
8 namespace ash { | 11 namespace ash { |
9 | 12 |
10 // Observer for the value of the kShowLogoutButtonInTray pref that determines | 13 class ASH_EXPORT LogoutButtonObserver { |
11 // whether a logout button should be shown in the system tray during a session. | |
12 class LogoutButtonObserver { | |
13 public: | 14 public: |
14 virtual ~LogoutButtonObserver() {} | 15 virtual ~LogoutButtonObserver() {} |
15 | 16 |
16 // Called when the value of the kShowLogoutButtonInTray pref changes. | 17 // Called when the value of the kShowLogoutButtonInTray pref changes, which |
| 18 // determines whether a logout button should be shown in the system tray |
| 19 // during a session. |
17 virtual void OnShowLogoutButtonInTrayChanged(bool show) = 0; | 20 virtual void OnShowLogoutButtonInTrayChanged(bool show) = 0; |
| 21 |
| 22 // Called when the value of the kLogoutDialogDurationMs pref changes. |
| 23 // |duration| is the duration for which the logout confirmation dialog is |
| 24 // shown after the user has pressed the logout button. |
| 25 virtual void OnLogoutDialogDurationChanged(base::TimeDelta duration) = 0; |
18 }; | 26 }; |
19 | 27 |
20 } // namespace ash | 28 } // namespace ash |
21 | 29 |
22 #endif // ASH_SYSTEM_LOGOUT_BUTTON_LOGOUT_BUTTON_OBSERVER_H_ | 30 #endif // ASH_SYSTEM_LOGOUT_BUTTON_LOGOUT_BUTTON_OBSERVER_H_ |
OLD | NEW |