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 { |
(...skipping 18 matching lines...) Expand all Loading... |
29 PointerType primaryPointerType() const override; | 29 PointerType primaryPointerType() const override; |
30 int availablePointerTypes() const override; | 30 int availablePointerTypes() const override; |
31 HoverType primaryHoverType() const override; | 31 HoverType primaryHoverType() const override; |
32 int availableHoverTypes() const override; | 32 int availableHoverTypes() const override; |
33 bool threeDEnabled() const override; | 33 bool threeDEnabled() const override; |
34 bool strictMode() const override; | 34 bool strictMode() const override; |
35 const String mediaType() const override; | 35 const String mediaType() const override; |
36 WebDisplayMode displayMode() const override; | 36 WebDisplayMode displayMode() const override; |
37 Document* document() const override; | 37 Document* document() const override; |
38 bool hasValues() const override; | 38 bool hasValues() const override; |
| 39 void overrideViewportDimensions(double width, double height) override; |
39 | 40 |
40 DECLARE_VIRTUAL_TRACE(); | 41 DECLARE_VIRTUAL_TRACE(); |
41 | 42 |
42 protected: | 43 protected: |
43 MediaValuesDynamic(LocalFrame*); | 44 MediaValuesDynamic(LocalFrame*); |
| 45 MediaValuesDynamic(LocalFrame*, bool overriddenViewportDimensions, double vi
ewportWidth, double viewportHeight); |
44 | 46 |
45 // This raw ptr is safe, as MediaValues would not outlive MediaQueryEvaluato
r, and | 47 // This raw ptr is safe, as MediaValues would not outlive MediaQueryEvaluato
r, and |
46 // MediaQueryEvaluator is reset on |Document::detach|. | 48 // MediaQueryEvaluator is reset on |Document::detach|. |
47 RawPtrWillBeMember<LocalFrame> m_frame; | 49 RawPtrWillBeMember<LocalFrame> m_frame; |
| 50 bool m_viewportDimensionsOverridden; |
| 51 double m_viewportWidthOverride; |
| 52 double m_viewportHeightOverride; |
48 }; | 53 }; |
49 | 54 |
50 } // namespace blink | 55 } // namespace blink |
51 | 56 |
52 #endif // MediaValuesDynamic_h | 57 #endif // MediaValuesDynamic_h |
OLD | NEW |