chromium/ui/events/ozone/evdev/event_converter_evdev.cc

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <errno.h>
#include <linux/input.h>
#include <stddef.h>

#include "ui/events/ozone/evdev/event_converter_evdev.h"

#include "base/files/file_path.h"
#include "base/logging.h"
#include "base/task/current_thread.h"
#include "base/trace_event/trace_event.h"
#include "ui/events/base_event_utils.h"
#include "ui/events/devices/device_util_linux.h"
#include "ui/events/devices/input_device.h"
#include "ui/events/devices/stylus_state.h"
#include "ui/events/event_utils.h"

#ifndef input_event_sec
#define input_event_sec
#define input_event_usec
#endif

namespace ui {

EventConverterEvdev::EventConverterEvdev(int fd,
                                         const base::FilePath& path,
                                         int id,
                                         InputDeviceType type,
                                         const std::string& name,
                                         const std::string& phys,
                                         uint16_t vendor_id,
                                         uint16_t product_id,
                                         uint16_t version)
    :{}

EventConverterEvdev::~EventConverterEvdev() = default;

// static
bool EventConverterEvdev::IsValidKeyboardKeyPress(uint64_t key) {}

void EventConverterEvdev::ApplyDeviceSettings(
    const InputDeviceSettingsEvdev& settings) {}

void EventConverterEvdev::Start() {}

void EventConverterEvdev::Stop() {}

void EventConverterEvdev::SetEnabled(bool enabled) {}

bool EventConverterEvdev::IsEnabled() const {}

void EventConverterEvdev::SetSuspectedKeyboardImposter(bool is_suspected) {}

bool EventConverterEvdev::IsSuspectedKeyboardImposter() const {}

void EventConverterEvdev::SetSuspectedMouseImposter(bool is_suspected) {}

bool EventConverterEvdev::IsSuspectedMouseImposter() const {}

void EventConverterEvdev::OnStopped() {}

void EventConverterEvdev::OnEnabled() {}

void EventConverterEvdev::OnDisabled() {}

void EventConverterEvdev::DumpTouchEventLog(const char* filename) {}

void EventConverterEvdev::OnFileCanWriteWithoutBlocking(int fd) {}

KeyboardType EventConverterEvdev::GetKeyboardType() const {}

bool EventConverterEvdev::HasKeyboard() const {}

bool EventConverterEvdev::HasMouse() const {}

bool EventConverterEvdev::HasPointingStick() const {}

bool EventConverterEvdev::HasTouchpad() const {}

bool EventConverterEvdev::HasHapticTouchpad() const {}

bool EventConverterEvdev::HasTouchscreen() const {}

bool EventConverterEvdev::HasPen() const {}

bool EventConverterEvdev::HasGamepad() const {}

bool EventConverterEvdev::HasGraphicsTablet() const {}

bool EventConverterEvdev::HasAssistantKey() const {}

bool EventConverterEvdev::HasFunctionKey() const {}

bool EventConverterEvdev::HasCapsLockLed() const {}

bool EventConverterEvdev::HasStylusSwitch() const {}

ui::StylusState EventConverterEvdev::GetStylusSwitchState() {}

gfx::Size EventConverterEvdev::GetTouchscreenSize() const {}

std::vector<ui::GamepadDevice::Axis> EventConverterEvdev::GetGamepadAxes()
    const {}

bool EventConverterEvdev::GetGamepadRumbleCapability() const {}

std::vector<uint64_t> EventConverterEvdev::GetGamepadKeyBits() const {}

void EventConverterEvdev::PlayVibrationEffect(uint8_t amplitude,
                                              uint16_t duration_millis) {}

void EventConverterEvdev::StopVibration() {}

void EventConverterEvdev::PlayHapticTouchpadEffect(
    HapticTouchpadEffect effect,
    HapticTouchpadEffectStrength strength) {}

void EventConverterEvdev::SetHapticTouchpadEffectForNextButtonRelease(
    HapticTouchpadEffect effect,
    HapticTouchpadEffectStrength strength) {}

int EventConverterEvdev::GetTouchPoints() const {}

void EventConverterEvdev::SetKeyFilter(bool enable_filter,
                                       std::vector<DomCode> allowed_keys) {}

void EventConverterEvdev::SetBlockModifiers(bool block_modifiers) {}

void EventConverterEvdev::SetCapsLockLed(bool enabled) {}

void EventConverterEvdev::SetTouchEventLoggingEnabled(bool enabled) {}

void EventConverterEvdev::SetPalmSuppressionCallback(
    const base::RepeatingCallback<void(bool)>& callback) {}

void EventConverterEvdev::SetReportStylusStateCallback(
    const ReportStylusStateCallback& callback) {}

void EventConverterEvdev::SetGetLatestStylusStateCallback(
    const GetLatestStylusStateCallback& callback) {}

void EventConverterEvdev::SetReceivedValidInputCallback(
    ReceivedValidInputCallback callback) {}

std::vector<uint64_t> EventConverterEvdev::GetKeyboardKeyBits() const {}

base::TimeTicks EventConverterEvdev::TimeTicksFromInputEvent(
    const input_event& event) {}

std::ostream& EventConverterEvdev::DescribeForLog(std::ostream& os) const {}

}  // namespace ui