#include "ui/ozone/platform/wayland/host/wayland_cursor_shape.h"
#include <cursor-shape-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 WaylandCursorShape::kInterfaceName[];
void WaylandCursorShape::Instantiate(WaylandConnection* connection,
wl_registry* registry,
uint32_t name,
const std::string& interface,
uint32_t version) { … }
WaylandCursorShape::WaylandCursorShape(wp_cursor_shape_manager_v1* cursor_shape,
WaylandConnection* connection)
: … { … }
WaylandCursorShape::~WaylandCursorShape() = default;
wp_cursor_shape_device_v1* WaylandCursorShape::GetShapeDevice() { … }
std::optional<uint32_t> WaylandCursorShape::ShapeFromType(CursorType type) { … }
void WaylandCursorShape::SetCursorShape(uint32_t shape) { … }
}