#include "ui/events/ozone/evdev/microphone_mute_switch_event_converter_evdev.h"
#include <errno.h>
#include <linux/input.h>
#include "base/logging.h"
#include "base/trace_event/trace_event.h"
#include "ui/events/event_utils.h"
#include "ui/events/ozone/evdev/device_event_dispatcher_evdev.h"
#include "ui/events/ozone/evdev/event_device_util.h"
namespace ui {
namespace {
int32_t GetSwValue(int fd, unsigned int code) { … }
}
MicrophoneMuteSwitchEventConverterEvdev::
MicrophoneMuteSwitchEventConverterEvdev(
base::ScopedFD fd,
base::FilePath path,
int id,
const EventDeviceInfo& devinfo,
DeviceEventDispatcherEvdev* dispatcher)
: … { … }
MicrophoneMuteSwitchEventConverterEvdev::
~MicrophoneMuteSwitchEventConverterEvdev() = default;
void MicrophoneMuteSwitchEventConverterEvdev::OnDisabled() { … }
void MicrophoneMuteSwitchEventConverterEvdev::OnEnabled() { … }
void MicrophoneMuteSwitchEventConverterEvdev::OnFileCanReadWithoutBlocking(
int fd) { … }
void MicrophoneMuteSwitchEventConverterEvdev::ProcessEvent(
const input_event& input) { … }
std::ostream& MicrophoneMuteSwitchEventConverterEvdev::DescribeForLog(
std::ostream& os) const { … }
}