Flutter Engine
The Flutter Engine
Classes | Public Member Functions | Protected Member Functions | Friends | List of all members
ui::AXPlatformNodeDelegate Class Referenceabstract

#include <ax_platform_node_delegate.h>

Inheritance diagram for ui::AXPlatformNodeDelegate:
ui::AXPlatformNodeDelegateBase flutter::AlertPlatformNodeDelegate flutter::FlutterPlatformNodeDelegate ui::AXFragmentRootWin ui::TestAXNodeWrapper flutter::FlutterPlatformNodeDelegateMac flutter::FlutterPlatformNodeDelegateWindows

Classes

class  ChildIterator
 

Public Member Functions

virtual ~AXPlatformNodeDelegate ()=default
 
virtual const AXNodeDataGetData () const =0
 
virtual const AXTreeDataGetTreeData () const =0
 
virtual std::u16string GetInnerText () const =0
 
virtual const AXTree::Selection GetUnignoredSelection () const =0
 
virtual AXNodePosition::AXPositionInstance CreateTextPositionAt (int offset) const =0
 
virtual gfx::NativeViewAccessible GetNSWindow ()=0
 
virtual gfx::NativeViewAccessible GetNativeViewAccessible ()=0
 
virtual gfx::NativeViewAccessible GetParent ()=0
 
virtual int GetIndexInParent ()=0
 
virtual int GetChildCount () const =0
 
virtual gfx::NativeViewAccessible ChildAtIndex (int index)=0
 
virtual bool HasModalDialog () const =0
 
virtual gfx::NativeViewAccessible GetFirstChild ()=0
 
virtual gfx::NativeViewAccessible GetLastChild ()=0
 
virtual gfx::NativeViewAccessible GetNextSibling ()=0
 
virtual gfx::NativeViewAccessible GetPreviousSibling ()=0
 
virtual bool IsChildOfLeaf () const =0
 
virtual bool IsChildOfPlainTextField () const =0
 
virtual bool IsLeaf () const =0
 
virtual bool IsToplevelBrowserWindow ()=0
 
virtual gfx::NativeViewAccessible GetClosestPlatformObject () const =0
 
virtual std::unique_ptr< AXPlatformNodeDelegate::ChildIteratorChildrenBegin ()=0
 
virtual std::unique_ptr< AXPlatformNodeDelegate::ChildIteratorChildrenEnd ()=0
 
virtual std::string GetName () const =0
 
virtual std::u16string GetHypertext () const =0
 
virtual bool SetHypertextSelection (int start_offset, int end_offset)=0
 
virtual TextAttributeMap ComputeTextAttributeMap (const TextAttributeList &default_attributes) const =0
 
virtual std::string GetInheritedFontFamilyName () const =0
 
virtual gfx::Rect GetBoundsRect (const AXCoordinateSystem coordinate_system, const AXClippingBehavior clipping_behavior, AXOffscreenResult *offscreen_result=nullptr) const =0
 
virtual gfx::Rect GetClippedScreenBoundsRect (AXOffscreenResult *offscreen_result=nullptr) const =0
 
virtual gfx::Rect GetHypertextRangeBoundsRect (const int start_offset, const int end_offset, const AXCoordinateSystem coordinate_system, const AXClippingBehavior clipping_behavior, AXOffscreenResult *offscreen_result=nullptr) const =0
 
virtual gfx::Rect GetInnerTextRangeBoundsRect (const int start_offset, const int end_offset, const AXCoordinateSystem coordinate_system, const AXClippingBehavior clipping_behavior, AXOffscreenResult *offscreen_result=nullptr) const =0
 
virtual gfx::NativeViewAccessible HitTestSync (int screen_physical_pixel_x, int screen_physical_pixel_y) const =0
 
virtual gfx::NativeViewAccessible GetFocus ()=0
 
virtual bool IsOffscreen () const =0
 
virtual bool IsMinimized () const =0
 
virtual bool IsText () const =0
 
virtual bool IsWebContent () const =0
 
virtual bool HasVisibleCaretOrSelection () const =0
 
virtual AXPlatformNodeGetFromNodeID (int32_t id)=0
 
virtual AXPlatformNodeGetFromTreeIDAndNodeID (const ui::AXTreeID &ax_tree_id, int32_t id)=0
 
