OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CHROMEOS_H_ | 5 #ifndef UI_BASE_IME_INPUT_METHOD_CHROMEOS_H_ |
6 #define UI_BASE_IME_INPUT_METHOD_CHROMEOS_H_ | 6 #define UI_BASE_IME_INPUT_METHOD_CHROMEOS_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/ime_bridge.h" | 16 #include "ui/base/ime/chromeos/ime_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 ui { | 20 namespace ui { |
21 | 21 |
22 // A ui::InputMethod implementation based on IBus. | 22 // A ui::InputMethod implementation based on IBus. |
23 class UI_BASE_EXPORT InputMethodChromeOS | 23 class UI_BASE_IME_EXPORT InputMethodChromeOS |
24 : public InputMethodBase, | 24 : public InputMethodBase, |
25 public chromeos::IMEInputContextHandlerInterface { | 25 public chromeos::IMEInputContextHandlerInterface { |
26 public: | 26 public: |
27 explicit InputMethodChromeOS(internal::InputMethodDelegate* delegate); | 27 explicit InputMethodChromeOS(internal::InputMethodDelegate* delegate); |
28 ~InputMethodChromeOS() override; | 28 ~InputMethodChromeOS() override; |
29 | 29 |
30 // Overridden from InputMethod: | 30 // Overridden from InputMethod: |
31 void OnFocus() override; | 31 void OnFocus() override; |
32 void OnBlur() override; | 32 void OnBlur() override; |
33 bool OnUntranslatedIMEMessage(const base::NativeEvent& event, | 33 bool OnUntranslatedIMEMessage(const base::NativeEvent& event, |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 | 151 |
152 // Used for making callbacks. | 152 // Used for making callbacks. |
153 base::WeakPtrFactory<InputMethodChromeOS> weak_ptr_factory_; | 153 base::WeakPtrFactory<InputMethodChromeOS> weak_ptr_factory_; |
154 | 154 |
155 DISALLOW_COPY_AND_ASSIGN(InputMethodChromeOS); | 155 DISALLOW_COPY_AND_ASSIGN(InputMethodChromeOS); |
156 }; | 156 }; |
157 | 157 |
158 } // namespace ui | 158 } // namespace ui |
159 | 159 |
160 #endif // UI_BASE_IME_INPUT_METHOD_CHROMEOS_H_ | 160 #endif // UI_BASE_IME_INPUT_METHOD_CHROMEOS_H_ |
OLD | NEW |