#include "ui/ozone/platform/wayland/test/mock_wp_presentation.h"
#include <wayland-server-core.h>
#include "base/logging.h"
#include "ui/ozone/platform/wayland/test/server_object.h"
namespace wl {
namespace {
void Feedback(struct wl_client* client,
struct wl_resource* resource,
struct wl_resource* surface,
uint32_t callback) { … }
}
const struct wp_presentation_interface kMockWpPresentationImpl = …;
MockWpPresentation::MockWpPresentation()
: … { … }
MockWpPresentation::~MockWpPresentation() = default;
void MockWpPresentation::OnFeedback(wl_resource* callback_resource) { … }
void MockWpPresentation::DropPresentationCallback(bool last) { … }
void MockWpPresentation::SendPresentationCallback() { … }
void MockWpPresentation::SendPresentationCallbackDiscarded(bool last) { … }
void MockWpPresentation::SendPresentationFeedbackToClient(
bool last,
std::optional<PresentationFeedbackParams> params) { … }
wl_resource* MockWpPresentation::GetPresentationCallbackResource(bool last) { … }
}