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

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

Issue 24123006: Remove SendFakeProcessKeyEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
« 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 void ProcessInputMethodResult(const base::NativeEvent& native_key_event, 106 void ProcessInputMethodResult(const base::NativeEvent& native_key_event,
107 bool filtered); 107 bool filtered);
108 108
109 // Checks if the pending input method result needs inserting into the focused 109 // Checks if the pending input method result needs inserting into the focused
110 // text input client as a single character. 110 // text input client as a single character.
111 bool NeedInsertChar() const; 111 bool NeedInsertChar() const;
112 112
113 // Checks if there is pending input method result. 113 // Checks if there is pending input method result.
114 bool HasInputMethodResult() const; 114 bool HasInputMethodResult() const;
115 115
116 // Fabricates a key event with VKEY_PROCESSKEY key code and dispatches it to
117 // the focused View.
118 void SendFakeProcessKeyEvent(bool pressed) const;
119
120 // Abandons all pending key events. It usually happends when we lose keyboard 116 // Abandons all pending key events. It usually happends when we lose keyboard
121 // focus, the text input type is changed or we are destroyed. 117 // focus, the text input type is changed or we are destroyed.
122 void AbandonAllPendingKeyEvents(); 118 void AbandonAllPendingKeyEvents();
123 119
124 // Passes keyevent and executes character composition if necessary. Returns 120 // Passes keyevent and executes character composition if necessary. Returns
125 // true if character composer comsumes key event. 121 // true if character composer comsumes key event.
126 bool ExecuteCharacterComposer(uint32 ibus_keyval, 122 bool ExecuteCharacterComposer(uint32 ibus_keyval,
127 uint32 ibus_keycode, 123 uint32 ibus_keycode,
128 uint32 ibus_state); 124 uint32 ibus_state);
129 125
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 177
182 // Used for making callbacks. 178 // Used for making callbacks.
183 base::WeakPtrFactory<InputMethodIBus> weak_ptr_factory_; 179 base::WeakPtrFactory<InputMethodIBus> weak_ptr_factory_;
184 180
185 DISALLOW_COPY_AND_ASSIGN(InputMethodIBus); 181 DISALLOW_COPY_AND_ASSIGN(InputMethodIBus);
186 }; 182 };
187 183
188 } // namespace ui 184 } // namespace ui
189 185
190 #endif // UI_BASE_IME_INPUT_METHOD_IBUS_H_ 186 #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