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_X11_KEYBOARD_IMPL_H_ |
| 6 #define REMOTING_HOST_LINUX_X11_KEYBOARD_IMPL_H_ |
| 7 |
| 8 #include "remoting/host/linux/x11_keyboard.h" |
| 9 |
| 10 #include <X11/Xlib.h> |
| 11 |
| 12 #include "base/macros.h" |
| 13 |
| 14 namespace remoting { |
| 15 |
| 16 class X11KeyboardImpl : public X11Keyboard { |
| 17 public: |
| 18 X11KeyboardImpl(Display* display); |
| 19 ~X11KeyboardImpl() override; |
| 20 |
| 21 // KeyboardInterface overrides. |
| 22 std::vector<uint32_t> GetUnusedKeycodes() override; |
| 23 |
| 24 void PressKey(uint32_t keycode, uint32_t modifiers) override; |
| 25 |
| 26 bool FindKeycode(uint32_t code_point, |
| 27 uint32_t* keycode, |
| 28 uint32_t* modifiers) override; |
| 29 |
| 30 bool ChangeKeyMapping(uint32_t keycode, uint32_t code_point) override; |
| 31 |
| 32 void Flush() override; |
| 33 |
| 34 void Sync() override; |
| 35 |
| 36 private: |
| 37 // X11 graphics context. |
| 38 Display* display_; |
| 39 |
| 40 DISALLOW_COPY_AND_ASSIGN(X11KeyboardImpl); |
| 41 }; |
| 42 |
| 43 } // namespace remoting |
| 44 |
| 45 #endif // REMOTING_HOST_LINUX_X11_KEYBOARD_IMPL_H_ |
OLD | NEW |