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

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

Issue 11783053: Clean Up: Remove ibus namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 virtual bool IsActive() OVERRIDE; 51 virtual bool IsActive() OVERRIDE;
52 52
53 // Called when the connection with ibus-daemon is established. 53 // Called when the connection with ibus-daemon is established.
54 virtual void OnConnected(); 54 virtual void OnConnected();
55 55
56 // Called when the connection with ibus-daemon is shutdowned. 56 // Called when the connection with ibus-daemon is shutdowned.
57 virtual void OnDisconnected(); 57 virtual void OnDisconnected();
58 58
59 protected: 59 protected:
60 // Converts |text| into CompositionText. 60 // Converts |text| into CompositionText.
61 void ExtractCompositionText(const chromeos::ibus::IBusText& text, 61 void ExtractCompositionText(const chromeos::IBusText& text,
62 uint32 cursor_position, 62 uint32 cursor_position,
63 CompositionText* out_composition) const; 63 CompositionText* out_composition) const;
64 64
65 // Process a key returned from the input method. 65 // Process a key returned from the input method.
66 virtual void ProcessKeyEventPostIME(const base::NativeEvent& native_key_event, 66 virtual void ProcessKeyEventPostIME(const base::NativeEvent& native_key_event,
67 uint32 ibus_keycode, 67 uint32 ibus_keycode,
68 bool handled); 68 bool handled);
69 69
70 // Converts |native_event| to ibus representation. 70 // Converts |native_event| to ibus representation.
71 virtual void IBusKeyEventFromNativeKeyEvent( 71 virtual void IBusKeyEventFromNativeKeyEvent(
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 // object proxy. 152 // object proxy.
153 void ResetInputContext(); 153 void ResetInputContext();
154 154
155 // Returns true if the connection to ibus-daemon is established. 155 // Returns true if the connection to ibus-daemon is established.
156 bool IsConnected(); 156 bool IsConnected();
157 157
158 // Returns true if the input context is ready to use. 158 // Returns true if the input context is ready to use.
159 bool IsContextReady(); 159 bool IsContextReady();
160 160
161 // chromeos::IBusInputContextHandlerInterface overrides: 161 // chromeos::IBusInputContextHandlerInterface overrides:
162 virtual void CommitText(const chromeos::ibus::IBusText& text) OVERRIDE; 162 virtual void CommitText(const chromeos::IBusText& text) OVERRIDE;
163 virtual void ForwardKeyEvent(uint32 keyval, 163 virtual void ForwardKeyEvent(uint32 keyval,
164 uint32 keycode, 164 uint32 keycode,
165 uint32 status) OVERRIDE; 165 uint32 status) OVERRIDE;
166 virtual void ShowPreeditText() OVERRIDE; 166 virtual void ShowPreeditText() OVERRIDE;
167 virtual void HidePreeditText() OVERRIDE; 167 virtual void HidePreeditText() OVERRIDE;
168 virtual void UpdatePreeditText(const chromeos::ibus::IBusText& text, 168 virtual void UpdatePreeditText(const chromeos::IBusText& text,
169 uint32 cursor_pos, 169 uint32 cursor_pos,
170 bool visible) OVERRIDE; 170 bool visible) OVERRIDE;
171 171
172 void CreateInputContextDone(const dbus::ObjectPath& object_path); 172 void CreateInputContextDone(const dbus::ObjectPath& object_path);
173 void CreateInputContextFail(); 173 void CreateInputContextFail();
174 void ProcessKeyEventDone(uint32 id, XEvent* xevent, uint32 keyval, 174 void ProcessKeyEventDone(uint32 id, XEvent* xevent, uint32 keyval,
175 bool is_handled); 175 bool is_handled);
176 176
177 // All pending key events. Note: we do not own these object, we just save 177 // All pending key events. Note: we do not own these object, we just save
178 // pointers to these object so that we can abandon them when necessary. 178 // pointers to these object so that we can abandon them when necessary.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 220
221 // Used for making callbacks. 221 // Used for making callbacks.
222 base::WeakPtrFactory<InputMethodIBus> weak_ptr_factory_; 222 base::WeakPtrFactory<InputMethodIBus> weak_ptr_factory_;
223 223
224 DISALLOW_COPY_AND_ASSIGN(InputMethodIBus); 224 DISALLOW_COPY_AND_ASSIGN(InputMethodIBus);
225 }; 225 };
226 226
227 } // namespace ui 227 } // namespace ui
228 228
229 #endif // UI_BASE_IME_INPUT_METHOD_IBUS_H_ 229 #endif // UI_BASE_IME_INPUT_METHOD_IBUS_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/mock_dbus_thread_manager_without_gmock.cc ('k') | ui/base/ime/input_method_ibus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698