chromium/ui/accessibility/platform/inspect/ax_tree_formatter_auralinux.cc

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

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "ui/accessibility/platform/inspect/ax_tree_formatter_auralinux.h"

#include <dbus/dbus.h>

#include <utility>

#include "base/logging.h"
#include "base/strings/strcat.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "ui/accessibility/platform/ax_platform_node_auralinux.h"
#include "ui/accessibility/platform/inspect/ax_call_statement_invoker_auralinux.h"
#include "ui/accessibility/platform/inspect/ax_inspect_scenario.h"
#include "ui/accessibility/platform/inspect/ax_inspect_utils_auralinux.h"
#include "ui/accessibility/platform/inspect/ax_property_node.h"
#include "ui/accessibility/platform/inspect/ax_script_instruction.h"

namespace ui {

// Used in dictionary to disambiguate property vs object attribute when they
// have the same name, e.g. "description".
// In the final output, they will show up differently:
// description='xxx' (property)
// description:xxx (object attribute)
static constexpr char kObjectAttributePrefix[] =;

AXTreeFormatterAuraLinux::AXTreeFormatterAuraLinux() = default;

AXTreeFormatterAuraLinux::~AXTreeFormatterAuraLinux() {}

base::Value::Dict AXTreeFormatterAuraLinux::BuildTreeForSelector(
    const AXTreeSelector& selector) const {}

std::string AXTreeFormatterAuraLinux::EvaluateScript(
    const AXTreeSelector& selector,
    const AXInspectScenario& scenario) const {}

AtkObject* GetAtkObject(AXPlatformNodeDelegate* node) {}

base::Value::Dict AXTreeFormatterAuraLinux::BuildTree(
    AXPlatformNodeDelegate* root) const {}

base::Value::Dict AXTreeFormatterAuraLinux::BuildNode(
    AXPlatformNodeDelegate* node) const {}

void AXTreeFormatterAuraLinux::RecursiveBuildTree(
    AtkObject* atk_node,
    base::Value::Dict* dict) const {}

void AXTreeFormatterAuraLinux::RecursiveBuildTree(
    AtspiAccessible* node,
    base::Value::Dict* dict) const {}

void AXTreeFormatterAuraLinux::AddHypertextProperties(
    AtkObject* atk_object,
    base::Value::Dict* dict) const {}

void AXTreeFormatterAuraLinux::AddTextProperties(
    AtkObject* atk_object,
    base::Value::Dict* dict) const {}

void AXTreeFormatterAuraLinux::AddActionProperties(
    AtkObject* atk_object,
    base::Value::Dict* dict) const {}

void AXTreeFormatterAuraLinux::AddRelationProperties(
    AtkObject* atk_object,
    base::Value::Dict* dict) const {}

std::string AXTreeFormatterAuraLinux::ToString(AtkRelation* relation) {}

void AXTreeFormatterAuraLinux::AddValueProperties(
    AtkObject* atk_object,
    base::Value::Dict* dict) const {}

void AXTreeFormatterAuraLinux::AddTableProperties(
    AtkObject* atk_object,
    base::Value::Dict* dict) const {}

void AXTreeFormatterAuraLinux::AddTableCellProperties(
    const AXPlatformNodeAuraLinux* node,
    AtkObject* atk_object,
    base::Value::Dict* dict) const {}

void AXTreeFormatterAuraLinux::AddProperties(AtkObject* atk_object,
                                             base::Value::Dict* dict) const {}

void AXTreeFormatterAuraLinux::AddProperties(AtspiAccessible* node,
                                             base::Value::Dict* dict) const {}

const char* const ATK_OBJECT_ATTRIBUTES[] =;

std::string AXTreeFormatterAuraLinux::ProcessTreeForOutput(
    const base::Value::Dict& node) const {}

}  // namespace ui