chromium/ui/ozone/platform/wayland/test/mock_xdg_activation_v1.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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) {}

}  // namespace

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) {}

}  // namespace

const struct xdg_activation_v1_interface kMockXdgActivationV1Impl =;

MockXdgActivationV1::MockXdgActivationV1()
    :{}

MockXdgActivationV1::~MockXdgActivationV1() = default;

}  // namespace wl