5#include "flutter/shell/platform/linux/testing/mock_text_input_view_delegate.h"
10 fl_mock_text_input_view_delegate,
12 MOCK_TEXT_INPUT_VIEW_DELEGATE,
15struct _FlMockTextInputViewDelegate {
16 GObject parent_instance;
22 FlMockTextInputViewDelegate*
self = FL_MOCK_TEXT_INPUT_VIEW_DELEGATE(
23 g_object_new(fl_mock_text_input_view_delegate_get_type(),
nullptr));
25 return FL_TEXT_INPUT_VIEW_DELEGATE(
self);
28MockTextInputViewDelegate::MockTextInputViewDelegate()
32 if (FL_IS_TEXT_INPUT_VIEW_DELEGATE(instance_)) {
33 g_clear_object(&instance_);
37MockTextInputViewDelegate::operator FlTextInputViewDelegate*() {
42 FlTextInputViewDelegateInterface* iface);
45 FlMockTextInputViewDelegate,
46 fl_mock_text_input_view_delegate,
48 G_IMPLEMENT_INTERFACE(fl_text_input_view_delegate_get_type(),
51static void fl_mock_text_input_view_delegate_class_init(
52 FlMockTextInputViewDelegateClass* klass) {}
55 FlTextInputViewDelegate* view_delegate,
60 g_return_if_fail(FL_IS_MOCK_TEXT_INPUT_VIEW_DELEGATE(view_delegate));
61 FlMockTextInputViewDelegate*
self =
62 FL_MOCK_TEXT_INPUT_VIEW_DELEGATE(view_delegate);
63 self->mock->fl_text_input_view_delegate_translate_coordinates(
64 view_delegate, view_x, view_y, window_x, window_y);
68 FlTextInputViewDelegateInterface* iface) {
69 iface->translate_coordinates =
74 FlMockTextInputViewDelegate*
self) {}
~MockTextInputViewDelegate()
static FlTextInputViewDelegate * fl_mock_text_input_view_delegate_new(MockTextInputViewDelegate *mock)
static void fl_mock_text_input_view_delegate_init(FlMockTextInputViewDelegate *self)
G_DECLARE_FINAL_TYPE(FlMockTextInputViewDelegate, fl_mock_text_input_view_delegate, FL, MOCK_TEXT_INPUT_VIEW_DELEGATE, GObject) struct _FlMockTextInputViewDelegate
static void fl_mock_text_input_view_delegate_translate_coordinates(FlTextInputViewDelegate *view_delegate, gint view_x, gint view_y, gint *window_x, gint *window_y)
G_DEFINE_TYPE_WITH_CODE(FlMockTextInputViewDelegate, fl_mock_text_input_view_delegate, G_TYPE_OBJECT, G_IMPLEMENT_INTERFACE(fl_text_input_view_delegate_get_type(), fl_mock_text_input_view_delegate_iface_init)) static void fl_mock_text_input_view_delegate_class_init(FlMockTextInputViewDelegateClass *klass)
static void fl_mock_text_input_view_delegate_iface_init(FlTextInputViewDelegateInterface *iface)