5#ifndef UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_BASE_H_
6#define UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_BASE_H_
34 const AXTreeData& GetTreeData()
const override;
36 std::u16string GetInnerText()
const override;
41 int offset)
const override;
63 int GetIndexInParent()
override;
66 int GetChildCount()
const override;
72 bool HasModalDialog()
const override;
79 bool IsChildOfLeaf()
const override;
80 bool IsChildOfPlainTextField()
const override;
81 bool IsLeaf()
const override;
82 bool IsToplevelBrowserWindow()
override;
92 void operator++()
override;
93 void operator++(
int)
override;
94 void operator--()
override;
95 void operator--(
int)
override;
97 int GetIndexInParent()
const override;
105 std::unique_ptr<AXPlatformNodeDelegate::ChildIterator> ChildrenBegin()
107 std::unique_ptr<AXPlatformNodeDelegate::ChildIterator> ChildrenEnd()
override;
109 std::string GetName()
const override;
110 std::u16string GetHypertext()
const override;
111 bool SetHypertextSelection(
int start_offset,
int end_offset)
override;
114 std::string GetInheritedFontFamilyName()
const override;
121 const int start_offset,
122 const int end_offset,
128 const int start_offset,
129 const int end_offset,
152 int screen_physical_pixel_x,
153 int screen_physical_pixel_y)
const override;
160 bool IsOffscreen()
const override;
163 bool IsMinimized()
const override;
164 bool IsText()
const override;
167 bool IsWebContent()
const override;
170 bool HasVisibleCaretOrSelection()
const override;
179 int32_t
id)
override;
190 std::vector<AXPlatformNode*> GetTargetNodesForRelation(
196 std::set<AXPlatformNode*> GetReverseRelations(
202 std::set<AXPlatformNode*> GetReverseRelations(
205 std::u16string GetAuthorUniqueId()
const override;
207 const AXUniqueId& GetUniqueId()
const override;
209 std::optional<int> FindTextBoundary(
215 const std::vector<gfx::NativeViewAccessible> GetUIADescendants()
218 std::string GetLanguage()
const override;
224 bool IsTable()
const override;
225 std::optional<int> GetTableColCount()
const override;
226 std::optional<int> GetTableRowCount()
const override;
227 std::optional<int> GetTableAriaColCount()
const override;
228 std::optional<int> GetTableAriaRowCount()
const override;
229 std::optional<int> GetTableCellCount()
const override;
230 std::optional<bool> GetTableHasColumnOrRowHeaderNode()
const override;
231 std::vector<int32_t> GetColHeaderNodeIds()
const override;
232 std::vector<int32_t> GetColHeaderNodeIds(
int col_index)
const override;
233 std::vector<int32_t> GetRowHeaderNodeIds()
const override;
234 std::vector<int32_t> GetRowHeaderNodeIds(
int row_index)
const override;
239 std::optional<int> GetTableRowRowIndex()
const override;
242 bool IsTableCellOrHeader()
const override;
243 std::optional<int> GetTableCellIndex()
const override;
244 std::optional<int> GetTableCellColIndex()
const override;
245 std::optional<int> GetTableCellRowIndex()
const override;
246 std::optional<int> GetTableCellColSpan()
const override;
247 std::optional<int> GetTableCellRowSpan()
const override;
248 std::optional<int> GetTableCellAriaColIndex()
const override;
249 std::optional<int> GetTableCellAriaRowIndex()
const override;
250 std::optional<int32_t> GetCellId(
int row_index,
int col_index)
const override;
251 std::optional<int32_t> CellIndexToId(
int cell_index)
const override;
254 bool IsCellOrHeaderOfARIATable()
const override;
255 bool IsCellOrHeaderOfARIAGrid()
const override;
258 bool IsOrderedSetItem()
const override;
259 bool IsOrderedSet()
const override;
260 std::optional<int> GetPosInSet()
const override;
261 std::optional<int> GetSetSize()
const override;
269 gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent()
override;
283 std::u16string GetLocalizedStringForImageAnnotationStatus(
285 std::u16string GetLocalizedRoleDescriptionForUnlabeledImage()
const override;
286 std::u16string GetLocalizedStringForLandmarkType()
const override;
287 std::u16string GetLocalizedStringForRoleDescription()
const override;
288 std::u16string GetStyleNameAttributeAsLocalizedString()
const override;
298 bool ShouldIgnoreHoveredStateForTesting()
override;
301 std::string SubtreeToStringHelper(
size_t level)
override;
305 std::set<ui::AXPlatformNode*> GetNodesForNodeIds(
306 const std::set<int32_t>& ids);
std::unique_ptr< AXPosition< AXNodePosition, AXNode > > AXPositionInstance
UnimplementedNativeViewAccessible * NativeViewAccessible
constexpr Color operator*(T value, const Color &c)
bool operator==(const AXEventIntent &a, const AXEventIntent &b)
bool IsTableRow(ax::mojom::Role role)
std::vector< TextAttribute > TextAttributeList
std::map< int, TextAttributeList > TextAttributeMap
bool operator!=(const AXEventIntent &a, const AXEventIntent &b)
bool IsText(ax::mojom::Role role)
std::shared_ptr< const fml::Mapping > data
#define BASE_DISALLOW_COPY_AND_ASSIGN(TypeName)