#include "ui/events/ozone/evdev/input_device_opener_evdev.h"
#include <fcntl.h>
#include "base/command_line.h"
#include "base/files/file_path.h"
#include "base/files/scoped_file.h"
#include "base/memory/ptr_util.h"
#include "base/trace_event/trace_event.h"
#include "ui/events/event_switches.h"
#include "ui/events/ozone/evdev/event_converter_evdev_impl.h"
#include "ui/events/ozone/evdev/gamepad_event_converter_evdev.h"
#include "ui/events/ozone/evdev/microphone_mute_switch_event_converter_evdev.h"
#include "ui/events/ozone/evdev/stylus_button_event_converter_evdev.h"
#include "ui/events/ozone/evdev/tablet_event_converter_evdev.h"
#include "ui/events/ozone/evdev/touch_event_converter_evdev.h"
#if defined(USE_EVDEV_GESTURES)
#include "ui/events/ozone/evdev/libgestures_glue/event_reader_libevdev_cros.h"
#include "ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.h"
#endif
#if defined(USE_LIBINPUT)
#include "ui/events/ozone/evdev/libinput_event_converter.h"
#endif
#ifndef EVIOCSCLOCKID
#define EVIOCSCLOCKID …
#endif
namespace ui {
namespace {
std::unique_ptr<EventConverterEvdev> CreateConverter(
const OpenInputDeviceParams& params,
base::ScopedFD fd,
const EventDeviceInfo& devinfo) { … }
}
std::unique_ptr<EventConverterEvdev> InputDeviceOpenerEvdev::OpenInputDevice(
const OpenInputDeviceParams& params) { … }
}