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_SESSION_LENGTH_LIMIT_TRAY_SESSION_LENGTH_LIMIT_H_ | 5 #ifndef ASH_SYSTEM_SESSION_LENGTH_LIMIT_TRAY_SESSION_LENGTH_LIMIT_H_ |
6 #define ASH_SYSTEM_SESSION_LENGTH_LIMIT_TRAY_SESSION_LENGTH_LIMIT_H_ | 6 #define ASH_SYSTEM_SESSION_LENGTH_LIMIT_TRAY_SESSION_LENGTH_LIMIT_H_ |
7 | 7 |
8 #include "ash/system/session_length_limit/session_length_limit_observer.h" | 8 #include "ash/system/session_length_limit/session_length_limit_observer.h" |
9 #include "ash/system/tray/system_tray_item.h" | 9 #include "ash/system/tray/system_tray_item.h" |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/time.h" | 13 #include "base/time/time.h" |
14 #include "base/timer.h" | 14 #include "base/timer/timer.h" |
15 | 15 |
16 namespace ash { | 16 namespace ash { |
17 namespace internal { | 17 namespace internal { |
18 | 18 |
19 namespace tray { | 19 namespace tray { |
20 class RemainingSessionTimeNotificationView; | 20 class RemainingSessionTimeNotificationView; |
21 class RemainingSessionTimeTrayView; | 21 class RemainingSessionTimeTrayView; |
22 } | 22 } |
23 | 23 |
24 // Adds a countdown timer to the system tray if the session length is limited. | 24 // Adds a countdown timer to the system tray if the session length is limited. |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 base::TimeDelta remaining_session_time_; | 63 base::TimeDelta remaining_session_time_; |
64 scoped_ptr<base::RepeatingTimer<TraySessionLengthLimit> > timer_; | 64 scoped_ptr<base::RepeatingTimer<TraySessionLengthLimit> > timer_; |
65 | 65 |
66 DISALLOW_COPY_AND_ASSIGN(TraySessionLengthLimit); | 66 DISALLOW_COPY_AND_ASSIGN(TraySessionLengthLimit); |
67 }; | 67 }; |
68 | 68 |
69 } // namespace internal | 69 } // namespace internal |
70 } // namespace ash | 70 } // namespace ash |
71 | 71 |
72 #endif // ASH_SYSTEM_SESSION_LENGTH_LIMIT_TRAY_SESSION_LENGTH_LIMIT_H_ | 72 #endif // ASH_SYSTEM_SESSION_LENGTH_LIMIT_TRAY_SESSION_LENGTH_LIMIT_H_ |
OLD | NEW |