virtual AXPlatformNodeGetTargetNodeForRelation (ax::mojom::IntAttribute attr)=0
 
virtual std::vector< AXPlatformNode * > GetTargetNodesForRelation (ax::mojom::IntListAttribute attr)=0
 
virtual std::set< AXPlatformNode * > GetReverseRelations (ax::mojom::IntAttribute attr)=0
 
virtual std::set< AXPlatformNode * > GetReverseRelations (ax::mojom::IntListAttribute attr)=0
 
virtual std::u16string GetAuthorUniqueId () const =0
 
virtual const AXUniqueIdGetUniqueId () const =0
 
virtual std::optional< intFindTextBoundary (ax::mojom::TextBoundary boundary, int offset, ax::mojom::MoveDirection direction, ax::mojom::TextAffinity affinity) const =0
 
virtual const std::vector< gfx::NativeViewAccessibleGetUIADescendants () const =0
 
virtual std::string GetLanguage () const =0
 
virtual bool IsTable () const =0
 
virtual std::optional< intGetTableColCount () const =0
 
virtual std::optional< intGetTableRowCount () const =0
 
virtual std::optional< intGetTableAriaColCount () const =0
 
virtual std::optional< intGetTableAriaRowCount () const =0
 
virtual std::optional< intGetTableCellCount () const =0
 
virtual std::optional< bool > GetTableHasColumnOrRowHeaderNode () const =0
 
virtual std::vector< int32_t > GetColHeaderNodeIds () const =0
 
virtual std::vector< int32_t > GetColHeaderNodeIds (int col_index) const =0
 
virtual std::vector< int32_t > GetRowHeaderNodeIds () const =0
 
virtual std::vector< int32_t > GetRowHeaderNodeIds (int row_index) const =0
 
virtual AXPlatformNodeGetTableCaption () const =0
 
virtual bool IsTableRow () const =0
 
virtual std::optional< intGetTableRowRowIndex () const =0
 
virtual bool IsTableCellOrHeader () const =0
 
virtual std::optional< intGetTableCellIndex () const =0
 
virtual std::optional< intGetTableCellColIndex () const =0
 
virtual std::optional< intGetTableCellRowIndex () const =0
 
virtual std::optional< intGetTableCellColSpan () const =0
 
virtual std::optional< intGetTableCellRowSpan () const =0
 
virtual std::optional< intGetTableCellAriaColIndex () const =0
 
virtual std::optional< intGetTableCellAriaRowIndex () const =0
 
virtual std::optional< int32_t > GetCellId (int row_index, int col_index) const =0
 
virtual std::optional< int32_t > CellIndexToId (int cell_index) const =0
 
virtual bool IsCellOrHeaderOfARIATable () const =0
 
virtual bool IsCellOrHeaderOfARIAGrid () const =0
 
virtual bool IsOrderedSetItem () const =0
 
virtual bool IsOrderedSet () const =0
 
virtual std::optional< intGetPosInSet () const =0
 
virtual std::optional< intGetSetSize () const =0
 
virtual gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent ()=0
 
virtual bool AccessibilityPerformAction (const AXActionData &data)=0
 
virtual std::u16string GetLocalizedRoleDescriptionForUnlabeledImage () const =0
 
virtual std::u16string GetLocalizedStringForImageAnnotationStatus (ax::mojom::ImageAnnotationStatus status) const =0
 
virtual std::u16string GetLocalizedStringForLandmarkType () const =0
 
virtual std::u16string GetLocalizedStringForRoleDescription () const =0
 
virtual std::u16string GetStyleNameAttributeAsLocalizedString () const =0
 
virtual bool ShouldIgnoreHoveredStateForTesting ()=0
 
virtual gfx::NativeViewAccessible GetLowestPlatformAncestor () const =0
 
std::string ToString ()
 
std::string SubtreeToString ()
 

Protected Member Functions

 AXPlatformNodeDelegate ()=default
 
virtual std::string SubtreeToStringHelper (size_t level)=0
 

Friends

std::ostream & operator<< (std::ostream &stream, AXPlatformNodeDelegate &delegate)
 

Detailed Description

Definition at line 60 of file ax_platform_node_delegate.h.

Constructor & Destructor Documentation

