#include "flutter/shell/platform/linux/fl_accessible_node.h"
#include "flutter/shell/platform/linux/fl_engine_private.h"
Go to the source code of this file.
Classes | |
struct | ActionData |
struct | FlAccessibleNodePrivate |
Macros | |
#define | FL_ACCESSIBLE_NODE_GET_PRIVATE(node) |
Enumerations | |
enum | { kProp0, kPropEngine, kPropId, kPropLast } |
Functions | |
static void | fl_accessible_node_component_interface_init (AtkComponentIface *iface) |
static void | fl_accessible_node_action_interface_init (AtkActionIface *iface) |
G_DEFINE_TYPE_WITH_CODE (FlAccessibleNode, fl_accessible_node, ATK_TYPE_OBJECT, G_IMPLEMENT_INTERFACE(ATK_TYPE_COMPONENT, fl_accessible_node_component_interface_init) G_IMPLEMENT_INTERFACE(ATK_TYPE_ACTION, fl_accessible_node_action_interface_init)) static gboolean flag_is_changed(FlutterSemanticsFlag old_flags | |
static gboolean | has_flag (FlutterSemanticsFlag flags, FlutterSemanticsFlag flag) |
static gboolean | has_action (FlutterSemanticsAction actions, FlutterSemanticsAction action) |
static ActionData * | get_action (FlAccessibleNodePrivate *priv, gint index) |
static gboolean | has_child (GPtrArray *children, AtkObject *object) |
static void | fl_accessible_node_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) |
static void | fl_accessible_node_dispose (GObject *object) |
static const gchar * | fl_accessible_node_get_name (AtkObject *accessible) |
static AtkObject * | fl_accessible_node_get_parent (AtkObject *accessible) |
static gint | fl_accessible_node_get_index_in_parent (AtkObject *accessible) |
static gint | fl_accessible_node_get_n_children (AtkObject *accessible) |
static AtkObject * | fl_accessible_node_ref_child (AtkObject *accessible, gint i) |
static AtkRole | fl_accessible_node_get_role (AtkObject *accessible) |
static AtkStateSet * | fl_accessible_node_ref_state_set (AtkObject *accessible) |
static void | fl_accessible_node_get_extents (AtkComponent *component, gint *x, gint *y, gint *width, gint *height, AtkCoordType coord_type) |
static AtkLayer | fl_accessible_node_get_layer (AtkComponent *component) |
static gboolean | fl_accessible_node_do_action (AtkAction *action, gint i) |
static gint | fl_accessible_node_get_n_actions (AtkAction *action) |
static const gchar * | fl_accessible_node_get_name (AtkAction *action, gint i) |
static void | fl_accessible_node_set_name_impl (FlAccessibleNode *self, const gchar *name) |
static void | fl_accessible_node_set_extents_impl (FlAccessibleNode *self, gint x, gint y, gint width, gint height) |
static void | fl_accessible_node_set_flags_impl (FlAccessibleNode *self, FlutterSemanticsFlag flags) |
static void | fl_accessible_node_set_actions_impl (FlAccessibleNode *self, FlutterSemanticsAction actions) |
static void | fl_accessible_node_set_value_impl (FlAccessibleNode *self, const gchar *value) |
static void | fl_accessible_node_set_text_selection_impl (FlAccessibleNode *self, gint base, gint extent) |
static void | fl_accessible_node_set_text_direction_impl (FlAccessibleNode *self, FlutterTextDirection direction) |
static void | fl_accessible_node_perform_action_impl (FlAccessibleNode *self, FlutterSemanticsAction action, GBytes *data) |
static void | fl_accessible_node_class_init (FlAccessibleNodeClass *klass) |
static void | fl_accessible_node_init (FlAccessibleNode *self) |
FlAccessibleNode * | fl_accessible_node_new (FlEngine *engine, int32_t id) |
void | fl_accessible_node_set_parent (FlAccessibleNode *self, AtkObject *parent, gint index) |
void | fl_accessible_node_set_children (FlAccessibleNode *self, GPtrArray *children) |
void | fl_accessible_node_set_name (FlAccessibleNode *self, const gchar *name) |
void | fl_accessible_node_set_extents (FlAccessibleNode *self, gint x, gint y, gint width, gint height) |
void | fl_accessible_node_set_flags (FlAccessibleNode *self, FlutterSemanticsFlag flags) |
void | fl_accessible_node_set_actions (FlAccessibleNode *self, FlutterSemanticsAction actions) |
void | fl_accessible_node_set_value (FlAccessibleNode *self, const gchar *value) |
void | fl_accessible_node_set_text_selection (FlAccessibleNode *self, gint base, gint extent) |
void | fl_accessible_node_set_text_direction (FlAccessibleNode *self, FlutterTextDirection direction) |
void | fl_accessible_node_perform_action (FlAccessibleNode *self, FlutterSemanticsAction action, GBytes *data) |
Variables | |
struct { | |
AtkStateType state | |
FlutterSemanticsFlag flag | |
gboolean invert | |
} | flag_mapping [] |
static ActionData | action_mapping [] |
FlutterSemanticsFlag | flags |
#define FL_ACCESSIBLE_NODE_GET_PRIVATE | ( | node | ) |
Definition at line 86 of file fl_accessible_node.cc.
anonymous enum |
|
static |
Definition at line 470 of file fl_accessible_node.cc.
References fl_accessible_node_do_action(), fl_accessible_node_get_n_actions(), and fl_accessible_node_get_name().
|
static |
Definition at line 423 of file fl_accessible_node.cc.
References fl_accessible_node_dispose(), fl_accessible_node_get_index_in_parent(), fl_accessible_node_get_n_children(), fl_accessible_node_get_name(), fl_accessible_node_get_parent(), fl_accessible_node_get_role(), fl_accessible_node_perform_action_impl(), fl_accessible_node_ref_child(), fl_accessible_node_ref_state_set(), fl_accessible_node_set_actions_impl(), fl_accessible_node_set_extents_impl(), fl_accessible_node_set_flags_impl(), fl_accessible_node_set_name_impl(), fl_accessible_node_set_property(), fl_accessible_node_set_text_direction_impl(), fl_accessible_node_set_text_selection_impl(), fl_accessible_node_set_value_impl(), kPropEngine, and kPropId.
|
static |
Definition at line 464 of file fl_accessible_node.cc.
References fl_accessible_node_get_extents(), and fl_accessible_node_get_layer().
|
static |
Definition at line 163 of file fl_accessible_node.cc.
References FL_ACCESSIBLE_NODE_GET_PRIVATE, and priv.
Referenced by fl_accessible_node_class_init().
|
static |
Definition at line 304 of file fl_accessible_node.cc.
References ActionData::action, FL_ACCESSIBLE_NODE_GET_PRIVATE, fl_accessible_node_perform_action(), get_action(), i, priv, and TRUE.
Referenced by fl_accessible_node_action_interface_init().
|
static |
Definition at line 277 of file fl_accessible_node.cc.
References FL_ACCESSIBLE_NODE_GET_PRIVATE, height, priv, and width.
Referenced by fl_accessible_node_component_interface_init().
|
static |
Definition at line 196 of file fl_accessible_node.cc.
References FL_ACCESSIBLE_NODE_GET_PRIVATE, and priv.
Referenced by fl_accessible_node_class_init().
|
static |
Definition at line 299 of file fl_accessible_node.cc.
Referenced by fl_accessible_node_component_interface_init().
|
static |
Definition at line 322 of file fl_accessible_node.cc.
References FL_ACCESSIBLE_NODE_GET_PRIVATE, and priv.
Referenced by fl_accessible_node_action_interface_init().
|
static |
Definition at line 202 of file fl_accessible_node.cc.
References FL_ACCESSIBLE_NODE_GET_PRIVATE, and priv.
Referenced by fl_accessible_node_class_init().
|
static |
Definition at line 328 of file fl_accessible_node.cc.
References FL_ACCESSIBLE_NODE_GET_PRIVATE, get_action(), i, ActionData::name, and priv.
|
static |
Definition at line 184 of file fl_accessible_node.cc.
References FL_ACCESSIBLE_NODE_GET_PRIVATE, and priv.
Referenced by fl_accessible_node_action_interface_init(), and fl_accessible_node_class_init().
|
static |
Definition at line 190 of file fl_accessible_node.cc.
References FL_ACCESSIBLE_NODE_GET_PRIVATE, and priv.
Referenced by fl_accessible_node_class_init().
|
static |
Definition at line 219 of file fl_accessible_node.cc.
References FL_ACCESSIBLE_NODE_GET_PRIVATE, and priv.
Referenced by fl_accessible_node_class_init().
|
static |
Definition at line 476 of file fl_accessible_node.cc.
References FL_ACCESSIBLE_NODE_GET_PRIVATE, and priv.
FlAccessibleNode* fl_accessible_node_new | ( | FlEngine * | engine, |
int32_t | id | ||
) |
fl_accessible_node_new: @engine: the #FlEngine this node came from. @id: the semantics node ID this object represents.
Creates a new accessibility object that exposes Flutter accessibility information to ATK.
Returns: a new #FlAccessibleNode.
Definition at line 482 of file fl_accessible_node.cc.
Referenced by create_node(), and TEST().
void fl_accessible_node_perform_action | ( | FlAccessibleNode * | node, |
FlutterSemanticsAction | action, | ||
GBytes * | data | ||
) |
fl_accessible_node_dispatch_action: @node: an #FlAccessibleNode. @action: the action being dispatched. @data: (allow-none): data associated with the action.
Performs a semantic action for this node.
Definition at line 580 of file fl_accessible_node.cc.
Referenced by fl_accessible_node_do_action(), fl_accessible_text_field_copy_text(), fl_accessible_text_field_cut_text(), fl_accessible_text_field_paste_text(), perform_set_selection_action(), and perform_set_text_action().
|
static |
Definition at line 415 of file fl_accessible_node.cc.
References FL_ACCESSIBLE_NODE_GET_PRIVATE, fl_engine_dispatch_semantics_action(), FlPixelBufferTexturePrivate::id, and priv.
Referenced by fl_accessible_node_class_init().
|
static |
Definition at line 208 of file fl_accessible_node.cc.
References FL_ACCESSIBLE_NODE_GET_PRIVATE, i, and priv.
Referenced by fl_accessible_node_class_init().
|
static |
Definition at line 258 of file fl_accessible_node.cc.
References FL_ACCESSIBLE_NODE_GET_PRIVATE, flag_mapping, has_flag(), i, invert, priv, and state.
Referenced by fl_accessible_node_class_init().
void fl_accessible_node_set_actions | ( | FlAccessibleNode * | node, |
FlutterSemanticsAction | actions | ||
) |
fl_accessible_node_set_actions: @node: an #FlAccessibleNode. @actions: the actions this node can perform.
Sets the actions that this node can perform.
Definition at line 550 of file fl_accessible_node.cc.
Referenced by fl_view_accessible_handle_update_semantics(), and TEST().
|
static |
Definition at line 382 of file fl_accessible_node.cc.
References action_mapping, FL_ACCESSIBLE_NODE_GET_PRIVATE, has_action(), i, ActionData::name, and priv.
Referenced by fl_accessible_node_class_init().
void fl_accessible_node_set_children | ( | FlAccessibleNode * | node, |
GPtrArray * | children | ||
) |
fl_accessible_node_set_children: @node: an #FlAccessibleNode. @children: (transfer none) (element-type AtkObject): a list of #AtkObject.
Sets the children of this node. The children can be changed at any time.
Definition at line 499 of file fl_accessible_node.cc.
References FL_ACCESSIBLE_NODE_GET_PRIVATE, has_child(), i, and priv.
Referenced by fl_view_accessible_handle_update_semantics(), and TEST().
void fl_accessible_node_set_extents | ( | FlAccessibleNode * | node, |
gint | x, | ||
gint | y, | ||
gint | width, | ||
gint | height | ||
) |
fl_accessible_node_set_extents: @node: an #FlAccessibleNode. @x: x co-ordinate of this node relative to its parent. @y: y co-ordinate of this node relative to its parent. @width: width of this node in pixels. @height: height of this node in pixels.
Sets the position and size of this node.
Definition at line 532 of file fl_accessible_node.cc.
Referenced by fl_view_accessible_handle_update_semantics(), and TEST().
|
static |
Definition at line 348 of file fl_accessible_node.cc.
References FL_ACCESSIBLE_NODE_GET_PRIVATE, height, priv, and width.
Referenced by fl_accessible_node_class_init().
void fl_accessible_node_set_flags | ( | FlAccessibleNode * | node, |
FlutterSemanticsFlag | flags | ||
) |
fl_accessible_node_set_flags: @node: an #FlAccessibleNode. @flags: the flags for this node.
Sets the flags for this node.
Definition at line 543 of file fl_accessible_node.cc.
References flags.
Referenced by fl_view_accessible_handle_update_semantics(), and TEST().
|
static |
Definition at line 361 of file fl_accessible_node.cc.
References FL_ACCESSIBLE_NODE_GET_PRIVATE, flag, flag_mapping, flags, has_flag(), i, invert, priv, and state.
Referenced by fl_accessible_node_class_init().
void fl_accessible_node_set_name | ( | FlAccessibleNode * | self, |
const gchar * | name | ||
) |
Definition at line 526 of file fl_accessible_node.cc.
Referenced by fl_view_accessible_handle_update_semantics(), and TEST().
|
static |
Definition at line 340 of file fl_accessible_node.cc.
References FL_ACCESSIBLE_NODE_GET_PRIVATE, and priv.
Referenced by fl_accessible_node_class_init().
void fl_accessible_node_set_parent | ( | FlAccessibleNode * | node, |
AtkObject * | parent, | ||
gint | index | ||
) |
fl_accessible_node_set_parent: @node: an #FlAccessibleNode. @parent: an #AtkObject. @index: the index of this node in the parent.
Sets the parent of this node. The parent can be changed at any time.
Definition at line 488 of file fl_accessible_node.cc.
References FL_ACCESSIBLE_NODE_GET_PRIVATE, and priv.
Referenced by fl_view_accessible_handle_update_semantics(), get_node(), and TEST().
|
static |
Definition at line 142 of file fl_accessible_node.cc.
References FL_ACCESSIBLE_NODE_GET_PRIVATE, FlPixelBufferTexturePrivate::id, kPropEngine, kPropId, priv, prop_id, pspec, and value.
Referenced by fl_accessible_node_class_init().
void fl_accessible_node_set_text_direction | ( | FlAccessibleNode * | node, |
FlutterTextDirection | direction | ||
) |
fl_accessible_node_set_text_direction: @node: an #FlAccessibleNode. @direction: the direction of the text.
Sets the text direction of this node.
Definition at line 572 of file fl_accessible_node.cc.
Referenced by fl_view_accessible_handle_update_semantics().
|
static |
Definition at line 410 of file fl_accessible_node.cc.
Referenced by fl_accessible_node_class_init().
void fl_accessible_node_set_text_selection | ( | FlAccessibleNode * | node, |
gint | base, | ||
gint | extent | ||
) |
fl_accessible_node_set_text_selection: @node: an #FlAccessibleNode. @base: the position at which the text selection originates. @extent: the position at which the text selection terminates.
Sets the text selection of this node.
Definition at line 563 of file fl_accessible_node.cc.
Referenced by fl_view_accessible_handle_update_semantics(), and TEST().
|
static |
Definition at line 405 of file fl_accessible_node.cc.
Referenced by fl_accessible_node_class_init().
void fl_accessible_node_set_value | ( | FlAccessibleNode * | node, |
const gchar * | value | ||
) |
fl_accessible_node_set_value: @node: an #FlAccessibleNode. @value: a node value.
Sets the value of this node.
Definition at line 557 of file fl_accessible_node.cc.
References value.
Referenced by fl_view_accessible_handle_update_semantics(), and TEST().
|
static |
Definition at line 401 of file fl_accessible_node.cc.
Referenced by fl_accessible_node_class_init().
G_DEFINE_TYPE_WITH_CODE | ( | FlAccessibleNode | , |
fl_accessible_node | , | ||
ATK_TYPE_OBJECT | , | ||
G_IMPLEMENT_INTERFACE(ATK_TYPE_COMPONENT, fl_accessible_node_component_interface_init) G_IMPLEMENT_INTERFACE(ATK_TYPE_ACTION, fl_accessible_node_action_interface_init) | |||
) |
|
static |
Definition at line 124 of file fl_accessible_node.cc.
References priv.
Referenced by fl_accessible_node_do_action(), and fl_accessible_node_get_name().
|
static |
Definition at line 118 of file fl_accessible_node.cc.
Referenced by fl_accessible_node_set_actions_impl().
|
static |
Definition at line 132 of file fl_accessible_node.cc.
Referenced by fl_accessible_node_set_children().
|
static |
Definition at line 112 of file fl_accessible_node.cc.
Referenced by fl_accessible_node_ref_state_set(), and fl_accessible_node_set_flags_impl().
|
static |
Definition at line 36 of file fl_accessible_node.cc.
Referenced by fl_accessible_node_set_actions_impl().
FlutterSemanticsFlag FlutterSemanticsFlag flag |
Definition at line 11 of file fl_accessible_node.cc.
Referenced by flutter::StandardMethodCodec::DecodeAndProcessResponseEnvelopeInternal(), fl_accessible_node_set_flags_impl(), and has_flag().
struct { ... } flag_mapping[] |
Referenced by fl_accessible_node_ref_state_set(), and fl_accessible_node_set_flags_impl().
FlutterSemanticsFlag flags |
Definition at line 106 of file fl_accessible_node.cc.
Referenced by fl_accessible_node_set_flags(), fl_accessible_node_set_flags_impl(), fl_engine_update_accessibility_features(), has_flag(), and update_settings().
gboolean invert |
Definition at line 12 of file fl_accessible_node.cc.
Referenced by fl_accessible_node_ref_state_set(), and fl_accessible_node_set_flags_impl().
AtkStateType state |
Definition at line 10 of file fl_accessible_node.cc.
Referenced by flutter::AppLifecycleStateToString(), build_editing_state(), fl_accessible_node_ref_state_set(), fl_accessible_node_set_flags_impl(), fl_key_channel_responder_handle_event(), fl_key_embedder_responder_sync_modifiers_if_needed(), fl_key_event_new_by_mock(), fl_key_event_new_from_gdk_event(), fl_keyboard_manager_sync_modifier_if_needed(), send_key_event(), set_app_lifecycle_state(), TEST(), and window_state_event_cb().