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 |
59 // Returns NetworkingConfigDelegate. May return nullptr. | 65 // Returns NetworkingConfigDelegate. May return nullptr. |
60 virtual NetworkingConfigDelegate* GetNetworkingConfigDelegate() const; | 66 virtual NetworkingConfigDelegate* GetNetworkingConfigDelegate() const; |
61 | 67 |
62 // Retrieves the session start time. Returns |false| if the time is not set. | 68 // Retrieves the session start time. Returns |false| if the time is not set. |
63 virtual bool GetSessionStartTime(base::TimeTicks* session_start_time); | 69 virtual bool GetSessionStartTime(base::TimeTicks* session_start_time); |
64 | 70 |
65 // Retrieves the session length limit. Returns |false| if no limit is set. | 71 // Retrieves the session length limit. Returns |false| if no limit is set. |
66 virtual bool GetSessionLengthLimit(base::TimeDelta* session_length_limit); | 72 virtual bool GetSessionLengthLimit(base::TimeDelta* session_length_limit); |
67 | 73 |
68 // The active user has been changed. This will be called when the UI is ready | 74 // The active user has been changed. This will be called when the UI is ready |
69 // to be switched to the new user. | 75 // to be switched to the new user. |
70 // Note: This will happen after SessionObserver::ActiveUserChanged fires. | 76 // Note: This will happen after SessionObserver::ActiveUserChanged fires. |
71 virtual void ActiveUserWasChanged(); | 77 virtual void ActiveUserWasChanged(); |
72 | 78 |
73 // Returns true when the Search key is configured to be treated as Caps Lock. | 79 // Returns true when the Search key is configured to be treated as Caps Lock. |
74 virtual bool IsSearchKeyMappedToCapsLock(); | 80 virtual bool IsSearchKeyMappedToCapsLock(); |
75 }; | 81 }; |
76 | 82 |
77 } // namespace ash | 83 } // namespace ash |
78 | 84 |
79 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 85 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
OLD | NEW |