| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 int availablePointerTypes() const override; | 93 int availablePointerTypes() const override; |
| 94 HoverType primaryHoverType() const override; | 94 HoverType primaryHoverType() const override; |
| 95 int availableHoverTypes() const override; | 95 int availableHoverTypes() const override; |
| 96 bool threeDEnabled() const override; | 96 bool threeDEnabled() const override; |
| 97 bool strictMode() const override; | 97 bool strictMode() const override; |
| 98 Document* document() const override; | 98 Document* document() const override; |
| 99 bool hasValues() const override; | 99 bool hasValues() const override; |
| 100 const String mediaType() const override; | 100 const String mediaType() const override; |
| 101 WebDisplayMode displayMode() const override; | 101 WebDisplayMode displayMode() const override; |
| 102 | 102 |
| 103 void setViewportWidth(double); | 103 void overrideViewportDimensions(double width, double height) override; |
| 104 void setViewportHeight(double); | |
| 105 | 104 |
| 106 protected: | 105 protected: |
| 107 MediaValuesCached(); | 106 MediaValuesCached(); |
| 108 MediaValuesCached(LocalFrame*); | 107 MediaValuesCached(LocalFrame*); |
| 109 MediaValuesCached(const MediaValuesCachedData&); | 108 MediaValuesCached(const MediaValuesCachedData&); |
| 110 | 109 |
| 111 MediaValuesCachedData m_data; | 110 MediaValuesCachedData m_data; |
| 112 }; | 111 }; |
| 113 | 112 |
| 114 template <> | 113 template <> |
| 115 struct CrossThreadCopier<MediaValuesCached::MediaValuesCachedData> { | 114 struct CrossThreadCopier<MediaValuesCached::MediaValuesCachedData> { |
| 116 typedef MediaValuesCached::MediaValuesCachedData Type; | 115 typedef MediaValuesCached::MediaValuesCachedData Type; |
| 117 static Type copy(const MediaValuesCached::MediaValuesCachedData& data) { ret
urn data.deepCopy(); } | 116 static Type copy(const MediaValuesCached::MediaValuesCachedData& data) { ret
urn data.deepCopy(); } |
| 118 }; | 117 }; |
| 119 | 118 |
| 120 } // namespace blink | 119 } // namespace blink |
| 121 | 120 |
| 122 #endif // MediaValuesCached_h | 121 #endif // MediaValuesCached_h |
| OLD | NEW |