| 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 CHROMEOS_IME_INPUT_METHOD_MANAGER_H_ | 5 #ifndef CHROMEOS_IME_INPUT_METHOD_MANAGER_H_ |
| 6 #define CHROMEOS_IME_INPUT_METHOD_MANAGER_H_ | 6 #define CHROMEOS_IME_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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 | 150 |
| 151 // Sets the list of extension IME ids which should be enabled. | 151 // Sets the list of extension IME ids which should be enabled. |
| 152 virtual void SetEnabledExtensionImes(std::vector<std::string>* ids) = 0; | 152 virtual void SetEnabledExtensionImes(std::vector<std::string>* ids) = 0; |
| 153 | 153 |
| 154 // Sets current input method to login default (first owners, then hardware). | 154 // Sets current input method to login default (first owners, then hardware). |
| 155 virtual void SetInputMethodLoginDefault() = 0; | 155 virtual void SetInputMethodLoginDefault() = 0; |
| 156 | 156 |
| 157 // Gets the descriptor of the input method which is currently selected. | 157 // Gets the descriptor of the input method which is currently selected. |
| 158 virtual InputMethodDescriptor GetCurrentInputMethod() const = 0; | 158 virtual InputMethodDescriptor GetCurrentInputMethod() const = 0; |
| 159 | 159 |
| 160 virtual bool IsISOLevel5ShiftUsedByCurrentInputMethod() const = 0; |
| 161 |
| 162 virtual bool IsAltGrUsedByCurrentInputMethod() const = 0; |
| 163 |
| 160 // Returns an X keyboard object which could be used to change the current XKB | 164 // Returns an X keyboard object which could be used to change the current XKB |
| 161 // layout, change the caps lock status, and set the auto repeat rate/interval. | 165 // layout, change the caps lock status, and set the auto repeat rate/interval. |
| 162 virtual XKeyboard* GetXKeyboard() = 0; | 166 virtual XKeyboard* GetXKeyboard() = 0; |
| 163 | 167 |
| 164 // Returns an InputMethodUtil object. | 168 // Returns an InputMethodUtil object. |
| 165 virtual InputMethodUtil* GetInputMethodUtil() = 0; | 169 virtual InputMethodUtil* GetInputMethodUtil() = 0; |
| 166 | 170 |
| 167 // Returns a ComponentExtentionIMEManager object. | 171 // Returns a ComponentExtentionIMEManager object. |
| 168 virtual ComponentExtensionIMEManager* GetComponentExtensionIMEManager() = 0; | 172 virtual ComponentExtensionIMEManager* GetComponentExtensionIMEManager() = 0; |
| 169 | 173 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 185 // TODO(shuchen): Remove this function after few milestones are passed. | 189 // TODO(shuchen): Remove this function after few milestones are passed. |
| 186 // See: http://crbug.com/345604 | 190 // See: http://crbug.com/345604 |
| 187 virtual bool MigrateXkbInputMethods( | 191 virtual bool MigrateXkbInputMethods( |
| 188 std::vector<std::string>* input_method_ids) = 0; | 192 std::vector<std::string>* input_method_ids) = 0; |
| 189 }; | 193 }; |
| 190 | 194 |
| 191 } // namespace input_method | 195 } // namespace input_method |
| 192 } // namespace chromeos | 196 } // namespace chromeos |
| 193 | 197 |
| 194 #endif // CHROMEOS_IME_INPUT_METHOD_MANAGER_H_ | 198 #endif // CHROMEOS_IME_INPUT_METHOD_MANAGER_H_ |
| OLD | NEW |