| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
| 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 49 |
| 50 // Returns a list of availble IMEs. | 50 // Returns a list of availble IMEs. |
| 51 virtual void GetAvailableIMEList(IMEInfoList* list); | 51 virtual void GetAvailableIMEList(IMEInfoList* list); |
| 52 | 52 |
| 53 // Returns a list of properties for the currently selected IME. | 53 // Returns a list of properties for the currently selected IME. |
| 54 virtual void GetCurrentIMEProperties(IMEPropertyInfoList* list); | 54 virtual void GetCurrentIMEProperties(IMEPropertyInfoList* list); |
| 55 | 55 |
| 56 // Returns a non-empty string if IMEs are managed by policy. | 56 // Returns a non-empty string if IMEs are managed by policy. |
| 57 virtual base::string16 GetIMEManagedMessage(); | 57 virtual base::string16 GetIMEManagedMessage(); |
| 58 | 58 |
| 59 // Switches to the selected input method. | |
| 60 virtual void SwitchIME(const std::string& ime_id); | |
| 61 | |
| 62 // Activates an IME property. | |
| 63 virtual void ActivateIMEProperty(const std::string& key); | |
| 64 | |
| 65 // Returns NetworkingConfigDelegate. May return nullptr. | 59 // Returns NetworkingConfigDelegate. May return nullptr. |
| 66 virtual NetworkingConfigDelegate* GetNetworkingConfigDelegate() const; | 60 virtual NetworkingConfigDelegate* GetNetworkingConfigDelegate() const; |
| 67 | 61 |
| 68 // Retrieves the session start time. Returns |false| if the time is not set. | 62 // Retrieves the session start time. Returns |false| if the time is not set. |
| 69 virtual bool GetSessionStartTime(base::TimeTicks* session_start_time); | 63 virtual bool GetSessionStartTime(base::TimeTicks* session_start_time); |
| 70 | 64 |
| 71 // Retrieves the session length limit. Returns |false| if no limit is set. | 65 // Retrieves the session length limit. Returns |false| if no limit is set. |
| 72 virtual bool GetSessionLengthLimit(base::TimeDelta* session_length_limit); | 66 virtual bool GetSessionLengthLimit(base::TimeDelta* session_length_limit); |
| 73 | 67 |
| 74 // The active user has been changed. This will be called when the UI is ready | 68 // The active user has been changed. This will be called when the UI is ready |
| 75 // to be switched to the new user. | 69 // to be switched to the new user. |
| 76 // Note: This will happen after SessionObserver::ActiveUserChanged fires. | 70 // Note: This will happen after SessionObserver::ActiveUserChanged fires. |
| 77 virtual void ActiveUserWasChanged(); | 71 virtual void ActiveUserWasChanged(); |
| 78 | 72 |
| 79 // Returns true when the Search key is configured to be treated as Caps Lock. | 73 // Returns true when the Search key is configured to be treated as Caps Lock. |
| 80 virtual bool IsSearchKeyMappedToCapsLock(); | 74 virtual bool IsSearchKeyMappedToCapsLock(); |
| 81 }; | 75 }; |
| 82 | 76 |
| 83 } // namespace ash | 77 } // namespace ash |
| 84 | 78 |
| 85 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 79 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
| OLD | NEW |