| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |