OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CSSParserToken_h | 5 #ifndef CSSParserToken_h |
6 #define CSSParserToken_h | 6 #define CSSParserToken_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/css/CSSPrimitiveValue.h" | 9 #include "core/css/CSSPrimitiveValue.h" |
10 #include "core/css/parser/CSSParserString.h" | 10 #include "core/css/parser/CSSParserString.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 enum NumericValueType { | 56 enum NumericValueType { |
57 IntegerValueType, | 57 IntegerValueType, |
58 NumberValueType, | 58 NumberValueType, |
59 }; | 59 }; |
60 | 60 |
61 enum HashTokenType { | 61 enum HashTokenType { |
62 HashTokenId, | 62 HashTokenId, |
63 HashTokenUnrestricted, | 63 HashTokenUnrestricted, |
64 }; | 64 }; |
65 | 65 |
| 66 class CSSVariableData; |
| 67 |
66 class CORE_EXPORT CSSParserToken { | 68 class CORE_EXPORT CSSParserToken { |
67 public: | 69 public: |
68 enum BlockType { | 70 enum BlockType { |
69 NotBlock, | 71 NotBlock, |
70 BlockStart, | 72 BlockStart, |
71 BlockEnd, | 73 BlockEnd, |
72 }; | 74 }; |
73 | 75 |
74 CSSParserToken(CSSParserTokenType, BlockType = NotBlock); | 76 CSSParserToken(CSSParserTokenType, BlockType = NotBlock); |
75 CSSParserToken(CSSParserTokenType, CSSParserString, BlockType = NotBlock); | 77 CSSParserToken(CSSParserTokenType, CSSParserString, BlockType = NotBlock); |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 union { | 133 union { |
132 UChar m_delimiter; | 134 UChar m_delimiter; |
133 HashTokenType m_hashTokenType; | 135 HashTokenType m_hashTokenType; |
134 double m_numericValue; | 136 double m_numericValue; |
135 | 137 |
136 struct { | 138 struct { |
137 UChar32 start; | 139 UChar32 start; |
138 UChar32 end; | 140 UChar32 end; |
139 } m_unicodeRange; | 141 } m_unicodeRange; |
140 }; | 142 }; |
| 143 |
| 144 friend CSSVariableData; |
141 }; | 145 }; |
142 | 146 |
143 } // namespace blink | 147 } // namespace blink |
144 | 148 |
145 namespace WTF { | 149 namespace WTF { |
146 template <> | 150 template <> |
147 struct IsTriviallyMoveAssignable<blink::CSSParserToken> { | 151 struct IsTriviallyMoveAssignable<blink::CSSParserToken> { |
148 static const bool value = true; | 152 static const bool value = true; |
149 }; | 153 }; |
150 } | 154 } |
151 | 155 |
152 #endif // CSSSParserToken_h | 156 #endif // CSSSParserToken_h |
OLD | NEW |