Flutter Engine
The Flutter Engine
Classes | Public Types | Public Member Functions | List of all members
ui::AXTreeObserver Class Reference

#include <ax_tree_observer.h>

Inheritance diagram for ui::AXTreeObserver:
flutter::AccessibilityBridge ui::AXEventGenerator flutter::AccessibilityBridgeMac flutter::AccessibilityBridgeWindows flutter::TestAccessibilityBridge

Classes

struct  Change
 

Public Types

enum  ChangeType {
  NODE_CREATED , SUBTREE_CREATED , NODE_CHANGED , NODE_REPARENTED ,
  SUBTREE_REPARENTED
}
 

Public Member Functions

 AXTreeObserver ()
 
virtual ~AXTreeObserver ()
 
virtual void OnNodeDataWillChange (AXTree *tree, const AXNodeData &old_node_data, const AXNodeData &new_node_data)
 
virtual void OnNodeDataChanged (AXTree *tree, const AXNodeData &old_node_data, const AXNodeData &new_node_data)
 
virtual void OnRoleChanged (AXTree *tree, AXNode *node, ax::mojom::Role old_role, ax::mojom::Role new_role)
 
virtual void OnStateChanged (AXTree *tree, AXNode *node, ax::mojom::State state, bool new_value)
 
virtual void OnStringAttributeChanged (AXTree *tree, AXNode *node, ax::mojom::StringAttribute attr, const std::string &old_value, const std::string &new_value)
 
virtual void OnIntAttributeChanged (AXTree *tree, AXNode *node, ax::mojom::IntAttribute attr, int32_t old_value, int32_t new_value)
 
virtual void OnFloatAttributeChanged (AXTree *tree, AXNode *node, ax::mojom::FloatAttribute attr, float old_value, float new_value)
 
virtual void OnBoolAttributeChanged (AXTree *tree, AXNode *node, ax::mojom::BoolAttribute attr, bool new_value)
 
virtual void OnIntListAttributeChanged (AXTree *tree, AXNode *node, ax::mojom::IntListAttribute attr, const std::vector< int32_t > &old_value, const std::vector< int32_t > &new_value)
 
virtual void OnStringListAttributeChanged (AXTree *tree, AXNode *node, ax::mojom::StringListAttribute attr, const std::vector< std::string > &old_value, const std::vector< std::string > &new_value)
 
virtual void OnTreeDataChanged (AXTree *tree, const AXTreeData &old_data, const AXTreeData &new_data)
 
virtual void OnNodeWillBeDeleted (AXTree *tree, AXNode *node)
 
virtual void OnSubtreeWillBeDeleted (AXTree *tree, AXNode *node)
 
virtual void OnNodeWillBeReparented (AXTree *tree, AXNode *node)
 
virtual void OnSubtreeWillBeReparented (AXTree *tree, AXNode *node)
 
virtual void OnNodeCreated (AXTree *tree, AXNode *node)
 
virtual void OnNodeDeleted (AXTree *tree, int32_t node_id)
 
virtual void OnNodeReparented (AXTree *tree, AXNode *node)
 
virtual void OnNodeChanged (AXTree *tree, AXNode *node)
 
virtual void OnAtomicUpdateFinished (AXTree *tree, bool root_changed, const std::vector< Change > &changes)
 

Detailed Description

Definition at line 27 of file ax_tree_observer.h.

Member Enumeration Documentation

◆ ChangeType

Enumerator
NODE_CREATED 
SUBTREE_CREATED 
NODE_CHANGED 
NODE_REPARENTED 
SUBTREE_REPARENTED 

Definition at line 132 of file ax_tree_observer.h.

Constructor & Destructor Documentation

◆ AXTreeObserver()

ui::AXTreeObserver::AXTreeObserver ( )
default

◆ ~AXTreeObserver()

ui::AXTreeObserver::~AXTreeObserver ( )
virtualdefault

Member Function Documentation

◆ OnAtomicUpdateFinished()

virtual void ui::AXTreeObserver::OnAtomicUpdateFinished ( AXTree tree,
bool  root_changed,
const std::vector< Change > &  changes 
)
inlinevirtual

Reimplemented in ui::AXEventGenerator.

Definition at line 154 of file ax_tree_observer.h.

156 {}

◆ OnBoolAttributeChanged()

virtual void ui::AXTreeObserver::OnBoolAttributeChanged ( AXTree tree,
AXNode node,
ax::mojom::BoolAttribute  attr,
bool  new_value 
)
inlinevirtual

Reimplemented in ui::AXEventGenerator.

Definition at line 75 of file ax_tree_observer.h.

78 {}

◆ OnFloatAttributeChanged()

virtual void ui::AXTreeObserver::OnFloatAttributeChanged ( AXTree tree,
AXNode node,
ax::mojom::FloatAttribute  attr,
float  old_value,
float  new_value 
)
inlinevirtual

Reimplemented in ui::AXEventGenerator.

Definition at line 70 of file ax_tree_observer.h.

74 {}

◆ OnIntAttributeChanged()

virtual void ui::AXTreeObserver::OnIntAttributeChanged ( AXTree tree,
AXNode node,
ax::mojom::IntAttribute  attr,
int32_t  old_value,
int32_t  new_value 
)
inlinevirtual

