| 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 MediaQueryParser_h | 5 #ifndef MediaQueryParser_h |
| 6 #define MediaQueryParser_h | 6 #define MediaQueryParser_h |
| 7 | 7 |
| 8 #include "core/css/CSSParserValues.h" | 8 #include "core/css/CSSParserValues.h" |
| 9 #include "core/css/MediaList.h" | 9 #include "core/css/MediaList.h" |
| 10 #include "core/css/MediaQuery.h" | 10 #include "core/css/MediaQuery.h" |
| 11 #include "core/css/MediaQueryExp.h" | 11 #include "core/css/MediaQueryExp.h" |
| 12 #include "core/css/parser/MediaQueryToken.h" | 12 #include "core/css/parser/MediaQueryToken.h" |
| 13 #include "wtf/Vector.h" | 13 #include "wtf/Vector.h" |
| 14 #include "wtf/text/WTFString.h" | 14 #include "wtf/text/WTFString.h" |
| 15 | 15 |
| 16 namespace WebCore { | 16 namespace WebCore { |
| 17 | 17 |
| 18 class MediaQuerySet; | 18 class MediaQuerySet; |
| 19 | 19 |
| 20 class MediaQueryData { | 20 class MediaQueryData { |
| 21 ALLOW_ONLY_INLINE_ALLOCATION(); | 21 STACK_ALLOCATED(); |
| 22 private: | 22 private: |
| 23 MediaQuery::Restrictor m_restrictor; | 23 MediaQuery::Restrictor m_restrictor; |
| 24 String m_mediaType; | 24 String m_mediaType; |
| 25 OwnPtrWillBeMember<ExpressionHeapVector> m_expressions; | 25 OwnPtrWillBeMember<ExpressionHeapVector> m_expressions; |
| 26 String m_mediaFeature; | 26 String m_mediaFeature; |
| 27 CSSParserValueList m_valueList; | 27 CSSParserValueList m_valueList; |
| 28 bool m_mediaTypeSet; | 28 bool m_mediaTypeSet; |
| 29 | 29 |
| 30 public: | 30 public: |
| 31 MediaQueryData(); | 31 MediaQueryData(); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 const static State ReadFeatureEnd; | 91 const static State ReadFeatureEnd; |
| 92 const static State SkipUntilComma; | 92 const static State SkipUntilComma; |
| 93 const static State SkipUntilParenthesis; | 93 const static State SkipUntilParenthesis; |
| 94 const static State Done; | 94 const static State Done; |
| 95 | 95 |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 } // namespace WebCore | 98 } // namespace WebCore |
| 99 | 99 |
| 100 #endif // MediaQueryParser_h | 100 #endif // MediaQueryParser_h |
| OLD | NEW |