#include "ui/ozone/platform/wayland/host/wayland_output_manager.h"
#include <cstdint>
#include <memory>
#include <string>
#include "base/ranges/algorithm.h"
#include "ui/ozone/platform/wayland/host/wayland_connection.h"
#include "ui/ozone/platform/wayland/host/wayland_output.h"
#include "ui/ozone/platform/wayland/host/wayland_window.h"
#include "ui/ozone/platform/wayland/host/wayland_zaura_output_manager_v2.h"
#include "ui/ozone/platform/wayland/host/wayland_zaura_shell.h"
namespace ui {
WaylandOutputManager::WaylandOutputManager(WaylandConnection* connection)
: … { … }
WaylandOutputManager::~WaylandOutputManager() = default;
bool WaylandOutputManager::IsOutputReady() const { … }
void WaylandOutputManager::AddWaylandOutput(WaylandOutput::Id output_id,
wl_output* output) { … }
void WaylandOutputManager::RemoveWaylandOutput(WaylandOutput::Id output_id) { … }
void WaylandOutputManager::InitializeAllXdgOutputs() { … }
void WaylandOutputManager::InitializeAllColorManagementOutputs() { … }
std::unique_ptr<WaylandScreen> WaylandOutputManager::CreateWaylandScreen() { … }
void WaylandOutputManager::InitWaylandScreen(WaylandScreen* screen) { … }
WaylandOutput::Id WaylandOutputManager::GetOutputId(
wl_output* output_resource) const { … }
WaylandOutput* WaylandOutputManager::GetOutput(WaylandOutput::Id id) const { … }
WaylandOutput* WaylandOutputManager::GetPrimaryOutput() const { … }
const WaylandOutputManager::OutputList& WaylandOutputManager::GetAllOutputs()
const { … }
void WaylandOutputManager::DumpState(std::ostream& out) const { … }
void WaylandOutputManager::OnOutputHandleMetrics(
const WaylandOutput::Metrics& metrics) { … }
}