#include "ui/events/ozone/evdev/input_device_factory_evdev_proxy.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/task/single_thread_task_runner.h"
#include "ui/events/devices/stylus_state.h"
#include "ui/events/ozone/evdev/input_device_factory_evdev.h"
namespace ui {
namespace {
void ForwardGetTouchDeviceStatusReply(
scoped_refptr<base::SingleThreadTaskRunner> reply_runner,
InputController::GetTouchDeviceStatusReply reply,
const std::string& status) { … }
void ForwardGetTouchEventLogReply(
scoped_refptr<base::SingleThreadTaskRunner> reply_runner,
InputController::GetTouchEventLogReply reply,
const std::vector<base::FilePath>& log_paths) { … }
void ForwardGetStylusSwitchStateReply(
scoped_refptr<base::SingleThreadTaskRunner> reply_runner,
InputController::GetStylusSwitchStateReply reply,
ui::StylusState state) { … }
void ForwardDescribeForLogReply(
scoped_refptr<base::SingleThreadTaskRunner> reply_runner,
InputController::DescribeForLogReply reply,
const std::string& result) { … }
}
InputDeviceFactoryEvdevProxy::InputDeviceFactoryEvdevProxy(
scoped_refptr<base::SingleThreadTaskRunner> task_runner,
base::WeakPtr<InputDeviceFactoryEvdev> input_device_factory)
: … { … }
InputDeviceFactoryEvdevProxy::~InputDeviceFactoryEvdevProxy() { … }
void InputDeviceFactoryEvdevProxy::AddInputDevice(int id,
const base::FilePath& path) { … }
void InputDeviceFactoryEvdevProxy::RemoveInputDevice(
const base::FilePath& path) { … }
void InputDeviceFactoryEvdevProxy::OnStartupScanComplete() { … }
void InputDeviceFactoryEvdevProxy::SetCapsLockLed(bool enabled) { … }
void InputDeviceFactoryEvdevProxy::GetStylusSwitchState(
InputController::GetStylusSwitchStateReply reply) { … }
void InputDeviceFactoryEvdevProxy::UpdateInputDeviceSettings(
const InputDeviceSettingsEvdev& settings) { … }
void InputDeviceFactoryEvdevProxy::GetTouchDeviceStatus(
InputController::GetTouchDeviceStatusReply reply) { … }
void InputDeviceFactoryEvdevProxy::GetTouchEventLog(
const base::FilePath& out_dir,
InputController::GetTouchEventLogReply reply) { … }
void InputDeviceFactoryEvdevProxy::DescribeForLog(
InputController::DescribeForLogReply reply) const { … }
void InputDeviceFactoryEvdevProxy::GetGesturePropertiesService(
mojo::PendingReceiver<ozone::mojom::GesturePropertiesService> receiver) { … }
void InputDeviceFactoryEvdevProxy::PlayVibrationEffect(
int id,
uint8_t amplitude,
uint16_t duration_millis) { … }
void InputDeviceFactoryEvdevProxy::StopVibration(int id) { … }
void InputDeviceFactoryEvdevProxy::PlayHapticTouchpadEffect(
ui::HapticTouchpadEffect effect,
ui::HapticTouchpadEffectStrength strength) { … }
void InputDeviceFactoryEvdevProxy::SetHapticTouchpadEffectForNextButtonRelease(
ui::HapticTouchpadEffect effect,
ui::HapticTouchpadEffectStrength strength) { … }
void InputDeviceFactoryEvdevProxy::DisableKeyboardImposterCheck() { … }
}