◆ ~AXPlatformNodeDelegate()

virtual ui::AXPlatformNodeDelegate::~AXPlatformNodeDelegate ( )
virtualdefault

◆ AXPlatformNodeDelegate()

ui::AXPlatformNodeDelegate::AXPlatformNodeDelegate ( )
protecteddefault

Member Function Documentation

◆ AccessibilityPerformAction()

virtual bool ui::AXPlatformNodeDelegate::AccessibilityPerformAction ( const AXActionData data)
pure virtual

◆ CellIndexToId()

virtual std::optional< int32_t > ui::AXPlatformNodeDelegate::CellIndexToId ( int  cell_index) const
pure virtual

◆ ChildAtIndex()

virtual gfx::NativeViewAccessible ui::AXPlatformNodeDelegate::ChildAtIndex ( int  index)
pure virtual

◆ ChildrenBegin()

virtual std::unique_ptr< AXPlatformNodeDelegate::ChildIterator > ui::AXPlatformNodeDelegate::ChildrenBegin ( )
pure virtual

◆ ChildrenEnd()

virtual std::unique_ptr< AXPlatformNodeDelegate::ChildIterator > ui::AXPlatformNodeDelegate::ChildrenEnd ( )
pure virtual

◆ ComputeTextAttributeMap()

virtual TextAttributeMap ui::AXPlatformNodeDelegate::ComputeTextAttributeMap ( const TextAttributeList default_attributes) const
pure virtual

◆ CreateTextPositionAt()

virtual AXNodePosition::AXPositionInstance ui::AXPlatformNodeDelegate::CreateTextPositionAt ( int  offset) const
pure virtual

◆ FindTextBoundary()

virtual std::optional< int > ui::AXPlatformNodeDelegate::FindTextBoundary ( ax::mojom::TextBoundary  boundary,
int  offset,
ax::mojom::MoveDirection  direction,
ax::mojom::TextAffinity  affinity 
) const
pure virtual

◆ GetAuthorUniqueId()

virtual std::u16string ui::AXPlatformNodeDelegate::GetAuthorUniqueId ( ) const
pure virtual

◆ GetBoundsRect()

virtual gfx::Rect ui::AXPlatformNodeDelegate::GetBoundsRect ( const AXCoordinateSystem  coordinate_system,
const AXClippingBehavior  clipping_behavior,
AXOffscreenResult offscreen_result = nullptr 
) const
pure virtual

◆ GetCellId()

virtual std::optional< int32_t > ui::AXPlatformNodeDelegate::GetCellId ( int  row_index,
int  col_index 
) const
pure virtual

◆ GetChildCount()

virtual int ui::AXPlatformNodeDelegate::GetChildCount ( ) const
pure virtual

◆ GetClippedScreenBoundsRect()

virtual gfx::Rect ui::AXPlatformNodeDelegate::GetClippedScreenBoundsRect ( AXOffscreenResult offscreen_result = nullptr) const
pure virtual

◆ GetClosestPlatformObject()

virtual gfx::NativeViewAccessible ui::AXPlatformNodeDelegate::GetClosestPlatformObject ( ) const
pure virtual

◆ GetColHeaderNodeIds() [1/2]

virtual std::vector< int32_t > ui::AXPlatformNodeDelegate::GetColHeaderNodeIds ( ) const
pure virtual

◆ GetColHeaderNodeIds() [2/2]

virtual std::vector< int32_t > ui::AXPlatformNodeDelegate::GetColHeaderNodeIds ( int  col_index) const
pure virtual

◆ GetData()

virtual const AXNodeData & ui::AXPlatformNodeDelegate::GetData ( ) const
pure virtual

◆ GetFirstChild()

virtual gfx::NativeViewAccessible ui::AXPlatformNodeDelegate::GetFirstChild ( )
pure virtual

◆ GetFocus()

virtual gfx::NativeViewAccessible ui::AXPlatformNodeDelegate::GetFocus ( )
pure virtual

◆ GetFromNodeID()

virtual AXPlatformNode * ui::AXPlatformNodeDelegate::GetFromNodeID ( int32_t  id)
pure virtual

◆ GetFromTreeIDAndNodeID()

virtual AXPlatformNode * ui::AXPlatformNodeDelegate::GetFromTreeIDAndNodeID ( const ui::AXTreeID ax_tree_id,
int32_t  id 
)
pure virtual

