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

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

Issue 81023002: Remove dead code unnecessarily added by r231563 and 236449 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 years 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 | « ui/base/ime/input_method_base_unittest.cc ('k') | 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 virtual void UpdatePreeditText(const chromeos::IBusText& text, 134 virtual void UpdatePreeditText(const chromeos::IBusText& text,
135 uint32 cursor_pos, 135 uint32 cursor_pos,
136 bool visible) OVERRIDE; 136 bool visible) OVERRIDE;
137 virtual void DeleteSurroundingText(int32 offset, uint32 length) OVERRIDE; 137 virtual void DeleteSurroundingText(int32 offset, uint32 length) OVERRIDE;
138 138
139 // Callback function for IBusEngineHandlerInterface::ProcessKeyEvent. 139 // Callback function for IBusEngineHandlerInterface::ProcessKeyEvent.
140 void ProcessKeyEventDone(uint32 id, ui::KeyEvent* key_event, 140 void ProcessKeyEventDone(uint32 id, ui::KeyEvent* key_event,
141 uint32 ibus_keyval, uint32 ibus_keycode, 141 uint32 ibus_keyval, uint32 ibus_keycode,
142 uint32 ibus_state, bool is_handled); 142 uint32 ibus_state, bool is_handled);
143 143
144 // Processes a caret bounds changed event.
145 void OnCaretBoundsChangedInternal(const TextInputClient* client);
146
147 // All pending key events. Note: we do not own these object, we just save 144 // All pending key events. Note: we do not own these object, we just save
148 // pointers to these object so that we can abandon them when necessary. 145 // pointers to these object so that we can abandon them when necessary.
149 // They will be deleted in ProcessKeyEventDone(). 146 // They will be deleted in ProcessKeyEventDone().
150 std::set<uint32> pending_key_events_; 147 std::set<uint32> pending_key_events_;
151 148
152 // Pending composition text generated by the current pending key event. 149 // Pending composition text generated by the current pending key event.
153 // It'll be sent to the focused text input client as soon as we receive the 150 // It'll be sent to the focused text input client as soon as we receive the
154 // processing result of the pending key event. 151 // processing result of the pending key event.
155 CompositionText composition_; 152 CompositionText composition_;
156 153
(...skipping 29 matching lines...) Expand all
186 183
187 // Used for making callbacks. 184 // Used for making callbacks.
188 base::WeakPtrFactory<InputMethodIBus> weak_ptr_factory_; 185 base::WeakPtrFactory<InputMethodIBus> weak_ptr_factory_;
189 186
190 DISALLOW_COPY_AND_ASSIGN(InputMethodIBus); 187 DISALLOW_COPY_AND_ASSIGN(InputMethodIBus);
191 }; 188 };
192 189
193 } // namespace ui 190 } // namespace ui
194 191
195 #endif // UI_BASE_IME_INPUT_METHOD_IBUS_H_ 192 #endif // UI_BASE_IME_INPUT_METHOD_IBUS_H_
OLDNEW
« no previous file with comments | « ui/base/ime/input_method_base_unittest.cc ('k') | ui/base/ime/input_method_ibus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698