OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_ENGINE_INTERFACE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_INTERFACE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_INTERFACE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_INTERFACE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 MouseButtonEvent button) = 0; | 164 MouseButtonEvent button) = 0; |
165 | 165 |
166 // Called when a menu item for this IME is interacted with. | 166 // Called when a menu item for this IME is interacted with. |
167 virtual void OnMenuItemActivated(const std::string& engine_id, | 167 virtual void OnMenuItemActivated(const std::string& engine_id, |
168 const std::string& menu_id) = 0; | 168 const std::string& menu_id) = 0; |
169 | 169 |
170 // Called when a surrounding text is changed. | 170 // Called when a surrounding text is changed. |
171 virtual void OnSurroundingTextChanged(const std::string& engine_id, | 171 virtual void OnSurroundingTextChanged(const std::string& engine_id, |
172 const std::string& text, | 172 const std::string& text, |
173 int cursor_pos, | 173 int cursor_pos, |
174 int anchor_pos) = 0; | 174 int anchor_pos, |
| 175 int offset_pos) = 0; |
175 | 176 |
176 // Called when composition bounds are changed. | 177 // Called when composition bounds are changed. |
177 virtual void OnCompositionBoundsChanged( | 178 virtual void OnCompositionBoundsChanged( |
178 const std::vector<gfx::Rect>& bounds) = 0; | 179 const std::vector<gfx::Rect>& bounds) = 0; |
179 | 180 |
180 // Called when Chrome terminates on-going text input session. | 181 // Called when Chrome terminates on-going text input session. |
181 virtual void OnReset(const std::string& engine_id) = 0; | 182 virtual void OnReset(const std::string& engine_id) = 0; |
182 }; | 183 }; |
183 | 184 |
184 ~InputMethodEngineInterface() override {} | 185 ~InputMethodEngineInterface() override {} |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 size_t number_of_chars, | 253 size_t number_of_chars, |
253 std::string* error) = 0; | 254 std::string* error) = 0; |
254 | 255 |
255 // Hides the input view window (from API call). | 256 // Hides the input view window (from API call). |
256 virtual void HideInputView() = 0; | 257 virtual void HideInputView() = 0; |
257 }; | 258 }; |
258 | 259 |
259 } // namespace chromeos | 260 } // namespace chromeos |
260 | 261 |
261 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_INTERFACE_H_ | 262 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_INTERFACE_H_ |
OLD | NEW |