43 std::u16string
value =
55 std::u16string inner_text;
102 lowest_unignored_delegate;
105 ancestor_delegate->GetParentDelegate())) {
106 if (ancestor_delegate->IsLeaf())
107 highest_leaf_delegate = ancestor_delegate;
109 if (highest_leaf_delegate)
112 if (lowest_unignored_delegate)
192 : index_(index), parent_(parent) {
199 : index_(it.index_), parent_(it.parent_) {
234 return parent_->ChildAtIndex(index_);
255 return platform_node ? platform_node->
GetDelegate() :
nullptr;
258std::unique_ptr<AXPlatformNodeDelegate::ChildIterator>
260 return std::make_unique<ChildIteratorBase>(
this, 0);
263std::unique_ptr<AXPlatformNodeDelegate::ChildIterator>
265 return std::make_unique<ChildIteratorBase>(
this,
GetChildCount());
273 return std::u16string();
294 const int start_offset,
295 const int end_offset,
303 const int start_offset,
304 const int end_offset,
324 int screen_physical_pixel_x,
325 int screen_physical_pixel_y)
const {
351 if (child_node && child_node->
GetDelegate() ==
this)
357gfx::AcceleratedWidget
359 return gfx::kNullAcceleratedWidget;
375 int aria_column_count;
377 &aria_column_count)) {
380 return aria_column_count;
389 return aria_row_count;
406 int col_index)
const {
415 int row_index)
const {
466 int col_index)
const {
475 int cell_index)
const {
511 return std::u16string();
517 return std::u16string();
522 return std::u16string();
527 return std::u16string();
532 return std::u16string();
538 attributes_map[0] = default_attributes;
539 return attributes_map;
545 return std::string();
577 if (!
GetData().GetIntAttribute(attr, &target_id))
584 const std::set<int32_t>& ids) {
585 std::set<AXPlatformNode*> nodes;
586 for (int32_t node_id : ids) {
594std::vector<AXPlatformNode*>
598 std::vector<int32_t> target_ids;
599 if (!
GetData().GetIntListAttribute(attr, &target_ids))
600 return std::vector<AXPlatformNode*>();
606 std::vector<ui::AXPlatformNode*> nodes;
607 for (int32_t target_id : target_ids) {
609 if (std::find(nodes.begin(), nodes.end(), node) == nodes.end())
610 nodes.push_back(node);
624 return std::set<AXPlatformNode*>();
629 return std::set<AXPlatformNode*>();
638 return *dummy_unique_id;
649const std::vector<gfx::NativeViewAccessible>
655 return std::string();
668 std::string result(level * 2,
'+');
679 for (
auto iter = iter_start; iter != iter_end; ++iter) {
std::unique_ptr< AXPosition< AXNodePosition, AXNode > > AXPositionInstance
static AXPositionInstance CreateNullPosition()
std::u16string UTF8ToUTF16(std::string src)
UnimplementedNativeViewAccessible * NativeViewAccessible
bool IsNodeIdIntAttribute(ax::mojom::IntAttribute attr)
bool IsCellOrTableHeader(const ax::mojom::Role role)
bool IsTableRow(ax::mojom::Role role)
std::vector< TextAttribute > TextAttributeList
bool IsTableLike(const ax::mojom::Role role)
bool IsNodeIdIntListAttribute(ax::mojom::IntListAttribute attr)
std::map< int, TextAttributeList > TextAttributeMap
bool IsText(ax::mojom::Role role)
int GetIntAttribute(ax::mojom::IntAttribute attribute) const
const std::string & GetStringAttribute(ax::mojom::StringAttribute attribute) const
bool GetString16Attribute(ax::mojom::StringAttribute attribute, std::u16string *value) const
std::shared_ptr< const fml::Mapping > data
#define BASE_DCHECK(condition)