#include "ui/ozone/platform/wayland/host/wayland_pointer.h"
#include <linux/input.h>
#include <stylus-unstable-v2-client-protocol.h>
#include "base/logging.h"
#include "base/version.h"
#include "ui/events/base_event_utils.h"
#include "ui/events/event.h"
#include "ui/events/types/event_type.h"
#include "ui/ozone/platform/wayland/common/wayland_util.h"
#include "ui/ozone/platform/wayland/host/wayland_connection.h"
#include "ui/ozone/platform/wayland/host/wayland_serial_tracker.h"
#include "ui/ozone/platform/wayland/host/wayland_window.h"
#include "ui/ozone/platform/wayland/host/wayland_window_drag_controller.h"
#include "ui/ozone/platform/wayland/host/wayland_zaura_shell.h"
namespace ui {
namespace {
wl::EventDispatchPolicy EventDispatchPolicyForPlatform() { … }
}
WaylandPointer::WaylandPointer(wl_pointer* pointer,
WaylandConnection* connection,
Delegate* delegate)
: … { … }
WaylandPointer::~WaylandPointer() { … }
void WaylandPointer::OnEnter(void* data,
wl_pointer* pointer,
uint32_t serial,
wl_surface* surface,
wl_fixed_t surface_x,
wl_fixed_t surface_y) { … }
void WaylandPointer::OnLeave(void* data,
wl_pointer* pointer,
uint32_t serial,
wl_surface* surface) { … }
void WaylandPointer::OnMotion(void* data,
wl_pointer* pointer,
uint32_t time,
wl_fixed_t surface_x,
wl_fixed_t surface_y) { … }
void WaylandPointer::OnButton(void* data,
wl_pointer* pointer,
uint32_t serial,
uint32_t time,
uint32_t button,
uint32_t state) { … }
void WaylandPointer::OnAxis(void* data,
wl_pointer* pointer,
uint32_t time,
uint32_t axis,
wl_fixed_t value) { … }
void WaylandPointer::OnFrame(void* data, wl_pointer* pointer) { … }
void WaylandPointer::OnAxisSource(void* data,
wl_pointer* pointer,
uint32_t axis_source) { … }
void WaylandPointer::OnAxisStop(void* data,
wl_pointer* pointer,
uint32_t time,
uint32_t axis) { … }
void WaylandPointer::OnAxisDiscrete(void* data,
wl_pointer* pointer,
uint32_t axis,
int32_t discrete) { … }
void WaylandPointer::OnAxisValue120(void* data,
wl_pointer* pointer,
uint32_t axis,
int32_t value120) { … }
void WaylandPointer::SetupStylus() { … }
void WaylandPointer::OnTool(void* data,
struct zcr_pointer_stylus_v2* stylus,
uint32_t wl_pointer_type) { … }
void WaylandPointer::OnForce(void* data,
struct zcr_pointer_stylus_v2* stylus,
uint32_t time,
wl_fixed_t force) { … }
void WaylandPointer::OnTilt(void* data,
struct zcr_pointer_stylus_v2* stylus,
uint32_t time,
wl_fixed_t tilt_x,
wl_fixed_t tilt_y) { … }
bool WaylandPointer::SuppressFocusChangeEvents() const { … }
}