#include "ui/ozone/platform/wayland/test/mock_zwp_text_input.h"
namespace wl {
namespace {
void TextInputV1Activate(wl_client* client,
wl_resource* resource,
wl_resource* seat,
wl_resource* surface) { … }
void TextInputV1Deactivate(wl_client* client,
wl_resource* resource,
wl_resource* seat) { … }
void TextInputV1ShowInputPanel(wl_client* client, wl_resource* resource) { … }
void TextInputV1HideInputPanel(wl_client* client, wl_resource* resource) { … }
void TextInputV1Reset(wl_client* client, wl_resource* resource) { … }
void TextInputV1SetSurroundingText(wl_client* client,
wl_resource* resource,
const char* text,
uint32_t cursor,
uint32_t anchor) { … }
void TextInputV1SetContentType(wl_client* client,
wl_resource* resource,
uint32_t content_hint,
uint32_t content_purpose) { … }
void TextInputV1SetCursorRectangle(wl_client* client,
wl_resource* resource,
int32_t x,
int32_t y,
int32_t width,
int32_t height) { … }
void TextInputV3Enable(struct wl_client* client, struct wl_resource* resource) { … }
void TextInputV3Disable(struct wl_client* client,
struct wl_resource* resource) { … }
void TextInputV3SetSurroundingText(struct wl_client* client,
struct wl_resource* resource,
const char* text,
int32_t cursor,
int32_t anchor) { … }
void TextInputV3SetTextChangeCause(struct wl_client* client,
struct wl_resource* resource,
uint32_t cause) { … }
void TextInputV3SetContentType(struct wl_client* client,
struct wl_resource* resource,
uint32_t hint,
uint32_t purpose) { … }
void TextInputV3SetCursorRectangle(struct wl_client* client,
struct wl_resource* resource,
int32_t x,
int32_t y,
int32_t width,
int32_t height) { … }
void TextInputV3Commit(struct wl_client* client, struct wl_resource* resource) { … }
}
const struct zwp_text_input_v1_interface kMockZwpTextInputV1Impl = …;
const struct zwp_text_input_v3_interface kMockZwpTextInputV3Impl = …;
MockZwpTextInputV1::MockZwpTextInputV1(wl_resource* resource)
: … { … }
MockZwpTextInputV1::~MockZwpTextInputV1() { … }
MockZwpTextInputV3::MockZwpTextInputV3(wl_resource* resource)
: … { … }
MockZwpTextInputV3::~MockZwpTextInputV3() { … }
}