#ifdef UNSAFE_BUFFERS_BUILD
#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 {
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 { … }
}