OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef REMOTING_HOST_LINUX_X_SERVER_KEYBOARD_INTERFACE_H_ | |
6 #define REMOTING_HOST_LINUX_X_SERVER_KEYBOARD_INTERFACE_H_ | |
7 | |
8 #include <X11/Xlib.h> | |
9 | |
10 #include "base/macros.h" | |
11 #include "remoting/host/linux/keyboard_interface.h" | |
12 | |
13 namespace remoting { | |
14 | |
15 class XServerKeyboardInterface : public KeyboardInterface { | |
Sergey Ulanov
2016/09/21 19:59:24
This is not interface, so it shouldn't have Interf
Yuwei
2016/09/23 01:40:38
Done.
| |
16 public: | |
17 XServerKeyboardInterface(Display* display); | |
18 ~XServerKeyboardInterface() override; | |
19 | |
20 // KeyboardInterface overrides. | |
21 std::vector<uint32_t> GetUnusedKeycodes() override; | |
22 | |
23 void PressKey(uint32_t keycode, uint32_t modifiers) override; | |
24 | |
25 bool FindKeycode(uint32_t code_point, | |
26 uint32_t* keycode, | |
27 uint32_t* modifiers) override; | |
28 | |
29 bool ChangeKeyMapping(uint32_t keycode, | |
30 uint32_t lower_case_code_point, | |
31 uint32_t upper_case_code_point) override; | |
32 | |
33 void Flush() override; | |
34 | |
35 void Sync() override; | |
36 | |
37 private: | |
38 // X11 graphics context. | |
39 Display* display_; | |
40 | |
41 DISALLOW_COPY_AND_ASSIGN(XServerKeyboardInterface); | |
42 }; | |
43 | |
44 } // namespace remoting | |
45 | |
46 #endif // REMOTING_HOST_LINUX_X_SERVER_KEYBOARD_INTERFACE_H_ | |
OLD | NEW |