chromium/ui/accessibility/platform/ax_platform_node_delegate.cc

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ui/accessibility/platform/ax_platform_node_delegate.h"

#include "base/containers/fixed_flat_set.h"
#include "base/notreached.h"
#include "ui/accessibility/ax_action_data.h"
#include "ui/accessibility/ax_selection.h"
#include "ui/accessibility/platform/ax_platform.h"
#include "ui/accessibility/platform/ax_platform_node.h"
#include "ui/accessibility/platform/ax_platform_tree_manager.h"
#include "ui/accessibility/platform/ax_unique_id.h"
#include "ui/accessibility/platform/child_iterator.h"
#include "ui/accessibility/platform/child_iterator_base.h"

namespace ui {

AXPlatformNodeDelegate::AXPlatformNodeDelegate() :{}

AXPlatformNodeDelegate::AXPlatformNodeDelegate(AXNode* node) :{}

void AXPlatformNodeDelegate::SetNode(AXNode& node) {}

AXNodeID AXPlatformNodeDelegate::GetId() const {}

AXTreeManager* AXPlatformNodeDelegate::GetTreeManager() const {}

const AXNodeData& AXPlatformNodeDelegate::GetData() const {}

std::u16string AXPlatformNodeDelegate::GetTextContentUTF16() const {}

int AXPlatformNodeDelegate::GetTextContentLengthUTF16() const {}

std::u16string AXPlatformNodeDelegate::GetValueForControl() const {}

AXNodePosition::AXPositionInstance AXPlatformNodeDelegate::CreatePositionAt(
    int offset,
    ax::mojom::TextAffinity affinity) const {}

AXNodePosition::AXPositionInstance AXPlatformNodeDelegate::CreateTextPositionAt(
    int offset,
    ax::mojom::TextAffinity affinity) const {}

gfx::NativeViewAccessible AXPlatformNodeDelegate::GetNSWindow() {}

gfx::NativeViewAccessible AXPlatformNodeDelegate::GetNativeViewAccessible() {}

gfx::NativeViewAccessible AXPlatformNodeDelegate::GetParent() const {}

std::optional<size_t> AXPlatformNodeDelegate::GetIndexInParent() const {}

size_t AXPlatformNodeDelegate::GetChildCount() const {}

gfx::NativeViewAccessible AXPlatformNodeDelegate::ChildAtIndex(
    size_t index) const {}

bool AXPlatformNodeDelegate::HasModalDialog() const {}

gfx::NativeViewAccessible AXPlatformNodeDelegate::GetFirstChild() const {}

gfx::NativeViewAccessible AXPlatformNodeDelegate::GetLastChild() const {}

gfx::NativeViewAccessible AXPlatformNodeDelegate::GetNextSibling() const {}

gfx::NativeViewAccessible AXPlatformNodeDelegate::GetPreviousSibling() const {}

bool AXPlatformNodeDelegate::IsChildOfLeaf() const {}

bool AXPlatformNodeDelegate::IsDescendantOfAtomicTextField() const {}

bool AXPlatformNodeDelegate::IsPlatformDocument() const {}

bool AXPlatformNodeDelegate::IsFocused() const {}

bool AXPlatformNodeDelegate::IsFocusable() const {}

bool AXPlatformNodeDelegate::IsIgnored() const {}

bool AXPlatformNodeDelegate::IsToplevelBrowserWindow() {}

gfx::NativeViewAccessible AXPlatformNodeDelegate::GetLowestPlatformAncestor()
    const {}

gfx::NativeViewAccessible AXPlatformNodeDelegate::GetTextFieldAncestor() const {}

gfx::NativeViewAccessible AXPlatformNodeDelegate::GetSelectionContainer()
    const {}

gfx::NativeViewAccessible AXPlatformNodeDelegate::GetTableAncestor() const {}

std::unique_ptr<ChildIterator> AXPlatformNodeDelegate::ChildrenBegin() const {}

std::unique_ptr<ChildIterator> AXPlatformNodeDelegate::ChildrenEnd() const {}

const std::string& AXPlatformNodeDelegate::GetName() const {}

const std::string& AXPlatformNodeDelegate::GetDescription() const {}

std::u16string AXPlatformNodeDelegate::GetHypertext() const {}

const std::map<int, int>&
AXPlatformNodeDelegate::GetHypertextOffsetToHyperlinkChildIndex() const {}

bool AXPlatformNodeDelegate::SetHypertextSelection(int start_offset,
                                                   int end_offset) {}

TextAttributeMap AXPlatformNodeDelegate::ComputeTextAttributeMap(
    const TextAttributeList& default_attributes) const {}

std::wstring AXPlatformNodeDelegate::ComputeListItemNameFromContent() const {}

std::string AXPlatformNodeDelegate::GetInheritedFontFamilyName() const {}

gfx::Rect AXPlatformNodeDelegate::GetBoundsRect(
    const AXCoordinateSystem coordinate_system,
    const AXClippingBehavior clipping_behavior,
    AXOffscreenResult* offscreen_result) const {}

gfx::Rect AXPlatformNodeDelegate::GetHypertextRangeBoundsRect(
    const int start_offset,
    const int end_offset,
    const AXCoordinateSystem coordinate_system,
    const AXClippingBehavior clipping_behavior,
    AXOffscreenResult* offscreen_result) const {}

gfx::Rect AXPlatformNodeDelegate::GetInnerTextRangeBoundsRect(
    const int start_offset,
    const int end_offset,
    const AXCoordinateSystem coordinate_system,
    const AXClippingBehavior clipping_behavior,
    AXOffscreenResult* offscreen_result) const {}

gfx::NativeViewAccessible AXPlatformNodeDelegate::HitTestSync(
    int screen_physical_pixel_x,
    int screen_physical_pixel_y) const {}

gfx::NativeViewAccessible AXPlatformNodeDelegate::GetFocus() const {}

bool AXPlatformNodeDelegate::IsOffscreen() const {}

bool AXPlatformNodeDelegate::IsMinimized() const {}

bool AXPlatformNodeDelegate::IsText() const {}

bool AXPlatformNodeDelegate::IsWebContent() const {}

bool AXPlatformNodeDelegate::HasVisibleCaretOrSelection() const {}

AXPlatformNode* AXPlatformNodeDelegate::GetFromNodeID(int32_t id) {}

AXPlatformNode* AXPlatformNodeDelegate::GetFromTreeIDAndNodeID(
    const AXTreeID& ax_tree_id,
    int32_t id) {}

AXPlatformNode* AXPlatformNodeDelegate::GetTargetNodeForRelation(
    ax::mojom::IntAttribute attr) {}

std::vector<AXPlatformNode*> AXPlatformNodeDelegate::GetTargetNodesForRelation(
    ax::mojom::IntListAttribute attr) {}

std::vector<AXPlatformNode*>
AXPlatformNodeDelegate::GetSourceNodesForReverseRelations(
    ax::mojom::IntAttribute attr) {}

std::vector<AXPlatformNode*>
AXPlatformNodeDelegate::GetSourceNodesForReverseRelations(
    ax::mojom::IntListAttribute attr) {}

std::vector<AXPlatformNode*> AXPlatformNodeDelegate::GetNodesFromRelationIdSet(
    const std::set<AXNodeID>& ids) {}

bool AXPlatformNodeDelegate::IsValidRelationTarget(
    AXPlatformNode* target) const {}

std::u16string AXPlatformNodeDelegate::GetAuthorUniqueId() const {}

AXPlatformNodeId AXPlatformNodeDelegate::GetUniqueId() const {}

AXPlatformNodeDelegate* AXPlatformNodeDelegate::GetParentDelegate() const {}

const AXTreeData& AXPlatformNodeDelegate::GetTreeData() const {}

ax::mojom::Role AXPlatformNodeDelegate::GetRole() const {}

bool AXPlatformNodeDelegate::HasBoolAttribute(
    ax::mojom::BoolAttribute attribute) const {}

bool AXPlatformNodeDelegate::GetBoolAttribute(
    ax::mojom::BoolAttribute attribute) const {}

bool AXPlatformNodeDelegate::GetBoolAttribute(
    ax::mojom::BoolAttribute attribute,
    bool* value) const {}

bool AXPlatformNodeDelegate::HasFloatAttribute(
    ax::mojom::FloatAttribute attribute) const {}

float AXPlatformNodeDelegate::GetFloatAttribute(
    ax::mojom::FloatAttribute attribute) const {}

bool AXPlatformNodeDelegate::GetFloatAttribute(
    ax::mojom::FloatAttribute attribute,
    float* value) const {}

const std::vector<std::pair<ax::mojom::IntAttribute, int32_t>>&
AXPlatformNodeDelegate::GetIntAttributes() const {}

bool AXPlatformNodeDelegate::HasIntAttribute(
    ax::mojom::IntAttribute attribute) const {}

int AXPlatformNodeDelegate::GetIntAttribute(
    ax::mojom::IntAttribute attribute) const {}

bool AXPlatformNodeDelegate::GetIntAttribute(ax::mojom::IntAttribute attribute,
                                             int* value) const {}

const std::vector<std::pair<ax::mojom::StringAttribute, std::string>>&
AXPlatformNodeDelegate::GetStringAttributes() const {}

bool AXPlatformNodeDelegate::HasStringAttribute(
    ax::mojom::StringAttribute attribute) const {}

const std::string& AXPlatformNodeDelegate::GetStringAttribute(
    ax::mojom::StringAttribute attribute) const {}

bool AXPlatformNodeDelegate::GetStringAttribute(
    ax::mojom::StringAttribute attribute,
    std::string* value) const {}

std::u16string AXPlatformNodeDelegate::GetString16Attribute(
    ax::mojom::StringAttribute attribute) const {}

bool AXPlatformNodeDelegate::GetString16Attribute(
    ax::mojom::StringAttribute attribute,
    std::u16string* value) const {}

const std::string& AXPlatformNodeDelegate::GetInheritedStringAttribute(
    ax::mojom::StringAttribute attribute) const {}

std::u16string AXPlatformNodeDelegate::GetInheritedString16Attribute(
    ax::mojom::StringAttribute attribute) const {}

const std::vector<std::pair<ax::mojom::IntListAttribute, std::vector<int32_t>>>&
AXPlatformNodeDelegate::GetIntListAttributes() const {}

bool AXPlatformNodeDelegate::HasIntListAttribute(
    ax::mojom::IntListAttribute attribute) const {}

const std::vector<int32_t>& AXPlatformNodeDelegate::GetIntListAttribute(
    ax::mojom::IntListAttribute attribute) const {}

bool AXPlatformNodeDelegate::GetIntListAttribute(
    ax::mojom::IntListAttribute attribute,
    std::vector<int32_t>* value) const {}

bool AXPlatformNodeDelegate::HasStringListAttribute(
    ax::mojom::StringListAttribute attribute) const {}

const std::vector<std::string>& AXPlatformNodeDelegate::GetStringListAttribute(
    ax::mojom::StringListAttribute attribute) const {}

bool AXPlatformNodeDelegate::GetStringListAttribute(
    ax::mojom::StringListAttribute attribute,
    std::vector<std::string>* value) const {}

bool AXPlatformNodeDelegate::HasHtmlAttribute(const char* attribute) const {}

const base::StringPairs& AXPlatformNodeDelegate::GetHtmlAttributes() const {}

bool AXPlatformNodeDelegate::GetHtmlAttribute(const char* attribute,
                                              std::string* value) const {}

bool AXPlatformNodeDelegate::GetHtmlAttribute(const char* attribute,
                                              std::u16string* value) const {}

AXTextAttributes AXPlatformNodeDelegate::GetTextAttributes() const {}

bool AXPlatformNodeDelegate::HasState(ax::mojom::State state) const {}

ax::mojom::State AXPlatformNodeDelegate::GetState() const {}

bool AXPlatformNodeDelegate::HasAction(ax::mojom::Action action) const {}

gfx::Rect AXPlatformNodeDelegate::GetClippedScreenBoundsRect(
    AXOffscreenResult* offscreen_result) const {}

gfx::Rect AXPlatformNodeDelegate::GetUnclippedScreenBoundsRect(
    AXOffscreenResult* offscreen_result) const {}

gfx::Rect AXPlatformNodeDelegate::GetClippedRootFrameBoundsRect(
    AXOffscreenResult* offscreen_result) const {}

gfx::Rect AXPlatformNodeDelegate::GetUnclippedRootFrameBoundsRect(
    AXOffscreenResult* offscreen_result) const {}

gfx::Rect AXPlatformNodeDelegate::GetClippedFrameBoundsRect(
    AXOffscreenResult* offscreen_result) const {}

gfx::Rect AXPlatformNodeDelegate::GetUnclippedFrameBoundsRect(
    AXOffscreenResult* offscreen_result) const {}

bool AXPlatformNodeDelegate::HasDefaultActionVerb() const {}

std::vector<ax::mojom::Action> AXPlatformNodeDelegate::GetSupportedActions()
    const {}

bool AXPlatformNodeDelegate::HasTextStyle(
    ax::mojom::TextStyle text_style) const {}

ax::mojom::NameFrom AXPlatformNodeDelegate::GetNameFrom() const {}

ax::mojom::DescriptionFrom AXPlatformNodeDelegate::GetDescriptionFrom() const {}

const AXSelection AXPlatformNodeDelegate::GetUnignoredSelection() const {}

bool AXPlatformNodeDelegate::IsLeaf() const {}

bool AXPlatformNodeDelegate::IsInvisibleOrIgnored() const {}

bool AXPlatformNodeDelegate::IsTable() const {}

std::optional<int> AXPlatformNodeDelegate::GetTableRowCount() const {}

std::optional<int> AXPlatformNodeDelegate::GetTableColCount() const {}

std::optional<int> AXPlatformNodeDelegate::GetTableCellCount() const {}

std::optional<int> AXPlatformNodeDelegate::GetTableAriaColCount() const {}

std::optional<int> AXPlatformNodeDelegate::GetTableAriaRowCount() const {}

std::vector<int32_t> AXPlatformNodeDelegate::GetColHeaderNodeIds() const {}

std::vector<int32_t> AXPlatformNodeDelegate::GetColHeaderNodeIds(
    int col_index) const {}

std::vector<int32_t> AXPlatformNodeDelegate::GetRowHeaderNodeIds() const {}

std::vector<int32_t> AXPlatformNodeDelegate::GetRowHeaderNodeIds(
    int row_index) const {}

AXPlatformNode* AXPlatformNodeDelegate::GetTableCaption() const {}

bool AXPlatformNodeDelegate::IsTableRow() const {}

std::optional<int> AXPlatformNodeDelegate::GetTableRowRowIndex() const {}

bool AXPlatformNodeDelegate::IsTableCellOrHeader() const {}

std::optional<int> AXPlatformNodeDelegate::GetTableCellIndex() const {}

std::optional<int> AXPlatformNodeDelegate::GetTableCellColIndex() const {}

std::optional<int> AXPlatformNodeDelegate::GetTableCellRowIndex() const {}

std::optional<int> AXPlatformNodeDelegate::GetTableCellColSpan() const {}

std::optional<int> AXPlatformNodeDelegate::GetTableCellRowSpan() const {}

std::optional<int> AXPlatformNodeDelegate::GetTableCellAriaColIndex() const {}

std::optional<int> AXPlatformNodeDelegate::GetTableCellAriaRowIndex() const {}

std::optional<int32_t> AXPlatformNodeDelegate::GetCellId(int row_index,
                                                         int col_index) const {}

std::optional<int32_t> AXPlatformNodeDelegate::GetCellIdAriaCoords(
    int aria_row_index,
    int aria_col_index) const {}

std::optional<int32_t> AXPlatformNodeDelegate::CellIndexToId(
    int cell_index) const {}

bool AXPlatformNodeDelegate::IsCellOrHeaderOfAriaGrid() const {}

bool AXPlatformNodeDelegate::IsRootWebAreaForPresentationalIframe() const {}

bool AXPlatformNodeDelegate::IsOrderedSetItem() const {}

bool AXPlatformNodeDelegate::IsOrderedSet() const {}

std::optional<int> AXPlatformNodeDelegate::GetPosInSet() const {}

std::optional<int> AXPlatformNodeDelegate::GetSetSize() const {}

SkColor AXPlatformNodeDelegate::GetColor() const {}

SkColor AXPlatformNodeDelegate::GetBackgroundColor() const {}

gfx::AcceleratedWidget
AXPlatformNodeDelegate::GetTargetForNativeAccessibilityEvent() {}

bool AXPlatformNodeDelegate::AccessibilityPerformAction(
    const AXActionData& data) {}

std::u16string
AXPlatformNodeDelegate::GetLocalizedRoleDescriptionForUnlabeledImage() const {}

std::u16string
AXPlatformNodeDelegate::GetLocalizedStringForImageAnnotationStatus(
    ax::mojom::ImageAnnotationStatus status) const {}

std::u16string AXPlatformNodeDelegate::GetLocalizedStringForLandmarkType()
    const {}

std::u16string AXPlatformNodeDelegate::GetLocalizedStringForRoleDescription()
    const {}

std::u16string AXPlatformNodeDelegate::GetStyleNameAttributeAsLocalizedString()
    const {}

void AXPlatformNodeDelegate::SetIsPrimaryWebContentsForWindow() {}

bool AXPlatformNodeDelegate::IsPrimaryWebContentsForWindow() const {}

bool AXPlatformNodeDelegate::ShouldIgnoreHoveredStateForTesting() {}

bool AXPlatformNodeDelegate::IsReadOnlySupported() const {}

bool AXPlatformNodeDelegate::IsReadOnlyOrDisabled() const {}

bool AXPlatformNodeDelegate::IsIA2NodeSelected() const {}

bool AXPlatformNodeDelegate::IsUIANodeSelected() const {}

const std::vector<gfx::NativeViewAccessible>
AXPlatformNodeDelegate::GetUIADirectChildrenInRange(
    AXPlatformNodeDelegate* start,
    AXPlatformNodeDelegate* end) {}

std::string AXPlatformNodeDelegate::GetLanguage() const {}

std::string AXPlatformNodeDelegate::SubtreeToStringHelper(size_t level) {}

}  // namespace ui