| 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 MediaQueryTokenizer_h | 5 #ifndef MediaQueryTokenizer_h |
| 6 #define MediaQueryTokenizer_h | 6 #define MediaQueryTokenizer_h |
| 7 | 7 |
| 8 #include "core/css/parser/MediaQueryToken.h" | 8 #include "core/css/parser/MediaQueryToken.h" |
| 9 #include "core/html/parser/InputStreamPreprocessor.h" | 9 #include "core/html/parser/InputStreamPreprocessor.h" |
| 10 #include "wtf/text/WTFString.h" | 10 #include "wtf/text/WTFString.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 MediaQueryToken consumeIdentLikeToken(); | 33 MediaQueryToken consumeIdentLikeToken(); |
| 34 MediaQueryToken consumeNumber(); | 34 MediaQueryToken consumeNumber(); |
| 35 | 35 |
| 36 void consumeUntilNonWhitespace(); | 36 void consumeUntilNonWhitespace(); |
| 37 bool consumeUntilCommentEndFound(); | 37 bool consumeUntilCommentEndFound(); |
| 38 | 38 |
| 39 bool consumeIfNext(UChar); | 39 bool consumeIfNext(UChar); |
| 40 String consumeName(); | 40 String consumeName(); |
| 41 UChar consumeEscape(); | 41 UChar consumeEscape(); |
| 42 | 42 |
| 43 bool nextTwoCharsAreValidEscape(); | 43 bool nextTwoCharsAreValidEscape(unsigned offset); |
| 44 bool nextCharsAreNumber(); | 44 bool nextCharsAreNumber(); |
| 45 bool nextCharsAreIdentifier(); | 45 bool nextCharsAreIdentifier(); |
| 46 | 46 |
| 47 typedef MediaQueryToken (MediaQueryTokenizer::*CodePoint)(UChar); | 47 typedef MediaQueryToken (MediaQueryTokenizer::*CodePoint)(UChar); |
| 48 | 48 |
| 49 static const CodePoint codePoints[]; | 49 static const CodePoint codePoints[]; |
| 50 | 50 |
| 51 MediaQueryToken whiteSpace(UChar); | 51 MediaQueryToken whiteSpace(UChar); |
| 52 MediaQueryToken leftParenthesis(UChar); | 52 MediaQueryToken leftParenthesis(UChar); |
| 53 MediaQueryToken rightParenthesis(UChar); | 53 MediaQueryToken rightParenthesis(UChar); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 67 MediaQueryToken endOfFile(UChar); | 67 MediaQueryToken endOfFile(UChar); |
| 68 | 68 |
| 69 MediaQueryInputStream& m_input; | 69 MediaQueryInputStream& m_input; |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 | 72 |
| 73 | 73 |
| 74 } // namespace WebCore | 74 } // namespace WebCore |
| 75 | 75 |
| 76 #endif // MediaQueryTokenizer_h | 76 #endif // MediaQueryTokenizer_h |
| OLD | NEW |