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

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

Issue 2580793005: Split the CSSParserContext class out of CSSParserMode into its own file. (Closed)
Patch Set: one extra missing include Created 4 years 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 #include "platform/CrossThreadCopier.h"
10 11
11 namespace blink { 12 namespace blink {
12 13
13 class CORE_EXPORT MediaValuesCached final : public MediaValues { 14 class CORE_EXPORT MediaValuesCached final : public MediaValues {
14 public: 15 public:
15 struct MediaValuesCachedData final { 16 struct MediaValuesCachedData final {
16 DISALLOW_NEW(); 17 DISALLOW_NEW();
17 // Members variables must be thread safe, since they're copied to the parser 18 // Members variables must be thread safe, since they're copied to the parser
18 // thread 19 // thread
19 double viewportWidth; 20 double viewportWidth;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 struct CrossThreadCopier<MediaValuesCached::MediaValuesCachedData> { 121 struct CrossThreadCopier<MediaValuesCached::MediaValuesCachedData> {
121 typedef MediaValuesCached::MediaValuesCachedData Type; 122 typedef MediaValuesCached::MediaValuesCachedData Type;
122 static Type copy(const MediaValuesCached::MediaValuesCachedData& data) { 123 static Type copy(const MediaValuesCached::MediaValuesCachedData& data) {
123 return data.deepCopy(); 124 return data.deepCopy();
124 } 125 }
125 }; 126 };
126 127
127 } // namespace blink 128 } // namespace blink
128 129
129 #endif // MediaValuesCached_h 130 #endif // MediaValuesCached_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698