| 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 MediaQueryBlockWatcher_h | 5 #ifndef SKY_ENGINE_CORE_CSS_PARSER_MEDIAQUERYBLOCKWATCHER_H_ |
| 6 #define MediaQueryBlockWatcher_h | 6 #define SKY_ENGINE_CORE_CSS_PARSER_MEDIAQUERYBLOCKWATCHER_H_ |
| 7 | 7 |
| 8 namespace blink { | 8 namespace blink { |
| 9 | 9 |
| 10 class MediaQueryToken; | 10 class MediaQueryToken; |
| 11 | 11 |
| 12 class MediaQueryBlockWatcher { | 12 class MediaQueryBlockWatcher { |
| 13 public: | 13 public: |
| 14 | 14 |
| 15 MediaQueryBlockWatcher(); | 15 MediaQueryBlockWatcher(); |
| 16 void handleToken(const MediaQueryToken&); | 16 void handleToken(const MediaQueryToken&); |
| 17 unsigned blockLevel() const { return m_blockLevel; } | 17 unsigned blockLevel() const { return m_blockLevel; } |
| 18 | 18 |
| 19 private: | 19 private: |
| 20 unsigned m_blockLevel; | 20 unsigned m_blockLevel; |
| 21 }; | 21 }; |
| 22 | 22 |
| 23 } // namespace | 23 } // namespace |
| 24 | 24 |
| 25 #endif // MediaQueryBlockWatcher_h | 25 #endif // SKY_ENGINE_CORE_CSS_PARSER_MEDIAQUERYBLOCKWATCHER_H_ |
| OLD | NEW |