OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_VIEWS_IME_INPUT_METHOD_IBUS_H_ | 5 #ifndef UI_VIEWS_IME_INPUT_METHOD_IBUS_H_ |
6 #define UI_VIEWS_IME_INPUT_METHOD_IBUS_H_ | 6 #define UI_VIEWS_IME_INPUT_METHOD_IBUS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 // Forward declarations, so that we don't need to include ibus.h in this file. | 24 // Forward declarations, so that we don't need to include ibus.h in this file. |
25 typedef struct _GAsyncResult GAsyncResult; | 25 typedef struct _GAsyncResult GAsyncResult; |
26 typedef struct _IBusBus IBusBus; | 26 typedef struct _IBusBus IBusBus; |
27 typedef struct _IBusInputContext IBusInputContext; | 27 typedef struct _IBusInputContext IBusInputContext; |
28 typedef struct _IBusText IBusText; | 28 typedef struct _IBusText IBusText; |
29 | 29 |
30 namespace views { | 30 namespace views { |
31 | 31 |
32 // An InputMethod implementation based on IBus. | 32 // An InputMethod implementation based on IBus. |
| 33 // TODO(yusukes): Remove this class when TOUCH_UI migrates to Aura. For Aura, |
| 34 // ui/base/ime/input_method_* classes are available. |
33 class InputMethodIBus : public InputMethodBase { | 35 class InputMethodIBus : public InputMethodBase { |
34 public: | 36 public: |
35 explicit InputMethodIBus(internal::InputMethodDelegate* delegate); | 37 explicit InputMethodIBus(internal::InputMethodDelegate* delegate); |
36 virtual ~InputMethodIBus(); | 38 virtual ~InputMethodIBus(); |
37 | 39 |
38 // Overridden from InputMethod: | 40 // Overridden from InputMethod: |
39 virtual void Init(Widget* widget) OVERRIDE; | 41 virtual void Init(Widget* widget) OVERRIDE; |
40 virtual void OnFocus() OVERRIDE; | 42 virtual void OnFocus() OVERRIDE; |
41 virtual void OnBlur() OVERRIDE; | 43 virtual void OnBlur() OVERRIDE; |
42 virtual void DispatchKeyEvent(const KeyEvent& key) OVERRIDE; | 44 virtual void DispatchKeyEvent(const KeyEvent& key) OVERRIDE; |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 // An object to compose a character from a sequence of key presses | 192 // An object to compose a character from a sequence of key presses |
191 // including dead key etc. | 193 // including dead key etc. |
192 ui::CharacterComposer character_composer_; | 194 ui::CharacterComposer character_composer_; |
193 | 195 |
194 DISALLOW_COPY_AND_ASSIGN(InputMethodIBus); | 196 DISALLOW_COPY_AND_ASSIGN(InputMethodIBus); |
195 }; | 197 }; |
196 | 198 |
197 } // namespace views | 199 } // namespace views |
198 | 200 |
199 #endif // UI_VIEWS_IME_INPUT_METHOD_IBUS_H_ | 201 #endif // UI_VIEWS_IME_INPUT_METHOD_IBUS_H_ |
OLD | NEW |