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 MediaValuesCached_h | 5 #ifndef MediaValuesCached_h |
6 #define MediaValuesCached_h | 6 #define MediaValuesCached_h |
7 | 7 |
8 #include "core/css/MediaValues.h" | 8 #include "core/css/MediaValues.h" |
9 | 9 |
10 namespace WebCore { | 10 namespace WebCore { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 } | 47 } |
48 }; | 48 }; |
49 | 49 |
50 static PassRefPtr<MediaValues> create(); | 50 static PassRefPtr<MediaValues> create(); |
51 static PassRefPtr<MediaValues> create(Document&); | 51 static PassRefPtr<MediaValues> create(Document&); |
52 static PassRefPtr<MediaValues> create(LocalFrame*); | 52 static PassRefPtr<MediaValues> create(LocalFrame*); |
53 static PassRefPtr<MediaValues> create(MediaValuesCachedData&); | 53 static PassRefPtr<MediaValues> create(MediaValuesCachedData&); |
54 virtual PassRefPtr<MediaValues> copy() const OVERRIDE; | 54 virtual PassRefPtr<MediaValues> copy() const OVERRIDE; |
55 virtual bool isSafeToSendToAnotherThread() const OVERRIDE; | 55 virtual bool isSafeToSendToAnotherThread() const OVERRIDE; |
56 virtual bool computeLength(double value, CSSPrimitiveValue::UnitTypes, int&
result) const OVERRIDE; | 56 virtual bool computeLength(double value, CSSPrimitiveValue::UnitTypes, int&
result) const OVERRIDE; |
| 57 virtual bool computeLength(double value, CSSPrimitiveValue::UnitTypes, doubl
e& result) const OVERRIDE; |
57 | 58 |
58 virtual int viewportWidth() const OVERRIDE; | 59 virtual int viewportWidth() const OVERRIDE; |
59 virtual int viewportHeight() const OVERRIDE; | 60 virtual int viewportHeight() const OVERRIDE; |
60 virtual int deviceWidth() const OVERRIDE; | 61 virtual int deviceWidth() const OVERRIDE; |
61 virtual int deviceHeight() const OVERRIDE; | 62 virtual int deviceHeight() const OVERRIDE; |
62 virtual float devicePixelRatio() const OVERRIDE; | 63 virtual float devicePixelRatio() const OVERRIDE; |
63 virtual int colorBitsPerComponent() const OVERRIDE; | 64 virtual int colorBitsPerComponent() const OVERRIDE; |
64 virtual int monochromeBitsPerComponent() const OVERRIDE; | 65 virtual int monochromeBitsPerComponent() const OVERRIDE; |
65 virtual PointerDeviceType pointer() const OVERRIDE; | 66 virtual PointerDeviceType pointer() const OVERRIDE; |
66 virtual bool threeDEnabled() const OVERRIDE; | 67 virtual bool threeDEnabled() const OVERRIDE; |
67 virtual bool scanMediaType() const OVERRIDE; | 68 virtual bool scanMediaType() const OVERRIDE; |
68 virtual bool screenMediaType() const OVERRIDE; | 69 virtual bool screenMediaType() const OVERRIDE; |
69 virtual bool printMediaType() const OVERRIDE; | 70 virtual bool printMediaType() const OVERRIDE; |
70 virtual bool strictMode() const OVERRIDE; | 71 virtual bool strictMode() const OVERRIDE; |
71 virtual Document* document() const OVERRIDE; | 72 virtual Document* document() const OVERRIDE; |
72 virtual bool hasValues() const OVERRIDE; | 73 virtual bool hasValues() const OVERRIDE; |
73 | 74 |
74 protected: | 75 protected: |
75 MediaValuesCached(); | 76 MediaValuesCached(); |
76 MediaValuesCached(LocalFrame*); | 77 MediaValuesCached(LocalFrame*); |
77 MediaValuesCached(const MediaValuesCachedData&); | 78 MediaValuesCached(const MediaValuesCachedData&); |
78 | 79 |
79 MediaValuesCachedData m_data; | 80 MediaValuesCachedData m_data; |
80 }; | 81 }; |
81 | 82 |
82 } // namespace | 83 } // namespace |
83 | 84 |
84 #endif // MediaValuesCached_h | 85 #endif // MediaValuesCached_h |
OLD | NEW |