#include "third_party/blink/renderer/core/frame/screen_metrics_emulator.h"
#include "base/numerics/safe_conversions.h"
#include "third_party/blink/public/common/widget/visual_properties.h"
#include "third_party/blink/renderer/core/frame/web_frame_widget_impl.h"
namespace blink {
ScreenMetricsEmulator::ScreenMetricsEmulator(
WebFrameWidgetImpl* frame_widget,
const display::ScreenInfos& screen_infos,
const gfx::Size& widget_size,
const gfx::Size& visible_viewport_size,
const gfx::Rect& view_screen_rect,
const gfx::Rect& window_screen_rect)
: … { … }
const display::ScreenInfo& ScreenMetricsEmulator::GetOriginalScreenInfo()
const { … }
void ScreenMetricsEmulator::Trace(Visitor* vistor) const { … }
void ScreenMetricsEmulator::DisableAndApply() { … }
void ScreenMetricsEmulator::ChangeEmulationParams(
const DeviceEmulationParams& params) { … }
gfx::Point ScreenMetricsEmulator::ViewRectOrigin() { … }
void ScreenMetricsEmulator::Apply() { … }
void ScreenMetricsEmulator::UpdateVisualProperties(
const VisualProperties& visual_properties) { … }
void ScreenMetricsEmulator::OnUpdateScreenRects(
const gfx::Rect& view_screen_rect,
const gfx::Rect& window_screen_rect) { … }
}