#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 is_checkable(FlutterSemanticsFlags flags) | |
| static gboolean | is_checked (FlutterSemanticsFlags flags) |
| static gboolean | is_focusable (FlutterSemanticsFlags flags) |
| static gboolean | is_focused (FlutterSemanticsFlags flags) |
| static gboolean | is_selected (FlutterSemanticsFlags flags) |
| static gboolean | is_sensitive (FlutterSemanticsFlags flags) |
| static gboolean | is_enabled (FlutterSemanticsFlags flags) |
| 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 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 [] |
| #define FL_ACCESSIBLE_NODE_GET_PRIVATE | ( | node | ) |
Definition at line 68 of file fl_accessible_node.cc.
| anonymous enum |
| Enumerator | |
|---|---|
| PROP_0 | |
| PROP_ENGINE | |
| PROP_VIEW_ID | |
| PROP_ID | |
| PROP_LAST | |
Definition at line 66 of file fl_accessible_node.cc.
|
static |
Definition at line 548 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 495 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 542 of file fl_accessible_node.cc.
References fl_accessible_node_get_extents(), and fl_accessible_node_get_layer().
|
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 336 of file fl_accessible_node.cc.
References action, data, 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 309 of file fl_accessible_node.cc.
References FL_ACCESSIBLE_NODE_GET_PRIVATE, height, priv, width, x, and y.
Referenced by fl_accessible_node_component_interface_init().
|
static |
Definition at line 205 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 331 of file fl_accessible_node.cc.
Referenced by fl_accessible_node_component_interface_init().
|
static |
Definition at line 354 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 211 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 360 of file fl_accessible_node.cc.
References action, data, FL_ACCESSIBLE_NODE_GET_PRIVATE, get_action(), i, and priv.
|
static |
Definition at line 193 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 199 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 228 of file fl_accessible_node.cc.
References FL_ACCESSIBLE_NODE_GET_PRIVATE, kFlutterCheckStateNone, kFlutterTristateNone, and priv.
Referenced by fl_accessible_node_class_init().
|
static |
Definition at line 554 of file fl_accessible_node.cc.
References FL_ACCESSIBLE_NODE_GET_PRIVATE, priv, and self.
| 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 560 of file fl_accessible_node.cc.
References engine, self, and view_id.
Referenced by create_node(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
| void fl_accessible_node_perform_action | ( | FlAccessibleNode * | node, |
| FlutterSemanticsAction | action, | ||
| GBytes * | data | ||
| ) |
fl_accessible_node_perform_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 661 of file fl_accessible_node.cc.
References action, data, and self.
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 486 of file fl_accessible_node.cc.
References action, data, FL_ACCESSIBLE_NODE_GET_PRIVATE, fl_engine_dispatch_semantics_action(), priv, and self.
Referenced by fl_accessible_node_class_init().
|
static |
Definition at line 217 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 266 of file fl_accessible_node.cc.
References FL_ACCESSIBLE_NODE_GET_PRIVATE, is_checked(), is_enabled(), is_focusable(), is_focused(), is_selected(), is_sensitive(), 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 631 of file fl_accessible_node.cc.
References self.
Referenced by fl_view_accessible_handle_update_semantics(), TEST(), and TEST_F().
|
static |
Definition at line 453 of file fl_accessible_node.cc.
References action, action_mapping, FL_ACCESSIBLE_NODE_GET_PRIVATE, has_action(), i, ActionData::name, priv, and self.
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 580 of file fl_accessible_node.cc.
References FL_ACCESSIBLE_NODE_GET_PRIVATE, has_child(), i, priv, and self.
Referenced by fl_view_accessible_handle_update_semantics(), and TEST_F().
| 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 613 of file fl_accessible_node.cc.
References height, self, width, x, and y.
Referenced by fl_view_accessible_handle_update_semantics(), and TEST_F().
|
static |
Definition at line 380 of file fl_accessible_node.cc.
References FL_ACCESSIBLE_NODE_GET_PRIVATE, height, priv, self, width, x, and y.
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 624 of file fl_accessible_node.cc.
References self.
Referenced by fl_view_accessible_handle_update_semantics(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
|
static |
Definition at line 399 of file fl_accessible_node.cc.
References atk_object_notify_state_change(), FL_ACCESSIBLE_NODE_GET_PRIVATE, flag_changed(), is_checked(), is_enabled(), is_focusable(), is_focused(), FlutterSemanticsFlags::is_hidden, FlutterSemanticsFlags::is_obscured, FlutterSemanticsFlags::is_read_only, is_selected(), is_sensitive(), FlutterSemanticsFlags::is_text_field, priv, and self.
Referenced by fl_accessible_node_class_init().
| void fl_accessible_node_set_name | ( | FlAccessibleNode * | self, |
| const gchar * | name | ||
| ) |
Definition at line 607 of file fl_accessible_node.cc.
Referenced by fl_view_accessible_handle_update_semantics(), and TEST_F().
|
static |
Definition at line 372 of file fl_accessible_node.cc.
References FL_ACCESSIBLE_NODE_GET_PRIVATE, name, priv, and self.
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 569 of file fl_accessible_node.cc.
References FL_ACCESSIBLE_NODE_GET_PRIVATE, priv, and self.
Referenced by fl_view_accessible_handle_update_semantics(), get_node(), and TEST_F().
|
static |
Definition at line 148 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 653 of file fl_accessible_node.cc.
References self.
Referenced by fl_view_accessible_handle_update_semantics().
|
static |
Definition at line 481 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 644 of file fl_accessible_node.cc.
References self.
Referenced by fl_view_accessible_handle_update_semantics(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().
|
static |
Definition at line 476 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 638 of file fl_accessible_node.cc.
Referenced by fl_view_accessible_handle_update_semantics(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().
|
static |
Definition at line 472 of file fl_accessible_node.cc.
Referenced by fl_accessible_node_class_init().
|
static |
Definition at line 394 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) | |||
| ) |
Definition at line 76 of file fl_accessible_node.cc.
References FlutterSemanticsFlags::is_checked, FlutterSemanticsFlags::is_toggled, kFlutterCheckStateNone, and kFlutterTristateNone.
|
static |
Definition at line 130 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 124 of file fl_accessible_node.cc.
References action.
Referenced by fl_accessible_node_set_actions_impl().
|
static |
Definition at line 138 of file fl_accessible_node.cc.
Referenced by fl_accessible_node_set_children().
|
static |
Definition at line 93 of file fl_accessible_node.cc.
References FlutterSemanticsFlags::is_checked, FlutterSemanticsFlags::is_toggled, kFlutterCheckStateTrue, and kFlutterTristateTrue.
Referenced by fl_accessible_node_ref_state_set(), and fl_accessible_node_set_flags_impl().
|
static |
Definition at line 119 of file fl_accessible_node.cc.
References FlutterSemanticsFlags::is_enabled, and kFlutterTristateTrue.
Referenced by find_stage_by_record(), fl_accessible_node_ref_state_set(), fl_accessible_node_set_flags_impl(), and ui::AXEventGenerator::OnIntAttributeChanged().
|
static |
Definition at line 99 of file fl_accessible_node.cc.
References FlutterSemanticsFlags::is_focused, and kFlutterTristateNone.
Referenced by fl_accessible_node_ref_state_set(), and fl_accessible_node_set_flags_impl().
|
static |
Definition at line 104 of file fl_accessible_node.cc.
References FlutterSemanticsFlags::is_focused, and kFlutterTristateTrue.
Referenced by fl_accessible_node_ref_state_set(), fl_accessible_node_set_flags_impl(), and window_state_event_cb().
|
static |
Definition at line 109 of file fl_accessible_node.cc.
References FlutterSemanticsFlags::is_selected, and kFlutterTristateTrue.
Referenced by fl_accessible_node_ref_state_set(), fl_accessible_node_set_flags_impl(), and ui::TEST_F().
|
static |
Definition at line 114 of file fl_accessible_node.cc.
References FlutterSemanticsFlags::is_enabled, and kFlutterTristateNone.
Referenced by fl_accessible_node_ref_state_set(), and fl_accessible_node_set_flags_impl().
|
static |
Definition at line 13 of file fl_accessible_node.cc.
Referenced by fl_accessible_node_set_actions_impl().