5#ifndef UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_BASE_H_
6#define UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_BASE_H_
35 bool needs_update =
true;
61 int GetChildCount()
const;
64 std::string GetName()
const;
65 std::u16string GetNameAsString16()
const;
69 virtual std::optional<int> GetIndexInParent();
73 std::stack<gfx::NativeViewAccessible> GetAncestors();
84 void Destroy()
override;
89 void AnnounceText(
const std::u16string&
text)
override;
124 const std::string& GetStringAttribute(
127 std::string*
value)
const;
129 std::u16string*
value)
const;
130 std::u16string GetString16Attribute(
133 const std::string& GetInheritedStringAttribute(
135 std::u16string GetInheritedString16Attribute(
138 std::string*
value)
const;
140 std::u16string*
value)
const;
143 const std::vector<int32_t>& GetIntListAttribute(
147 std::vector<int32_t>*
value)
const;
175 std::optional<int> GetTableCellIndex()
const;
182 std::optional<int> GetTableColumn()
const;
186 std::optional<int> GetTableColumnCount()
const;
190 std::optional<int> GetTableAriaColumnCount()
const;
195 std::optional<int> GetTableColumnSpan()
const;
202 std::optional<int> GetTableRow()
const;
206 std::optional<int> GetTableRowCount()
const;
210 std::optional<int> GetTableAriaRowCount()
const;
215 std::optional<int> GetTableRowSpan()
const;
218 std::optional<float> GetFontSizeInPoints()
const;
226 bool IsChildOfLeaf()
const;
232 bool IsInvisibleOrIgnored()
const;
236 bool IsScrollable()
const;
239 bool IsHorizontallyScrollable()
const;
242 bool IsVerticallyScrollable()
const;
245 bool IsTextField()
const;
248 bool IsPlainTextField()
const;
251 bool IsRichTextField()
const;
261 virtual bool IsPlatformCheckable()
const;
270 std::u16string GetHypertext()
const;
278 std::u16string GetInnerText()
const;
280 virtual std::u16string
GetValue()
const;
292 static size_t GetInstanceCountForTesting();
307 bool ScrollToNode(ScrollType scroll_type);
320 int NearestTextIndexToPoint(
gfx::Point point);
326 int GetSelectionCount()
const;
338 int GetSelectedItems(
340 std::vector<AXPlatformNodeBase*>* out_selected_items =
nullptr)
const;
350 bool IsSelectionItemSupported()
const;
355 std::u16string GetRangeValueText()
const;
359 std::u16string GetRoleDescription()
const;
360 std::u16string GetRoleDescriptionFromImageAnnotationStatusOrFromAttribute()
368 virtual void Dispose();
371 bool SetHypertextSelection(
int start_offset,
int end_offset);
399 virtual void AddAttributeToList(
const char*
name,
400 const std::string&
value,
405 virtual void AddAttributeToList(
const char*
name,
411 static void SanitizeStringAttribute(
const std::string& input,
417 virtual void SanitizeTextAttributeValue(
const std::string& input,
418 std::string*
output)
const;
423 void UpdateComputedHypertext()
const;
438 void GetSelectionOffsets(
int* selection_start,
int* selection_end);
440 int* selection_start,
443 int* selection_start,
453 int32_t GetHypertextOffsetFromHyperlinkIndex(int32_t hyperlink_index);
465 int endpoint_offset);
467 bool IsSameHypertextCharacter(
const AXHypertext& old_hypertext,
468 size_t old_char_index,
469 size_t new_char_index);
471 std::optional<int> GetPosInSet()
const;
472 std::optional<int> GetSetSize()
const;
474 std::string GetInvalidValue()
const;
479 int GetMaxSelectableItems()
const;
487 bool is_indexed_from_end =
false);
490 std::string ComputeDetailsRoles()
const;
ax::mojom::Event event_type
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
Dart_NativeFunction function
static int64_t GetValue(Dart_Handle arg)
DEF_SWITCHES_START aot vmservice shared library name
UnimplementedNativeViewAccessible * NativeViewAccessible
std::vector< TextAttribute > TextAttributeList
bool IsText(ax::mojom::Role role)
bool IsDocument(const ax::mojom::Role role)
AXHypertext(const AXHypertext &other)
std::vector< int32_t > hyperlinks
std::map< int32_t, int32_t > hyperlink_offset_to_index
AXHypertext & operator=(const AXHypertext &other)
#define BASE_DISALLOW_COPY_AND_ASSIGN(TypeName)