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

Side by Side Diff: ash/test/test_system_tray_delegate.h

Issue 811033002: Add device policy to disallow shutdown - ash UI modifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reduced scope of CL (ash only now, removed webui changes) Created 5 years, 11 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_ 5 #ifndef ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_
6 #define ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_ 6 #define ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_
7 7
8 #include "ash/system/tray/default_system_tray_delegate.h" 8 #include "ash/system/tray/default_system_tray_delegate.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 10
(...skipping 29 matching lines...) Expand all
40 40
41 // Clears the session length limit. 41 // Clears the session length limit.
42 void ClearSessionLengthLimit(); 42 void ClearSessionLengthLimit();
43 43
44 // Overridden from SystemTrayDelegate: 44 // Overridden from SystemTrayDelegate:
45 user::LoginStatus GetUserLoginStatus() const override; 45 user::LoginStatus GetUserLoginStatus() const override;
46 bool IsUserSupervised() const override; 46 bool IsUserSupervised() const override;
47 bool ShouldShowDisplayNotification() override; 47 bool ShouldShowDisplayNotification() override;
48 bool GetSessionStartTime(base::TimeTicks* session_start_time) override; 48 bool GetSessionStartTime(base::TimeTicks* session_start_time) override;
49 bool GetSessionLengthLimit(base::TimeDelta* session_length_limit) override; 49 bool GetSessionLengthLimit(base::TimeDelta* session_length_limit) override;
50 void ShutDown() override;
51 void SignOut() override; 50 void SignOut() override;
52 51
53 private: 52 private:
54 bool should_show_display_notification_; 53 bool should_show_display_notification_;
55 user::LoginStatus login_status_; 54 user::LoginStatus login_status_;
56 base::TimeDelta session_length_limit_; 55 base::TimeDelta session_length_limit_;
57 bool session_length_limit_set_; 56 bool session_length_limit_set_;
58 57
59 DISALLOW_COPY_AND_ASSIGN(TestSystemTrayDelegate); 58 DISALLOW_COPY_AND_ASSIGN(TestSystemTrayDelegate);
60 }; 59 };
61 60
62 } // namespace test 61 } // namespace test
63 } // namespace ash 62 } // namespace ash
64 63
65 #endif // ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_ 64 #endif // ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698