Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Member Functions | List of all members
ui::AXFragmentRootWin Class Reference

#include <ax_fragment_root_win.h>

Inheritance diagram for ui::AXFragmentRootWin:
ui::AXPlatformNodeDelegateBase ui::AXPlatformNodeDelegate

Public Member Functions

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

Static Public Member Functions

static AXFragmentRootWinGetForAcceleratedWidget (gfx::AcceleratedWidget widget)
 
static AXFragmentRootWinGetFragmentRootParentOf (gfx::NativeViewAccessible accessible)
 

Private Member Functions

gfx::NativeViewAccessible GetParent () override
 
int GetChildCount () const override
 
gfx::NativeViewAccessible ChildAtIndex (int index) override
 
gfx::NativeViewAccessible GetNextSibling () override
 
gfx::NativeViewAccessible GetPreviousSibling () override
 
gfx::NativeViewAccessible HitTestSync (int x, int y) const override
 
gfx::NativeViewAccessible GetFocus () override
 
const ui::AXUniqueIdGetUniqueId () const override
 
AXPlatformNodeGetFromTreeIDAndNodeID (const ui::AXTreeID &ax_tree_id, int32_t id) override
 
gfx::Rect GetBoundsRect (const AXCoordinateSystem acs, const AXClippingBehavior acb, AXOffscreenResult *result) const override
 

Additional Inherited Members

- Protected Member Functions inherited from ui::AXPlatformNodeDelegateBase
std::string SubtreeToStringHelper (size_t level) override
 
std::set< ui::AXPlatformNode * > GetNodesForNodeIds (const std::set< int32_t > &ids)
 
AXPlatformNodeDelegateGetParentDelegate ()
 
- Protected Member Functions inherited from ui::AXPlatformNodeDelegate
 AXPlatformNodeDelegate ()=default
 

Detailed Description

Definition at line 30 of file ax_fragment_root_win.h.

Constructor & Destructor Documentation

◆ AXFragmentRootWin()

ui::AXFragmentRootWin::AXFragmentRootWin ( gfx::AcceleratedWidget  widget,
AXFragmentRootDelegateWin delegate 
)

Definition at line 290 of file ax_fragment_root_win.cc.

292 : widget_(widget), delegate_(delegate), alert_node_(nullptr) {
293 platform_node_ = ui::AXFragmentRootPlatformNodeWin::Create(this);
295}
static AXFragmentRootMapWin & GetInstance()
void AddFragmentRoot(gfx::AcceleratedWidget widget, AXFragmentRootWin *fragment_root)
static AXFragmentRootPlatformNodeWin * Create(AXPlatformNodeDelegate *delegate)

◆ ~AXFragmentRootWin()

ui::AXFragmentRootWin::~AXFragmentRootWin ( )
override

Definition at line 297 of file ax_fragment_root_win.cc.

297 {
299 platform_node_->Destroy();
300 platform_node_ = nullptr;
301}
void RemoveFragmentRoot(gfx::AcceleratedWidget widget)

Member Function Documentation

◆ ChildAtIndex()

gfx::NativeViewAccessible ui::AXFragmentRootWin::ChildAtIndex ( int  index)
overrideprivatevirtual

Implements ui::AXPlatformNodeDelegate.

Definition at line 331 of file ax_fragment_root_win.cc.

331 {
332 if (index == 0) {
333 return delegate_->GetChildOfAXFragmentRoot();
334 } else if (index == 1 && alert_node_) {
335 return alert_node_;
336 }
337
338 return nullptr;
339}
virtual gfx::NativeViewAccessible GetChildOfAXFragmentRoot()=0

◆ GetBoundsRect()

gfx::Rect ui::AXFragmentRootWin::GetBoundsRect ( const AXCoordinateSystem  acs,
const AXClippingBehavior  acb,
AXOffscreenResult result 
) const
overrideprivatevirtual

Implements ui::AXPlatformNodeDelegate.

Definition at line 434 of file ax_fragment_root_win.cc.

436 {
438 if (!child) {
439 return gfx::Rect();
440 }
441 return child->GetBoundsRect(sys, clip, result);
442}
static SkPath clip(const SkPath &path, const SkHalfPlane &plane)
Definition SkPath.cpp:3824
AXPlatformNodeDelegate * GetChildNodeDelegate() const
GAsyncResult * result

◆ GetChildCount()

int ui::AXFragmentRootWin::GetChildCount ( ) const
overrideprivatevirtual

Implements ui::AXPlatformNodeDelegate.

Definition at line 327 of file ax_fragment_root_win.cc.

327 {
328 return delegate_->GetChildOfAXFragmentRoot() ? 1 : 0;
329}

◆ GetChildNodeDelegate()

AXPlatformNodeDelegate * ui::AXFragmentRootWin::GetChildNodeDelegate ( ) const

Definition at line 403 of file ax_fragment_root_win.cc.

403 {
405 if (child)
407
408 return nullptr;
409}
static AXPlatformNode * FromNativeViewAccessible(gfx::NativeViewAccessible accessible)
virtual AXPlatformNodeDelegate * GetDelegate() const =0
UnimplementedNativeViewAccessible * NativeViewAccessible

◆ GetFocus()