◆ GetHypertext()

virtual std::u16string ui::AXPlatformNodeDelegate::GetHypertext ( ) const
pure virtual

◆ GetHypertextRangeBoundsRect()

virtual gfx::Rect ui::AXPlatformNodeDelegate::GetHypertextRangeBoundsRect ( const int  start_offset,
const int  end_offset,
const AXCoordinateSystem  coordinate_system,
const AXClippingBehavior  clipping_behavior,
AXOffscreenResult offscreen_result = nullptr 
) const
pure virtual

◆ GetIndexInParent()

virtual int ui::AXPlatformNodeDelegate::GetIndexInParent ( )
pure virtual

◆ GetInheritedFontFamilyName()

virtual std::string ui::AXPlatformNodeDelegate::GetInheritedFontFamilyName ( ) const
pure virtual

◆ GetInnerText()

virtual std::u16string ui::AXPlatformNodeDelegate::GetInnerText ( ) const
pure virtual

◆ GetInnerTextRangeBoundsRect()

virtual gfx::Rect ui::AXPlatformNodeDelegate::GetInnerTextRangeBoundsRect ( const int  start_offset,
const int  end_offset,
const AXCoordinateSystem  coordinate_system,
const AXClippingBehavior  clipping_behavior,
AXOffscreenResult offscreen_result = nullptr 
) const
pure virtual

◆ GetLanguage()

virtual std::string ui::AXPlatformNodeDelegate::GetLanguage ( ) const
pure virtual

◆ GetLastChild()

virtual gfx::NativeViewAccessible ui::AXPlatformNodeDelegate::GetLastChild ( )
pure virtual

◆ GetLocalizedRoleDescriptionForUnlabeledImage()

virtual std::u16string ui::AXPlatformNodeDelegate::GetLocalizedRoleDescriptionForUnlabeledImage ( ) const
pure virtual

◆ GetLocalizedStringForImageAnnotationStatus()

virtual std::u16string ui::AXPlatformNodeDelegate::GetLocalizedStringForImageAnnotationStatus ( ax::mojom::ImageAnnotationStatus  status) const
pure virtual

◆ GetLocalizedStringForLandmarkType()

virtual std::u16string ui::AXPlatformNodeDelegate::GetLocalizedStringForLandmarkType ( ) const
pure virtual

◆ GetLocalizedStringForRoleDescription()

virtual std::u16string ui::AXPlatformNodeDelegate::GetLocalizedStringForRoleDescription ( ) const
pure virtual

◆ GetLowestPlatformAncestor()

virtual gfx::NativeViewAccessible ui::AXPlatformNodeDelegate::GetLowestPlatformAncestor ( ) const
pure virtual

◆ GetName()

virtual std::string ui::AXPlatformNodeDelegate::GetName ( ) const
pure virtual

◆ GetNativeViewAccessible()

virtual gfx::NativeViewAccessible ui::AXPlatformNodeDelegate::GetNativeViewAccessible ( )
pure virtual

◆ GetNextSibling()

virtual gfx::NativeViewAccessible ui::AXPlatformNodeDelegate::GetNextSibling ( )
pure virtual

◆ GetNSWindow()

virtual gfx::NativeViewAccessible ui::AXPlatformNodeDelegate::GetNSWindow ( )
pure virtual

◆ GetParent()

virtual gfx::NativeViewAccessible ui::AXPlatformNodeDelegate::GetParent ( )
pure virtual

◆ GetPosInSet()

virtual std::optional< int > ui::AXPlatformNodeDelegate::GetPosInSet ( ) const
pure virtual

◆ GetPreviousSibling()

virtual gfx::NativeViewAccessible ui::AXPlatformNodeDelegate::GetPreviousSibling ( )
pure virtual

◆ GetReverseRelations() [1/2]

virtual std::set< AXPlatformNode * > ui::AXPlatformNodeDelegate::GetReverseRelations ( ax::mojom::IntAttribute  attr)
pure virtual

◆ GetReverseRelations() [2/2]

virtual std::set< AXPlatformNode * > ui::AXPlatformNodeDelegate::GetReverseRelations ( ax::mojom::IntListAttribute  attr)
pure virtual

