Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Side by Side Diff: ui/base/ime/input_method_ibus.h

Issue 10823141: Support reverse conversion for ChromeOS (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address comments Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ui/base/ime/input_method_ibus.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 // Pending composition text generated by the current pending key event. 181 // Pending composition text generated by the current pending key event.
182 // It'll be sent to the focused text input client as soon as we receive the 182 // It'll be sent to the focused text input client as soon as we receive the
183 // processing result of the pending key event. 183 // processing result of the pending key event.
184 CompositionText composition_; 184 CompositionText composition_;
185 185
186 // Pending result text generated by the current pending key event. 186 // Pending result text generated by the current pending key event.
187 // It'll be sent to the focused text input client as soon as we receive the 187 // It'll be sent to the focused text input client as soon as we receive the
188 // processing result of the pending key event. 188 // processing result of the pending key event.
189 string16 result_text_; 189 string16 result_text_;
190 190
191 string16 previous_selected_text_;
192
191 // Indicates if input context is focused or not. 193 // Indicates if input context is focused or not.
192 bool context_focused_; 194 bool context_focused_;
193 195
194 // Indicates if there is an ongoing composition text. 196 // Indicates if there is an ongoing composition text.
195 bool composing_text_; 197 bool composing_text_;
196 198
197 // Indicates if the composition text is changed or deleted. 199 // Indicates if the composition text is changed or deleted.
198 bool composition_changed_; 200 bool composition_changed_;
199 201
200 // If it's true then all input method result received before the next key 202 // If it's true then all input method result received before the next key
201 // event will be discarded. 203 // event will be discarded.
202 bool suppress_next_result_; 204 bool suppress_next_result_;
203 205
204 // An object to compose a character from a sequence of key presses 206 // An object to compose a character from a sequence of key presses
205 // including dead key etc. 207 // including dead key etc.
206 CharacterComposer character_composer_; 208 CharacterComposer character_composer_;
207 209
208 // Used for making callbacks. 210 // Used for making callbacks.
209 base::WeakPtrFactory<InputMethodIBus> weak_ptr_factory_; 211 base::WeakPtrFactory<InputMethodIBus> weak_ptr_factory_;
210 212
211 DISALLOW_COPY_AND_ASSIGN(InputMethodIBus); 213 DISALLOW_COPY_AND_ASSIGN(InputMethodIBus);
212 }; 214 };
213 215
214 } // namespace ui 216 } // namespace ui
215 217
216 #endif // UI_BASE_IME_INPUT_METHOD_IBUS_H_ 218 #endif // UI_BASE_IME_INPUT_METHOD_IBUS_H_
OLDNEW
« no previous file with comments | « no previous file | ui/base/ime/input_method_ibus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698