#include "ui/views/debug/debugger_utils.h"
#include <inttypes.h>
#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/stringprintf.h"
namespace views::debug {
namespace {
AttributeStrings;
constexpr int kElementIndent = …;
constexpr int kAttributeIndent = …;
std::string ToString(bool val) { … }
std::string ToString(int val) { … }
std::string ToString(ViewDebugWrapper::BoundsTuple bounds) { … }
std::string PtrToString(intptr_t val) { … }
template <typename T>
void AddAttributeString(AttributeStrings& attributes,
const std::string& name,
const T& value) { … }
void AddPtrAttributeString(AttributeStrings& attributes,
const std::string& name,
const std::optional<intptr_t>& value) { … }
AttributeStrings GetAttributeStrings(ViewDebugWrapper* view, bool verbose) { … }
std::string GetPaddedLine(int current_depth, bool attribute_line = false) { … }
void PrintViewHierarchyImpl(std::ostream* out,
ViewDebugWrapper* view,
int current_depth,
bool verbose,
int target_depth,
size_t column_limit) { … }
}
std::optional<intptr_t> ViewDebugWrapper::GetAddress() { … }
void PrintViewHierarchy(std::ostream* out,
ViewDebugWrapper* view,
bool verbose,
int depth,
size_t column_limit) { … }
}