◆ GetRowHeaderNodeIds() [1/2]

virtual std::vector< int32_t > ui::AXPlatformNodeDelegate::GetRowHeaderNodeIds ( ) const
pure virtual

◆ GetRowHeaderNodeIds() [2/2]

virtual std::vector< int32_t > ui::AXPlatformNodeDelegate::GetRowHeaderNodeIds ( int  row_index) const
pure virtual

◆ GetSetSize()

virtual std::optional< int > ui::AXPlatformNodeDelegate::GetSetSize ( ) const
pure virtual

◆ GetStyleNameAttributeAsLocalizedString()

virtual std::u16string ui::AXPlatformNodeDelegate::GetStyleNameAttributeAsLocalizedString ( ) const
pure virtual

◆ GetTableAriaColCount()

virtual std::optional< int > ui::AXPlatformNodeDelegate::GetTableAriaColCount ( ) const
pure virtual

◆ GetTableAriaRowCount()

virtual std::optional< int > ui::AXPlatformNodeDelegate::GetTableAriaRowCount ( ) const
pure virtual

◆ GetTableCaption()

virtual AXPlatformNode * ui::AXPlatformNodeDelegate::GetTableCaption ( ) const
pure virtual

◆ GetTableCellAriaColIndex()

virtual std::optional< int > ui::AXPlatformNodeDelegate::GetTableCellAriaColIndex ( ) const
pure virtual

◆ GetTableCellAriaRowIndex()

virtual std::optional< int > ui::AXPlatformNodeDelegate::GetTableCellAriaRowIndex ( ) const
pure virtual

◆ GetTableCellColIndex()

virtual std::optional< int > ui::AXPlatformNodeDelegate::GetTableCellColIndex ( ) const
pure virtual

◆ GetTableCellColSpan()

virtual std::optional< int > ui::AXPlatformNodeDelegate::GetTableCellColSpan ( ) const
pure virtual

◆ GetTableCellCount()

virtual std::optional< int > ui::AXPlatformNodeDelegate::GetTableCellCount ( ) const
pure virtual

◆ GetTableCellIndex()

virtual std::optional< int > ui::AXPlatformNodeDelegate::GetTableCellIndex ( ) const
pure virtual

◆ GetTableCellRowIndex()

virtual std::optional< int > ui::AXPlatformNodeDelegate::GetTableCellRowIndex ( ) const
pure virtual

◆ GetTableCellRowSpan()

virtual std::optional< int > ui::AXPlatformNodeDelegate::GetTableCellRowSpan ( ) const
pure virtual

◆ GetTableColCount()

virtual std::optional< int > ui::AXPlatformNodeDelegate::GetTableColCount ( ) const
pure virtual

◆ GetTableHasColumnOrRowHeaderNode()

virtual std::optional< bool > ui::AXPlatformNodeDelegate::GetTableHasColumnOrRowHeaderNode ( ) const
pure virtual

◆ GetTableRowCount()

virtual std::optional< int > ui::AXPlatformNodeDelegate::GetTableRowCount ( ) const
pure virtual

◆ GetTableRowRowIndex()

virtual std::optional< int > ui::AXPlatformNodeDelegate::GetTableRowRowIndex ( ) const
pure virtual

◆ GetTargetForNativeAccessibilityEvent()

virtual gfx::AcceleratedWidget ui::AXPlatformNodeDelegate::GetTargetForNativeAccessibilityEvent ( )
pure virtual

◆ GetTargetNodeForRelation()

virtual AXPlatformNode * ui::AXPlatformNodeDelegate::GetTargetNodeForRelation ( ax::mojom::IntAttribute  attr)
pure virtual

◆ GetTargetNodesForRelation()

virtual std::vector< AXPlatformNode * > ui::AXPlatformNodeDelegate::GetTargetNodesForRelation ( ax::mojom::IntListAttribute  attr)
pure virtual

◆ GetTreeData()

virtual const AXTreeData & ui::AXPlatformNodeDelegate::GetTreeData ( ) const
pure virtual

◆ GetUIADescendants()

virtual const std::vector< gfx::NativeViewAccessible > ui::AXPlatformNodeDelegate::GetUIADescendants ( ) const
pure virtual

◆ GetUnignoredSelection()

