| 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/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/css/MediaValues.h" | 9 #include "core/css/MediaValues.h" |
| 10 | 10 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 data.availableHoverTypes = availableHoverTypes; | 69 data.availableHoverTypes = availableHoverTypes; |
| 70 data.defaultFontSize = defaultFontSize; | 70 data.defaultFontSize = defaultFontSize; |
| 71 data.threeDEnabled = threeDEnabled; | 71 data.threeDEnabled = threeDEnabled; |
| 72 data.strictMode = strictMode; | 72 data.strictMode = strictMode; |
| 73 data.mediaType = mediaType.isolatedCopy(); | 73 data.mediaType = mediaType.isolatedCopy(); |
| 74 data.displayMode = displayMode; | 74 data.displayMode = displayMode; |
| 75 return data; | 75 return data; |
| 76 } | 76 } |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 static RawPtr<MediaValuesCached> create(); | 79 static MediaValuesCached* create(); |
| 80 static RawPtr<MediaValuesCached> create(const MediaValuesCachedData&); | 80 static MediaValuesCached* create(const MediaValuesCachedData&); |
| 81 RawPtr<MediaValues> copy() const override; | 81 MediaValues* copy() const override; |
| 82 bool computeLength(double value, CSSPrimitiveValue::UnitType, int& result) c
onst override; | 82 bool computeLength(double value, CSSPrimitiveValue::UnitType, int& result) c
onst override; |
| 83 bool computeLength(double value, CSSPrimitiveValue::UnitType, double& result
) const override; | 83 bool computeLength(double value, CSSPrimitiveValue::UnitType, double& result
) const override; |
| 84 | 84 |
| 85 double viewportWidth() const override; | 85 double viewportWidth() const override; |
| 86 double viewportHeight() const override; | 86 double viewportHeight() const override; |
| 87 int deviceWidth() const override; | 87 int deviceWidth() const override; |
| 88 int deviceHeight() const override; | 88 int deviceHeight() const override; |
| 89 float devicePixelRatio() const override; | 89 float devicePixelRatio() const override; |
| 90 int colorBitsPerComponent() const override; | 90 int colorBitsPerComponent() const override; |
| 91 int monochromeBitsPerComponent() const override; | 91 int monochromeBitsPerComponent() const override; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 112 | 112 |
| 113 template <> | 113 template <> |
| 114 struct CrossThreadCopier<MediaValuesCached::MediaValuesCachedData> { | 114 struct CrossThreadCopier<MediaValuesCached::MediaValuesCachedData> { |
| 115 typedef MediaValuesCached::MediaValuesCachedData Type; | 115 typedef MediaValuesCached::MediaValuesCachedData Type; |
| 116 static Type copy(const MediaValuesCached::MediaValuesCachedData& data) { ret
urn data.deepCopy(); } | 116 static Type copy(const MediaValuesCached::MediaValuesCachedData& data) { ret
urn data.deepCopy(); } |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 } // namespace blink | 119 } // namespace blink |
| 120 | 120 |
| 121 #endif // MediaValuesCached_h | 121 #endif // MediaValuesCached_h |
| OLD | NEW |