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

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

Issue 1738133002: Add support for media attribute on link (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review nits Created 4 years, 9 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/MediaValues.h ('k') | third_party/WebKit/Source/core/css/MediaValuesCached.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698