#include "third_party/blink/renderer/core/preferences/preference_object.h"
#include "third_party/blink/renderer/bindings/core/v8/frozen_array.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise.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/dom/dom_exception.h"
#include "third_party/blink/renderer/core/dom/events/event.h"
#include "third_party/blink/renderer/core/event_target_names.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/frame/settings.h"
#include "third_party/blink/renderer/core/page/page.h"
#include "third_party/blink/renderer/core/preferences/preference_names.h"
#include "third_party/blink/renderer/core/preferences/preference_overrides.h"
#include "third_party/blink/renderer/core/preferences/preference_values.h"
#include "third_party/blink/renderer/platform/bindings/script_state.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/runtime_enabled_features.h"
namespace blink {
AtomicString ColorSchemeToString(
mojom::blink::PreferredColorScheme colorScheme) { … }
AtomicString ContrastToString(mojom::blink::PreferredContrast contrast) { … }
PreferenceObject::PreferenceObject(ExecutionContext* executionContext,
AtomicString name)
: … { … }
PreferenceObject::~PreferenceObject() = default;
std::optional<AtomicString> PreferenceObject::override(
ScriptState* script_state) { … }
AtomicString PreferenceObject::value(ScriptState* script_state) { … }
void PreferenceObject::clearOverride(ScriptState* script_state) { … }
ScriptPromise<IDLUndefined> PreferenceObject::requestOverride(
ScriptState* script_state,
std::optional<AtomicString> value) { … }
const FrozenArray<IDLString>& PreferenceObject::validValues() { … }
void PreferenceObject::PreferenceMaybeChanged() { … }
void PreferenceObject::Trace(Visitor* visitor) const { … }
const AtomicString& PreferenceObject::InterfaceName() const { … }
void PreferenceObject::ContextDestroyed() { … }
ExecutionContext* PreferenceObject::GetExecutionContext() const { … }
}