#include "ui/gfx/x/geometry_cache.h"
#include <memory>
#include "ui/gfx/geometry/vector2d.h"
#include "ui/gfx/x/connection.h"
#include "ui/gfx/x/event.h"
#include "ui/gfx/x/xproto.h"
namespace x11 {
GeometryCache::GeometryCache(Connection* connection,
Window window,
BoundsChangedCallback bounds_changed_callback)
: … { … }
GeometryCache::~GeometryCache() = default;
gfx::Rect GeometryCache::GetBoundsPx() { … }
void GeometryCache::OnQueryTreeResponse(QueryTreeResponse response) { … }
void GeometryCache::OnGetGeometryResponse(GetGeometryResponse response) { … }
void GeometryCache::OnParentChanged(Window parent, const gfx::Point& position) { … }
void GeometryCache::OnGeometryChanged(const gfx::Rect& geometry) { … }
void GeometryCache::OnPositionChanged(const gfx::Point& origin) { … }
bool GeometryCache::Ready() const { … }
void GeometryCache::OnParentGeometryChanged(
const std::optional<gfx::Rect>& old_parent_bounds,
const gfx::Rect& new_parent_bounds) { … }
void GeometryCache::NotifyGeometryChanged() { … }
void GeometryCache::OnEvent(const Event& xevent) { … }
}