chromium/third_party/blink/renderer/core/css/style_environment_variables.cc

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/core/css/style_environment_variables.h"

#include "base/containers/contains.h"
#include "third_party/blink/renderer/core/css/parser/css_tokenizer.h"
#include "third_party/blink/renderer/platform/runtime_enabled_features.h"
namespace blink {

namespace {

// This is the default value for all safe-area-inset-* variables.
static const char kSafeAreaInsetDefault[] =;
// This is the default value for all keyboard-inset-* variables.
static const char kKeyboardInsetDefault[] =;

// Use this to set default values for environment variables when the root
// instance is created.
void SetDefaultEnvironmentVariables(StyleEnvironmentVariables* instance) {}

}  // namespace.

StyleEnvironmentVariables::StyleEnvironmentVariables() :{}

// static
StyleEnvironmentVariables& StyleEnvironmentVariables::GetRootInstance() {}

// static
const AtomicString StyleEnvironmentVariables::GetVariableName(
    UADefinedVariable variable,
    const FeatureContext* feature_context) {}

const AtomicString StyleEnvironmentVariables::GetVariableName(
    UADefinedTwoDimensionalVariable variable,
    const FeatureContext* feature_context) {}

void StyleEnvironmentVariables::SetVariable(const AtomicString& name,
                                            const String& value) {}

void StyleEnvironmentVariables::SetVariable(const AtomicString& name,
                                            unsigned first_dimension,
                                            unsigned second_dimension,
                                            const String& value) {}

void StyleEnvironmentVariables::SetVariable(UADefinedVariable variable,
                                            const String& value) {}

void StyleEnvironmentVariables::SetVariable(
    UADefinedTwoDimensionalVariable variable,
    unsigned first_dimension,
    unsigned second_dimension,
    const String& value,
    const FeatureContext* feature_context) {}

void StyleEnvironmentVariables::RemoveVariable(UADefinedVariable variable) {}

void StyleEnvironmentVariables::RemoveVariable(
    UADefinedTwoDimensionalVariable variable,
    const FeatureContext* feature_context) {}

void StyleEnvironmentVariables::RemoveVariable(const AtomicString& name) {}

CSSVariableData* StyleEnvironmentVariables::ResolveVariable(
    const AtomicString& name,
    WTF::Vector<unsigned> indices) {}

void StyleEnvironmentVariables::DetachFromParent() {}

String StyleEnvironmentVariables::FormatPx(int value) {}

const FeatureContext* StyleEnvironmentVariables::GetFeatureContext() const {}

void StyleEnvironmentVariables::ClearForTesting() {}

void StyleEnvironmentVariables::ParentInvalidatedVariable(
    const AtomicString& name) {}

void StyleEnvironmentVariables::InvalidateVariable(const AtomicString& name) {}

}  // namespace blink