Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Side by Side Diff: Source/core/css/parser/CSSParserToken.h

Issue 1192983003: CSS Custom Properties (Variables) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove unnecessary enum Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 27 matching lines...) Expand all
38 LeftParenthesisToken, 38 LeftParenthesisToken,
39 RightParenthesisToken, 39 RightParenthesisToken,
40 LeftBracketToken, 40 LeftBracketToken,
41 RightBracketToken, 41 RightBracketToken,
42 LeftBraceToken, 42 LeftBraceToken,
43 RightBraceToken, 43 RightBraceToken,
44 StringToken, 44 StringToken,
45 BadStringToken, 45 BadStringToken,
46 EOFToken, 46 EOFToken,
47 CommentToken, 47 CommentToken,
48 VariableReferenceToken,
alancutter (OOO until 2018) 2015/07/14 06:12:57 This is never used.
48 }; 49 };
49 50
50 enum NumericSign { 51 enum NumericSign {
51 NoSign, 52 NoSign,
52 PlusSign, 53 PlusSign,
53 MinusSign, 54 MinusSign,
54 }; 55 };
55 56
56 enum NumericValueType { 57 enum NumericValueType {
57 IntegerValueType, 58 IntegerValueType,
58 NumberValueType, 59 NumberValueType,
59 }; 60 };
60 61
61 enum HashTokenType { 62 enum HashTokenType {
62 HashTokenId, 63 HashTokenId,
63 HashTokenUnrestricted, 64 HashTokenUnrestricted,
64 }; 65 };
65 66
67 class CSSVariableData;
68
66 class CORE_EXPORT CSSParserToken { 69 class CORE_EXPORT CSSParserToken {
67 public: 70 public:
68 enum BlockType { 71 enum BlockType {
69 NotBlock, 72 NotBlock,
70 BlockStart, 73 BlockStart,
71 BlockEnd, 74 BlockEnd,
72 }; 75 };
73 76
74 CSSParserToken(CSSParserTokenType, BlockType = NotBlock); 77 CSSParserToken(CSSParserTokenType, BlockType = NotBlock);
75 CSSParserToken(CSSParserTokenType, CSSParserString, BlockType = NotBlock); 78 CSSParserToken(CSSParserTokenType, CSSParserString, BlockType = NotBlock);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 union { 134 union {
132 UChar m_delimiter; 135 UChar m_delimiter;
133 HashTokenType m_hashTokenType; 136 HashTokenType m_hashTokenType;
134 double m_numericValue; 137 double m_numericValue;
135 138
136 struct { 139 struct {
137 UChar32 start; 140 UChar32 start;
138 UChar32 end; 141 UChar32 end;
139 } m_unicodeRange; 142 } m_unicodeRange;
140 }; 143 };
144
145 friend CSSVariableData;
141 }; 146 };
142 147
143 } // namespace blink 148 } // namespace blink
144 149
145 namespace WTF { 150 namespace WTF {
146 template <> 151 template <>
147 struct IsTriviallyMoveAssignable<blink::CSSParserToken> { 152 struct IsTriviallyMoveAssignable<blink::CSSParserToken> {
148 static const bool value = true; 153 static const bool value = true;
149 }; 154 };
150 } 155 }
151 156
152 #endif // CSSSParserToken_h 157 #endif // CSSSParserToken_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698