Chromium Code Reviews| 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 CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 122 // |instance|. | 122 // |instance|. |
| 123 virtual void AddInputMethodExtension(const std::string& id, | 123 virtual void AddInputMethodExtension(const std::string& id, |
| 124 const std::string& name, | 124 const std::string& name, |
| 125 const std::vector<std::string>& layouts, | 125 const std::vector<std::string>& layouts, |
| 126 const std::string& language, | 126 const std::string& language, |
| 127 InputMethodEngine* instance) = 0; | 127 InputMethodEngine* instance) = 0; |
| 128 | 128 |
| 129 // Removes an input method extension. | 129 // Removes an input method extension. |
| 130 virtual void RemoveInputMethodExtension(const std::string& id) = 0; | 130 virtual void RemoveInputMethodExtension(const std::string& id) = 0; |
| 131 | 131 |
| 132 // Return a list of descriptors for all Input Method Extensions. | |
|
Seigo Nonaka
2012/09/13 18:25:21
nit: Returns
Zachary Kuznia
2012/09/19 10:15:50
Done.
| |
| 133 virtual void GetInputMethodExtensions(InputMethodDescriptors* result) = 0; | |
| 134 | |
| 135 // Sets the list of extension IME ids which should not be enabled. | |
| 136 virtual void SetFilteredExtensionImes(std::vector<std::string>* ids) = 0; | |
| 137 | |
| 132 // Gets the descriptor of the input method which is currently selected. | 138 // Gets the descriptor of the input method which is currently selected. |
| 133 virtual InputMethodDescriptor GetCurrentInputMethod() const = 0; | 139 virtual InputMethodDescriptor GetCurrentInputMethod() const = 0; |
| 134 | 140 |
| 135 // Gets the list of input method properties. The list could be empty(). | 141 // Gets the list of input method properties. The list could be empty(). |
| 136 virtual InputMethodPropertyList GetCurrentInputMethodProperties() const = 0; | 142 virtual InputMethodPropertyList GetCurrentInputMethodProperties() const = 0; |
| 137 | 143 |
| 138 // Returns an X keyboard object which could be used to change the current XKB | 144 // Returns an X keyboard object which could be used to change the current XKB |
| 139 // layout, change the caps lock status, and set the auto repeat rate/interval. | 145 // layout, change the caps lock status, and set the auto repeat rate/interval. |
| 140 virtual XKeyboard* GetXKeyboard() = 0; | 146 virtual XKeyboard* GetXKeyboard() = 0; |
| 141 | 147 |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 168 | 174 |
| 169 // Gets the global instance. Initialize() or InitializeForTesting() must be | 175 // Gets the global instance. Initialize() or InitializeForTesting() must be |
| 170 // called first. | 176 // called first. |
| 171 static InputMethodManager* GetInstance(); | 177 static InputMethodManager* GetInstance(); |
| 172 }; | 178 }; |
| 173 | 179 |
| 174 } // namespace input_method | 180 } // namespace input_method |
| 175 } // namespace chromeos | 181 } // namespace chromeos |
| 176 | 182 |
| 177 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_ | 183 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_ |
| OLD | NEW |