| 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 MediaValuesDynamic_h | 5 #ifndef MediaValuesDynamic_h |
| 6 #define MediaValuesDynamic_h | 6 #define MediaValuesDynamic_h |
| 7 | 7 |
| 8 #include "core/css/MediaValues.h" | 8 #include "core/css/MediaValues.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 class Document; | 12 class Document; |
| 13 | 13 |
| 14 class MediaValuesDynamic final : public MediaValues { | 14 class CORE_EXPORT MediaValuesDynamic : public MediaValues { |
| 15 public: | 15 public: |
| 16 static MediaValues* create(Document&); | 16 static MediaValues* create(Document&); |
| 17 static MediaValues* create(LocalFrame*); | 17 static MediaValues* create(LocalFrame*); |
| 18 MediaValues* copy() const override; | 18 MediaValues* copy() const override; |
| 19 bool computeLength(double value, | 19 bool computeLength(double value, |
| 20 CSSPrimitiveValue::UnitType, | 20 CSSPrimitiveValue::UnitType, |
| 21 int& result) const override; | 21 int& result) const override; |
| 22 bool computeLength(double value, | 22 bool computeLength(double value, |
| 23 CSSPrimitiveValue::UnitType, | 23 CSSPrimitiveValue::UnitType, |
| 24 double& result) const override; | 24 double& result) const override; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 55 // and MediaQueryEvaluator is reset on |Document::detachLayoutTree|. | 55 // and MediaQueryEvaluator is reset on |Document::detachLayoutTree|. |
| 56 Member<LocalFrame> m_frame; | 56 Member<LocalFrame> m_frame; |
| 57 bool m_viewportDimensionsOverridden; | 57 bool m_viewportDimensionsOverridden; |
| 58 double m_viewportWidthOverride; | 58 double m_viewportWidthOverride; |
| 59 double m_viewportHeightOverride; | 59 double m_viewportHeightOverride; |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace blink | 62 } // namespace blink |
| 63 | 63 |
| 64 #endif // MediaValuesDynamic_h | 64 #endif // MediaValuesDynamic_h |
| OLD | NEW |