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_CHROMEOS_IME_KEYBOARD_X11_H_ | 5 #ifndef UI_BASE_IME_CHROMEOS_IME_KEYBOARD_X11_H_ |
6 #define UI_BASE_IME_CHROMEOS_IME_KEYBOARD_X11_H_ | 6 #define UI_BASE_IME_CHROMEOS_IME_KEYBOARD_X11_H_ |
7 | 7 |
8 #include "ui/base/ime/chromeos/ime_keyboard.h" | 8 #include "ui/base/ime/chromeos/ime_keyboard.h" |
9 | 9 |
10 #include <cstdlib> | 10 #include <cstdlib> |
11 #include <cstring> | 11 #include <cstring> |
12 #include <queue> | 12 #include <queue> |
13 #include <set> | 13 #include <set> |
14 #include <utility> | 14 #include <utility> |
15 | 15 |
16 #include "base/bind.h" | 16 #include "base/bind.h" |
17 #include "base/logging.h" | 17 #include "base/logging.h" |
18 #include "base/memory/scoped_ptr.h" | 18 #include "base/memory/scoped_ptr.h" |
19 #include "base/message_loop/message_loop.h" | 19 #include "base/message_loop/message_loop.h" |
20 #include "base/process/kill.h" | 20 #include "base/process/kill.h" |
21 #include "base/process/launch.h" | 21 #include "base/process/launch.h" |
22 #include "base/process/process_handle.h" | 22 #include "base/process/process_handle.h" |
23 #include "base/strings/string_util.h" | 23 #include "base/strings/string_util.h" |
24 #include "base/strings/stringprintf.h" | 24 #include "base/strings/stringprintf.h" |
25 #include "base/sys_info.h" | 25 #include "base/sys_info.h" |
26 #include "base/threading/thread_checker.h" | 26 #include "base/threading/thread_checker.h" |
27 #include "ui/base/ui_base_export.h" | 27 #include "ui/base/ime/ui_base_ime_export.h" |
28 | 28 |
29 namespace chromeos { | 29 namespace chromeos { |
30 namespace input_method { | 30 namespace input_method { |
31 | 31 |
32 class UI_BASE_EXPORT ImeKeyboardX11 : public ImeKeyboard { | 32 class UI_BASE_IME_EXPORT ImeKeyboardX11 : public ImeKeyboard { |
33 public: | 33 public: |
34 ImeKeyboardX11(); | 34 ImeKeyboardX11(); |
35 ~ImeKeyboardX11() override; | 35 ~ImeKeyboardX11() override; |
36 | 36 |
37 // ImeKeyboard: | 37 // ImeKeyboard: |
38 bool SetCurrentKeyboardLayoutByName(const std::string& layout_name) override; | 38 bool SetCurrentKeyboardLayoutByName(const std::string& layout_name) override; |
39 bool ReapplyCurrentKeyboardLayout() override; | 39 bool ReapplyCurrentKeyboardLayout() override; |
40 void ReapplyCurrentModifierLockStatus() override; | 40 void ReapplyCurrentModifierLockStatus() override; |
41 void DisableNumLock() override; | 41 void DisableNumLock() override; |
42 void SetCapsLockEnabled(bool enable_caps_lock) override; | 42 void SetCapsLockEnabled(bool enable_caps_lock) override; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 base::WeakPtrFactory<ImeKeyboardX11> weak_factory_; | 79 base::WeakPtrFactory<ImeKeyboardX11> weak_factory_; |
80 | 80 |
81 DISALLOW_COPY_AND_ASSIGN(ImeKeyboardX11); | 81 DISALLOW_COPY_AND_ASSIGN(ImeKeyboardX11); |
82 }; | 82 }; |
83 | 83 |
84 | 84 |
85 } // namespace input_method | 85 } // namespace input_method |
86 } // namespace chromeos | 86 } // namespace chromeos |
87 | 87 |
88 #endif // UI_BASE_IME_CHROMEOS_IME_KEYBOARD_X11_H_ | 88 #endif // UI_BASE_IME_CHROMEOS_IME_KEYBOARD_X11_H_ |
OLD | NEW |