chromium/ui/ozone/platform/wayland/host/wayland_zaura_shell.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/354862211): Remove this after removing unsafe code only used
// in Lacros in OnDesksChanged
#pragma allow_unsafe_buffers
#endif

#include "ui/ozone/platform/wayland/host/wayland_zaura_shell.h"

#include <cstring>

#include <components/exo/wayland/protocol/aura-shell-client-protocol.h>

#include "base/check.h"
#include "base/logging.h"
#include "base/notreached.h"
#include "base/strings/utf_string_conversions.h"
#include "base/version.h"
#include "ui/gfx/geometry/rounded_corners_f.h"
#include "ui/ozone/common/features.h"
#include "ui/ozone/platform/wayland/host/wayland_connection.h"
#include "ui/ozone/platform/wayland/host/wayland_output_manager.h"
#include "ui/ozone/platform/wayland/host/wayland_screen.h"
#include "ui/ozone/platform/wayland/host/wayland_toplevel_window.h"
#include "ui/ozone/platform/wayland/host/wayland_window.h"

namespace ui {

namespace {

constexpr uint32_t kMinVersion =;
// Version: 65
constexpr uint32_t kMaxVersion =;

}  // namespace

// static
constexpr char WaylandZAuraShell::kInterfaceName[];

// static
void WaylandZAuraShell::Instantiate(WaylandConnection* connection,
                                    wl_registry* registry,
                                    uint32_t name,
                                    const std::string& interface,
                                    uint32_t version) {}

WaylandZAuraShell::WaylandZAuraShell(zaura_shell* aura_shell,
                                     WaylandConnection* connection)
    :{}

WaylandZAuraShell::~WaylandZAuraShell() = default;

std::string WaylandZAuraShell::GetDeskName(int index) const {}

int WaylandZAuraShell::GetNumberOfDesks() {}

int WaylandZAuraShell::GetActiveDeskIndex() const {}

gfx::RoundedCornersF WaylandZAuraShell::GetWindowCornersRadii() const {}

// static
void WaylandZAuraShell::OnLayoutMode(void* data,
                                     struct zaura_shell* zaura_shell,
                                     uint32_t layout_mode) {}

// static
void WaylandZAuraShell::OnBugFix(void* data,
                                 struct zaura_shell* zaura_shell,
                                 uint32_t id) {}

// static
void WaylandZAuraShell::OnDesksChanged(void* data,
                                       struct zaura_shell* zaura_shell,
                                       struct wl_array* states) {}

// static
void WaylandZAuraShell::OnDeskActivationChanged(void* data,
                                                struct zaura_shell* zaura_shell,
                                                int active_desk_index) {}

// static
void WaylandZAuraShell::OnActivated(void* data,
                                    struct zaura_shell* zaura_shell,
                                    wl_surface* gained_active,
                                    wl_surface* lost_active) {}

// static
void WaylandZAuraShell::OnSetOverviewMode(void* data,
                                          struct zaura_shell* zaura_shell) {}

// static
void WaylandZAuraShell::OnUnsetOverviewMode(void* data,
                                            struct zaura_shell* zaura_shell) {}

// static
void WaylandZAuraShell::OnCompositorVersion(void* data,
                                            struct zaura_shell* zaura_shell,
                                            const char* version_label) {}

// static
void WaylandZAuraShell::OnAllBugFixesSent(void* data,
                                          struct zaura_shell* zaura_shell) {}

// static
void WaylandZAuraShell::OnSetWindowCornersRadii(void* data,
                                                struct zaura_shell* zaura_shell,
                                                uint32_t upper_left_radius,
                                                uint32_t upper_right_radius,
                                                uint32_t lower_right_radius,
                                                uint32_t lower_left_radius) {}

}  // namespace ui