gfx::NativeViewAccessible ui::AXFragmentRootWin::GetFocus ( )
overrideprivatevirtual

Implements ui::AXPlatformNodeDelegate.

Definition at line 368 of file ax_fragment_root_win.cc.

368 {
370 if (child_delegate)
371 return child_delegate->GetFocus();
372
373 return nullptr;
374}

◆ GetForAcceleratedWidget()

AXFragmentRootWin * ui::AXFragmentRootWin::GetForAcceleratedWidget ( gfx::AcceleratedWidget  widget)
static

Definition at line 303 of file ax_fragment_root_win.cc.

304 {
306}
ui::AXFragmentRootWin * GetFragmentRoot(gfx::AcceleratedWidget widget) const

◆ GetFragmentRootParentOf()

AXFragmentRootWin * ui::AXFragmentRootWin::GetFragmentRootParentOf ( gfx::NativeViewAccessible  accessible)
static

Definition at line 309 of file ax_fragment_root_win.cc.

310 {
312 accessible);
313}
ui::AXFragmentRootWin * GetFragmentRootParentOf(gfx::NativeViewAccessible accessible) const

◆ GetFromTreeIDAndNodeID()

AXPlatformNode * ui::AXFragmentRootWin::GetFromTreeIDAndNodeID ( const ui::AXTreeID ax_tree_id,
int32_t  id 
)
overrideprivatevirtual

Implements ui::AXPlatformNodeDelegate.

Definition at line 385 of file ax_fragment_root_win.cc.

387 {
389 if (child_delegate)
390 return child_delegate->GetFromTreeIDAndNodeID(ax_tree_id, node_id);
391
392 return nullptr;
393}

◆ GetNativeViewAccessible()

gfx::NativeViewAccessible ui::AXFragmentRootWin::GetNativeViewAccessible ( )
overridevirtual

Implements ui::AXPlatformNodeDelegate.

Definition at line 315 of file ax_fragment_root_win.cc.

315 {
316 return platform_node_.Get();
317}

◆ GetNextSibling()

gfx::NativeViewAccessible ui::AXFragmentRootWin::GetNextSibling ( )
overrideprivatevirtual

Implements ui::AXPlatformNodeDelegate.

Definition at line 341 of file ax_fragment_root_win.cc.

341 {
342 int child_index = GetIndexInParentOfChild();
343 if (child_index >= 0) {
344 AXPlatformNodeDelegate* parent = GetParentNodeDelegate();
345 if (parent && child_index < (parent->GetChildCount() - 1))
346 return GetParentNodeDelegate()->ChildAtIndex(child_index + 1);
347 }
348
349 return nullptr;
350}
virtual gfx::NativeViewAccessible ChildAtIndex(int index)=0

◆ GetParent()

gfx::NativeViewAccessible ui::AXFragmentRootWin::GetParent ( )
overrideprivatevirtual

Implements ui::AXPlatformNodeDelegate.

Definition at line 323 of file ax_fragment_root_win.cc.

323 {
324 return delegate_->GetParentOfAXFragmentRoot();
325}
virtual gfx::NativeViewAccessible GetParentOfAXFragmentRoot()=0

◆ GetPreviousSibling()

gfx::NativeViewAccessible ui::AXFragmentRootWin::GetPreviousSibling ( )
overrideprivatevirtual

Implements ui::AXPlatformNodeDelegate.

Definition at line 352 of file ax_fragment_root_win.cc.

352 {
353 int child_index = GetIndexInParentOfChild();
354 if (child_index > 0)
355 return GetParentNodeDelegate()->ChildAtIndex(child_index - 1);
356
357 return nullptr;
358}

◆ GetTargetForNativeAccessibilityEvent()

gfx::AcceleratedWidget ui::AXFragmentRootWin::GetTargetForNativeAccessibilityEvent ( )
overridevirtual

Implements ui::AXPlatformNodeDelegate.

Definition at line 381 of file ax_fragment_root_win.cc.

381 {
382 return widget_;
383}

◆ GetUniqueId()

const ui::AXUniqueId & ui::AXFragmentRootWin::GetUniqueId ( ) const
overrideprivatevirtual

Implements ui::AXPlatformNodeDelegate.

Definition at line 376 of file ax_fragment_root_win.cc.

376 {
377 return unique_id_;
378}

◆ HitTestSync()

gfx::NativeViewAccessible ui::AXFragmentRootWin::HitTestSync ( int  x,
int  y 
) const
overrideprivatevirtual

Implements ui::AXPlatformNodeDelegate.

Definition at line 360 of file ax_fragment_root_win.cc.

360 {
362 if (child_delegate)
363 return child_delegate->HitTestSync(x, y);
364
365 return nullptr;
366}
double y
double x

◆ IsControlElement()

bool ui::AXFragmentRootWin::IsControlElement ( )

Definition at line 319 of file ax_fragment_root_win.cc.

319 {
320 return delegate_->IsAXFragmentRootAControlElement();
321}
virtual bool IsAXFragmentRootAControlElement()=0

◆ SetAlertNode()

void ui::AXFragmentRootWin::SetAlertNode ( AXPlatformNodeWin *  alert_node)

Definition at line 430 of file ax_fragment_root_win.cc.

430 {
431 alert_node_ = alert_node;
432}

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