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