#include "third_party/blink/renderer/core/css/media_values.h"
#include "third_party/blink/public/common/css/scripting.h"
#include "third_party/blink/renderer/core/css/css_resolution_units.h"
#include "third_party/blink/renderer/core/css/css_to_length_conversion_data.h"
#include "third_party/blink/renderer/core/css/media_feature_overrides.h"
#include "third_party/blink/renderer/core/css/media_values.h"
#include "third_party/blink/renderer/core/css/media_values_cached.h"
#include "third_party/blink/renderer/core/css/media_values_dynamic.h"
#include "third_party/blink/renderer/core/css/style_engine.h"
#include "third_party/blink/renderer/core/css_value_keywords.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/element.h"
#include "third_party/blink/renderer/core/dom/node_computed_style.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/frame/local_frame_view.h"
#include "third_party/blink/renderer/core/frame/settings.h"
#include "third_party/blink/renderer/core/layout/adjust_for_absolute_zoom.h"
#include "third_party/blink/renderer/core/layout/layout_view.h"
#include "third_party/blink/renderer/core/media_type_names.h"
#include "third_party/blink/renderer/core/page/chrome_client.h"
#include "third_party/blink/renderer/core/page/page.h"
#include "third_party/blink/renderer/core/preferences/preference_overrides.h"
#include "third_party/blink/renderer/platform/graphics/color_space_gamut.h"
#include "third_party/blink/renderer/platform/network/network_state_notifier.h"
#include "third_party/blink/renderer/platform/widget/frame_widget.h"
#include "ui/display/screen_info.h"
namespace blink {
ForcedColors CSSValueIDToForcedColors(CSSValueID id) { … }
mojom::blink::PreferredColorScheme CSSValueIDToPreferredColorScheme(
CSSValueID id) { … }
mojom::blink::PreferredContrast CSSValueIDToPreferredContrast(CSSValueID id) { … }
std::optional<double> MediaValues::InlineSize() const { … }
std::optional<double> MediaValues::BlockSize() const { … }
bool MediaValues::SnappedBlock() const { … }
bool MediaValues::SnappedInline() const { … }
MediaValues* MediaValues::CreateDynamicIfFrameExists(LocalFrame* frame) { … }
double MediaValues::CalculateViewportWidth(LocalFrame* frame) { … }
double MediaValues::CalculateViewportHeight(LocalFrame* frame) { … }
double MediaValues::CalculateSmallViewportWidth(LocalFrame* frame) { … }
double MediaValues::CalculateSmallViewportHeight(LocalFrame* frame) { … }
double MediaValues::CalculateLargeViewportWidth(LocalFrame* frame) { … }
double MediaValues::CalculateLargeViewportHeight(LocalFrame* frame) { … }
double MediaValues::CalculateDynamicViewportWidth(LocalFrame* frame) { … }
double MediaValues::CalculateDynamicViewportHeight(LocalFrame* frame) { … }
int MediaValues::CalculateDeviceWidth(LocalFrame* frame) { … }
int MediaValues::CalculateDeviceHeight(LocalFrame* frame) { … }
bool MediaValues::CalculateStrictMode(LocalFrame* frame) { … }
float MediaValues::CalculateDevicePixelRatio(LocalFrame* frame) { … }
bool MediaValues::CalculateDeviceSupportsHDR(LocalFrame* frame) { … }
int MediaValues::CalculateColorBitsPerComponent(LocalFrame* frame) { … }
int MediaValues::CalculateMonochromeBitsPerComponent(LocalFrame* frame) { … }
bool MediaValues::CalculateInvertedColors(LocalFrame* frame) { … }
float MediaValues::CalculateEmSize(LocalFrame* frame) { … }
float MediaValues::CalculateExSize(LocalFrame* frame) { … }
float MediaValues::CalculateChSize(LocalFrame* frame) { … }
float MediaValues::CalculateIcSize(LocalFrame* frame) { … }
float MediaValues::CalculateCapSize(LocalFrame* frame) { … }
float MediaValues::CalculateLineHeight(LocalFrame* frame) { … }
const String MediaValues::CalculateMediaType(LocalFrame* frame) { … }
mojom::blink::DisplayMode MediaValues::CalculateDisplayMode(LocalFrame* frame) { … }
ui::WindowShowState MediaValues::CalculateWindowShowState(LocalFrame* frame) { … }
bool MediaValues::CalculateResizable(LocalFrame* frame) { … }
bool MediaValues::CalculateThreeDEnabled(LocalFrame* frame) { … }
mojom::blink::PointerType MediaValues::CalculatePrimaryPointerType(
LocalFrame* frame) { … }
int MediaValues::CalculateAvailablePointerTypes(LocalFrame* frame) { … }
mojom::blink::HoverType MediaValues::CalculatePrimaryHoverType(
LocalFrame* frame) { … }
mojom::blink::OutputDeviceUpdateAbilityType
MediaValues::CalculateOutputDeviceUpdateAbilityType(LocalFrame* frame) { … }
int MediaValues::CalculateAvailableHoverTypes(LocalFrame* frame) { … }
ColorSpaceGamut MediaValues::CalculateColorGamut(LocalFrame* frame) { … }
mojom::blink::PreferredColorScheme MediaValues::CalculatePreferredColorScheme(
LocalFrame* frame) { … }
mojom::blink::PreferredContrast MediaValues::CalculatePreferredContrast(
LocalFrame* frame) { … }
bool MediaValues::CalculatePrefersReducedMotion(LocalFrame* frame) { … }
bool MediaValues::CalculatePrefersReducedData(LocalFrame* frame) { … }
bool MediaValues::CalculatePrefersReducedTransparency(LocalFrame* frame) { … }
ForcedColors MediaValues::CalculateForcedColors(LocalFrame* frame) { … }
NavigationControls MediaValues::CalculateNavigationControls(LocalFrame* frame) { … }
int MediaValues::CalculateHorizontalViewportSegments(LocalFrame* frame) { … }
int MediaValues::CalculateVerticalViewportSegments(LocalFrame* frame) { … }
mojom::blink::DevicePostureType MediaValues::CalculateDevicePosture(
LocalFrame* frame) { … }
Scripting MediaValues::CalculateScripting(LocalFrame* frame) { … }
bool MediaValues::ComputeLengthImpl(double value,
CSSPrimitiveValue::UnitType type,
double& result) const { … }
}