#include <FlutterPlatformNodeDelegateMac.h>
Public Member Functions | |
FlutterPlatformNodeDelegateMac (std::weak_ptr< AccessibilityBridge > bridge, __weak FlutterViewController *view_controller) | |
virtual | ~FlutterPlatformNodeDelegateMac () |
void | Init (std::weak_ptr< OwnerBridge > bridge, ui::AXNode *node) override |
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... | |
std::string | GetLiveRegionText () const |
Gets the live region text of this node in UTF-8 format. This is useful to determine the changes in between semantics updates when generating accessibility events. More... | |
gfx::NativeViewAccessible | GetNativeViewAccessible () override |
gfx::NativeViewAccessible | GetNSWindow () override |
gfx::NativeViewAccessible | GetParent () override |
gfx::Rect | GetBoundsRect (const ui::AXCoordinateSystem coordinate_system, const ui::AXClippingBehavior clipping_behavior, ui::AXOffscreenResult *offscreen_result) const override |
Public Member Functions inherited from flutter::FlutterPlatformNodeDelegate | |
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 |
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 macOS implementation of FlutterPlatformNodeDelegate. This class uses AXPlatformNodeMac to manage the macOS-specific accessibility objects.
Definition at line 22 of file FlutterPlatformNodeDelegateMac.h.
flutter::FlutterPlatformNodeDelegateMac::FlutterPlatformNodeDelegateMac | ( | std::weak_ptr< AccessibilityBridge > | bridge, |
__weak FlutterViewController * | view_controller | ||
) |
Definition at line 23 of file FlutterPlatformNodeDelegateMac.mm.
|
virtual |
Definition at line 38 of file FlutterPlatformNodeDelegateMac.mm.
|
override |
Definition at line 57 of file FlutterPlatformNodeDelegateMac.mm.
References flutter::FlutterPlatformNodeDelegate::GetBoundsRect().
std::string flutter::FlutterPlatformNodeDelegateMac::GetLiveRegionText | ( | ) | const |
Gets the live region text of this node in UTF-8 format. This is useful to determine the changes in between semantics updates when generating accessibility events.
Definition at line 73 of file FlutterPlatformNodeDelegateMac.mm.
References flutter::FlutterPlatformNodeDelegate::GetAXNode(), and flutter::FlutterPlatformNodeDelegate::GetData().
|
override |
Definition at line 43 of file FlutterPlatformNodeDelegateMac.mm.
|
override |
Definition at line 68 of file FlutterPlatformNodeDelegateMac.mm.
References FlutterAppDelegate::mainFlutterWindow.
|
override |
Definition at line 48 of file FlutterPlatformNodeDelegateMac.mm.
References flutter::FlutterPlatformNodeDelegate::GetParent().
|
overridevirtual |
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 from flutter::FlutterPlatformNodeDelegate.
Definition at line 28 of file FlutterPlatformNodeDelegateMac.mm.
References flutter::FlutterPlatformNodeDelegate::GetData(), and flutter::FlutterPlatformNodeDelegate::Init().
Referenced by flutter::testing::TEST().