#include "extensions/browser/mock_display_info_provider.h"
#include <stdint.h>
#include "base/check.h"
#include "base/containers/contains.h"
#include "base/functional/bind.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/single_thread_task_runner.h"
#include "ui/display/display.h"
#include "ui/display/screen.h"
namespace extensions {
MockDisplayInfoProvider::MockDisplayInfoProvider()
: … { … }
MockDisplayInfoProvider::~MockDisplayInfoProvider() = default;
void MockDisplayInfoProvider::SetDisplayProperties(
const std::string& display_id,
const api::system_display::DisplayProperties& properties,
ErrorCallback callback) { … }
void MockDisplayInfoProvider::EnableUnifiedDesktop(bool enable) { … }
bool MockDisplayInfoProvider::OverscanCalibrationStart(const std::string& id) { … }
bool MockDisplayInfoProvider::OverscanCalibrationAdjust(
const std::string& id,
const api::system_display::Insets& delta) { … }
bool MockDisplayInfoProvider::OverscanCalibrationReset(const std::string& id) { … }
bool MockDisplayInfoProvider::OverscanCalibrationComplete(
const std::string& id) { … }
bool MockDisplayInfoProvider::calibration_started(const std::string& id) const { … }
bool MockDisplayInfoProvider::calibration_changed(const std::string& id) const { … }
void MockDisplayInfoProvider::ShowNativeTouchCalibration(
const std::string& id,
ErrorCallback callback) { … }
void MockDisplayInfoProvider::SetMirrorMode(
const api::system_display::MirrorModeInfo& info,
ErrorCallback callback) { … }
void MockDisplayInfoProvider::UpdateDisplayUnitInfoForPlatform(
const std::vector<display::Display>& displays,
DisplayUnitInfoList& units) const { … }
}