Reimplemented in ui::AXEventGenerator.

Definition at line 65 of file ax_tree_observer.h.

69 {}

◆ OnIntListAttributeChanged()

virtual void ui::AXTreeObserver::OnIntListAttributeChanged ( AXTree tree,
AXNode node,
ax::mojom::IntListAttribute  attr,
const std::vector< int32_t > &  old_value,
const std::vector< int32_t > &  new_value 
)
inlinevirtual

Reimplemented in ui::AXEventGenerator.

Definition at line 79 of file ax_tree_observer.h.

84 {}

◆ OnNodeChanged()

virtual void ui::AXTreeObserver::OnNodeChanged ( AXTree tree,
AXNode node 
)
inlinevirtual

Definition at line 130 of file ax_tree_observer.h.

130{}

◆ OnNodeCreated()

virtual void ui::AXTreeObserver::OnNodeCreated ( AXTree tree,
AXNode node 
)
inlinevirtual

Definition at line 117 of file ax_tree_observer.h.

117{}

◆ OnNodeDataChanged()

virtual void ui::AXTreeObserver::OnNodeDataChanged ( AXTree tree,
const AXNodeData old_node_data,
const AXNodeData new_node_data 
)
inlinevirtual

Reimplemented in ui::AXEventGenerator.

Definition at line 44 of file ax_tree_observer.h.

46 {}

◆ OnNodeDataWillChange()

virtual void ui::AXTreeObserver::OnNodeDataWillChange ( AXTree tree,
const AXNodeData old_node_data,
const AXNodeData new_node_data 
)
inlinevirtual

Definition at line 37 of file ax_tree_observer.h.

39 {}

◆ OnNodeDeleted()

virtual void ui::AXTreeObserver::OnNodeDeleted ( AXTree tree,
int32_t  node_id 
)
inlinevirtual

Definition at line 121 of file ax_tree_observer.h.

121{}

◆ OnNodeReparented()

virtual void ui::AXTreeObserver::OnNodeReparented ( AXTree tree,
AXNode node 
)
inlinevirtual

Definition at line 124 of file ax_tree_observer.h.

124{}

◆ OnNodeWillBeDeleted()

virtual void ui::AXTreeObserver::OnNodeWillBeDeleted ( AXTree tree,
AXNode node 
)
inlinevirtual

Reimplemented in ui::AXEventGenerator.

Definition at line 101 of file ax_tree_observer.h.

101{}

◆ OnNodeWillBeReparented()

virtual void ui::AXTreeObserver::OnNodeWillBeReparented ( AXTree tree,
AXNode node 
)
inlinevirtual

Reimplemented in ui::AXEventGenerator.

Definition at line 108 of file ax_tree_observer.h.

108{}

◆ OnRoleChanged()

virtual void ui::AXTreeObserver::OnRoleChanged ( AXTree tree,
AXNode node,
ax::mojom::Role  old_role,
ax::mojom::Role  new_role 
)
inlinevirtual

Reimplemented in ui::AXEventGenerator.

Definition at line 52 of file ax_tree_observer.h.

55 {}

◆ OnStateChanged()

virtual void ui::AXTreeObserver::OnStateChanged ( AXTree tree,
AXNode node,
ax::mojom::State  state,
bool  new_value 
)
inlinevirtual

Reimplemented in ui::AXEventGenerator.

Definition at line 56 of file ax_tree_observer.h.

59 {}

◆ OnStringAttributeChanged()

virtual void ui::AXTreeObserver::OnStringAttributeChanged ( AXTree tree,
AXNode node,
ax::mojom::StringAttribute  attr,
const std::string &  old_value,
const std::string &  new_value 
)
inlinevirtual

Reimplemented in ui::AXEventGenerator.

Definition at line 60 of file ax_tree_observer.h.

64 {}

◆ OnStringListAttributeChanged()

virtual void ui::AXTreeObserver::OnStringListAttributeChanged ( AXTree tree,
AXNode node,
ax::mojom::StringListAttribute  attr,
const std::vector< std::string > &  old_value,
const std::vector< std::string > &  new_value 
)
inlinevirtual

Definition at line 85 of file ax_tree_observer.h.

90 {}

◆ OnSubtreeWillBeDeleted()

virtual void ui::AXTreeObserver::OnSubtreeWillBeDeleted ( AXTree tree,
AXNode node 
)
inlinevirtual

Reimplemented in ui::AXEventGenerator.

Definition at line 104 of file ax_tree_observer.h.

104{}

◆ OnSubtreeWillBeReparented()

virtual void ui::AXTreeObserver::OnSubtreeWillBeReparented ( AXTree tree,
AXNode node 
)
inlinevirtual

Reimplemented in ui::AXEventGenerator.

Definition at line 112 of file ax_tree_observer.h.

112{}

◆ OnTreeDataChanged()

virtual void ui::AXTreeObserver::OnTreeDataChanged ( AXTree tree,
const AXTreeData old_data,
const AXTreeData new_data 
)
inlinevirtual

Reimplemented in ui::AXEventGenerator.

Definition at line 93 of file ax_tree_observer.h.

95 {}

The documentation for this class was generated from the following files: