5#include "flutter/shell/platform/linux/fl_socket_accessible.h"
16 GTK_TYPE_CONTAINER_ACCESSIBLE)
18static AtkObject* fl_socket_accessible_ref_child(AtkObject*
object,
int i) {
19 FlSocketAccessible*
self = FL_SOCKET_ACCESSIBLE(
object);
20 return i == 0 ? ATK_OBJECT(g_object_ref(
self->accessible_socket)) :
nullptr;
28 FlSocketAccessible*
self = FL_SOCKET_ACCESSIBLE(
object);
30 g_clear_object(&
self->accessible_socket);
32 G_OBJECT_CLASS(fl_socket_accessible_parent_class)->finalize(
object);
36 FlSocketAccessible*
self = FL_SOCKET_ACCESSIBLE(
object);
38 ATK_OBJECT_CLASS(fl_socket_accessible_parent_class)->initialize(
object,
data);
40 self->accessible_socket = atk_socket_new();
44 GObjectClass* object_class = G_OBJECT_CLASS(klass);
47 AtkObjectClass* atk_class = ATK_OBJECT_CLASS(klass);
50 atk_class->ref_child = fl_socket_accessible_ref_child;
56 atk_socket_embed(ATK_SOCKET(
self->accessible_socket),
id);
void fl_socket_accessible_embed(FlSocketAccessible *self, gchar *id)
static int fl_socket_accessible_get_n_children(AtkObject *object)
static void fl_socket_accessible_init(FlSocketAccessible *self)
static void fl_socket_accessible_class_init(FlSocketAccessibleClass *klass)
static void fl_socket_accessible_initialize(AtkObject *object, gpointer data)
G_DEFINE_TYPE(FlSocketAccessible, fl_socket_accessible, GTK_TYPE_CONTAINER_ACCESSIBLE) static AtkObject *fl_socket_accessible_ref_child(AtkObject *object
static void fl_socket_accessible_finalize(GObject *object)
AtkObject * accessible_socket
GtkContainerAccessible parent
std::shared_ptr< const fml::Mapping > data