#include "third_party/blink/renderer/core/frame/page_scale_constraints_set.h"
#include <algorithm>
#include "third_party/blink/renderer/core/frame/settings.h"
#include "third_party/blink/renderer/core/page/page.h"
#include "third_party/blink/renderer/platform/geometry/length.h"
#include "ui/gfx/geometry/size_conversions.h"
namespace blink {
PageScaleConstraintsSet::PageScaleConstraintsSet(Page* page)
: … { … }
void PageScaleConstraintsSet::Trace(Visitor* visitor) const { … }
void PageScaleConstraintsSet::SetDefaultConstraints(
const PageScaleConstraints& default_constraints) { … }
const PageScaleConstraints& PageScaleConstraintsSet::DefaultConstraints()
const { … }
void PageScaleConstraintsSet::UpdatePageDefinedConstraints(
const ViewportDescription& description,
const Length& legacy_fallback_width) { … }
void PageScaleConstraintsSet::ClearPageDefinedConstraints() { … }
void PageScaleConstraintsSet::SetUserAgentConstraints(
const PageScaleConstraints& user_agent_constraints) { … }
void PageScaleConstraintsSet::SetFullscreenConstraints(
const PageScaleConstraints& fullscreen_constraints) { … }
PageScaleConstraints PageScaleConstraintsSet::ComputeConstraintsStack() const { … }
void PageScaleConstraintsSet::ComputeFinalConstraints() { … }
void PageScaleConstraintsSet::AdjustFinalConstraintsToContentsSize() { … }
void PageScaleConstraintsSet::SetNeedsReset(bool needs_reset) { … }
void PageScaleConstraintsSet::DidChangeContentsSize(
gfx::Size contents_size,
int vertical_scrollbar_width,
float page_scale_factor) { … }
static float ComputeDeprecatedTargetDensityDPIFactor(
const ViewportDescription& description) { … }
static float GetLayoutWidthForNonWideViewport(const gfx::Size& device_size,
float initial_scale) { … }
static float ComputeHeightByAspectRatio(float width,
const gfx::Size& device_size) { … }
void PageScaleConstraintsSet::DidChangeInitialContainingBlockSize(
const gfx::Size& size) { … }
gfx::Size PageScaleConstraintsSet::GetLayoutSize() const { … }
void PageScaleConstraintsSet::AdjustForAndroidWebViewQuirks(
const ViewportDescription& description,
int layout_fallback_width,
bool support_target_density_dpi,
bool wide_viewport_quirk_enabled,
bool use_wide_viewport,
bool load_with_overview_mode,
bool non_user_scalable_quirk_enabled) { … }
}