#include "ui/ozone/platform/wayland/host/wayland_touch.h"
#include <stylus-unstable-v2-client-protocol.h>
#include "base/logging.h"
#include "base/notreached.h"
#include "base/time/time.h"
#include "ui/events/types/event_type.h"
#include "ui/gfx/geometry/point_f.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"
namespace ui {
namespace {
wl::EventDispatchPolicy EventDispatchPolicyForPlatform() { … }
}
WaylandTouch::WaylandTouch(wl_touch* touch,
WaylandConnection* connection,
Delegate* delegate)
: … { … }
WaylandTouch::~WaylandTouch() { … }
void WaylandTouch::OnTouchDown(void* data,
wl_touch* touch,
uint32_t serial,
uint32_t time,
struct wl_surface* surface,
int32_t id,
wl_fixed_t x,
wl_fixed_t y) { … }
void WaylandTouch::OnTouchUp(void* data,
wl_touch* touch,
uint32_t serial,
uint32_t time,
int32_t id) { … }
void WaylandTouch::OnTouchMotion(void* data,
wl_touch* touch,
uint32_t time,
int32_t id,
wl_fixed_t x,
wl_fixed_t y) { … }
void WaylandTouch::OnTouchShape(void* data,
wl_touch* touch,
int32_t id,
wl_fixed_t major,
wl_fixed_t minor) { … }
void WaylandTouch::OnTouchOrientation(void* data,
wl_touch* touch,
int32_t id,
wl_fixed_t orientation) { … }
void WaylandTouch::OnTouchCancel(void* data, wl_touch* touch) { … }
void WaylandTouch::OnTouchFrame(void* data, wl_touch* touch) { … }
void WaylandTouch::SetupStylus() { … }
void WaylandTouch::OnTouchStylusTool(void* data,
struct zcr_touch_stylus_v2* stylus,
uint32_t id,
uint32_t stylus_type) { … }
void WaylandTouch::OnTouchStylusForce(void* data,
struct zcr_touch_stylus_v2* stylus,
uint32_t time,
uint32_t id,
wl_fixed_t force) { … }
void WaylandTouch::OnTouchStylusTilt(void* data,
struct zcr_touch_stylus_v2* stylus,
uint32_t time,
uint32_t id,
wl_fixed_t tilt_x,
wl_fixed_t tilt_y) { … }
}