#include "remoting/host/desktop_display_info.h"
#include "base/check.h"
#include "build/build_config.h"
#include "remoting/base/constants.h"
#include "remoting/base/logging.h"
#include "remoting/proto/control.pb.h"
#include "third_party/webrtc/modules/desktop_capture/desktop_capture_types.h"
namespace remoting {
DesktopDisplayInfo::DesktopDisplayInfo() = default;
DesktopDisplayInfo::DesktopDisplayInfo(DesktopDisplayInfo&&) = default;
DesktopDisplayInfo& DesktopDisplayInfo::operator=(DesktopDisplayInfo&&) =
default;
DesktopDisplayInfo::~DesktopDisplayInfo() = default;
bool DesktopDisplayInfo::operator==(const DesktopDisplayInfo& other) const { … }
bool DesktopDisplayInfo::operator!=(const DesktopDisplayInfo& other) const { … }
webrtc::DesktopSize DesktopDisplayInfo::CalcSizeDips(webrtc::DesktopSize size,
int dpi_x,
int dpi_y) { … }
void DesktopDisplayInfo::Reset() { … }
int DesktopDisplayInfo::NumDisplays() const { … }
const DisplayGeometry* DesktopDisplayInfo::GetDisplayInfo(
unsigned int id) const { … }
webrtc::DesktopVector DesktopDisplayInfo::CalcDisplayOffset(
webrtc::ScreenId disp_id) const { … }
void DesktopDisplayInfo::AddDisplay(const DisplayGeometry& display) { … }
void DesktopDisplayInfo::AddDisplayFrom(
const protocol::VideoTrackLayout& track) { … }
std::unique_ptr<protocol::VideoLayout> DesktopDisplayInfo::GetVideoLayoutProto()
const { … }
std::ostream& operator<<(std::ostream& out, const DisplayGeometry& geo) { … }
}