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

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

Issue 2414343002: Implement MediaValues for initial viewport. (Closed)
Patch Set: CORE_EXPORT in inheritance chain for Windows Created 4 years, 2 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 MediaValuesDynamic_h 5 #ifndef MediaValuesDynamic_h
6 #define MediaValuesDynamic_h 6 #define MediaValuesDynamic_h
7 7
8 #include "core/css/MediaValues.h" 8 #include "core/css/MediaValues.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class Document; 12 class Document;
13 13
14 class MediaValuesDynamic final : public MediaValues { 14 class CORE_EXPORT MediaValuesDynamic : public MediaValues {
15 public: 15 public:
16 static MediaValues* create(Document&); 16 static MediaValues* create(Document&);
17 static MediaValues* create(LocalFrame*); 17 static MediaValues* create(LocalFrame*);
18 MediaValues* copy() const override; 18 MediaValues* copy() const override;
19 bool computeLength(double value, 19 bool computeLength(double value,
20 CSSPrimitiveValue::UnitType, 20 CSSPrimitiveValue::UnitType,
21 int& result) const override; 21 int& result) const override;
22 bool computeLength(double value, 22 bool computeLength(double value,
23 CSSPrimitiveValue::UnitType, 23 CSSPrimitiveValue::UnitType,
24 double& result) const override; 24 double& result) const override;
(...skipping 30 matching lines...) Expand all
55 // and MediaQueryEvaluator is reset on |Document::detachLayoutTree|. 55 // and MediaQueryEvaluator is reset on |Document::detachLayoutTree|.
56 Member<LocalFrame> m_frame; 56 Member<LocalFrame> m_frame;
57 bool m_viewportDimensionsOverridden; 57 bool m_viewportDimensionsOverridden;
58 double m_viewportWidthOverride; 58 double m_viewportWidthOverride;
59 double m_viewportHeightOverride; 59 double m_viewportHeightOverride;
60 }; 60 };
61 61
62 } // namespace blink 62 } // namespace blink
63 63
64 #endif // MediaValuesDynamic_h 64 #endif // MediaValuesDynamic_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/BUILD.gn ('k') | third_party/WebKit/Source/core/css/MediaValuesInitialViewport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698