#include "ui/ozone/platform/wayland/test/test_data_offer.h"
#include <wayland-server-core.h>
#include <utility>
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/memory/raw_ptr.h"
#include "ui/ozone/platform/wayland/test/test_selection_device_manager.h"
namespace wl {
namespace {
void DataOfferAccept(wl_client* client,
wl_resource* resource,
uint32_t serial,
const char* mime_type) { … }
void DataOfferDestroy(wl_client* client, wl_resource* resource) { … }
void DataOfferFinish(wl_client* client, wl_resource* resource) { … }
void DataOfferSetActions(wl_client* client,
wl_resource* resource,
uint32_t dnd_actions,
uint32_t preferred_action) { … }
struct WlDataOfferImpl : public TestSelectionOffer::Delegate { … };
}
const struct wl_data_offer_interface kTestDataOfferImpl = …;
TestDataOffer::TestDataOffer(wl_resource* resource)
: … { … }
TestDataOffer::~TestDataOffer() = default;
TestDataOffer* TestDataOffer::FromResource(wl_resource* resource) { … }
void TestDataOffer::SetActions(uint32_t dnd_actions,
uint32_t preferred_action) { … }
void TestDataOffer::OnSourceActions(uint32_t source_actions) { … }
void TestDataOffer::OnAction(uint32_t dnd_action) { … }
}