| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 , primaryHoverType(HoverTypeNone) | 44 , primaryHoverType(HoverTypeNone) |
| 45 , availableHoverTypes(HoverTypeNone) | 45 , availableHoverTypes(HoverTypeNone) |
| 46 , defaultFontSize(16) | 46 , defaultFontSize(16) |
| 47 , threeDEnabled(false) | 47 , threeDEnabled(false) |
| 48 , strictMode(true) | 48 , strictMode(true) |
| 49 , displayMode(WebDisplayModeBrowser) | 49 , displayMode(WebDisplayModeBrowser) |
| 50 { | 50 { |
| 51 } | 51 } |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 static PassRefPtr<MediaValues> create(); | 54 static PassRefPtrWillBeRawPtr<MediaValues> create(); |
| 55 static PassRefPtr<MediaValues> create(Document&); | 55 static PassRefPtrWillBeRawPtr<MediaValues> create(Document&); |
| 56 static PassRefPtr<MediaValues> create(LocalFrame*); | 56 static PassRefPtrWillBeRawPtr<MediaValues> create(LocalFrame*); |
| 57 static PassRefPtr<MediaValues> create(MediaValuesCachedData&); | 57 static PassRefPtrWillBeRawPtr<MediaValues> create(MediaValuesCachedData&); |
| 58 PassRefPtr<MediaValues> copy() const override; | 58 PassRefPtrWillBeRawPtr<MediaValues> copy() const override; |
| 59 bool isSafeToSendToAnotherThread() const override; | 59 bool isSafeToSendToAnotherThread() const override; |
| 60 bool computeLength(double value, CSSPrimitiveValue::UnitType, int& result) c
onst override; | 60 bool computeLength(double value, CSSPrimitiveValue::UnitType, int& result) c
onst override; |
| 61 bool computeLength(double value, CSSPrimitiveValue::UnitType, double& result
) const override; | 61 bool computeLength(double value, CSSPrimitiveValue::UnitType, double& result
) const override; |
| 62 | 62 |
| 63 int viewportWidth() const override; | 63 int viewportWidth() const override; |
| 64 int viewportHeight() const override; | 64 int viewportHeight() const override; |
| 65 int deviceWidth() const override; | 65 int deviceWidth() const override; |
| 66 int deviceHeight() const override; | 66 int deviceHeight() const override; |
| 67 float devicePixelRatio() const override; | 67 float devicePixelRatio() const override; |
| 68 int colorBitsPerComponent() const override; | 68 int colorBitsPerComponent() const override; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 86 MediaValuesCached(); | 86 MediaValuesCached(); |
| 87 MediaValuesCached(LocalFrame*); | 87 MediaValuesCached(LocalFrame*); |
| 88 MediaValuesCached(const MediaValuesCachedData&); | 88 MediaValuesCached(const MediaValuesCachedData&); |
| 89 | 89 |
| 90 MediaValuesCachedData m_data; | 90 MediaValuesCachedData m_data; |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 } // namespace | 93 } // namespace |
| 94 | 94 |
| 95 #endif // MediaValuesCached_h | 95 #endif // MediaValuesCached_h |
| OLD | NEW |