| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 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  Loading... | 
| 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_ | 
| OLD | NEW | 
|---|