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_ENGINE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 const std::string& text, | 146 const std::string& text, |
147 int cursor_pos, | 147 int cursor_pos, |
148 int anchor_pos) = 0; | 148 int anchor_pos) = 0; |
149 | 149 |
150 // Called when Chrome terminates on-going text input session. | 150 // Called when Chrome terminates on-going text input session. |
151 virtual void OnReset(const std::string& engine_id) = 0; | 151 virtual void OnReset(const std::string& engine_id) = 0; |
152 }; | 152 }; |
153 | 153 |
154 virtual ~InputMethodEngine() {} | 154 virtual ~InputMethodEngine() {} |
155 | 155 |
| 156 // Called when the input metho initialization is done. |
| 157 // This function is called from private API. |
| 158 // TODO(nona): Remove this function. |
| 159 virtual void StartIme() = 0; |
| 160 |
156 // Set the current composition and associated properties. | 161 // Set the current composition and associated properties. |
157 virtual bool SetComposition(int context_id, | 162 virtual bool SetComposition(int context_id, |
158 const char* text, | 163 const char* text, |
159 int selection_start, | 164 int selection_start, |
160 int selection_end, | 165 int selection_end, |
161 int cursor, | 166 int cursor, |
162 const std::vector<SegmentInfo>& segments, | 167 const std::vector<SegmentInfo>& segments, |
163 std::string* error) = 0; | 168 std::string* error) = 0; |
164 | 169 |
165 // Clear the current composition. | 170 // Clear the current composition. |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 const char* description, | 240 const char* description, |
236 const char* language, | 241 const char* language, |
237 const std::vector<std::string>& layouts, | 242 const std::vector<std::string>& layouts, |
238 const GURL& options_page, | 243 const GURL& options_page, |
239 std::string* error); | 244 std::string* error); |
240 }; | 245 }; |
241 | 246 |
242 } // namespace chromeos | 247 } // namespace chromeos |
243 | 248 |
244 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_H_ | 249 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_H_ |
OLD | NEW |