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

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

Issue 224113005: Eliminate ash::internal namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
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"
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/time.h" 13 #include "base/time/time.h"
14 #include "base/timer/timer.h" 14 #include "base/timer/timer.h"
15 15
16 namespace ash { 16 namespace ash {
17
18 namespace test { 17 namespace test {
19 class TraySessionLengthLimitTest; 18 class TraySessionLengthLimitTest;
20 } 19 }
21 20
22 namespace internal {
23
24 namespace tray { 21 namespace tray {
25 class RemainingSessionTimeTrayView; 22 class RemainingSessionTimeTrayView;
26 } 23 }
27 24
28 // Adds a countdown timer to the system tray if the session length is limited. 25 // Adds a countdown timer to the system tray if the session length is limited.
29 class ASH_EXPORT TraySessionLengthLimit : public SystemTrayItem, 26 class ASH_EXPORT TraySessionLengthLimit : public SystemTrayItem,
30 public SessionLengthLimitObserver { 27 public SessionLengthLimitObserver {
31 public: 28 public:
32 enum LimitState { 29 enum LimitState {
33 LIMIT_NONE, 30 LIMIT_NONE,
(...skipping 30 matching lines...) Expand all
64 61
65 LimitState limit_state_; 62 LimitState limit_state_;
66 base::TimeTicks session_start_time_; 63 base::TimeTicks session_start_time_;
67 base::TimeDelta limit_; 64 base::TimeDelta limit_;
68 base::TimeDelta remaining_session_time_; 65 base::TimeDelta remaining_session_time_;
69 scoped_ptr<base::RepeatingTimer<TraySessionLengthLimit> > timer_; 66 scoped_ptr<base::RepeatingTimer<TraySessionLengthLimit> > timer_;
70 67
71 DISALLOW_COPY_AND_ASSIGN(TraySessionLengthLimit); 68 DISALLOW_COPY_AND_ASSIGN(TraySessionLengthLimit);
72 }; 69 };
73 70
74 } // namespace internal
75 } // namespace ash 71 } // namespace ash
76 72
77 #endif // ASH_SYSTEM_CHROMEOS_SESSION_SESSION_LENGTH_LIMIT_H_ 73 #endif // ASH_SYSTEM_CHROMEOS_SESSION_SESSION_LENGTH_LIMIT_H_
OLDNEW
« no previous file with comments | « ash/system/chromeos/session/logout_confirmation_dialog.cc ('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