| 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 SKY_ENGINE_CORE_CSS_PARSER_MEDIAQUERYINPUTSTREAM_H_ | 5 #ifndef SKY_ENGINE_CORE_CSS_PARSER_MEDIAQUERYINPUTSTREAM_H_ |
| 6 #define SKY_ENGINE_CORE_CSS_PARSER_MEDIAQUERYINPUTSTREAM_H_ | 6 #define SKY_ENGINE_CORE_CSS_PARSER_MEDIAQUERYINPUTSTREAM_H_ |
| 7 | 7 |
| 8 #include "sky/engine/wtf/text/WTFString.h" | 8 #include "sky/engine/wtf/text/WTFString.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 const UChar kEndOfFileMarker = '\0'; |
| 13 |
| 12 class MediaQueryInputStream { | 14 class MediaQueryInputStream { |
| 13 WTF_MAKE_NONCOPYABLE(MediaQueryInputStream); | 15 WTF_MAKE_NONCOPYABLE(MediaQueryInputStream); |
| 14 WTF_MAKE_FAST_ALLOCATED; | 16 WTF_MAKE_FAST_ALLOCATED; |
| 15 public: | 17 public: |
| 16 MediaQueryInputStream(String input); | 18 MediaQueryInputStream(String input); |
| 17 | 19 |
| 18 UChar peek(unsigned); | 20 UChar peek(unsigned); |
| 19 inline UChar nextInputChar() | 21 inline UChar nextInputChar() |
| 20 { | 22 { |
| 21 return peek(0); | 23 return peek(0); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 47 } | 49 } |
| 48 | 50 |
| 49 private: | 51 private: |
| 50 size_t m_offset; | 52 size_t m_offset; |
| 51 String m_string; | 53 String m_string; |
| 52 }; | 54 }; |
| 53 | 55 |
| 54 } // namespace blink | 56 } // namespace blink |
| 55 | 57 |
| 56 #endif // SKY_ENGINE_CORE_CSS_PARSER_MEDIAQUERYINPUTSTREAM_H_ | 58 #endif // SKY_ENGINE_CORE_CSS_PARSER_MEDIAQUERYINPUTSTREAM_H_ |
| 57 | |
| OLD | NEW |