#include <dlfcn.h>#include <gdk/gdkwayland.h>#include "flutter/shell/platform/linux/testing/mock_gtk.h"Go to the source code of this file.
Classes | |
| struct | _FlMockKeymap |
Functions | |
| static void | fl_mock_keymap_class_init (FlMockKeymapClass *klass) |
| static void | fl_mock_keymap_init (FlMockKeymap *self) |
| GType | gdk_keymap_get_type () |
| static void | check_thread () |
| GdkKeymap * | gdk_keymap_get_for_display (GdkDisplay *display) |
| guint | gdk_keymap_lookup_key (GdkKeymap *keymap, const GdkKeymapKey *key) |
| GdkDisplay * | gdk_display_get_default () |
| void | gdk_display_beep (GdkDisplay *display) |
| int | gdk_window_get_width (GdkWindow *window) |
| int | gdk_window_get_height (GdkWindow *window) |
| gint | gdk_window_get_scale_factor (GdkWindow *window) |
| GdkWindowState | gdk_window_get_state (GdkWindow *window) |
| GdkDisplay * | gdk_window_get_display (GdkWindow *window) |
| int | gdk_display_get_n_monitors (GdkDisplay *display) |
| GdkMonitor * | gdk_display_get_monitor (GdkDisplay *display, int n) |
| GdkMonitor * | gdk_display_get_monitor_at_window (GdkDisplay *display, GdkWindow *window) |
| void | gdk_monitor_get_geometry (GdkMonitor *monitor, GdkRectangle *geometry) |
| int | gdk_monitor_get_refresh_rate (GdkMonitor *monitor) |
| int | gdk_monitor_get_scale_factor (GdkMonitor *monitor) |
| GdkCursor * | gdk_cursor_new_from_name (GdkDisplay *display, const gchar *name) |
| void | gdk_window_set_cursor (GdkWindow *window, GdkCursor *cursor) |
| GdkGLContext * | gdk_window_create_gl_context (GdkWindow *window, GError **error) |
| void | gdk_cairo_set_source_rgba (cairo_t *cr, const GdkRGBA *rgba) |
| void | gdk_gl_context_realize (GdkGLContext *context) |
| void | gdk_gl_context_clear_current (GdkGLContext *context) |
| void | gdk_gl_context_make_current (GdkGLContext *context) |
| void | gdk_cairo_draw_from_gl (cairo_t *cr, GdkWindow *window, int source, int source_type, int buffer_scale, int x, int y, int width, int height) |
| GtkWidget * | gtk_window_new (GtkWindowType type) |
| void | gtk_window_set_default_size (GtkWindow *window, gint width, gint height) |
| void | gtk_window_set_title (GtkWindow *window, const gchar *title) |
| void | gtk_window_set_geometry_hints (GtkWindow *window, GtkWidget *widget, GdkGeometry *geometry, GdkWindowHints geometry_mask) |
| void | gtk_window_resize (GtkWindow *window, gint width, gint height) |
| void | gtk_window_maximize (GtkWindow *window) |
| void | gtk_window_unmaximize (GtkWindow *window) |
| gboolean | gtk_window_is_maximized (GtkWindow *window) |
| void | gtk_window_iconify (GtkWindow *window) |
| void | gtk_window_deiconify (GtkWindow *window) |
| void | gtk_widget_add_events (GtkWidget *widget, gint events) |
| void | gtk_widget_class_set_accessible_type (GtkWidget *widget, GType type) |
| void | gtk_widget_get_allocation (GtkWidget *widget, GtkAllocation *allocation) |
| GdkDisplay * | gtk_widget_get_display (GtkWidget *widget) |
| gint | gtk_widget_get_scale_factor (GtkWidget *widget) |
| void | gtk_widget_realize (GtkWidget *widget) |
| void | gtk_widget_show (GtkWidget *widget) |
| void | gtk_widget_queue_draw (GtkWidget *widget) |
| void | gtk_widget_destroy (GtkWidget *widget) |
| void | fl_gtk_widget_destroy (GtkWidget *widget) |
| gboolean | gtk_widget_translate_coordinates (GtkWidget *src_widget, GtkWidget *dest_widget, gint src_x, gint src_y, gint *dest_x, gint *dest_y) |
| GtkWidget * | gtk_widget_get_toplevel (GtkWidget *widget) |
| GdkWindow * | gtk_widget_get_window (GtkWidget *widget) |
| void | gtk_im_context_set_client_window (GtkIMContext *context, GdkWindow *window) |
| void | gtk_im_context_get_preedit_string (GtkIMContext *context, gchar **str, PangoAttrList **attrs, gint *cursor_pos) |
| gboolean | gtk_im_context_filter_keypress (GtkIMContext *context, GdkEventKey *event) |
| void | gtk_im_context_focus_in (GtkIMContext *context) |
| void | gtk_im_context_focus_out (GtkIMContext *context) |
| void | gtk_im_context_set_cursor_location (GtkIMContext *context, const GdkRectangle *area) |
| void | gtk_im_context_set_surrounding (GtkIMContext *context, const gchar *text, gint len, gint cursor_index) |
| GtkClipboard * | gtk_clipboard_get_default (GdkDisplay *display) |
| void | gtk_clipboard_set_text (GtkClipboard *clipboard, const gchar *text, gint len) |
| void | gtk_clipboard_request_text (GtkClipboard *clipboard, GtkClipboardTextReceivedFunc callback, gpointer user_data) |
| void | atk_object_notify_state_change (AtkObject *accessible, AtkState state, gboolean value) |
Variables | |
| static MockGtk * | mock = nullptr |
| void atk_object_notify_state_change | ( | AtkObject * | accessible, |
| AtkState | state, | ||
| gboolean | value | ||
| ) |
Definition at line 380 of file mock_gtk.cc.
References check_thread(), mock, and value.
Referenced by fl_accessible_node_set_flags_impl(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
|
static |
Definition at line 46 of file mock_gtk.cc.
References mock.
Referenced by atk_object_notify_state_change(), fl_gtk_widget_destroy(), gdk_cairo_draw_from_gl(), gdk_cairo_set_source_rgba(), gdk_cursor_new_from_name(), gdk_display_beep(), gdk_display_get_default(), gdk_display_get_monitor(), gdk_display_get_monitor_at_window(), gdk_display_get_n_monitors(), gdk_gl_context_clear_current(), gdk_gl_context_make_current(), gdk_gl_context_realize(), gdk_keymap_get_for_display(), gdk_keymap_lookup_key(), gdk_monitor_get_geometry(), gdk_monitor_get_refresh_rate(), gdk_monitor_get_scale_factor(), gdk_window_create_gl_context(), gdk_window_get_display(), gdk_window_get_height(), gdk_window_get_scale_factor(), gdk_window_get_state(), gdk_window_get_width(), gdk_window_set_cursor(), gtk_clipboard_get_default(), gtk_clipboard_request_text(), gtk_clipboard_set_text(), gtk_im_context_filter_keypress(), gtk_im_context_focus_in(), gtk_im_context_focus_out(), gtk_im_context_get_preedit_string(), gtk_im_context_set_client_window(), gtk_im_context_set_cursor_location(), gtk_im_context_set_surrounding(), gtk_widget_add_events(), gtk_widget_class_set_accessible_type(), gtk_widget_destroy(), gtk_widget_get_allocation(), gtk_widget_get_display(), gtk_widget_get_scale_factor(), gtk_widget_get_toplevel(), gtk_widget_get_window(), gtk_widget_queue_draw(), gtk_widget_realize(), gtk_widget_show(), gtk_widget_translate_coordinates(), gtk_window_deiconify(), gtk_window_iconify(), gtk_window_is_maximized(), gtk_window_maximize(), gtk_window_new(), gtk_window_resize(), gtk_window_set_default_size(), gtk_window_set_geometry_hints(), gtk_window_set_title(), and gtk_window_unmaximize().
| void fl_gtk_widget_destroy | ( | GtkWidget * | widget | ) |
Definition at line 269 of file mock_gtk.cc.
References check_thread(), and destroy.
|
static |
Definition at line 20 of file mock_gtk.cc.
|
static |
Definition at line 25 of file mock_gtk.cc.
| void gdk_cairo_draw_from_gl | ( | cairo_t * | cr, |
| GdkWindow * | window, | ||
| int | source, | ||
| int | source_type, | ||
| int | buffer_scale, | ||
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height | ||
| ) |
Definition at line 159 of file mock_gtk.cc.
References check_thread().
Referenced by fl_compositor_opengl_render().
| void gdk_cairo_set_source_rgba | ( | cairo_t * | cr, |
| const GdkRGBA * | rgba | ||
| ) |
Definition at line 143 of file mock_gtk.cc.
References check_thread().
Referenced by paint_background().
| GdkCursor * gdk_cursor_new_from_name | ( | GdkDisplay * | display, |
| const gchar * | name | ||
| ) |
Definition at line 129 of file mock_gtk.cc.
References check_thread().
Referenced by cursor_changed_cb().
| void gdk_display_beep | ( | GdkDisplay * | display | ) |
Definition at line 70 of file mock_gtk.cc.
References check_thread().
Referenced by system_sound_play().
| GdkDisplay * gdk_display_get_default | ( | ) |
Definition at line 65 of file mock_gtk.cc.
References check_thread().
Referenced by clipboard_get_data(), clipboard_has_strings(), clipboard_set_data(), fl_engine_init(), fl_keyboard_manager_init(), fl_opengl_manager_init(), system_sound_play(), and TEST().
| GdkMonitor * gdk_display_get_monitor | ( | GdkDisplay * | display, |
| int | n | ||
| ) |
Definition at line 104 of file mock_gtk.cc.
References check_thread().
Referenced by notify_display_update().
| GdkMonitor * gdk_display_get_monitor_at_window | ( | GdkDisplay * | display, |
| GdkWindow * | window | ||
| ) |
Definition at line 109 of file mock_gtk.cc.
References check_thread().
Referenced by handle_geometry_changed().
| int gdk_display_get_n_monitors | ( | GdkDisplay * | display | ) |
Definition at line 99 of file mock_gtk.cc.
References check_thread().
Referenced by notify_display_update().
| void gdk_gl_context_clear_current | ( | GdkGLContext * | context | ) |
| void gdk_gl_context_make_current | ( | GdkGLContext * | context | ) |
| void gdk_gl_context_realize | ( | GdkGLContext * | context | ) |
Definition at line 147 of file mock_gtk.cc.
References check_thread().
Referenced by setup_opengl().
| GdkKeymap * gdk_keymap_get_for_display | ( | GdkDisplay * | display | ) |
Definition at line 52 of file mock_gtk.cc.
References check_thread().
Referenced by fl_keyboard_manager_init().
| GType gdk_keymap_get_type | ( | ) |
Definition at line 28 of file mock_gtk.cc.
| guint gdk_keymap_lookup_key | ( | GdkKeymap * | keymap, |
| const GdkKeymapKey * | key | ||
| ) |
Definition at line 60 of file mock_gtk.cc.
References check_thread(), key, and mock.
Referenced by convert_key_to_char().
| void gdk_monitor_get_geometry | ( | GdkMonitor * | monitor, |
| GdkRectangle * | geometry | ||
| ) |
Definition at line 115 of file mock_gtk.cc.
References check_thread().
Referenced by notify_display_update().
| int gdk_monitor_get_refresh_rate | ( | GdkMonitor * | monitor | ) |
Definition at line 119 of file mock_gtk.cc.
References check_thread().
Referenced by notify_display_update().
| int gdk_monitor_get_scale_factor | ( | GdkMonitor * | monitor | ) |
Definition at line 124 of file mock_gtk.cc.
References check_thread().
Referenced by notify_display_update().
| GdkGLContext * gdk_window_create_gl_context | ( | GdkWindow * | window, |
| GError ** | error | ||
| ) |
Definition at line 138 of file mock_gtk.cc.
References check_thread().
Referenced by setup_opengl().
| GdkDisplay * gdk_window_get_display | ( | GdkWindow * | window | ) |
Definition at line 94 of file mock_gtk.cc.
References check_thread().
Referenced by cursor_changed_cb().
| int gdk_window_get_height | ( | GdkWindow * | window | ) |
Definition at line 79 of file mock_gtk.cc.
References check_thread().
Referenced by fl_compositor_opengl_render(), and fl_compositor_software_render().
| gint gdk_window_get_scale_factor | ( | GdkWindow * | window | ) |
Definition at line 84 of file mock_gtk.cc.
References check_thread().
Referenced by fl_compositor_opengl_render(), and fl_compositor_software_render().
| GdkWindowState gdk_window_get_state | ( | GdkWindow * | window | ) |
Definition at line 89 of file mock_gtk.cc.
References check_thread(), mock, and window.
Referenced by fl_window_state_monitor_new(), modify_regular(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().
| int gdk_window_get_width | ( | GdkWindow * | window | ) |
Definition at line 74 of file mock_gtk.cc.
References check_thread().
Referenced by fl_compositor_opengl_render(), and fl_compositor_software_render().
| void gdk_window_set_cursor | ( | GdkWindow * | window, |
| GdkCursor * | cursor | ||
| ) |
Definition at line 134 of file mock_gtk.cc.
References check_thread().
Referenced by cursor_changed_cb().
| GtkClipboard * gtk_clipboard_get_default | ( | GdkDisplay * | display | ) |
Definition at line 363 of file mock_gtk.cc.
References check_thread().
Referenced by clipboard_get_data(), clipboard_has_strings(), and clipboard_set_data().
| void gtk_clipboard_request_text | ( | GtkClipboard * | clipboard, |
| GtkClipboardTextReceivedFunc | callback, | ||
| gpointer | user_data | ||
| ) |
Definition at line 374 of file mock_gtk.cc.
References check_thread().
Referenced by clipboard_get_data(), and clipboard_has_strings().
| void gtk_clipboard_set_text | ( | GtkClipboard * | clipboard, |
| const gchar * | text, | ||
| gint | len | ||
| ) |
Definition at line 368 of file mock_gtk.cc.
References check_thread().
Referenced by clipboard_set_data().
| gboolean gtk_im_context_filter_keypress | ( | GtkIMContext * | context, |
| GdkEventKey * | event | ||
| ) |
Definition at line 321 of file mock_gtk.cc.
References check_thread(), mock, and TRUE.
Referenced by fl_text_input_handler_filter_keypress().
| void gtk_im_context_focus_in | ( | GtkIMContext * | context | ) |
Definition at line 331 of file mock_gtk.cc.
References check_thread(), and mock.
| void gtk_im_context_focus_out | ( | GtkIMContext * | context | ) |
Definition at line 338 of file mock_gtk.cc.
References check_thread(), and mock.
Referenced by fl_text_input_handler_new(), hide(), TEST(), and TEST().
| void gtk_im_context_get_preedit_string | ( | GtkIMContext * | context, |
| gchar ** | str, | ||
| PangoAttrList ** | attrs, | ||
| gint * | cursor_pos | ||
| ) |
Definition at line 311 of file mock_gtk.cc.
References check_thread(), and mock.
Referenced by im_preedit_changed_cb(), TEST(), and TEST().
| void gtk_im_context_set_client_window | ( | GtkIMContext * | context, |
| GdkWindow * | window | ||
| ) |
Definition at line 303 of file mock_gtk.cc.
References check_thread(), mock, and window.
Referenced by fl_text_input_handler_set_widget().
| void gtk_im_context_set_cursor_location | ( | GtkIMContext * | context, |
| const GdkRectangle * | area | ||
| ) |
Definition at line 345 of file mock_gtk.cc.
References check_thread(), and mock.
Referenced by TEST(), and update_im_cursor_position().
| void gtk_im_context_set_surrounding | ( | GtkIMContext * | context, |
| const gchar * | text, | ||
| gint | len, | ||
| gint | cursor_index | ||
| ) |
Definition at line 353 of file mock_gtk.cc.
References check_thread(), mock, and text.
Referenced by im_retrieve_surrounding_cb(), and TEST().
| void gtk_widget_add_events | ( | GtkWidget * | widget, |
| gint | events | ||
| ) |
Definition at line 226 of file mock_gtk.cc.
References check_thread().
Referenced by fl_view_init().
| void gtk_widget_class_set_accessible_type | ( | GtkWidget * | widget, |
| GType | type | ||
| ) |
Definition at line 230 of file mock_gtk.cc.
References check_thread().
Referenced by fl_view_class_init().
| void gtk_widget_destroy | ( | GtkWidget * | widget | ) |
Definition at line 264 of file mock_gtk.cc.
References check_thread(), and mock.
Referenced by destroy_window(), and TEST().
| void gtk_widget_get_allocation | ( | GtkWidget * | widget, |
| GtkAllocation * | allocation | ||
| ) |
Definition at line 234 of file mock_gtk.cc.
References check_thread().
Referenced by handle_geometry_changed().
| GdkDisplay * gtk_widget_get_display | ( | GtkWidget * | widget | ) |
Definition at line 242 of file mock_gtk.cc.
References check_thread().
Referenced by handle_geometry_changed(), and setup_opengl().
| gint gtk_widget_get_scale_factor | ( | GtkWidget * | widget | ) |
Definition at line 247 of file mock_gtk.cc.
References check_thread().
Referenced by button_press_event_cb(), button_release_event_cb(), enter_notify_event_cb(), handle_geometry_changed(), leave_notify_event_cb(), motion_notify_event_cb(), scroll_event_cb(), set_scrolling_position(), and touch_event_cb().
| GtkWidget * gtk_widget_get_toplevel | ( | GtkWidget * | widget | ) |
Definition at line 293 of file mock_gtk.cc.
References check_thread().
Referenced by cursor_changed_cb(), first_frame_cb(), handle_geometry_changed(), realize_cb(), and update_im_cursor_position().
| GdkWindow * gtk_widget_get_window | ( | GtkWidget * | widget | ) |
Definition at line 298 of file mock_gtk.cc.
References check_thread().
Referenced by cursor_changed_cb(), draw_cb(), fl_text_input_handler_set_widget(), fl_window_state_monitor_new(), handle_geometry_changed(), modify_regular(), and setup_opengl().
| void gtk_widget_queue_draw | ( | GtkWidget * | widget | ) |
Definition at line 260 of file mock_gtk.cc.
References check_thread().
Referenced by G_DEFINE_TYPE_WITH_CODE().
| void gtk_widget_realize | ( | GtkWidget * | widget | ) |
Definition at line 252 of file mock_gtk.cc.
References check_thread().
Referenced by create_regular(), fl_application_activate(), and fl_view_realize().
| void gtk_widget_show | ( | GtkWidget * | widget | ) |
Definition at line 256 of file mock_gtk.cc.
References check_thread().
Referenced by create_regular(), fl_application_activate(), fl_application_create_window(), fl_view_init(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().
| gboolean gtk_widget_translate_coordinates | ( | GtkWidget * | src_widget, |
| GtkWidget * | dest_widget, | ||
| gint | src_x, | ||
| gint | src_y, | ||
| gint * | dest_x, | ||
| gint * | dest_y | ||
| ) |
Definition at line 276 of file mock_gtk.cc.
References check_thread(), mock, and TRUE.
Referenced by TEST(), and update_im_cursor_position().
| void gtk_window_deiconify | ( | GtkWindow * | window | ) |
Definition at line 221 of file mock_gtk.cc.
References check_thread(), mock, and window.
Referenced by modify_regular(), and TEST().
| void gtk_window_iconify | ( | GtkWindow * | window | ) |
Definition at line 216 of file mock_gtk.cc.
References check_thread(), mock, and window.
Referenced by create_regular(), modify_regular(), TEST(), TEST(), and TEST().
| gboolean gtk_window_is_maximized | ( | GtkWindow * | window | ) |
Definition at line 211 of file mock_gtk.cc.
References check_thread(), mock, and window.
Referenced by modify_regular(), and TEST().
| void gtk_window_maximize | ( | GtkWindow * | window | ) |
Definition at line 201 of file mock_gtk.cc.
References check_thread(), mock, and window.
Referenced by create_regular(), modify_regular(), TEST(), TEST(), and TEST().
| GtkWidget * gtk_window_new | ( | GtkWindowType | type | ) |
Definition at line 171 of file mock_gtk.cc.
References check_thread(), mock, type, and window.
Referenced by fl_windowing_handler_create_window(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().
| void gtk_window_resize | ( | GtkWindow * | window, |
| gint | width, | ||
| gint | height | ||
| ) |
Definition at line 196 of file mock_gtk.cc.
References check_thread(), height, mock, width, and window.
Referenced by modify_regular(), and TEST().
| void gtk_window_set_default_size | ( | GtkWindow * | window, |
| gint | width, | ||
| gint | height | ||
| ) |
Definition at line 178 of file mock_gtk.cc.
References check_thread(), height, mock, width, and window.
Referenced by create_regular(), and TEST().
| void gtk_window_set_geometry_hints | ( | GtkWindow * | window, |
| GtkWidget * | widget, | ||
| GdkGeometry * | geometry, | ||
| GdkWindowHints | geometry_mask | ||
| ) |
Definition at line 188 of file mock_gtk.cc.
References check_thread(), mock, and window.
Referenced by create_regular(), TEST(), and TEST().
| void gtk_window_set_title | ( | GtkWindow * | window, |
| const gchar * | title | ||
| ) |
Definition at line 183 of file mock_gtk.cc.
References check_thread(), mock, and window.
Referenced by create_regular(), modify_regular(), TEST(), and TEST().
| void gtk_window_unmaximize | ( | GtkWindow * | window | ) |
Definition at line 206 of file mock_gtk.cc.
References check_thread(), mock, and window.
Referenced by modify_regular(), and TEST().
|
static |
Definition at line 32 of file mock_gtk.cc.