#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 {
void AppendScreen(remoting::DesktopLayoutSet& layout,
const remoting::DesktopResolution& resolution) { … }
}
namespace display::test {
struct DisplayParams { … };
VirtualDisplayUtilLinux::VirtualDisplayUtilLinux(Screen* screen)
: … { … }
VirtualDisplayUtilLinux::~VirtualDisplayUtilLinux() { … }
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() { … }
const DisplayParams VirtualDisplayUtilLinux::k1920x1080 = …;
const DisplayParams VirtualDisplayUtilLinux::k1024x768 = …;
const DisplayParams VirtualDisplayUtil::k1920x1080 = …;
const DisplayParams VirtualDisplayUtil::k1024x768 = …;
std::unique_ptr<VirtualDisplayUtil> VirtualDisplayUtil::TryCreate(
Screen* screen) { … }
}