| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 int cursor_pos, | 170 int cursor_pos, |
| 171 int anchor_pos) = 0; | 171 int anchor_pos) = 0; |
| 172 | 172 |
| 173 // Called when composition bounds are changed. | 173 // Called when composition bounds are changed. |
| 174 virtual void OnCompositionBoundsChanged(const gfx::Rect& bounds) = 0; | 174 virtual void OnCompositionBoundsChanged(const gfx::Rect& bounds) = 0; |
| 175 | 175 |
| 176 // Called when Chrome terminates on-going text input session. | 176 // Called when Chrome terminates on-going text input session. |
| 177 virtual void OnReset(const std::string& engine_id) = 0; | 177 virtual void OnReset(const std::string& engine_id) = 0; |
| 178 }; | 178 }; |
| 179 | 179 |
| 180 virtual ~InputMethodEngineInterface() {} | 180 ~InputMethodEngineInterface() override {} |
| 181 | 181 |
| 182 // Set the current composition and associated properties. | 182 // Set the current composition and associated properties. |
| 183 virtual bool SetComposition(int context_id, | 183 virtual bool SetComposition(int context_id, |
| 184 const char* text, | 184 const char* text, |
| 185 int selection_start, | 185 int selection_start, |
| 186 int selection_end, | 186 int selection_end, |
| 187 int cursor, | 187 int cursor, |
| 188 const std::vector<SegmentInfo>& segments, | 188 const std::vector<SegmentInfo>& segments, |
| 189 std::string* error) = 0; | 189 std::string* error) = 0; |
| 190 | 190 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 size_t number_of_chars, | 248 size_t number_of_chars, |
| 249 std::string* error) = 0; | 249 std::string* error) = 0; |
| 250 | 250 |
| 251 // Hides the input view window (from API call). | 251 // Hides the input view window (from API call). |
| 252 virtual void HideInputView() = 0; | 252 virtual void HideInputView() = 0; |
| 253 }; | 253 }; |
| 254 | 254 |
| 255 } // namespace chromeos | 255 } // namespace chromeos |
| 256 | 256 |
| 257 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_INTERFACE_H_ | 257 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_INTERFACE_H_ |
| OLD | NEW |