| 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 14 matching lines...) Expand all Loading... |
| 25 // Clears the session length limit. | 25 // Clears the session length limit. |
| 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; | |
| 36 bool GetSessionStartTime(base::TimeTicks* session_start_time) override; | 35 bool GetSessionStartTime(base::TimeTicks* session_start_time) override; |
| 37 bool GetSessionLengthLimit(base::TimeDelta* session_length_limit) override; | 36 bool GetSessionLengthLimit(base::TimeDelta* session_length_limit) override; |
| 38 void GetCurrentIME(IMEInfo* info) override; | 37 void GetCurrentIME(IMEInfo* info) override; |
| 39 void GetAvailableIMEList(IMEInfoList* list) override; | 38 void GetAvailableIMEList(IMEInfoList* list) override; |
| 40 | 39 |
| 41 private: | 40 private: |
| 42 base::TimeDelta session_length_limit_; | 41 base::TimeDelta session_length_limit_; |
| 43 bool session_length_limit_set_ = false; | 42 bool session_length_limit_set_ = false; |
| 44 IMEInfo current_ime_; | 43 IMEInfo current_ime_; |
| 45 IMEInfoList ime_list_; | 44 IMEInfoList ime_list_; |
| 46 | 45 |
| 47 DISALLOW_COPY_AND_ASSIGN(TestSystemTrayDelegate); | 46 DISALLOW_COPY_AND_ASSIGN(TestSystemTrayDelegate); |
| 48 }; | 47 }; |
| 49 | 48 |
| 50 } // namespace test | 49 } // namespace test |
| 51 } // namespace ash | 50 } // namespace ash |
| 52 | 51 |
| 53 #endif // ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_ | 52 #endif // ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_ |
| OLD | NEW |