virtual const AXTree::Selection ui::AXPlatformNodeDelegate::GetUnignoredSelection ( ) const
pure virtual

◆ GetUniqueId()

virtual const AXUniqueId & ui::AXPlatformNodeDelegate::GetUniqueId ( ) const
pure virtual

◆ HasModalDialog()

virtual bool ui::AXPlatformNodeDelegate::HasModalDialog ( ) const
pure virtual

◆ HasVisibleCaretOrSelection()

virtual bool ui::AXPlatformNodeDelegate::HasVisibleCaretOrSelection ( ) const
pure virtual

◆ HitTestSync()

virtual gfx::NativeViewAccessible ui::AXPlatformNodeDelegate::HitTestSync ( int  screen_physical_pixel_x,
int  screen_physical_pixel_y 
) const
pure virtual

◆ IsCellOrHeaderOfARIAGrid()

virtual bool ui::AXPlatformNodeDelegate::IsCellOrHeaderOfARIAGrid ( ) const
pure virtual

◆ IsCellOrHeaderOfARIATable()

virtual bool ui::AXPlatformNodeDelegate::IsCellOrHeaderOfARIATable ( ) const
pure virtual

◆ IsChildOfLeaf()

virtual bool ui::AXPlatformNodeDelegate::IsChildOfLeaf ( ) const
pure virtual

◆ IsChildOfPlainTextField()

virtual bool ui::AXPlatformNodeDelegate::IsChildOfPlainTextField ( ) const
pure virtual

◆ IsLeaf()

virtual bool ui::AXPlatformNodeDelegate::IsLeaf ( ) const
pure virtual

◆ IsMinimized()

virtual bool ui::AXPlatformNodeDelegate::IsMinimized ( ) const
pure virtual

◆ IsOffscreen()

virtual bool ui::AXPlatformNodeDelegate::IsOffscreen ( ) const
pure virtual

◆ IsOrderedSet()

virtual bool ui::AXPlatformNodeDelegate::IsOrderedSet ( ) const
pure virtual

◆ IsOrderedSetItem()

virtual bool ui::AXPlatformNodeDelegate::IsOrderedSetItem ( ) const
pure virtual

◆ IsTable()

virtual bool ui::AXPlatformNodeDelegate::IsTable ( ) const
pure virtual

◆ IsTableCellOrHeader()

virtual bool ui::AXPlatformNodeDelegate::IsTableCellOrHeader ( ) const
pure virtual

◆ IsTableRow()

virtual bool ui::AXPlatformNodeDelegate::IsTableRow ( ) const
pure virtual

◆ IsText()

virtual bool ui::AXPlatformNodeDelegate::IsText ( ) const
pure virtual

◆ IsToplevelBrowserWindow()

virtual bool ui::AXPlatformNodeDelegate::IsToplevelBrowserWindow ( )
pure virtual

◆ IsWebContent()

virtual bool ui::AXPlatformNodeDelegate::IsWebContent ( ) const
pure virtual

◆ SetHypertextSelection()

virtual bool ui::AXPlatformNodeDelegate::SetHypertextSelection ( int  start_offset,
int  end_offset 
)
pure virtual

◆ ShouldIgnoreHoveredStateForTesting()

virtual bool ui::AXPlatformNodeDelegate::ShouldIgnoreHoveredStateForTesting ( )
pure virtual

◆ SubtreeToString()

std::string ui::AXPlatformNodeDelegate::SubtreeToString ( )
inline

Definition at line 432 of file ax_platform_node_delegate.h.

432{ return SubtreeToStringHelper(0u); }
virtual std::string SubtreeToStringHelper(size_t level)=0

◆ SubtreeToStringHelper()

virtual std::string ui::AXPlatformNodeDelegate::SubtreeToStringHelper ( size_t  level)
protectedpure virtual

◆ ToString()

std::string ui::AXPlatformNodeDelegate::ToString ( )
inline

Definition at line 428 of file ax_platform_node_delegate.h.

428{ return GetData().ToString(); }
virtual const AXNodeData & GetData() const =0
virtual std::string ToString() const

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  stream,
AXPlatformNodeDelegate delegate 
)
friend

Definition at line 434 of file ax_platform_node_delegate.h.

435 {
436 return stream << delegate.ToString();
437 }

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