#include "remoting/host/linux/x11_keyboard_impl.h"
#include "remoting/host/linux/unicode_to_keysym.h"
#include "ui/gfx/x/future.h"
#include "ui/gfx/x/xkb.h"
#include "ui/gfx/x/xproto.h"
#include "ui/gfx/x/xtest.h"
namespace {
bool FindKeycodeForKeySym(x11::Connection* connection,
uint32_t key_sym,
uint32_t* keycode,
uint32_t* modifiers) { … }
uint32_t UnicodeToKeysym(uint32_t u) { … }
}
namespace remoting {
X11KeyboardImpl::X11KeyboardImpl(x11::Connection* connection)
: … { … }
X11KeyboardImpl::~X11KeyboardImpl() = default;
std::vector<uint32_t> X11KeyboardImpl::GetUnusedKeycodes() { … }
void X11KeyboardImpl::PressKey(uint32_t keycode, uint32_t modifiers) { … }
bool X11KeyboardImpl::FindKeycode(uint32_t code_point,
uint32_t* keycode,
uint32_t* modifiers) { … }
bool X11KeyboardImpl::ChangeKeyMapping(uint32_t keycode, uint32_t code_point) { … }
void X11KeyboardImpl::Flush() { … }
void X11KeyboardImpl::Sync() { … }
}