#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "ui/events/ozone/device/udev/device_manager_udev.h"
#include <stddef.h>
#include <memory>
#include <string>
#include "base/logging.h"
#include "base/observer_list.h"
#include "base/strings/stringprintf.h"
#include "base/task/current_thread.h"
#include "base/trace_event/trace_event.h"
#include "device/udev_linux/udev.h"
#include "device/udev_linux/udev_loader.h"
#include "ui/events/ozone/device/device_event.h"
#include "ui/events/ozone/device/device_event_observer.h"
namespace ui {
namespace {
const char* const kSubsystems[] = …;
device::ScopedUdevMonitorPtr UdevCreateMonitor(struct udev* udev) { … }
}
DeviceManagerUdev::DeviceManagerUdev()
: … { … }
DeviceManagerUdev::~DeviceManagerUdev() { … }
void DeviceManagerUdev::CreateMonitor() { … }
void DeviceManagerUdev::ScanDevices(DeviceEventObserver* observer) { … }
void DeviceManagerUdev::AddObserver(DeviceEventObserver* observer) { … }
void DeviceManagerUdev::RemoveObserver(DeviceEventObserver* observer) { … }
void DeviceManagerUdev::OnFileCanReadWithoutBlocking(int fd) { … }
void DeviceManagerUdev::OnFileCanWriteWithoutBlocking(int fd) { … }
std::unique_ptr<DeviceEvent> DeviceManagerUdev::ProcessMessage(
udev_device* device) { … }
}