| Index: Source/core/css/parser/CSSVariableParser.h
|
| diff --git a/Source/core/css/parser/CSSVariableParser.h b/Source/core/css/parser/CSSVariableParser.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..66236f677f541ab4e5819f41247b0b91eb9114d3
|
| --- /dev/null
|
| +++ b/Source/core/css/parser/CSSVariableParser.h
|
| @@ -0,0 +1,34 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CSSVariableParser_h
|
| +#define CSSVariableParser_h
|
| +
|
| +#include "core/CSSValueKeywords.h"
|
| +#include "core/css/CSSPrimitiveValue.h"
|
| +#include "core/css/CSSSelector.h"
|
| +#include "core/css/CSSValueList.h"
|
| +#include "wtf/text/AtomicString.h"
|
| +#include "wtf/text/WTFString.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class CSSParserTokenRange;
|
| +
|
| +class CSSVariableParser {
|
| +public:
|
| + enum DefinitionType {
|
| + Invalid,
|
| + Variable,
|
| + VariableWithReferences,
|
| + Initial,
|
| + Inherit
|
| + };
|
| + static bool containsValidVariableReferences(const CSSParserTokenRange&);
|
| + static DefinitionType parseVariableDefinition(const CSSParserTokenRange&);
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // CSSVariableParser_h
|
|
|