#include <ax_node.h>
Classes | |
| class | ChildIteratorBase |
| class | OwnerTree |
Public Types | |
| using | AXID = int32_t |
| using | UnignoredChildIterator = ChildIteratorBase< AXNode, &AXNode::GetNextUnignoredSibling, &AXNode::GetPreviousUnignoredSibling, &AXNode::GetFirstUnignoredChild, &AXNode::GetLastUnignoredChild > |
Static Public Attributes | |
| static constexpr AXID | kInvalidAXID = -1 |
| using ui::AXNode::AXID = int32_t |
| ui::AXNode::AXNode | ( | AXNode::OwnerTree * | tree, |
| AXNode * | parent, | ||
| int32_t | id, | ||
| size_t | index_in_parent, | ||
| size_t | unignored_index_in_parent = 0 |
||
| ) |
Definition at line 23 of file ax_node.cc.
References id(), and ui::AXNodeData::id.
|
virtualdefault |
|
inline |
Definition at line 113 of file ax_node.h.
Referenced by ui::AXNodePosition::AnchorChild(), ui::AXNodePosition::AnchorChildCount(), ui::TestAXNodeWrapper::BuildAllWrappers(), GetFirstChild(), GetLastChild(), GetNextSibling(), GetPreviousSibling(), GetUnignoredSelection(), flutter::FlutterPlatformNodeDelegateWindows::HitTestSync(), IsLeaf(), IsText(), SwapChildren(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), and ui::TEST_F().
|
inline |
Definition at line 112 of file ax_node.h.
Referenced by ui::TestAXNodeWrapper::AccessibilityPerformAction(), ui::AXEventGenerator::AddEvent(), ui::AXTableInfo::Create(), GetCollapsedMenuListPopUpButtonAncestor(), flutter::FlutterPlatformNodeDelegate::GetData(), ui::TestAXNodeWrapper::GetData(), GetInheritedStringAttribute(), GetInnerText(), ui::AXTreeManagerMap::GetManagerForChildTree(), ui::AXNodePosition::GetNextOnLineID(), GetOrComputeLineStartOffsets(), ui::AXTree::GetPosInSet(), ui::AXNodePosition::GetPreviousOnLineID(), ui::AXNodePosition::GetRole(), ui::AXTree::GetSetSize(), ui::TestAXNodeWrapper::GetStyleNameAttributeAsLocalizedString(), ui::AXNodePosition::GetText(), GetTextFieldAncestor(), ui::AXNodePosition::GetTextStyles(), ui::AXNodePosition::GetWordEndOffsets(), ui::AXNodePosition::GetWordStartOffsets(), IsCellOrHeaderOfARIAGrid(), IsCellOrHeaderOfARIATable(), IsCollapsedMenuListPopUpButton(), IsEmbeddedGroup(), IsIgnored(), IsIgnoredContainerForOrderedSet(), ui::AXNodePosition::IsInLineBreakingObject(), IsInListMarker(), IsLeaf(), IsLineBreak(), IsOrderedSet(), IsOrderedSetItem(), IsTable(), IsTableCellOrHeader(), IsTableRow(), IsText(), ui::AXNodePosition::MaxTextOffset(), ui::AXEventGenerator::OnBoolAttributeChanged(), ui::AXEventGenerator::OnIntAttributeChanged(), ui::AXEventGenerator::OnStateChanged(), ui::AXEventGenerator::OnStringAttributeChanged(), ui::operator<<(), SetRoleMatchesItemRole(), ui::TEST(), and ui::AXTree::Unserialize().
| void ui::AXNode::Destroy | ( | ) |
Definition at line 403 of file ax_node.cc.
|
inline |
Definition at line 211 of file ax_node.h.
References data.
|
inline |
| AXNode * ui::AXNode::GetCollapsedMenuListPopUpButtonAncestor | ( | ) | const |
Definition at line 1177 of file ax_node.cc.
References data(), GetOrderedSet(), IsCollapsedMenuListPopUpButton(), ax::mojom::kPopUpButton, parent(), and ui::AXNodeData::role.
| AXNode * ui::AXNode::GetDeepestFirstUnignoredChild | ( | ) | const |
Definition at line 86 of file ax_node.cc.
References GetFirstUnignoredChild(), and GetUnignoredChildCount().
| AXNode * ui::AXNode::GetDeepestLastUnignoredChild | ( | ) | const |
Definition at line 98 of file ax_node.cc.
References GetLastUnignoredChild(), and GetUnignoredChildCount().
Referenced by GetPreviousUnignoredInTreeOrder().
| const std::vector< AXNode * > * ui::AXNode::GetExtraMacNodes | ( | ) | const |
Definition at line 678 of file ax_node.cc.
References ui::AXTableInfo::extra_mac_nodes, and ui::AXNode::OwnerTree::GetTableInfo().
| AXNode * ui::AXNode::GetFirstChild | ( | ) | const |
Definition at line 322 of file ax_node.cc.
References children().
Referenced by GetNextUnignoredSibling(), and ui::TEST().
| AXNode * ui::AXNode::GetFirstUnignoredChild | ( | ) | const |
Definition at line 76 of file ax_node.cc.
References BASE_DCHECK, and ui::AXNode::OwnerTree::GetTreeUpdateInProgressState().
Referenced by GetDeepestFirstUnignoredChild(), GetNextUnignoredInTreeOrder(), IsCollapsedMenuListPopUpButton(), and UnignoredChildrenBegin().
|
inline |
Definition at line 221 of file ax_node.h.
References data.
|
inline |
| std::optional< int > ui::AXNode::GetHierarchicalLevel | ( | ) | const |
Definition at line 927 of file ax_node.cc.
References GetIntAttribute(), and ax::mojom::kHierarchicalLevel.
|
inline |
Definition at line 287 of file ax_node.h.
|
inline |
| size_t ui::AXNode::GetIndexInParent | ( | ) | const |
Definition at line 71 of file ax_node.cc.
References BASE_DCHECK, and ui::AXNode::OwnerTree::GetTreeUpdateInProgressState().
| std::u16string ui::AXNode::GetInheritedString16Attribute | ( | ax::mojom::StringAttribute | attribute | ) | const |
Definition at line 467 of file ax_node.cc.
References GetInheritedStringAttribute(), and base::UTF8ToUTF16().
| const std::string & ui::AXNode::GetInheritedStringAttribute | ( | ax::mojom::StringAttribute | attribute | ) | const |
Definition at line 456 of file ax_node.cc.
References data(), base::EmptyString(), ui::AXNodeData::GetStringAttribute(), ui::AXNodeData::HasStringAttribute(), and parent().
Referenced by GetInheritedString16Attribute().
| std::string ui::AXNode::GetInnerText | ( | ) | const |
Definition at line 472 of file ax_node.cc.
References data(), ui::AXNodeData::GetNameFrom(), ui::AXNodeData::GetStringAttribute(), GetUnignoredChildCount(), IsLeaf(), ui::AXNodeData::IsTextField(), ax::mojom::kAttribute, ax::mojom::kAttributeExplicitlyEmpty, ax::mojom::kCaption, ax::mojom::kContents, ax::mojom::kName, ax::mojom::kNone, ax::mojom::kPlaceholder, ax::mojom::kRelatedElement, ax::mojom::kTitle, ax::mojom::kUninitialized, ax::mojom::kValue, UnignoredChildrenBegin(), UnignoredChildrenEnd(), and value.
|
inline |
Definition at line 232 of file ax_node.h.
References data.
Referenced by GetHierarchicalLevel(), ui::AXTree::GetPosInSet(), ui::AXTree::GetSetSize(), GetTableCellColSpan(), GetTableCellRowSpan(), and ui::AXTableInfo::Update().
|
inline |
|
inline |
Definition at line 263 of file ax_node.h.
References data.
Referenced by GetOrComputeLineStartOffsets().
|
inline |
| std::string ui::AXNode::GetLanguage | ( | ) | const |
Definition at line 532 of file ax_node.cc.
| AXNode * ui::AXNode::GetLastChild | ( | ) | const |
Definition at line 329 of file ax_node.cc.
References children().
Referenced by GetPreviousUnignoredSibling(), and ui::TEST().
| AXNode * ui::AXNode::GetLastUnignoredChild | ( | ) | const |
Definition at line 81 of file ax_node.cc.
References BASE_DCHECK, and ui::AXNode::OwnerTree::GetTreeUpdateInProgressState().
Referenced by GetDeepestLastUnignoredChild(), and ui::TEST().
| AXNode * ui::AXNode::GetLowestPlatformAncestor | ( | ) | const |
Definition at line 1202 of file ax_node.cc.
References GetUnignoredParent(), IsIgnored(), and parent().
Referenced by flutter::FlutterPlatformNodeDelegate::GetLowestPlatformAncestor().
| AXNode * ui::AXNode::GetNextSibling | ( | ) | const |
Definition at line 347 of file ax_node.cc.
References children(), index_in_parent(), and parent().
Referenced by GetNextUnignoredSibling(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), and ui::TEST().
| AXNode * ui::AXNode::GetNextUnignoredInTreeOrder | ( | ) | const |
Definition at line 284 of file ax_node.cc.
References GetFirstUnignoredChild(), GetNextUnignoredSibling(), GetUnignoredChildCount(), and GetUnignoredParent().
| AXNode * ui::AXNode::GetNextUnignoredSibling | ( | ) | const |
Definition at line 155 of file ax_node.cc.
References BASE_DCHECK, GetFirstChild(), GetNextSibling(), ui::AXNode::OwnerTree::GetTreeUpdateInProgressState(), IsIgnored(), and parent().
Referenced by GetNextUnignoredInTreeOrder(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), and ui::TEST().
| std::vector< int > ui::AXNode::GetOrComputeLineStartOffsets | ( | ) |
Definition at line 416 of file ax_node.cc.
References ui::AXNodeData::AddIntListAttribute(), data(), GetIntListAttribute(), and ax::mojom::kCachedLineStarts.
| AXNode * ui::AXNode::GetOrderedSet | ( | ) | const |
Definition at line 1032 of file ax_node.cc.
References IsIgnoredContainerForOrderedSet(), and parent().
Referenced by GetCollapsedMenuListPopUpButtonAncestor(), ui::AXTree::GetPosInSet(), and ui::AXTree::GetSetSize().
| AXNode * ui::AXNode::GetParentCrossingTreeBoundary | ( | ) | const |
Definition at line 1249 of file ax_node.cc.
References BASE_DCHECK, ui::AXNode::OwnerTree::GetAXTreeID(), ui::AXTreeManagerMap::GetInstance(), ui::AXTreeManagerMap::GetManager(), and ui::AXNode::OwnerTree::GetTreeUpdateInProgressState().
Referenced by IsDescendantOfCrossingTreeBoundary().
| std::optional< int > ui::AXNode::GetPosInSet | ( | ) |
Definition at line 949 of file ax_node.cc.
References ui::AXNode::OwnerTree::GetPosInSet().
Referenced by ui::TestAXNodeWrapper::GetPosInSet(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), and ui::TEST().
| AXNode * ui::AXNode::GetPreviousSibling | ( | ) | const |
Definition at line 337 of file ax_node.cc.
References BASE_DCHECK, children(), index_in_parent(), and parent().
Referenced by GetPreviousUnignoredSibling(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), and ui::TEST().
| AXNode * ui::AXNode::GetPreviousUnignoredInTreeOrder | ( | ) | const |
Definition at line 300 of file ax_node.cc.
References GetDeepestLastUnignoredChild(), GetPreviousUnignoredSibling(), GetUnignoredChildCount(), and GetUnignoredParent().
| AXNode * ui::AXNode::GetPreviousUnignoredSibling | ( | ) | const |
Definition at line 224 of file ax_node.cc.
References BASE_DCHECK, GetLastChild(), GetPreviousSibling(), ui::AXNode::OwnerTree::GetTreeUpdateInProgressState(), IsIgnored(), and parent().
Referenced by GetPreviousUnignoredInTreeOrder(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), and ui::TEST().
| std::optional< int > ui::AXNode::GetSetSize | ( | ) |
Definition at line 954 of file ax_node.cc.
References ui::AXNode::OwnerTree::GetSetSize().
Referenced by ui::TestAXNodeWrapper::GetSetSize(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), and ui::TEST().
|
inline |
Definition at line 255 of file ax_node.h.
References data.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 275 of file ax_node.h.
References data.
|
inline |
| std::optional< int > ui::AXNode::GetTableAriaColCount | ( | ) | const |
Definition at line 558 of file ax_node.cc.
References ui::AXTableInfo::aria_col_count.
Referenced by ui::TestAXNodeWrapper::GetTableAriaColCount(), and ui::TEST_F().
| std::optional< int > ui::AXNode::GetTableAriaRowCount | ( | ) | const |
Definition at line 565 of file ax_node.cc.
References ui::AXTableInfo::aria_row_count.
Referenced by ui::TestAXNodeWrapper::GetTableAriaRowCount(), and ui::TEST_F().
| AXNode * ui::AXNode::GetTableCaption | ( | ) | const |
Definition at line 603 of file ax_node.cc.
References ui::AXTableInfo::caption_id, and ui::AXNode::OwnerTree::GetFromId().
| std::optional< int > ui::AXNode::GetTableCellAriaColIndex | ( | ) | const |
Definition at line 822 of file ax_node.cc.
References ui::AXTableInfo::cell_data_vector, and GetTableCellIndex().
Referenced by ui::TestAXNodeWrapper::GetTableCellAriaColIndex(), and ui::TEST_F().
| std::optional< int > ui::AXNode::GetTableCellAriaRowIndex | ( | ) | const |
Definition at line 834 of file ax_node.cc.
References ui::AXTableInfo::cell_data_vector, and GetTableCellIndex().
Referenced by ui::TestAXNodeWrapper::GetTableCellAriaRowIndex(), and ui::TEST_F().
| std::vector< AXNode::AXID > ui::AXNode::GetTableCellColHeaderNodeIds | ( | ) | const |
Definition at line 846 of file ax_node.cc.
References ui::AXTableInfo::col_count, ui::AXTableInfo::col_headers, and GetTableCellColIndex().
Referenced by GetTableCellColHeaders().
| void ui::AXNode::GetTableCellColHeaders | ( | std::vector< AXNode * > * | col_headers | ) | const |
Definition at line 857 of file ax_node.cc.
References BASE_DCHECK, and GetTableCellColHeaderNodeIds().
Referenced by ui::TEST_F().
| std::optional< int > ui::AXNode::GetTableCellColIndex | ( | ) | const |
Definition at line 772 of file ax_node.cc.
References ui::AXTableInfo::cell_data_vector, and GetTableCellIndex().
Referenced by GetTableCellColHeaderNodeIds(), ui::TestAXNodeWrapper::GetTableCellColIndex(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), and ui::TEST_F().
| std::optional< int > ui::AXNode::GetTableCellColSpan | ( | ) | const |
Definition at line 796 of file ax_node.cc.
References GetIntAttribute(), IsTableCellOrHeader(), and ax::mojom::kTableCellColumnSpan.
Referenced by ui::TestAXNodeWrapper::GetTableCellColSpan(), and ui::TEST_F().
| std::optional< int > ui::AXNode::GetTableCellCount | ( | ) | const |
Definition at line 572 of file ax_node.cc.
References ui::AXTableInfo::unique_cell_ids.
Referenced by ui::TestAXNodeWrapper::GetTableCellCount().
| AXNode * ui::AXNode::GetTableCellFromCoords | ( | int | row_index, |
| int | col_index | ||
| ) | const |
Definition at line 611 of file ax_node.cc.
References ui::AXTableInfo::cell_ids, ui::AXTableInfo::col_count, ui::AXNode::OwnerTree::GetFromId(), and ui::AXTableInfo::row_count.
Referenced by ui::TestAXNodeWrapper::GetCellId(), ui::TEST_F(), ui::TEST_F(), and ui::TEST_F().
| AXNode * ui::AXNode::GetTableCellFromIndex | ( | int | index | ) | const |
Definition at line 588 of file ax_node.cc.
References ui::AXNode::OwnerTree::GetFromId(), and ui::AXTableInfo::unique_cell_ids.
Referenced by ui::TestAXNodeWrapper::CellIndexToId(), ui::TEST_F(), and ui::TEST_F().
| std::optional< int > ui::AXNode::GetTableCellIndex | ( | ) | const |
Definition at line 758 of file ax_node.cc.
References ui::AXTableInfo::cell_id_to_index, and IsTableCellOrHeader().
Referenced by GetTableCellAriaColIndex(), GetTableCellAriaRowIndex(), GetTableCellColIndex(), ui::TestAXNodeWrapper::GetTableCellIndex(), GetTableCellRowIndex(), and ui::TEST_F().
| std::vector< AXNode::AXID > ui::AXNode::GetTableCellRowHeaderNodeIds | ( | ) | const |
Definition at line 864 of file ax_node.cc.
References GetTableCellRowIndex(), ui::AXTableInfo::row_count, and ui::AXTableInfo::row_headers.
Referenced by ui::TestAXNodeWrapper::GetRowHeaderNodeIds(), and GetTableCellRowHeaders().
| void ui::AXNode::GetTableCellRowHeaders | ( | std::vector< AXNode * > * | row_headers | ) | const |
Definition at line 875 of file ax_node.cc.
References BASE_DCHECK, and GetTableCellRowHeaderNodeIds().
Referenced by ui::TEST_F().
| std::optional< int > ui::AXNode::GetTableCellRowIndex | ( | ) | const |
Definition at line 784 of file ax_node.cc.
References ui::AXTableInfo::cell_data_vector, and GetTableCellIndex().
Referenced by GetTableCellRowHeaderNodeIds(), ui::TestAXNodeWrapper::GetTableCellRowIndex(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), and ui::TEST_F().
| std::optional< int > ui::AXNode::GetTableCellRowSpan | ( | ) | const |
Definition at line 809 of file ax_node.cc.
References GetIntAttribute(), IsTableCellOrHeader(), and ax::mojom::kTableCellRowSpan.
Referenced by ui::TestAXNodeWrapper::GetTableCellRowSpan(), and ui::TEST_F().
| std::optional< int > ui::AXNode::GetTableColCount | ( | ) | const |
Definition at line 544 of file ax_node.cc.
References ui::AXTableInfo::col_count.
Referenced by ui::TestAXNodeWrapper::GetTableColCount(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), and ui::TEST_F().
| std::vector< AXNode::AXID > ui::AXNode::GetTableColHeaderNodeIds | ( | ) | const |
Definition at line 628 of file ax_node.cc.
References ui::AXTableInfo::col_headers.
Referenced by ui::TestAXNodeWrapper::GetColHeaderNodeIds(), and ui::TestAXNodeWrapper::GetColHeaderNodeIds().
| std::vector< AXNode::AXID > ui::AXNode::GetTableColHeaderNodeIds | ( | int | col_index | ) | const |
Definition at line 644 of file ax_node.cc.
References ui::AXTableInfo::col_count, and ui::AXTableInfo::col_headers.
| std::optional< bool > ui::AXNode::GetTableHasColumnOrRowHeaderNode | ( | ) | const |
Definition at line 580 of file ax_node.cc.
References ui::AXTableInfo::all_headers.
Referenced by ui::TestAXNodeWrapper::GetTableHasColumnOrRowHeaderNode().
| std::optional< int > ui::AXNode::GetTableRowCount | ( | ) | const |
Definition at line 551 of file ax_node.cc.
References ui::AXTableInfo::row_count.
Referenced by ui::TestAXNodeWrapper::GetTableRowCount(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), and ui::TEST_F().
| std::vector< AXNode::AXID > ui::AXNode::GetTableRowHeaderNodeIds | ( | int | row_index | ) | const |
Definition at line 657 of file ax_node.cc.
References ui::AXTableInfo::row_count, and ui::AXTableInfo::row_headers.
Referenced by ui::TestAXNodeWrapper::GetRowHeaderNodeIds().
| std::vector< AXNode::AXID > ui::AXNode::GetTableRowNodeIds | ( | ) | const |
Definition at line 709 of file ax_node.cc.
References ui::AXTableInfo::row_nodes.
Referenced by ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), and ui::TEST_F().
| std::optional< int > ui::AXNode::GetTableRowRowIndex | ( | ) | const |
Definition at line 695 of file ax_node.cc.
References IsTableRow(), and ui::AXTableInfo::row_id_to_index.
Referenced by ui::TestAXNodeWrapper::GetTableRowRowIndex(), and ui::TEST_F().
| std::vector< AXNode::AXID > ui::AXNode::GetTableUniqueCellIds | ( | ) | const |
Definition at line 670 of file ax_node.cc.
References ui::AXTableInfo::unique_cell_ids.
| AXNode * ui::AXNode::GetTextFieldAncestor | ( | ) | const |
Definition at line 1226 of file ax_node.cc.
References data(), GetUnignoredParent(), ui::AXNodeData::HasState(), ui::AXNodeData::IsPlainTextField(), ui::AXNodeData::IsRichTextField(), ax::mojom::kEditable, and parent().
Referenced by ui::AXEventGenerator::OnIntListAttributeChanged().
| AXNode * ui::AXNode::GetUnignoredChildAtIndex | ( | size_t | index | ) | const |
Definition at line 47 of file ax_node.cc.
References BASE_DCHECK, ui::AXNode::OwnerTree::GetTreeUpdateInProgressState(), UnignoredChildrenBegin(), and UnignoredChildrenEnd().
Referenced by flutter::FlutterPlatformNodeDelegate::ChildAtIndex(), ui::TestAXNodeWrapper::InternalGetChild(), ui::TEST(), ui::TEST(), ui::TEST(), and ui::TEST().
| size_t ui::AXNode::GetUnignoredChildCount | ( | ) | const |
Definition at line 37 of file ax_node.cc.
References BASE_DCHECK, and ui::AXNode::OwnerTree::GetTreeUpdateInProgressState().
Referenced by ui::AXNodePosition::AnchorSiblingCount(), ui::AXNodePosition::AnchorUnignoredChildCount(), flutter::FlutterPlatformNodeDelegate::GetChildCount(), GetDeepestFirstUnignoredChild(), GetDeepestLastUnignoredChild(), GetInnerText(), GetNextUnignoredInTreeOrder(), ui::AXTree::GetPosInSet(), GetPreviousUnignoredInTreeOrder(), ui::AXTree::GetSetSize(), GetUnignoredSelection(), ui::TestAXNodeWrapper::InternalChildCount(), IsLeaf(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), and ui::TEST().
| size_t ui::AXNode::GetUnignoredIndexInParent | ( | ) | const |
Definition at line 66 of file ax_node.cc.
References BASE_DCHECK, and ui::AXNode::OwnerTree::GetTreeUpdateInProgressState().
Referenced by ui::TestAXNodeWrapper::GetIndexInParent(), GetUnignoredSelection(), ui::TEST(), ui::TEST(), ui::TEST(), and ui::TEST().
| AXNode * ui::AXNode::GetUnignoredParent | ( | ) | const |
Definition at line 58 of file ax_node.cc.
References BASE_DCHECK, ui::AXNode::OwnerTree::GetTreeUpdateInProgressState(), IsIgnored(), and parent().
Referenced by ui::AXNodePosition::AnchorSiblingCount(), GetLowestPlatformAncestor(), ui::AXNodePosition::GetLowestUnignoredAncestor(), GetNextUnignoredInTreeOrder(), ui::TestAXNodeWrapper::GetParent(), GetPreviousUnignoredInTreeOrder(), GetTextFieldAncestor(), IsChildOfLeaf(), IsInListMarker(), ui::AXEventGenerator::OnStateChanged(), ui::TEST(), and ui::TEST().
| AXTree::Selection ui::AXNode::GetUnignoredSelection | ( | ) | const |
Definition at line 1260 of file ax_node.cc.
References ui::AXNode::OwnerTree::Selection::anchor_object_id, ui::AXNode::OwnerTree::Selection::anchor_offset, BASE_DCHECK, children(), ui::AXNode::OwnerTree::Selection::focus_object_id, ui::AXNode::OwnerTree::Selection::focus_offset, ui::AXNode::OwnerTree::GetFromId(), GetUnignoredChildCount(), GetUnignoredIndexInParent(), ui::AXNode::OwnerTree::GetUnignoredSelection(), IsLeaf(), and tree().
Referenced by flutter::FlutterPlatformNodeDelegate::GetUnignoredSelection().
|
inline |
Definition at line 208 of file ax_node.h.
References data.
|
inline |
Definition at line 218 of file ax_node.h.
References data.
|
inline |
Definition at line 229 of file ax_node.h.
References data.
Referenced by ui::AXTree::GetPosInSet(), and ui::AXTree::GetSetSize().
|
inline |
Definition at line 260 of file ax_node.h.
References data.
|
inline |
Definition at line 239 of file ax_node.h.
References data.
Referenced by ui::TEST().
|
inline |
Definition at line 272 of file ax_node.h.
References data.
|
inline |
Definition at line 110 of file ax_node.h.
Referenced by ui::TestAXNodeWrapper::AccessibilityPerformAction(), flutter::FlutterPlatformNodeDelegate::AccessibilityPerformAction(), ui::AXNodePosition::AnchorChild(), AXNode(), ui::AXTree::AXTree(), ui::TestAXNodeWrapper::CellIndexToId(), flutter::FlutterPlatformNodeDelegate::ChildAtIndex(), ui::AXNodePosition::CreatePosition(), ui::CreateTextPosition(), ui::TestAXNodeWrapper::CreateTextPositionAt(), ui::AXNodePosition::GetAncestorAnchors(), ui::AXNodePosition::GetAnchorID(), ui::TestAXNodeWrapper::GetCellId(), flutter::FlutterPlatformNodeDelegate::GetLowestPlatformAncestor(), ui::AXTreeManagerMap::GetManagerForChildTree(), ui::TestAXNodeWrapper::GetOrCreate(), ui::TestAXNodeHelper::GetOrCreate(), flutter::FlutterPlatformNodeDelegate::GetParent(), flutter::AccessibilityBridge::GetPlatformNodeFromTree(), ui::AXTree::GetPosInSet(), ui::AXTree::GetSetSize(), ui::AXTreeUpdateState::IsCreatedNode(), ui::AXTreeUpdateState::IsRemovedNode(), ui::AXTreeUpdateState::IsReparentedNode(), flutter::AccessibilityBridgeWindows::OnAccessibilityEvent(), ui::PendingStructureChanges::PendingStructureChanges(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), and ui::AXTree::Unserialize().
|
inline |
Definition at line 114 of file ax_node.h.
Referenced by ui::AXNodePosition::AnchorIndexInParent(), GetNextSibling(), GetPreviousSibling(), and SetIndexInParent().
| bool ui::AXNode::IsCellOrHeaderOfARIAGrid | ( | ) | const |
Definition at line 895 of file ax_node.cc.
References data(), IsTable(), IsTableCellOrHeader(), ax::mojom::kGrid, ax::mojom::kTreeGrid, parent(), and ui::AXNodeData::role.
Referenced by ui::TestAXNodeWrapper::IsCellOrHeaderOfARIAGrid().
| bool ui::AXNode::IsCellOrHeaderOfARIATable | ( | ) | const |
Definition at line 882 of file ax_node.cc.
References data(), IsTable(), IsTableCellOrHeader(), ax::mojom::kTable, parent(), and ui::AXNodeData::role.
Referenced by ui::TestAXNodeWrapper::IsCellOrHeaderOfARIATable().
| bool ui::AXNode::IsChildOfLeaf | ( | ) | const |
Definition at line 1078 of file ax_node.cc.
References GetUnignoredParent(), and IsLeaf().
Referenced by ui::AXNodePosition::IsEmbeddedObjectInParent().
| bool ui::AXNode::IsCollapsedMenuListPopUpButton | ( | ) | const |
Definition at line 1162 of file ax_node.cc.
References data(), GetFirstUnignoredChild(), ax::mojom::kCollapsed, ax::mojom::kMenuListPopup, ax::mojom::kPopUpButton, and ui::AXNodeData::role.
Referenced by GetCollapsedMenuListPopUpButtonAncestor(), and IsLeaf().
| bool ui::AXNode::IsDescendantOf | ( | const AXNode * | ancestor | ) | const |
Definition at line 407 of file ax_node.cc.
References IsDescendantOf(), and parent().
Referenced by ui::TestAXNodeWrapper::HasVisibleCaretOrSelection(), and IsDescendantOf().
| bool ui::AXNode::IsDescendantOfCrossingTreeBoundary | ( | const AXNode * | ancestor | ) | const |
Definition at line 1239 of file ax_node.cc.
References GetParentCrossingTreeBoundary(), IsDescendantOfCrossingTreeBoundary(), and parent().
Referenced by IsDescendantOfCrossingTreeBoundary().
| bool ui::AXNode::IsEmbeddedGroup | ( | ) | const |
Definition at line 1195 of file ax_node.cc.
References data(), ui::IsSetLike(), ax::mojom::kGroup, and parent().
Referenced by ui::AXTree::GetSetSize(), and IsIgnoredContainerForOrderedSet().
| bool ui::AXNode::IsIgnored | ( | ) | const |
Definition at line 1074 of file ax_node.cc.
References data(), and ui::AXNodeData::IsIgnored().
Referenced by GetLowestPlatformAncestor(), GetNextUnignoredSibling(), ui::AXTree::GetPosInSet(), GetPreviousUnignoredSibling(), ui::AXTree::GetSetSize(), GetUnignoredParent(), IsIgnoredContainerForOrderedSet(), flutter::AccessibilityBridgeWindows::OnAccessibilityEvent(), and UpdateUnignoredCachedValues().
| bool ui::AXNode::IsIgnoredContainerForOrderedSet | ( | ) | const |
Definition at line 1009 of file ax_node.cc.
References data(), IsEmbeddedGroup(), IsIgnored(), ax::mojom::kGenericContainer, ax::mojom::kListItem, ax::mojom::kUnknown, and ui::AXNodeData::role.
Referenced by GetOrderedSet().
| bool ui::AXNode::IsInListMarker | ( | ) | const |
Definition at line 1139 of file ax_node.cc.
References data(), GetUnignoredParent(), IsText(), ax::mojom::kListMarker, and ui::AXNodeData::role.
Referenced by ui::TEST().
| bool ui::AXNode::IsLeaf | ( | ) | const |
Definition at line 1088 of file ax_node.cc.
References children(), data(), GetUnignoredChildCount(), IsCollapsedMenuListPopUpButton(), IsText(), ax::mojom::kButton, ax::mojom::kDocCover, ax::mojom::kGraphicsSymbol, ax::mojom::kImage, ax::mojom::kMeter, ax::mojom::kProgressIndicator, ax::mojom::kScrollBar, ax::mojom::kSlider, and ax::mojom::kSplitter.
Referenced by GetInnerText(), GetUnignoredSelection(), and IsChildOfLeaf().
| bool ui::AXNode::IsLineBreak | ( | ) | const |
Definition at line 366 of file ax_node.cc.
References data(), ui::AXNodeData::GetBoolAttribute(), ax::mojom::kInlineTextBox, ax::mojom::kIsLineBreakingObject, ax::mojom::kLineBreak, and ui::AXNodeData::role.
Referenced by ui::AXNodePosition::IsInLineBreak(), and ui::AXNodePosition::IsInWhiteSpace().
| bool ui::AXNode::IsOrderedSet | ( | ) | const |
Definition at line 944 of file ax_node.cc.
References data(), and ui::IsSetLike().
Referenced by ui::AXTree::GetSetSize(), and ui::TestAXNodeWrapper::IsOrderedSet().
| bool ui::AXNode::IsOrderedSetItem | ( | ) | const |
Definition at line 940 of file ax_node.cc.
References data(), and ui::IsItemLike().
Referenced by ui::AXTree::GetPosInSet(), ui::AXTree::GetSetSize(), and ui::TestAXNodeWrapper::IsOrderedSetItem().
| bool ui::AXNode::IsTable | ( | ) | const |
Definition at line 540 of file ax_node.cc.
References data(), and ui::IsTableLike().
Referenced by IsCellOrHeaderOfARIAGrid(), IsCellOrHeaderOfARIATable(), ui::TestAXNodeWrapper::IsTable(), ui::TEST_F(), ui::TEST_F(), and ui::AXTableInfo::Update().
| bool ui::AXNode::IsTableCellOrHeader | ( | ) | const |
Definition at line 754 of file ax_node.cc.
References data(), and ui::IsCellOrTableHeader().
Referenced by GetTableCellColSpan(), GetTableCellIndex(), GetTableCellRowSpan(), IsCellOrHeaderOfARIAGrid(), IsCellOrHeaderOfARIATable(), ui::TestAXNodeWrapper::IsTableCellOrHeader(), ui::TEST_F(), and ui::TEST_F().
| bool ui::AXNode::IsTableRow | ( | ) | const |
Definition at line 691 of file ax_node.cc.
References data(), and ui::IsTableRow().
Referenced by GetTableRowRowIndex(), ui::TestAXNodeWrapper::IsTableRow(), ui::TEST_F(), and ui::TEST_F().
| bool ui::AXNode::IsText | ( | ) | const |
Definition at line 356 of file ax_node.cc.
References children(), data(), ui::IsText(), and ax::mojom::kListMarker.
Referenced by ui::AXNodePosition::CreatePosition(), ui::AXNodePosition::GetText(), ui::AXNodePosition::IsEmbeddedObjectInParent(), IsInListMarker(), ui::AXNodePosition::IsInTextObject(), IsLeaf(), and ui::AXNodePosition::MaxTextOffset().
|
inline |
Definition at line 111 of file ax_node.h.
Referenced by ui::AXTableInfo::Create(), GetCollapsedMenuListPopUpButtonAncestor(), GetInheritedStringAttribute(), GetLowestPlatformAncestor(), GetNextSibling(), GetNextUnignoredSibling(), GetOrderedSet(), flutter::FlutterPlatformNodeDelegate::GetParent(), GetPreviousSibling(), GetPreviousUnignoredSibling(), ui::TestAXNodeWrapper::GetStyleNameAttributeAsLocalizedString(), GetTextFieldAncestor(), GetUnignoredParent(), ui::AXPlatformNodeWinTest::InitNodeAsFragmentRoot(), IsCellOrHeaderOfARIAGrid(), IsCellOrHeaderOfARIATable(), IsDescendantOf(), IsDescendantOfCrossingTreeBoundary(), IsEmbeddedGroup(), ui::AXEventGenerator::OnBoolAttributeChanged(), ui::AXEventGenerator::OnStateChanged(), ui::PendingStructureChanges::PendingStructureChanges(), and ui::AXTree::Unserialize().
| void ui::AXNode::SetData | ( | const AXNodeData & | src | ) |
Definition at line 373 of file ax_node.cc.
Referenced by flutter::testing::TEST(), flutter::testing::TEST(), flutter::testing::TEST(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), flutter::testing::TEST_F(), and ui::TEST_F().
| void ui::AXNode::SetIndexInParent | ( | size_t | index_in_parent | ) |
Definition at line 390 of file ax_node.cc.
References index_in_parent().
| void ui::AXNode::SetLocation | ( | int32_t | offset_container_id, |
| const gfx::RectF & | location, | ||
| gfx::Transform * | transform | ||
| ) |
Definition at line 377 of file ax_node.cc.
References ui::AXRelativeBounds::bounds, ui::AXRelativeBounds::offset_container_id, ui::AXNodeData::relative_bounds, transform, and ui::AXRelativeBounds::transform.
| bool ui::AXNode::SetRoleMatchesItemRole | ( | const AXNode * | ordered_set | ) | const |
Definition at line 960 of file ax_node.cc.
References data(), ax::mojom::kArticle, ax::mojom::kComment, ax::mojom::kDescriptionList, ax::mojom::kDescriptionListTerm, ax::mojom::kFeed, ax::mojom::kGroup, ax::mojom::kList, ax::mojom::kListBox, ax::mojom::kListBoxOption, ax::mojom::kListItem, ax::mojom::kMenu, ax::mojom::kMenuBar, ax::mojom::kMenuItem, ax::mojom::kMenuItemCheckBox, ax::mojom::kMenuItemRadio, ax::mojom::kMenuListOption, ax::mojom::kMenuListPopup, ax::mojom::kPopUpButton, ax::mojom::kRadioButton, ax::mojom::kRadioGroup, ax::mojom::kTab, ax::mojom::kTabList, ax::mojom::kTerm, ax::mojom::kTree, ax::mojom::kTreeItem, and ui::AXNodeData::role.
| void ui::AXNode::SwapChildren | ( | std::vector< AXNode * > * | children | ) |
Definition at line 399 of file ax_node.cc.
References children().
| AXNodeData && ui::AXNode::TakeData | ( | ) |
Definition at line 43 of file ax_node.cc.
|
inline |
Definition at line 109 of file ax_node.h.
Referenced by ui::AXNodePosition::CreatePosition(), ui::CreateTextPosition(), flutter::FlutterPlatformNodeDelegate::GetFromNodeID(), ui::AXNodePosition::GetTreeID(), GetUnignoredSelection(), and ui::TEST_F().
| AXNode::UnignoredChildIterator ui::AXNode::UnignoredChildrenBegin | ( | ) | const |
Definition at line 311 of file ax_node.cc.
References BASE_DCHECK, GetFirstUnignoredChild(), and ui::AXNode::OwnerTree::GetTreeUpdateInProgressState().
Referenced by GetInnerText(), GetUnignoredChildAtIndex(), ui::TEST(), ui::TEST(), and ui::TEST().
| AXNode::UnignoredChildIterator ui::AXNode::UnignoredChildrenEnd | ( | ) | const |
Definition at line 316 of file ax_node.cc.
References BASE_DCHECK, and ui::AXNode::OwnerTree::GetTreeUpdateInProgressState().
Referenced by GetInnerText(), GetUnignoredChildAtIndex(), ui::TEST(), ui::TEST(), and ui::TEST().
| void ui::AXNode::UpdateUnignoredCachedValues | ( | ) |
Definition at line 394 of file ax_node.cc.
References IsIgnored().
Referenced by ui::AXTree::Unserialize().
|
staticconstexpr |
Definition at line 41 of file ax_node.h.
Referenced by ui::AXNodePosition::AnchorChild(), ui::AXNodePosition::AnchorParent(), ui::AXPosition< AXPositionType, AXNodeType >::AtEndOfLine(), ui::AXPosition< AXPositionType, AXNodeType >::AtStartOfLine(), ui::AXTree::AXTree(), flutter::AccessibilityBridge::CommitUpdates(), ui::AXPosition< AXPositionType, AXNodeType >::CreateChildPositionAt(), ui::AXPosition< AXPositionType, AXNodeType >::CreateNullPosition(), ui::AXPosition< AXPositionType, AXNodeType >::CreateParentPosition(), ui::AXNodePosition::GetAncestorAnchors(), ui::AXPosition< AXPositionType, AXNodeType >::GetAnchor(), flutter::FlutterPlatformNodeDelegate::GetFocus(), ui::AXNodePosition::GetNextOnLineID(), ui::AXNodePosition::GetNodeInTree(), ui::AXNodePosition::GetPreviousOnLineID(), ui::AXTree::GetUnignoredSelection(), ui::AXPosition< AXPositionType, AXNodeType >::Initialize(), ui::AXPosition< AXPositionType, AXNodeType >::IsValid(), flutter::testing::TEST(), ui::TEST(), ui::AXTreeData::ToString(), ui::AXTreeUpdateBase< AXNodeData, AXTreeData >::ToString(), ui::TreeUpdatesCanBeMerged(), and ui::AXTree::Unserialize().