#include "ui/ozone/platform/wayland/host/zwp_primary_selection_device_manager.h"
#include <primary-selection-unstable-v1-client-protocol.h>
#include <memory>
#include "base/logging.h"
#include "ui/ozone/platform/wayland/host/wayland_connection.h"
#include "ui/ozone/platform/wayland/host/wayland_data_source.h"
#include "ui/ozone/platform/wayland/host/wayland_seat.h"
#include "ui/ozone/platform/wayland/host/zwp_primary_selection_device.h"
namespace ui {
namespace {
constexpr uint32_t kMinVersion = …;
}
constexpr char ZwpPrimarySelectionDeviceManager::kInterfaceName[];
void ZwpPrimarySelectionDeviceManager::Instantiate(
WaylandConnection* connection,
wl_registry* registry,
uint32_t name,
const std::string& interface,
uint32_t version) { … }
ZwpPrimarySelectionDeviceManager::ZwpPrimarySelectionDeviceManager(
zwp_primary_selection_device_manager_v1* manager,
WaylandConnection* connection)
: … { … }
ZwpPrimarySelectionDeviceManager::~ZwpPrimarySelectionDeviceManager() = default;
ZwpPrimarySelectionDevice* ZwpPrimarySelectionDeviceManager::GetDevice() { … }
std::unique_ptr<ZwpPrimarySelectionSource>
ZwpPrimarySelectionDeviceManager::CreateSource(
ZwpPrimarySelectionSource::Delegate* delegate) { … }
}