#ifndef ASH_PUBLIC_CPP_DEBUG_UTILS_H_
#define ASH_PUBLIC_CPP_DEBUG_UTILS_H_
#include <sstream>
#include <string>
#include <vector>
#include "ash/ash_export.h"
#include "base/memory/raw_ptr.h"
namespace aura {
class Window;
}
namespace ui {
class Layer;
}
namespace ash {
namespace debug {
class ASH_EXPORT DebugWindowHierarchyDelegate {
public:
virtual ~DebugWindowHierarchyDelegate() = default;
virtual std::vector<raw_ptr<aura::Window, VectorExperimental>>
GetAdjustedWindowChildren(aura::Window* window) const = 0;
virtual std::vector<raw_ptr<ui::Layer, VectorExperimental>>
GetAdjustedLayerChildren(const ui::Layer* layer) const = 0;
};
ASH_EXPORT void SetDebugWindowHierarchyDelegate(
std::unique_ptr<DebugWindowHierarchyDelegate> delegate);
ASH_EXPORT void PrintLayerHierarchy(std::ostringstream* out);
ASH_EXPORT void PrintViewHierarchy(std::ostringstream* out);
ASH_EXPORT std::vector<std::string> PrintWindowHierarchy(
std::ostringstream* out,
bool scrub_data);
}
}
#endif