#include "ui/ozone/platform/wayland/test/mock_xdg_activation_v1.h"
#include <wayland-server-core.h>
#include "ui/ozone/platform/wayland/test/server_object.h"
namespace wl {
namespace {
void SetSerial(struct wl_client* client,
struct wl_resource* resource,
uint32_t serial,
struct wl_resource* seat) { … }
void SetAppId(struct wl_client* client,
struct wl_resource* resource,
const char* app_id) { … }
void SetSurface(struct wl_client* client,
struct wl_resource* resource,
struct wl_resource* surface) { … }
void Commit(struct wl_client* client, struct wl_resource* resource) { … }
}
const struct xdg_activation_token_v1_interface kMockXdgActivationTokenV1Impl = …;
MockXdgActivationTokenV1::MockXdgActivationTokenV1(wl_resource* resource,
MockXdgActivationV1* global)
: … { … }
MockXdgActivationTokenV1::~MockXdgActivationTokenV1() = default;
namespace {
void GetActivationToken(struct wl_client* client,
struct wl_resource* resource,
uint32_t id) { … }
void Activate(struct wl_client* client,
struct wl_resource* resource,
const char* token,
struct wl_resource* surface) { … }
}
const struct xdg_activation_v1_interface kMockXdgActivationV1Impl = …;
MockXdgActivationV1::MockXdgActivationV1()
: … { … }
MockXdgActivationV1::~MockXdgActivationV1() = default;
}