OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CHROMEOS_SESSION_SESSION_LENGTH_LIMIT_H_ | 5 #ifndef ASH_SYSTEM_CHROMEOS_SESSION_SESSION_LENGTH_LIMIT_H_ |
6 #define ASH_SYSTEM_CHROMEOS_SESSION_SESSION_LENGTH_LIMIT_H_ | 6 #define ASH_SYSTEM_CHROMEOS_SESSION_SESSION_LENGTH_LIMIT_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ash/system/chromeos/session/session_length_limit_observer.h" | 10 #include "ash/system/chromeos/session/session_length_limit_observer.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 enum LimitState { | 29 enum LimitState { |
30 LIMIT_NONE, | 30 LIMIT_NONE, |
31 LIMIT_SET, | 31 LIMIT_SET, |
32 LIMIT_EXPIRING_SOON | 32 LIMIT_EXPIRING_SOON |
33 }; | 33 }; |
34 | 34 |
35 explicit TraySessionLengthLimit(SystemTray* system_tray); | 35 explicit TraySessionLengthLimit(SystemTray* system_tray); |
36 ~TraySessionLengthLimit() override; | 36 ~TraySessionLengthLimit() override; |
37 | 37 |
38 // SystemTrayItem: | 38 // SystemTrayItem: |
39 views::View* CreateDefaultView(user::LoginStatus status) override; | 39 views::View* CreateDefaultView(LoginStatus status) override; |
40 void DestroyDefaultView() override; | 40 void DestroyDefaultView() override; |
41 | 41 |
42 // SessionLengthLimitObserver: | 42 // SessionLengthLimitObserver: |
43 void OnSessionStartTimeChanged() override; | 43 void OnSessionStartTimeChanged() override; |
44 void OnSessionLengthLimitChanged() override; | 44 void OnSessionLengthLimitChanged() override; |
45 | 45 |
46 private: | 46 private: |
47 friend class test::TraySessionLengthLimitTest; | 47 friend class test::TraySessionLengthLimitTest; |
48 | 48 |
49 static const char kNotificationId[]; | 49 static const char kNotificationId[]; |
(...skipping 21 matching lines...) Expand all Loading... |
71 | 71 |
72 LabelTrayView* tray_bubble_view_; | 72 LabelTrayView* tray_bubble_view_; |
73 std::unique_ptr<base::RepeatingTimer> timer_; | 73 std::unique_ptr<base::RepeatingTimer> timer_; |
74 | 74 |
75 DISALLOW_COPY_AND_ASSIGN(TraySessionLengthLimit); | 75 DISALLOW_COPY_AND_ASSIGN(TraySessionLengthLimit); |
76 }; | 76 }; |
77 | 77 |
78 } // namespace ash | 78 } // namespace ash |
79 | 79 |
80 #endif // ASH_SYSTEM_CHROMEOS_SESSION_SESSION_LENGTH_LIMIT_H_ | 80 #endif // ASH_SYSTEM_CHROMEOS_SESSION_SESSION_LENGTH_LIMIT_H_ |
OLD | NEW |