9#include "flutter/shell/platform/common/accessibility_bridge.h"
10#include "flutter/third_party/accessibility/ax/ax_action_data.h"
11#include "flutter/third_party/accessibility/ax/ax_tree_manager_map.h"
12#include "flutter/third_party/accessibility/gfx/geometry/rect_conversions.h"
22 bridge_ = std::move(bridge);
33 auto bridge_ptr = bridge_.lock();
35 switch (
data.action) {
37 bridge_ptr->DispatchAccessibilityAction(
41 bridge_ptr->SetLastFocusedId(
target);
42 bridge_ptr->DispatchAccessibilityAction(
49 bridge_ptr->DispatchAccessibilityAction(
61 return ax_node_->
data();
68 auto bridge_ptr = bridge_.lock();
70 return bridge_ptr->GetNativeAccessibleFromId(ax_node_->
parent()->
id());
74 auto bridge_ptr = bridge_.lock();
80 return bridge_ptr->GetNativeAccessibleFromId(last_focused);
88 auto bridge_ptr = bridge_.lock();
91 return bridge_ptr->GetNativeAccessibleFromId(child);
98 auto bridge_ptr = bridge_.lock();
102 const bool clip_bounds =
104 bool offscreen =
false;
106 bridge_ptr->RelativeToGlobalBounds(ax_node_, offscreen, clip_bounds);
107 if (offscreen_result !=
nullptr) {
114std::weak_ptr<FlutterPlatformNodeDelegate::OwnerBridge>
125 auto bridge_ptr = bridge_.lock();
128 if (lowest_platform_ancestor) {
129 return bridge_ptr->GetNativeAccessibleFromId(
ui::AXPlatformNode * GetPlatformNodeFromTree(const ui::AXNode::AXID node_id) const override
static AXPositionInstance CreatePosition(const AXNode &node, int child_index_or_text_offset, ax::mojom::TextAffinity affinity=ax::mojom::TextAffinity::kDownstream)
virtual AXTreeID GetAXTreeID() const =0
size_t GetUnignoredChildCount() const
AXNode * GetLowestPlatformAncestor() const
static constexpr AXID kInvalidAXID
OwnerTree::Selection GetUnignoredSelection() const
AXNode * GetUnignoredChildAtIndex(size_t index) const
const AXNodeData & data() const
std::unique_ptr< AXPosition< AXNodePosition, AXNode > > AXPositionInstance
AXTreeManager * GetManager(AXTreeID tree_id)
static AXTreeManagerMap & GetInstance()
@ kFlutterSemanticsActionShowOnScreen
A request to fully show the semantics node on screen.
@ kFlutterSemanticsActionDidGainAccessibilityFocus
Indicate that the node has gained accessibility focus.
@ kFlutterSemanticsActionTap
Optional< SkRect > bounds
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
ui::AXNode::AXID AccessibilityNodeId
Rect ToEnclosingRect(const RectF &r)
UnimplementedNativeViewAccessible * NativeViewAccessible
#define BASE_DCHECK(condition)