Flutter Engine
The Flutter Engine
|
#include <ax_platform_node_base.h>
Public Types | |
enum | ScrollType { TopLeft , BottomRight , TopEdge , BottomEdge , LeftEdge , RightEdge , Anywhere } |
using | AXPlatformNodeChildIterator = ui::AXNode::ChildIteratorBase< AXPlatformNodeBase, &AXPlatformNodeBase::GetNextSibling, &AXPlatformNodeBase::GetPreviousSibling, &AXPlatformNodeBase::GetFirstChild, &AXPlatformNodeBase::GetLastChild > |
Public Types inherited from ui::AXPlatformNode | |
typedef AXPlatformNode * | NativeWindowHandlerCallback(gfx::NativeWindow) |
Static Public Member Functions | |
static AXPlatformNode * | GetFromUniqueId (int32_t unique_id) |
static size_t | GetInstanceCountForTesting () |
static void | SetOnNotifyEventCallbackForTesting (ax::mojom::Event event_type, std::function< void()> callback) |
Static Public Member Functions inherited from ui::AXPlatformNode | |
static AXPlatformNode * | Create (AXPlatformNodeDelegate *delegate) |
static AXPlatformNode * | FromNativeViewAccessible (gfx::NativeViewAccessible accessible) |
static AXPlatformNode * | FromNativeWindow (gfx::NativeWindow native_window) |
static void | RegisterNativeWindowHandler (std::function< NativeWindowHandlerCallback > handler) |
static void | AddAXModeObserver (AXModeObserver *observer) |
static void | RemoveAXModeObserver (AXModeObserver *observer) |
static AXMode | GetAccessibilityMode () |
static void | NotifyAddAXModeFlags (AXMode mode_flags) |
static gfx::NativeViewAccessible | GetPopupFocusOverride () |
static void | SetPopupFocusOverride (gfx::NativeViewAccessible focus_override) |
Public Attributes | |
AXPlatformNodeDelegate * | delegate_ = nullptr |
Static Public Attributes | |
static const char16_t | kEmbeddedCharacter = L'\xfffc' |
Protected Types | |
using | PlatformAttributeList = std::vector< std::u16string > |
Static Protected Member Functions | |
static AXPlatformNodeBase * | FromNativeViewAccessible (gfx::NativeViewAccessible accessible) |
static void | SanitizeStringAttribute (const std::string &input, std::string *output) |
Protected Attributes | |
AXHypertext | hypertext_ |
Definition at line 50 of file ax_platform_node_base.h.
Definition at line 102 of file ax_platform_node_base.h.
|
protected |
Definition at line 373 of file ax_platform_node_base.h.
Enumerator | |
---|---|
TopLeft | |
BottomRight | |
TopEdge | |
BottomEdge | |
LeftEdge | |
RightEdge | |
Anywhere |
Definition at line 298 of file ax_platform_node_base.h.
|
default |
|
overridedefault |
|
protected |
Definition at line 1277 of file ax_platform_node_base.cc.
|
protected |
Definition at line 1288 of file ax_platform_node_base.cc.
|
protected |
Definition at line 1266 of file ax_platform_node_base.cc.
|
protectedvirtual |
Reimplemented in ui::AXPlatformNodeMac.
Definition at line 1349 of file ax_platform_node_base.cc.
|
protectedvirtual |
Definition at line 1301 of file ax_platform_node_base.cc.
AXPlatformNodeBase::AXPlatformNodeChildIterator ui::AXPlatformNodeBase::AXPlatformNodeChildrenBegin | ( | ) | const |
Definition at line 310 of file ax_platform_node_base.cc.
AXPlatformNodeBase::AXPlatformNodeChildIterator ui::AXPlatformNodeBase::AXPlatformNodeChildrenEnd | ( | ) | const |
Definition at line 315 of file ax_platform_node_base.cc.
gfx::NativeViewAccessible ui::AXPlatformNodeBase::ChildAtIndex | ( | int | index | ) | const |
Definition at line 115 of file ax_platform_node_base.cc.
std::optional< int > ui::AXPlatformNodeBase::CompareTo | ( | AXPlatformNodeBase & | other | ) |
Definition at line 184 of file ax_platform_node_base.cc.
|
protected |
Definition at line 954 of file ax_platform_node_base.cc.
ui::TextAttributeList ui::AXPlatformNodeBase::ComputeTextAttributes | ( | ) | const |
Definition at line 1888 of file ax_platform_node_base.cc.
|
overridevirtual |
Reimplemented from ui::AXPlatformNode.
Reimplemented in ui::AXPlatformNodeMac.
Definition at line 267 of file ax_platform_node_base.cc.
|
protectedvirtual |
Definition at line 276 of file ax_platform_node_base.cc.
|
staticprotected |
Definition at line 554 of file ax_platform_node_base.cc.
std::stack< gfx::NativeViewAccessible > ui::AXPlatformNodeBase::GetAncestors | ( | ) |
Definition at line 173 of file ax_platform_node_base.cc.
bool ui::AXPlatformNodeBase::GetBoolAttribute | ( | ax::mojom::BoolAttribute | attr | ) | const |
Definition at line 365 of file ax_platform_node_base.cc.
bool ui::AXPlatformNodeBase::GetBoolAttribute | ( | ax::mojom::BoolAttribute | attr, |
bool * | value | ||
) | const |
Definition at line 372 of file ax_platform_node_base.cc.
int ui::AXPlatformNodeBase::GetChildCount | ( | ) | const |
Definition at line 109 of file ax_platform_node_base.cc.
const AXNodeData & ui::AXPlatformNodeBase::GetData | ( | ) | const |
Definition at line 90 of file ax_platform_node_base.cc.
|
overridevirtual |
Implements ui::AXPlatformNode.
Definition at line 291 of file ax_platform_node_base.cc.
AXPlatformNodeBase * ui::AXPlatformNodeBase::GetFirstChild | ( | ) | const |
Definition at line 332 of file ax_platform_node_base.cc.
float ui::AXPlatformNodeBase::GetFloatAttribute | ( | ax::mojom::FloatAttribute | attr | ) | const |
Definition at line 386 of file ax_platform_node_base.cc.
bool ui::AXPlatformNodeBase::GetFloatAttribute | ( | ax::mojom::FloatAttribute | attr, |
float * | value | ||
) | const |
Definition at line 393 of file ax_platform_node_base.cc.
gfx::NativeViewAccessible ui::AXPlatformNodeBase::GetFocus | ( | ) |
Definition at line 97 of file ax_platform_node_base.cc.
std::optional< float > ui::AXPlatformNodeBase::GetFontSizeInPoints | ( | ) | const |
Definition at line 852 of file ax_platform_node_base.cc.
|
static |
Definition at line 66 of file ax_platform_node_base.cc.
|
protected |
Definition at line 1422 of file ax_platform_node_base.cc.
|
protected |
Definition at line 1440 of file ax_platform_node_base.cc.
std::u16string ui::AXPlatformNodeBase::GetHypertext | ( | ) | const |
Definition at line 631 of file ax_platform_node_base.cc.
|
protected |
Definition at line 1462 of file ax_platform_node_base.cc.
|
protected |
Definition at line 1494 of file ax_platform_node_base.cc.
|
protected |
Definition at line 1509 of file ax_platform_node_base.cc.
|
protected |
Definition at line 1453 of file ax_platform_node_base.cc.
|
virtual |
Definition at line 134 of file ax_platform_node_base.cc.
std::u16string ui::AXPlatformNodeBase::GetInheritedString16Attribute | ( | ax::mojom::StringAttribute | attribute | ) | const |
Definition at line 495 of file ax_platform_node_base.cc.
bool ui::AXPlatformNodeBase::GetInheritedString16Attribute | ( | ax::mojom::StringAttribute | attribute, |
std::u16string * | value | ||
) | const |
Definition at line 520 of file ax_platform_node_base.cc.
const std::string & ui::AXPlatformNodeBase::GetInheritedStringAttribute | ( | ax::mojom::StringAttribute | attribute | ) | const |
Definition at line 477 of file ax_platform_node_base.cc.
bool ui::AXPlatformNodeBase::GetInheritedStringAttribute | ( | ax::mojom::StringAttribute | attribute, |
std::string * | value | ||
) | const |
Definition at line 500 of file ax_platform_node_base.cc.
std::u16string ui::AXPlatformNodeBase::GetInnerText | ( | ) | const |
Definition at line 646 of file ax_platform_node_base.cc.
|
static |
Definition at line 75 of file ax_platform_node_base.cc.
int ui::AXPlatformNodeBase::GetIntAttribute | ( | ax::mojom::IntAttribute | attribute | ) | const |
Definition at line 407 of file ax_platform_node_base.cc.
bool ui::AXPlatformNodeBase::GetIntAttribute | ( | ax::mojom::IntAttribute | attribute, |
int * | value | ||
) | const |
Definition at line 414 of file ax_platform_node_base.cc.
const std::vector< int32_t > & ui::AXPlatformNodeBase::GetIntListAttribute | ( | ax::mojom::IntListAttribute | attribute | ) | const |
Definition at line 537 of file ax_platform_node_base.cc.
bool ui::AXPlatformNodeBase::GetIntListAttribute | ( | ax::mojom::IntListAttribute | attribute, |
std::vector< int32_t > * | value | ||
) | const |
Definition at line 545 of file ax_platform_node_base.cc.
|
protected |
Definition at line 1848 of file ax_platform_node_base.cc.
AXPlatformNodeBase * ui::AXPlatformNodeBase::GetLastChild | ( | ) | const |
Definition at line 338 of file ax_platform_node_base.cc.
|
protected |
Definition at line 2124 of file ax_platform_node_base.cc.
std::string ui::AXPlatformNodeBase::GetName | ( | ) | const |
Definition at line 121 of file ax_platform_node_base.cc.
std::u16string ui::AXPlatformNodeBase::GetNameAsString16 | ( | ) | const |
Definition at line 127 of file ax_platform_node_base.cc.
|
overridevirtual |
Implements ui::AXPlatformNode.
Reimplemented in ui::AXPlatformNodeMac.
Definition at line 280 of file ax_platform_node_base.cc.
AXPlatformNodeBase * ui::AXPlatformNodeBase::GetNextSibling | ( | ) | const |
Definition at line 326 of file ax_platform_node_base.cc.
gfx::NativeViewAccessible ui::AXPlatformNodeBase::GetParent | ( | ) | const |
Definition at line 103 of file ax_platform_node_base.cc.
|
protected |
Definition at line 1354 of file ax_platform_node_base.cc.
AXPlatformNodeBase * ui::AXPlatformNodeBase::GetPreviousSibling | ( | ) | const |
Definition at line 320 of file ax_platform_node_base.cc.
|
protected |
Definition at line 652 of file ax_platform_node_base.cc.
|
protected |
Definition at line 678 of file ax_platform_node_base.cc.
|
protected |
Definition at line 665 of file ax_platform_node_base.cc.
AXPlatformNodeBase * ui::AXPlatformNodeBase::GetSelectedItem | ( | int | selected_index | ) | const |
Definition at line 2025 of file ax_platform_node_base.cc.
int ui::AXPlatformNodeBase::GetSelectedItems | ( | int | max_items, |
std::vector< AXPlatformNodeBase * > * | out_selected_items = nullptr |
||
) | const |
Definition at line 2046 of file ax_platform_node_base.cc.
|
protected |
Definition at line 1606 of file ax_platform_node_base.cc.
AXPlatformNodeBase * ui::AXPlatformNodeBase::GetSelectionContainer | ( | ) | const |
Definition at line 689 of file ax_platform_node_base.cc.
int ui::AXPlatformNodeBase::GetSelectionCount | ( | ) | const |
Definition at line 2018 of file ax_platform_node_base.cc.
|
protected |
Definition at line 1619 of file ax_platform_node_base.cc.
|
protected |
Definition at line 1636 of file ax_platform_node_base.cc.
|
protected |
Definition at line 1631 of file ax_platform_node_base.cc.
|
protected |
Definition at line 1658 of file ax_platform_node_base.cc.
|
protected |
Definition at line 1360 of file ax_platform_node_base.cc.
std::u16string ui::AXPlatformNodeBase::GetString16Attribute | ( | ax::mojom::StringAttribute | attribute | ) | const |
Definition at line 443 of file ax_platform_node_base.cc.
bool ui::AXPlatformNodeBase::GetString16Attribute | ( | ax::mojom::StringAttribute | attribute, |
std::u16string * | value | ||
) | const |
Definition at line 450 of file ax_platform_node_base.cc.
const std::string & ui::AXPlatformNodeBase::GetStringAttribute | ( | ax::mojom::StringAttribute | attribute | ) | const |
Definition at line 428 of file ax_platform_node_base.cc.
bool ui::AXPlatformNodeBase::GetStringAttribute | ( | ax::mojom::StringAttribute | attribute, |
std::string * | value | ||
) | const |
Definition at line 435 of file ax_platform_node_base.cc.
AXPlatformNodeBase * ui::AXPlatformNodeBase::GetTable | ( | ) | const |
Definition at line 703 of file ax_platform_node_base.cc.
std::optional< int > ui::AXPlatformNodeBase::GetTableAriaColumnCount | ( | ) | const |
Definition at line 794 of file ax_platform_node_base.cc.
std::optional< int > ui::AXPlatformNodeBase::GetTableAriaRowCount | ( | ) | const |
Definition at line 834 of file ax_platform_node_base.cc.
AXPlatformNodeBase * ui::AXPlatformNodeBase::GetTableCaption | ( | ) | const |
Definition at line 716 of file ax_platform_node_base.cc.
AXPlatformNodeBase * ui::AXPlatformNodeBase::GetTableCell | ( | int | index | ) | const |
Definition at line 728 of file ax_platform_node_base.cc.
AXPlatformNodeBase * ui::AXPlatformNodeBase::GetTableCell | ( | int | row, |
int | column | ||
) | const |
Definition at line 747 of file ax_platform_node_base.cc.
std::optional< int > ui::AXPlatformNodeBase::GetTableCellIndex | ( | ) | const |
Definition at line 770 of file ax_platform_node_base.cc.
std::optional< int > ui::AXPlatformNodeBase::GetTableColumn | ( | ) | const |
Definition at line 776 of file ax_platform_node_base.cc.
std::optional< int > ui::AXPlatformNodeBase::GetTableColumnCount | ( | ) | const |
Definition at line 782 of file ax_platform_node_base.cc.
std::optional< int > ui::AXPlatformNodeBase::GetTableColumnSpan | ( | ) | const |
Definition at line 806 of file ax_platform_node_base.cc.
std::optional< int > ui::AXPlatformNodeBase::GetTableRow | ( | ) | const |
Definition at line 812 of file ax_platform_node_base.cc.
std::optional< int > ui::AXPlatformNodeBase::GetTableRowCount | ( | ) | const |
Definition at line 822 of file ax_platform_node_base.cc.
std::optional< int > ui::AXPlatformNodeBase::GetTableRowSpan | ( | ) | const |
Definition at line 846 of file ax_platform_node_base.cc.
|
virtual |
Definition at line 933 of file ax_platform_node_base.cc.
bool ui::AXPlatformNodeBase::HasBoolAttribute | ( | ax::mojom::BoolAttribute | attr | ) | const |
Definition at line 358 of file ax_platform_node_base.cc.
bool ui::AXPlatformNodeBase::HasCaret | ( | const AXTree::Selection * | unignored_selection = nullptr | ) |
Definition at line 869 of file ax_platform_node_base.cc.
bool ui::AXPlatformNodeBase::HasFloatAttribute | ( | ax::mojom::FloatAttribute | attr | ) | const |
Definition at line 379 of file ax_platform_node_base.cc.
bool ui::AXPlatformNodeBase::HasFocus | ( | ) |
bool ui::AXPlatformNodeBase::HasInheritedStringAttribute | ( | ax::mojom::StringAttribute | attribute | ) | const |
Definition at line 458 of file ax_platform_node_base.cc.
bool ui::AXPlatformNodeBase::HasIntAttribute | ( | ax::mojom::IntAttribute | attribute | ) | const |
Definition at line 400 of file ax_platform_node_base.cc.
bool ui::AXPlatformNodeBase::HasIntListAttribute | ( | ax::mojom::IntListAttribute | attribute | ) | const |
Definition at line 530 of file ax_platform_node_base.cc.
bool ui::AXPlatformNodeBase::HasStringAttribute | ( | ax::mojom::StringAttribute | attribute | ) | const |
Definition at line 421 of file ax_platform_node_base.cc.
|
virtual |
Definition at line 83 of file ax_platform_node_base.cc.
bool ui::AXPlatformNodeBase::IsChildOfLeaf | ( | ) | const |
Definition at line 900 of file ax_platform_node_base.cc.
bool ui::AXPlatformNodeBase::IsDescendant | ( | AXPlatformNodeBase * | descendant | ) |
Definition at line 344 of file ax_platform_node_base.cc.
|
overridevirtual |
Implements ui::AXPlatformNode.
Definition at line 295 of file ax_platform_node_base.cc.
|
protected |
Definition at line 567 of file ax_platform_node_base.cc.
bool ui::AXPlatformNodeBase::IsHorizontallyScrollable | ( | ) | const |
Definition at line 917 of file ax_platform_node_base.cc.
bool ui::AXPlatformNodeBase::IsInvisibleOrIgnored | ( | ) | const |
Definition at line 904 of file ax_platform_node_base.cc.
bool ui::AXPlatformNodeBase::IsLeaf | ( | ) | const |
Definition at line 896 of file ax_platform_node_base.cc.
bool ui::AXPlatformNodeBase::IsPlainTextField | ( | ) | const |
Definition at line 619 of file ax_platform_node_base.cc.
|
virtual |
Reimplemented in ui::AXPlatformNodeMac.
Definition at line 1763 of file ax_platform_node_base.cc.
bool ui::AXPlatformNodeBase::IsRichTextField | ( | ) | const |
Definition at line 623 of file ax_platform_node_base.cc.
|
protected |
Definition at line 1709 of file ax_platform_node_base.cc.
bool ui::AXPlatformNodeBase::IsScrollable | ( | ) | const |
Definition at line 908 of file ax_platform_node_base.cc.
|
protected |
Definition at line 571 of file ax_platform_node_base.cc.
bool ui::AXPlatformNodeBase::IsText | ( | ) | const |
Definition at line 627 of file ax_platform_node_base.cc.
bool ui::AXPlatformNodeBase::IsTextField | ( | ) | const |
Definition at line 615 of file ax_platform_node_base.cc.
bool ui::AXPlatformNodeBase::IsVerticallyScrollable | ( | ) | const |
Definition at line 925 of file ax_platform_node_base.cc.
AXPlatformNodeBase * ui::AXPlatformNodeBase::NearestLeafToPoint | ( | gfx::Point | point | ) | const |
Definition at line 1767 of file ax_platform_node_base.cc.
int ui::AXPlatformNodeBase::NearestTextIndexToPoint | ( | gfx::Point | point | ) |
Definition at line 1819 of file ax_platform_node_base.cc.
|
overridevirtual |
Implements ui::AXPlatformNode.
Reimplemented in ui::AXPlatformNodeMac.
Definition at line 284 of file ax_platform_node_base.cc.
|
staticprotected |
Definition at line 1409 of file ax_platform_node_base.cc.
|
protectedvirtual |
Definition at line 2066 of file ax_platform_node_base.cc.
bool ui::AXPlatformNodeBase::ScrollToNode | ( | ScrollType | scroll_type | ) |
Definition at line 1366 of file ax_platform_node_base.cc.
Definition at line 560 of file ax_platform_node_base.cc.
|
static |
|
protected |
Definition at line 1312 of file ax_platform_node_base.cc.
AXPlatformNodeDelegate* ui::AXPlatformNodeBase::delegate_ = nullptr |
Definition at line 345 of file ax_platform_node_base.h.
|
mutableprotected |
Definition at line 481 of file ax_platform_node_base.h.
|
static |
Definition at line 286 of file ax_platform_node_base.h.