#include "remoting/host/input_monitor/local_input_monitor.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/memory/ref_counted.h"
#include "base/task/single_thread_task_runner.h"
#include "remoting/host/client_session_control.h"
#include "remoting/host/input_monitor/local_hotkey_input_monitor.h"
#include "remoting/host/input_monitor/local_keyboard_input_monitor.h"
#include "remoting/host/input_monitor/local_pointer_input_monitor.h"
namespace remoting {
namespace {
class LocalInputMonitorImpl : public LocalInputMonitor { … };
LocalInputMonitorImpl::LocalInputMonitorImpl(
scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner)
: … { … }
LocalInputMonitorImpl::~LocalInputMonitorImpl() { … }
void LocalInputMonitorImpl::StartMonitoringForClientSession(
base::WeakPtr<ClientSessionControl> client_session_control) { … }
void LocalInputMonitorImpl::StartMonitoring(
PointerMoveCallback on_pointer_input,
KeyPressedCallback on_keyboard_input,
base::RepeatingClosure on_error) { … }
void LocalInputMonitorImpl::OnMonitoringStarted() { … }
}
std::unique_ptr<LocalInputMonitor> LocalInputMonitor::Create(
scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) { … }
}