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 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "ui/base/ime/chromeos/character_composer.h" | 15 #include "ui/base/ime/chromeos/character_composer.h" |
16 #include "ui/base/ime/chromeos/ibus_bridge.h" | 16 #include "ui/base/ime/chromeos/ibus_bridge.h" |
17 #include "ui/base/ime/composition_text.h" | 17 #include "ui/base/ime/composition_text.h" |
18 #include "ui/base/ime/input_method_base.h" | 18 #include "ui/base/ime/input_method_base.h" |
19 | 19 |
20 namespace chromeos { | 20 namespace chromeos { |
21 namespace ibus { | 21 namespace ibus { |
22 class IBusText; | 22 class IBusText; |
23 } // namespace ibus | 23 } // namespace ibus |
24 } // namespace chromeos | 24 } // namespace chromeos |
25 | 25 |
26 namespace ui { | 26 namespace ui { |
27 | 27 |
28 // A ui::InputMethod implementation based on IBus. | 28 // A ui::InputMethod implementation based on IBus. |
29 class UI_EXPORT InputMethodIBus | 29 class UI_BASE_EXPORT InputMethodIBus |
30 : public InputMethodBase, | 30 : public InputMethodBase, |
31 public chromeos::IBusInputContextHandlerInterface { | 31 public chromeos::IBusInputContextHandlerInterface { |
32 public: | 32 public: |
33 explicit InputMethodIBus(internal::InputMethodDelegate* delegate); | 33 explicit InputMethodIBus(internal::InputMethodDelegate* delegate); |
34 virtual ~InputMethodIBus(); | 34 virtual ~InputMethodIBus(); |
35 | 35 |
36 // Overridden from InputMethod: | 36 // Overridden from InputMethod: |
37 virtual void OnFocus() OVERRIDE; | 37 virtual void OnFocus() OVERRIDE; |
38 virtual void OnBlur() OVERRIDE; | 38 virtual void OnBlur() OVERRIDE; |
39 virtual bool OnUntranslatedIMEMessage(const base::NativeEvent& event, | 39 virtual bool OnUntranslatedIMEMessage(const base::NativeEvent& event, |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 | 153 |
154 // Used for making callbacks. | 154 // Used for making callbacks. |
155 base::WeakPtrFactory<InputMethodIBus> weak_ptr_factory_; | 155 base::WeakPtrFactory<InputMethodIBus> weak_ptr_factory_; |
156 | 156 |
157 DISALLOW_COPY_AND_ASSIGN(InputMethodIBus); | 157 DISALLOW_COPY_AND_ASSIGN(InputMethodIBus); |
158 }; | 158 }; |
159 | 159 |
160 } // namespace ui | 160 } // namespace ui |
161 | 161 |
162 #endif // UI_BASE_IME_INPUT_METHOD_IBUS_H_ | 162 #endif // UI_BASE_IME_INPUT_METHOD_IBUS_H_ |
OLD | NEW |