Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: ash/system/chromeos/session/tray_session_length_limit.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "ash/system/chromeos/session/session_length_limit_observer.h" 8 #include "ash/system/chromeos/session/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"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 base::string16 ComposeTrayBubbleMessage() const; 62 base::string16 ComposeTrayBubbleMessage() const;
63 63
64 base::TimeTicks session_start_time_; 64 base::TimeTicks session_start_time_;
65 base::TimeDelta time_limit_; 65 base::TimeDelta time_limit_;
66 base::TimeDelta remaining_session_time_; 66 base::TimeDelta remaining_session_time_;
67 67
68 LimitState limit_state_; // Current state. 68 LimitState limit_state_; // Current state.
69 LimitState last_limit_state_; // State of last notification update. 69 LimitState last_limit_state_; // State of last notification update.
70 70
71 LabelTrayView* tray_bubble_view_; 71 LabelTrayView* tray_bubble_view_;
72 scoped_ptr<base::RepeatingTimer<TraySessionLengthLimit> > timer_; 72 scoped_ptr<base::RepeatingTimer> timer_;
73 73
74 DISALLOW_COPY_AND_ASSIGN(TraySessionLengthLimit); 74 DISALLOW_COPY_AND_ASSIGN(TraySessionLengthLimit);
75 }; 75 };
76 76
77 } // namespace ash 77 } // namespace ash
78 78
79 #endif // ASH_SYSTEM_CHROMEOS_SESSION_SESSION_LENGTH_LIMIT_H_ 79 #endif // ASH_SYSTEM_CHROMEOS_SESSION_SESSION_LENGTH_LIMIT_H_
OLDNEW
« no previous file with comments | « ash/system/chromeos/session/logout_confirmation_dialog.h ('k') | ash/system/chromeos/session/tray_session_length_limit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698