| 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/ime_info.h" | 8 #include "ash/system/tray/ime_info.h" |
| 9 #include "ash/system/tray/system_tray_delegate.h" | 9 #include "ash/system/tray/system_tray_delegate.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 void ClearSessionLengthLimit(); | 26 void ClearSessionLengthLimit(); |
| 27 | 27 |
| 28 // Sets the IME info. | 28 // Sets the IME info. |
| 29 void SetCurrentIME(const IMEInfo& info); | 29 void SetCurrentIME(const IMEInfo& info); |
| 30 | 30 |
| 31 // Sets the list of available IMEs. | 31 // Sets the list of available IMEs. |
| 32 void SetAvailableIMEList(const IMEInfoList& list); | 32 void SetAvailableIMEList(const IMEInfoList& list); |
| 33 | 33 |
| 34 // SystemTrayDelegate: | 34 // SystemTrayDelegate: |
| 35 LoginStatus GetUserLoginStatus() const override; | 35 LoginStatus GetUserLoginStatus() const override; |
| 36 std::string GetSupervisedUserManager() const override; | |
| 37 bool GetSessionStartTime(base::TimeTicks* session_start_time) override; | 36 bool GetSessionStartTime(base::TimeTicks* session_start_time) override; |
| 38 bool GetSessionLengthLimit(base::TimeDelta* session_length_limit) override; | 37 bool GetSessionLengthLimit(base::TimeDelta* session_length_limit) override; |
| 39 void GetCurrentIME(IMEInfo* info) override; | 38 void GetCurrentIME(IMEInfo* info) override; |
| 40 void GetAvailableIMEList(IMEInfoList* list) override; | 39 void GetAvailableIMEList(IMEInfoList* list) override; |
| 41 | 40 |
| 42 private: | 41 private: |
| 43 base::TimeDelta session_length_limit_; | 42 base::TimeDelta session_length_limit_; |
| 44 bool session_length_limit_set_ = false; | 43 bool session_length_limit_set_ = false; |
| 45 IMEInfo current_ime_; | 44 IMEInfo current_ime_; |
| 46 IMEInfoList ime_list_; | 45 IMEInfoList ime_list_; |
| 47 | 46 |
| 48 DISALLOW_COPY_AND_ASSIGN(TestSystemTrayDelegate); | 47 DISALLOW_COPY_AND_ASSIGN(TestSystemTrayDelegate); |
| 49 }; | 48 }; |
| 50 | 49 |
| 51 } // namespace test | 50 } // namespace test |
| 52 } // namespace ash | 51 } // namespace ash |
| 53 | 52 |
| 54 #endif // ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_ | 53 #endif // ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_ |
| OLD | NEW |