#include "remoting/host/input_monitor/local_mouse_input_monitor_x11.h"
#include <sys/select.h>
#include <unistd.h>
#include <utility>
#include "base/compiler_specific.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/location.h"
#include "base/logging.h"
#include "base/memory/raw_ptr.h"
#include "base/sequence_checker.h"
#include "base/task/single_thread_task_runner.h"
#include "remoting/host/input_monitor/local_input_monitor_x11_common.h"
#include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
#include "ui/events/event.h"
#include "ui/gfx/x/connection.h"
#include "ui/gfx/x/event.h"
#include "ui/gfx/x/future.h"
#include "ui/gfx/x/xinput.h"
#include "ui/gfx/x/xproto.h"
namespace remoting {
LocalMouseInputMonitorX11::LocalMouseInputMonitorX11(
scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
LocalInputMonitor::PointerMoveCallback on_mouse_move)
: … { … }
LocalMouseInputMonitorX11::~LocalMouseInputMonitorX11() { … }
LocalMouseInputMonitorX11::Core::Core(
scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
LocalInputMonitor::PointerMoveCallback on_mouse_move)
: … { … }
void LocalMouseInputMonitorX11::Core::Start() { … }
void LocalMouseInputMonitorX11::Core::Stop() { … }
LocalMouseInputMonitorX11::Core::~Core() = default;
void LocalMouseInputMonitorX11::Core::StartOnInputThread() { … }
void LocalMouseInputMonitorX11::Core::StopOnInputThread() { … }
void LocalMouseInputMonitorX11::Core::OnEvent(const x11::Event& event) { … }
}