Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Side by Side Diff: remoting/host/linux/x11_keyboard_impl.h

Issue 2346643003: [Remoting Host] Handle text event characters that are not presented on the keyboard (Closed)
Patch Set: Reviewer's Feedback Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « remoting/host/linux/x11_keyboard.h ('k') | remoting/host/linux/x11_keyboard_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « remoting/host/linux/x11_keyboard.h ('k') | remoting/host/linux/x11_keyboard_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698