#include <flutter_platform_node_delegate.h>
Classes | |
class | OwnerBridge |
Public Member Functions | |
FlutterPlatformNodeDelegate () | |
virtual | ~FlutterPlatformNodeDelegate () override |
const ui::AXUniqueId & | GetUniqueId () const override |
const ui::AXNodeData & | GetData () const override |
bool | AccessibilityPerformAction (const ui::AXActionData &data) override |
gfx::NativeViewAccessible | GetParent () override |
gfx::NativeViewAccessible | GetFocus () override |
int | GetChildCount () const override |
gfx::NativeViewAccessible | ChildAtIndex (int index) override |
gfx::Rect | GetBoundsRect (const ui::AXCoordinateSystem coordinate_system, const ui::AXClippingBehavior clipping_behavior, ui::AXOffscreenResult *offscreen_result) const override |
gfx::NativeViewAccessible | GetLowestPlatformAncestor () const override |
ui::AXNodePosition::AXPositionInstance | CreateTextPositionAt (int offset) const override |
virtual void | Init (std::weak_ptr< OwnerBridge > bridge, ui::AXNode *node) |
Called only once, immediately after construction. The constructor doesn't take any arguments because in the Windows subclass we use a special function to construct a COM object. Subclasses must call super. More... | |
ui::AXNode * | GetAXNode () const |
Gets the underlying ax node for this platform node delegate. More... | |
std::weak_ptr< OwnerBridge > | GetOwnerBridge () const |
Gets the owner of this platform node delegate. This is useful when you want to get the information about surrounding nodes of this platform node delegate, e.g. the global rect of this platform node delegate. This pointer is only safe in the platform thread. More... | |
virtual ui::AXPlatformNode * | GetPlatformNode () const |
virtual ui::AXPlatformNode * | GetFromNodeID (int32_t id) override |
virtual ui::AXPlatformNode * | GetFromTreeIDAndNodeID (const ui::AXTreeID &tree_id, int32_t node_id) override |
virtual const ui::AXTree::Selection | GetUnignoredSelection () const override |
The platform node delegate to be used in accessibility bridge. This class is responsible for providing native accessibility object with appropriate information, such as accessibility label/value/bounds.
While most methods have default implementations and are ready to be used as-is, the subclasses must override the GetNativeViewAccessible to return native accessibility objects. To do that, subclasses should create and maintain AXPlatformNode[s] which delegate their accessibility attributes to this class.
For desktop platforms, subclasses also need to override the GetBoundsRect to apply window-to-screen transform.
This class transforms bounds assuming the device pixel ratio is 1.0. See the https://github.com/flutter/flutter/issues/74283 for more information.
Definition at line 33 of file flutter_platform_node_delegate.h.
|
default |
|
overridevirtualdefault |
|
override |
Definition at line 30 of file flutter_platform_node_delegate.cc.
|
override |
Definition at line 87 of file flutter_platform_node_delegate.cc.
|
override |
Definition at line 136 of file flutter_platform_node_delegate.cc.
ui::AXNode * flutter::FlutterPlatformNodeDelegate::GetAXNode | ( | ) | const |
Gets the underlying ax node for this platform node delegate.
Definition at line 26 of file flutter_platform_node_delegate.cc.
Referenced by flutter::FlutterTextPlatformNode::GetFrame(), and flutter::FlutterPlatformNodeDelegateMac::GetLiveRegionText().
|
override |
Definition at line 94 of file flutter_platform_node_delegate.cc.
Referenced by flutter::FlutterPlatformNodeDelegateMac::GetBoundsRect().
|
override |
Definition at line 83 of file flutter_platform_node_delegate.cc.
|
override |
Definition at line 60 of file flutter_platform_node_delegate.cc.
Referenced by flutter::FlutterPlatformNodeDelegateMac::GetLiveRegionText(), and flutter::FlutterPlatformNodeDelegateMac::Init().
|
override |
Definition at line 73 of file flutter_platform_node_delegate.cc.
|
overridevirtual |
Definition at line 140 of file flutter_platform_node_delegate.cc.
References flutter::AccessibilityBridge::GetPlatformNodeFromTree().
|
overridevirtual |
Definition at line 150 of file flutter_platform_node_delegate.cc.
References flutter::AccessibilityBridge::GetPlatformNodeFromTree().
|
override |
Definition at line 124 of file flutter_platform_node_delegate.cc.
std::weak_ptr< FlutterPlatformNodeDelegate::OwnerBridge > flutter::FlutterPlatformNodeDelegate::GetOwnerBridge | ( | ) | const |
Gets the owner of this platform node delegate. This is useful when you want to get the information about surrounding nodes of this platform node delegate, e.g. the global rect of this platform node delegate. This pointer is only safe in the platform thread.
Definition at line 115 of file flutter_platform_node_delegate.cc.
Referenced by flutter::FlutterTextPlatformNode::GetFrame().
|
override |
Definition at line 64 of file flutter_platform_node_delegate.cc.
Referenced by flutter::FlutterPlatformNodeDelegateMac::GetParent().
|
virtual |
Definition at line 119 of file flutter_platform_node_delegate.cc.
|
overridevirtual |
Definition at line 160 of file flutter_platform_node_delegate.cc.
|
inlineoverride |
Definition at line 102 of file flutter_platform_node_delegate.h.
|
virtual |
Called only once, immediately after construction. The constructor doesn't take any arguments because in the Windows subclass we use a special function to construct a COM object. Subclasses must call super.
Reimplemented in flutter::FlutterPlatformNodeDelegateMac.
Definition at line 20 of file flutter_platform_node_delegate.cc.
Referenced by flutter::FlutterPlatformNodeDelegateMac::Init().