Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: third_party/WebKit/Source/core/css/MediaValuesCached.h

Issue 1858753003: Remove RawPtr from core/css (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/MediaValues.cpp ('k') | third_party/WebKit/Source/core/css/MediaValuesCached.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698