chromium/ui/display/linux/test/virtual_display_util_linux.cc

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

#include "ui/display/linux/test/virtual_display_util_linux.h"

#include <algorithm>
#include <limits>
#include <vector>

#include "base/environment.h"
#include "base/nix/xdg_util.h"
#include "remoting/host/desktop_geometry.h"
#include "remoting/host/x11_desktop_resizer.h"
#include "ui/display/display.h"
#include "ui/display/display_list.h"
#include "ui/display/screen.h"
#include "ui/display/types/display_constants.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/vector2d.h"
#include "ui/gfx/x/randr.h"

namespace {

// Appends a new screen with `resolution` to the specified desktop
// `layout`. Arranges horizontally left to right.
void AppendScreen(remoting::DesktopLayoutSet& layout,
                  const remoting::DesktopResolution& resolution) {}
}  // namespace

namespace display::test {

struct DisplayParams {};

VirtualDisplayUtilLinux::VirtualDisplayUtilLinux(Screen* screen)
    :{}
VirtualDisplayUtilLinux::~VirtualDisplayUtilLinux() {}

// static
bool VirtualDisplayUtilLinux::IsAPIAvailable() {}

int64_t VirtualDisplayUtilLinux::AddDisplay(
    uint8_t id,
    const DisplayParams& display_params) {}
void VirtualDisplayUtilLinux::RemoveDisplay(int64_t display_id) {}
void VirtualDisplayUtilLinux::ResetDisplays() {}

void VirtualDisplayUtilLinux::OnDisplayAdded(
    const display::Display& new_display) {}

void VirtualDisplayUtilLinux::OnDisplaysRemoved(
    const display::Displays& removed_displays) {}

void VirtualDisplayUtilLinux::OnDisplayAddedOrRemoved(int64_t id) {}

bool VirtualDisplayUtilLinux::RequestedLayoutIsSet() {}

void VirtualDisplayUtilLinux::StartWaiting() {}
void VirtualDisplayUtilLinux::StopWaiting() {}

// static
const DisplayParams VirtualDisplayUtilLinux::k1920x1080 =;
const DisplayParams VirtualDisplayUtilLinux::k1024x768 =;

// VirtualDisplayUtil definitions:
const DisplayParams VirtualDisplayUtil::k1920x1080 =;
const DisplayParams VirtualDisplayUtil::k1024x768 =;

// static
std::unique_ptr<VirtualDisplayUtil> VirtualDisplayUtil::TryCreate(
    Screen* screen) {}

}  // namespace display::test