5#ifndef UI_ACCESSIBILITY_PLATFORM_TEST_AX_NODE_WRAPPER_H_
6#define UI_ACCESSIBILITY_PLATFORM_TEST_AX_NODE_WRAPPER_H_
21const AcceleratedWidget kMockAcceleratedWidget =
reinterpret_cast<HWND
>(-1);
76 int offset)
const override;
85 const int start_offset,
91 const int start_offset,
97 int screen_physical_pixel_x,
98 int screen_physical_pixel_y)
const override;
104 int32_t
id)
override;
127 std::optional<int32_t>
GetCellId(
int row_index,
int col_index)
const override;
128 std::optional<int32_t>
CellIndexToId(
int cell_index)
const override;
149 std::optional<int>
GetSetSize()
const override;
158 void ReplaceIntAttribute(int32_t node_id,
165 void ReplaceTreeDataTextSelection(int32_t anchor_node_id,
166 int32_t anchor_offset,
167 int32_t focus_node_id,
168 int32_t focus_offset);
173 std::vector<gfx::NativeViewAccessible>* descendants)
const;
174 static bool ShouldHideChildrenForUIA(
const AXNode* node);
178 gfx::RectF GetInlineTextRect(
const int start_offset,
179 const int end_offset)
const;
188 gfx::AcceleratedWidget native_event_target_;
189 bool minimized_ =
false;
std::unique_ptr< AXPosition< AXNodePosition, AXNode > > AXPositionInstance
const std::vector< gfx::NativeViewAccessible > GetUIADescendants() const override
bool AccessibilityPerformAction(const AXActionData &data) override
gfx::NativeViewAccessible GetParent() override
std::optional< int > GetTableCellColIndex() const override
const AXTreeData & GetTreeData() const override
int InternalChildCount() const
bool IsMinimized() const override
const AXNodeData & GetData() const override
std::optional< int > GetTableRowCount() const override
std::optional< int > GetTableCellCount() const override
std::optional< int > GetSetSize() const override
bool IsWebContent() const override
gfx::NativeViewAccessible GetNativeViewAccessible() override
void set_minimized(bool minimized)
const AXTree::Selection GetUnignoredSelection() const override
std::u16string GetStyleNameAttributeAsLocalizedString() const override
std::optional< int > GetTableCellColSpan() const override
gfx::NativeViewAccessible HitTestSync(int screen_physical_pixel_x, int screen_physical_pixel_y) const override
static void ClearHitTestResults()
std::u16string GetLocalizedStringForImageAnnotationStatus(ax::mojom::ImageAnnotationStatus status) const override
bool IsTable() const override
gfx::RectF GetLocation() const
std::vector< int32_t > GetRowHeaderNodeIds() const override
bool IsOrderedSetItem() const override
static void SetGlobalIsWebContent(bool is_web_content)
std::optional< int > GetTableCellAriaColIndex() 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
static TestAXNodeWrapper * GetOrCreate(AXTree *tree, AXNode *node)
void ResetNativeEventTarget()
AXPlatformNode * GetFromNodeID(int32_t id) override
int GetChildCount() const override
std::optional< bool > GetTableHasColumnOrRowHeaderNode() const override
bool IsCellOrHeaderOfARIAGrid() const override
bool IsOrderedSet() const override
std::optional< int > GetTableCellRowIndex() const override
std::optional< int > GetPosInSet() const override
AXPlatformNode * GetFromTreeIDAndNodeID(const ui::AXTreeID &ax_tree_id, int32_t id) override
~TestAXNodeWrapper() override
std::optional< int > GetTableCellRowSpan() const override
AXPlatformNode * ax_platform_node() const
std::optional< int > GetTableAriaColCount() const override
std::optional< int > GetTableColCount() const override
std::u16string GetLocalizedStringForRoleDescription() const override
std::u16string GetLocalizedRoleDescriptionForUnlabeledImage() const override
bool IsCellOrHeaderOfARIATable() const override
gfx::NativeViewAccessible GetFocus() override
bool IsTableCellOrHeader() const override
static void SetNodeFromLastDefaultAction(AXNode *node)
std::set< AXPlatformNode * > GetReverseRelations(ax::mojom::IntAttribute attr) override
const ui::AXUniqueId & GetUniqueId() const override
int GetIndexInParent() override
gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override
std::vector< int32_t > GetColHeaderNodeIds() const override
std::u16string GetLocalizedStringForLandmarkType() const override
std::optional< int32_t > GetCellId(int row_index, int col_index) const override
bool HasVisibleCaretOrSelection() const override
gfx::Rect GetBoundsRect(const AXCoordinateSystem coordinate_system, const AXClippingBehavior clipping_behavior, AXOffscreenResult *offscreen_result) const override
static const AXNode * GetNodeFromLastShowContextMenu()
bool IsTableRow() const override
std::optional< int > GetTableAriaRowCount() const override
TestAXNodeWrapper * InternalGetChild(int index) const
gfx::Rect GetInnerTextRangeBoundsRect(const int start_offset, const int end_offset, const AXCoordinateSystem coordinate_system, const AXClippingBehavior clipping_behavior, AXOffscreenResult *offscreen_result) const override
AXNodePosition::AXPositionInstance CreateTextPositionAt(int offset) const override
std::optional< int > GetTableCellIndex() const override
std::optional< int > GetTableRowRowIndex() const override
static void SetGlobalCoordinateOffset(const gfx::Vector2d &offset)
static const AXNode * GetNodeFromLastDefaultAction()
static std::unique_ptr< base::AutoReset< float > > SetScaleFactor(float value)
static void SetHitTestResult(AXNode::AXID src_node_id, AXNode::AXID dst_node_id)
bool ShouldIgnoreHoveredStateForTesting() override
std::optional< int32_t > CellIndexToId(int cell_index) const override
gfx::NativeViewAccessible ChildAtIndex(int index) override
std::optional< int > GetTableCellAriaRowIndex() const override
void BuildAllWrappers(AXTree *tree, AXNode *node)
Optional< SkRect > bounds
UnimplementedNativeViewAccessible * NativeViewAccessible
std::shared_ptr< const fml::Mapping > data