#include "ui/ozone/platform/wayland/host/wayland_zwp_pointer_constraints.h"
#include <pointer-constraints-unstable-v1-client-protocol.h>
#include "base/logging.h"
#include "ui/ozone/platform/wayland/host/wayland_connection.h"
#include "ui/ozone/platform/wayland/host/wayland_pointer.h"
#include "ui/ozone/platform/wayland/host/wayland_seat.h"
#include "ui/ozone/platform/wayland/host/wayland_surface.h"
#include "ui/ozone/platform/wayland/host/wayland_zwp_relative_pointer_manager.h"
namespace ui {
namespace {
constexpr uint32_t kMinVersion = …;
}
constexpr char WaylandZwpPointerConstraints::kInterfaceName[];
void WaylandZwpPointerConstraints::Instantiate(WaylandConnection* connection,
wl_registry* registry,
uint32_t name,
const std::string& interface,
uint32_t version) { … }
WaylandZwpPointerConstraints::WaylandZwpPointerConstraints(
zwp_pointer_constraints_v1* pointer_constraints,
WaylandConnection* connection)
: … { … }
WaylandZwpPointerConstraints::~WaylandZwpPointerConstraints() = default;
void WaylandZwpPointerConstraints::LockPointer(WaylandSurface* surface) { … }
void WaylandZwpPointerConstraints::UnlockPointer() { … }
void WaylandZwpPointerConstraints::OnLocked(
void* data,
struct zwp_locked_pointer_v1* locked_pointer) { … }
void WaylandZwpPointerConstraints::OnUnlocked(
void* data,
struct zwp_locked_pointer_v1* locked_pointer) { … }
}