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 UI_BASE_IME_INPUT_METHOD_IBUS_H_ | 5 #ifndef UI_BASE_IME_INPUT_METHOD_IBUS_H_ |
6 #define UI_BASE_IME_INPUT_METHOD_IBUS_H_ | 6 #define UI_BASE_IME_INPUT_METHOD_IBUS_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 // It'll be sent to the focused text input client as soon as we receive the | 196 // It'll be sent to the focused text input client as soon as we receive the |
197 // processing result of the pending key event. | 197 // processing result of the pending key event. |
198 CompositionText composition_; | 198 CompositionText composition_; |
199 | 199 |
200 // Pending result text generated by the current pending key event. | 200 // Pending result text generated by the current pending key event. |
201 // It'll be sent to the focused text input client as soon as we receive the | 201 // It'll be sent to the focused text input client as soon as we receive the |
202 // processing result of the pending key event. | 202 // processing result of the pending key event. |
203 string16 result_text_; | 203 string16 result_text_; |
204 | 204 |
205 string16 previous_surrounding_text_; | 205 string16 previous_surrounding_text_; |
206 ui::Range previous_selection_range_; | 206 gfx::Range previous_selection_range_; |
207 | 207 |
208 // Indicates if input context is focused or not. | 208 // Indicates if input context is focused or not. |
209 bool context_focused_; | 209 bool context_focused_; |
210 | 210 |
211 // Indicates if there is an ongoing composition text. | 211 // Indicates if there is an ongoing composition text. |
212 bool composing_text_; | 212 bool composing_text_; |
213 | 213 |
214 // Indicates if the composition text is changed or deleted. | 214 // Indicates if the composition text is changed or deleted. |
215 bool composition_changed_; | 215 bool composition_changed_; |
216 | 216 |
217 // The latest id of key event. | 217 // The latest id of key event. |
218 uint32 current_keyevent_id_; | 218 uint32 current_keyevent_id_; |
219 | 219 |
220 // An object to compose a character from a sequence of key presses | 220 // An object to compose a character from a sequence of key presses |
221 // including dead key etc. | 221 // including dead key etc. |
222 CharacterComposer character_composer_; | 222 CharacterComposer character_composer_; |
223 | 223 |
224 // Used for making callbacks. | 224 // Used for making callbacks. |
225 base::WeakPtrFactory<InputMethodIBus> weak_ptr_factory_; | 225 base::WeakPtrFactory<InputMethodIBus> weak_ptr_factory_; |
226 | 226 |
227 DISALLOW_COPY_AND_ASSIGN(InputMethodIBus); | 227 DISALLOW_COPY_AND_ASSIGN(InputMethodIBus); |
228 }; | 228 }; |
229 | 229 |
230 } // namespace ui | 230 } // namespace ui |
231 | 231 |
232 #endif // UI_BASE_IME_INPUT_METHOD_IBUS_H_ | 232 #endif // UI_BASE_IME_INPUT_METHOD_IBUS_H_ |
OLD | NEW |