#include "third_party/blink/renderer/core/css/media_feature_overrides.h"
#include "third_party/blink/renderer/core/css/media_features.h"
#include "third_party/blink/renderer/core/css/media_query_exp.h"
#include "third_party/blink/renderer/core/css/media_values.h"
#include "third_party/blink/renderer/core/css/parser/css_parser_context.h"
#include "third_party/blink/renderer/core/css/parser/css_parser_token_range.h"
#include "third_party/blink/renderer/core/css/parser/css_tokenizer.h"
#include "third_party/blink/renderer/core/execution_context/security_context.h"
#include "third_party/blink/renderer/platform/graphics/color_space_gamut.h"
namespace blink {
namespace {
std::optional<ColorSpaceGamut> ConvertColorGamut(
const MediaQueryExpValue& value) { … }
std::optional<ForcedColors> ConvertForcedColors(
const MediaQueryExpValue& value) { … }
}
std::optional<mojom::blink::PreferredColorScheme>
MediaFeatureOverrides::ConvertPreferredColorScheme(
const MediaQueryExpValue& value) { … }
std::optional<mojom::blink::PreferredContrast>
MediaFeatureOverrides::ConvertPreferredContrast(
const MediaQueryExpValue& value) { … }
std::optional<bool> MediaFeatureOverrides::ConvertPrefersReducedMotion(
const MediaQueryExpValue& value) { … }
std::optional<bool> MediaFeatureOverrides::ConvertPrefersReducedData(
const MediaQueryExpValue& value) { … }
std::optional<bool> MediaFeatureOverrides::ConvertPrefersReducedTransparency(
const MediaQueryExpValue& value) { … }
MediaQueryExpValue MediaFeatureOverrides::ParseMediaQueryValue(
const AtomicString& feature,
const String& value_string,
const Document* document) { … }
void MediaFeatureOverrides::SetOverride(const AtomicString& feature,
const String& value_string,
const Document* document) { … }
}