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

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

Issue 2041233005: Moves ash::user::LoginStatus to ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test Created 4 years, 6 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 <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
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
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_
OLDNEW
« no previous file with comments | « ash/system/chromeos/session/logout_button_tray.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