#include "third_party/blink/renderer/modules/accessibility/ax_debug_utils.h"
#include <memory>
#include <numeric>
#include <string>
#include <utility>
namespace blink {
namespace {
std::string NewlineToSpaceReplacer(std::string str) { … }
size_t RecursiveIncludedNodeCount(AXObject* subtree) { … }
}
std::string TreeToStringHelper(const AXObject* obj, bool verbose) { … }
std::string TreeToStringWithMarkedObjectHelperRecursive(
const AXObject* obj,
const AXObject* marked_object,
int indent,
bool verbose,
int* marked_object_found_count) { … }
std::string TreeToStringWithMarkedObjectHelper(const AXObject* obj,
const AXObject* marked_object,
bool verbose) { … }
std::string ParentChainToStringHelper(const AXObject* obj) { … }
void CheckTreeConsistency(
AXObjectCacheImpl& cache,
ui::AXTreeSerializer<const AXObject*,
HeapVector<Member<const AXObject>>,
ui::AXTreeUpdate*,
ui::AXTreeData*,
ui::AXNodeData>& serializer,
ui::AXTreeSerializer<const ui::AXNode*,
std::vector<const ui::AXNode*>,
ui::AXTreeUpdate*,
ui::AXTreeData*,
ui::AXNodeData>* plugin_serializer) { … }
}