|
| 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.