#include "ui/ozone/platform/wayland/host/wayland_zcr_cursor_shapes.h"
#include <cursor-shapes-unstable-v1-client-protocol.h>
#include <optional>
#include "base/check.h"
#include "ui/base/cursor/mojom/cursor_type.mojom-shared.h"
#include "ui/gfx/native_widget_types.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"
namespace ui {
namespace {
constexpr uint32_t kMinVersion = …;
}
CursorType;
constexpr char WaylandZcrCursorShapes::kInterfaceName[];
void WaylandZcrCursorShapes::Instantiate(WaylandConnection* connection,
wl_registry* registry,
uint32_t name,
const std::string& interface,
uint32_t version) { … }
WaylandZcrCursorShapes::WaylandZcrCursorShapes(
zcr_cursor_shapes_v1* zcr_cursor_shapes,
WaylandConnection* connection)
: … { … }
WaylandZcrCursorShapes::~WaylandZcrCursorShapes() = default;
std::optional<int32_t> WaylandZcrCursorShapes::ShapeFromType(CursorType type) { … }
void WaylandZcrCursorShapes::SetCursorShape(int32_t shape) { … }
}