#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 | { PROP_0 , PROP_ENGINE , PROP_VIEW_ID , PROP_ID , PROP_LAST } |
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 has_action(FlutterSemanticsAction actions | |
| 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 bool | flag_changed (bool old_flag, bool new_flag) |
| static void | fl_accessible_node_set_flags_impl (FlAccessibleNode *self, FlutterSemanticsFlags *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, FlutterViewId view_id, int32_t node_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, FlutterSemanticsFlags *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 | |
| static ActionData | action_mapping [] |
| FlutterSemanticsAction | action |
| #define FL_ACCESSIBLE_NODE_GET_PRIVATE | ( | node | ) |
Definition at line 66 of file fl_accessible_node.cc.
| anonymous enum |
| Enumerator | |
|---|---|
| PROP_0 | |
| PROP_ENGINE | |
| PROP_VIEW_ID | |
| PROP_ID | |
| PROP_LAST | |
Definition at line 64 of file fl_accessible_node.cc.
|
static |
Definition at line 517 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 464 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(), PROP_ENGINE, PROP_ID, and PROP_VIEW_ID.
|
static |
Definition at line 511 of file fl_accessible_node.cc.
References fl_accessible_node_get_extents(), and fl_accessible_node_get_layer().
|
static |
Definition at line 133 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 295 of file fl_accessible_node.cc.
References ActionData::action, 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 268 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 166 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 290 of file fl_accessible_node.cc.
Referenced by fl_accessible_node_component_interface_init().
|
static |
Definition at line 313 of file fl_accessible_node.cc.
References action, FL_ACCESSIBLE_NODE_GET_PRIVATE, and priv.
Referenced by fl_accessible_node_action_interface_init().
|
static |
Definition at line 172 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 319 of file fl_accessible_node.cc.
References action, FL_ACCESSIBLE_NODE_GET_PRIVATE, get_action(), i, ActionData::name, and priv.
|
static |
Definition at line 154 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 160 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 189 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 523 of file fl_accessible_node.cc.
References FL_ACCESSIBLE_NODE_GET_PRIVATE, and priv.
| FlAccessibleNode* fl_accessible_node_new | ( | FlEngine * | engine, |
| FlutterViewId | view_id, | ||
| int32_t | node_id | ||
| ) |
fl_accessible_node_new: @engine: the #FlEngine this node came from. @view_id: the view ID this object represents. @node_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 529 of file fl_accessible_node.cc.
References view_id.
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 630 of file fl_accessible_node.cc.
References action.
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 455 of file fl_accessible_node.cc.
References action, FL_ACCESSIBLE_NODE_GET_PRIVATE, fl_engine_dispatch_semantics_action(), and priv.
Referenced by fl_accessible_node_class_init().
|
static |
Definition at line 178 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 227 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_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 600 of file fl_accessible_node.cc.
Referenced by fl_view_accessible_handle_update_semantics(), and TEST().
|
static |
Definition at line 422 of file fl_accessible_node.cc.
References action, action_mapping, FL_ACCESSIBLE_NODE_GET_PRIVATE, 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 549 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 582 of file fl_accessible_node.cc.
Referenced by fl_view_accessible_handle_update_semantics(), and TEST().
|
static |
Definition at line 339 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, |
| FlutterSemanticsFlags * | flags | ||
| ) |
fl_accessible_node_set_flags: @node: an #FlAccessibleNode. @flags: the flags for this node.
Sets the flags for this node.
Definition at line 593 of file fl_accessible_node.cc.
Referenced by fl_view_accessible_handle_update_semantics(), and TEST().
|
static |
Definition at line 358 of file fl_accessible_node.cc.
References FL_ACCESSIBLE_NODE_GET_PRIVATE, flag_changed(), and priv.
Referenced by fl_accessible_node_class_init().
| void fl_accessible_node_set_name | ( | FlAccessibleNode * | self, |
| const gchar * | name | ||
| ) |
Definition at line 576 of file fl_accessible_node.cc.
Referenced by fl_view_accessible_handle_update_semantics(), and TEST().
|
static |
Definition at line 331 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 538 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 109 of file fl_accessible_node.cc.
References FL_ACCESSIBLE_NODE_GET_PRIVATE, priv, PROP_ENGINE, PROP_ID, prop_id, PROP_VIEW_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 622 of file fl_accessible_node.cc.
Referenced by fl_view_accessible_handle_update_semantics().
|
static |
Definition at line 450 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 613 of file fl_accessible_node.cc.
Referenced by fl_view_accessible_handle_update_semantics(), and TEST().
|
static |
Definition at line 445 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 607 of file fl_accessible_node.cc.
References value.
Referenced by fl_view_accessible_handle_update_semantics(), and TEST().
|
static |
Definition at line 441 of file fl_accessible_node.cc.
Referenced by fl_accessible_node_class_init().
|
static |
Definition at line 353 of file fl_accessible_node.cc.
Referenced by fl_accessible_node_set_flags_impl().
| 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 91 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 99 of file fl_accessible_node.cc.
Referenced by fl_accessible_node_set_children().
| FlutterSemanticsAction action |
Definition at line 86 of file fl_accessible_node.cc.
Referenced by flutter::AccessibilityBridge::AddFlutterSemanticsCustomActionUpdate(), flutter::TestAccessibilityBridge::DispatchAccessibilityAction(), fl_accessible_node_do_action(), fl_accessible_node_get_n_actions(), fl_accessible_node_get_name(), fl_accessible_node_perform_action(), fl_accessible_node_perform_action_impl(), fl_accessible_node_set_actions_impl(), fl_accessible_text_field_perform_action(), and fl_engine_dispatch_semantics_action().
|
static |
Definition at line 13 of file fl_accessible_node.cc.
Referenced by fl_accessible_node_set_actions_impl().