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 virtual InputMethodDescriptors* GetInputMethodExtensions() = 0; | |
|
Seigo Nonaka
2012/09/12 16:50:37
Please add function comments.
Zachary Kuznia
2012/09/13 09:28:32
Done.
| |
| 133 | |
| 134 virtual void SetFilteredExtensionImes(std::vector<std::string>& ids) = 0; | |
|
Seigo Nonaka
2012/09/12 16:50:37
ditto and please use pointer instead. http://googl
Zachary Kuznia
2012/09/13 09:28:32
Done.
| |
| 135 | |
| 132 // Gets the descriptor of the input method which is currently selected. | 136 // Gets the descriptor of the input method which is currently selected. |
| 133 virtual InputMethodDescriptor GetCurrentInputMethod() const = 0; | 137 virtual InputMethodDescriptor GetCurrentInputMethod() const = 0; |
| 134 | 138 |
| 135 // Gets the list of input method properties. The list could be empty(). | 139 // Gets the list of input method properties. The list could be empty(). |
| 136 virtual InputMethodPropertyList GetCurrentInputMethodProperties() const = 0; | 140 virtual InputMethodPropertyList GetCurrentInputMethodProperties() const = 0; |
| 137 | 141 |
| 138 // Returns an X keyboard object which could be used to change the current XKB | 142 // 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. | 143 // layout, change the caps lock status, and set the auto repeat rate/interval. |
| 140 virtual XKeyboard* GetXKeyboard() = 0; | 144 virtual XKeyboard* GetXKeyboard() = 0; |
| 141 | 145 |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 168 | 172 |
| 169 // Gets the global instance. Initialize() or InitializeForTesting() must be | 173 // Gets the global instance. Initialize() or InitializeForTesting() must be |
| 170 // called first. | 174 // called first. |
| 171 static InputMethodManager* GetInstance(); | 175 static InputMethodManager* GetInstance(); |
| 172 }; | 176 }; |
| 173 | 177 |
| 174 } // namespace input_method | 178 } // namespace input_method |
| 175 } // namespace chromeos | 179 } // namespace chromeos |
| 176 | 180 |
| 177 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_ | 181 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_H_ |
| OLD | NEW |