OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_AURALINUX_H_ | 5 #ifndef UI_BASE_IME_INPUT_METHOD_AURALINUX_H_ |
6 #define UI_BASE_IME_INPUT_METHOD_AURALINUX_H_ | 6 #define UI_BASE_IME_INPUT_METHOD_AURALINUX_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "ui/base/ime/input_method_base.h" | 9 #include "ui/base/ime/input_method_base.h" |
10 #include "ui/base/ime/linux/linux_input_method_context.h" | 10 #include "ui/base/ime/linux/linux_input_method_context.h" |
11 | 11 |
12 namespace ui { | 12 namespace ui { |
13 | 13 |
14 // A ui::InputMethod implementation for Aura on Linux platforms. The | 14 // A ui::InputMethod implementation for Aura on Linux platforms. The |
15 // implementation details are separated to ui::LinuxInputMethodContext | 15 // implementation details are separated to ui::LinuxInputMethodContext |
16 // interface. | 16 // interface. |
17 class UI_BASE_EXPORT InputMethodAuraLinux | 17 class UI_BASE_IME_EXPORT InputMethodAuraLinux |
18 : public InputMethodBase, | 18 : public InputMethodBase, |
19 public LinuxInputMethodContextDelegate { | 19 public LinuxInputMethodContextDelegate { |
20 public: | 20 public: |
21 explicit InputMethodAuraLinux(internal::InputMethodDelegate* delegate); | 21 explicit InputMethodAuraLinux(internal::InputMethodDelegate* delegate); |
22 ~InputMethodAuraLinux() override; | 22 ~InputMethodAuraLinux() override; |
23 | 23 |
24 // Overriden from InputMethod. | 24 // Overriden from InputMethod. |
25 void Init(bool focused) override; | 25 void Init(bool focused) override; |
26 bool OnUntranslatedIMEMessage(const base::NativeEvent& event, | 26 bool OnUntranslatedIMEMessage(const base::NativeEvent& event, |
27 NativeEventResult* result) override; | 27 NativeEventResult* result) override; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 // VKEY_PROCESSKEY event twice for a single key event. | 74 // VKEY_PROCESSKEY event twice for a single key event. |
75 bool allowed_to_fire_vkey_process_key_; | 75 bool allowed_to_fire_vkey_process_key_; |
76 int vkey_processkey_flags_; | 76 int vkey_processkey_flags_; |
77 | 77 |
78 DISALLOW_COPY_AND_ASSIGN(InputMethodAuraLinux); | 78 DISALLOW_COPY_AND_ASSIGN(InputMethodAuraLinux); |
79 }; | 79 }; |
80 | 80 |
81 } // namespace ui | 81 } // namespace ui |
82 | 82 |
83 #endif // UI_BASE_IME_INPUT_METHOD_AURALINUX_H_ | 83 #endif // UI_BASE_IME_INPUT_METHOD_AURALINUX_H_ |
OLD | NEW |