blob: b93180d3ba50c7042e3b54e25fb79acd813a32b5 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/optional.h"
#include "base/time/time.h"
#include "components/viz/common/surfaces/local_surface_id_allocation.h"
#include "content/common/content_export.h"
#include "content/public/common/screen_info.h"
#include "ui/gfx/geometry/size.h"
namespace content {
// TODO(fsamuel): We might want to unify this with content::ResizeParams.
struct CONTENT_EXPORT FrameVisualProperties {
FrameVisualProperties(const FrameVisualProperties& other);
FrameVisualProperties& operator=(const FrameVisualProperties& other);
// Information about the screen (dpi, depth, etc..).
ScreenInfo screen_info;
// Whether or not blink should be in auto-resize mode.
bool auto_resize_enabled = false;
// The minimum size for Blink if auto-resize is enabled.
gfx::Size min_size_for_auto_resize;
// The maximum size for Blink if auto-resize is enabled.
gfx::Size max_size_for_auto_resize;
gfx::Rect screen_space_rect;
gfx::Size local_frame_size;
uint32_t capture_sequence_number = 0u;
// This represents the page zoom level for a WebContents.
// (0 is the default value which results in 1.0 zoom factor.)
double zoom_level = 0;
float page_scale_factor = 1.f;
// The time at which the viz::LocalSurfaceId used to submit this was
// allocated.
viz::LocalSurfaceIdAllocation local_surface_id_allocation;
} // namespace content