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

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

Issue 1226293002: Fix virtual/override/final usage in Source/core/{animation,css,style}/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/MediaQueryListTest.cpp ('k') | Source/core/css/MediaValuesDynamic.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 , strictMode(true) 48 , strictMode(true)
49 , displayMode(WebDisplayModeBrowser) 49 , displayMode(WebDisplayModeBrowser)
50 { 50 {
51 } 51 }
52 }; 52 };
53 53
54 static PassRefPtr<MediaValues> create(); 54 static PassRefPtr<MediaValues> create();
55 static PassRefPtr<MediaValues> create(Document&); 55 static PassRefPtr<MediaValues> create(Document&);
56 static PassRefPtr<MediaValues> create(LocalFrame*); 56 static PassRefPtr<MediaValues> create(LocalFrame*);
57 static PassRefPtr<MediaValues> create(MediaValuesCachedData&); 57 static PassRefPtr<MediaValues> create(MediaValuesCachedData&);
58 virtual PassRefPtr<MediaValues> copy() const override; 58 PassRefPtr<MediaValues> copy() const override;
59 virtual bool isSafeToSendToAnotherThread() const override; 59 bool isSafeToSendToAnotherThread() const override;
60 virtual bool computeLength(double value, CSSPrimitiveValue::UnitType, int& r esult) const override; 60 bool computeLength(double value, CSSPrimitiveValue::UnitType, int& result) c onst override;
61 virtual bool computeLength(double value, CSSPrimitiveValue::UnitType, double & result) const override; 61 bool computeLength(double value, CSSPrimitiveValue::UnitType, double& result ) const override;
62 62
63 virtual int viewportWidth() const override; 63 int viewportWidth() const override;
64 virtual int viewportHeight() const override; 64 int viewportHeight() const override;
65 virtual int deviceWidth() const override; 65 int deviceWidth() const override;
66 virtual int deviceHeight() const override; 66 int deviceHeight() const override;
67 virtual float devicePixelRatio() const override; 67 float devicePixelRatio() const override;
68 virtual int colorBitsPerComponent() const override; 68 int colorBitsPerComponent() const override;
69 virtual int monochromeBitsPerComponent() const override; 69 int monochromeBitsPerComponent() const override;
70 virtual PointerType primaryPointerType() const override; 70 PointerType primaryPointerType() const override;
71 virtual int availablePointerTypes() const override; 71 int availablePointerTypes() const override;
72 virtual HoverType primaryHoverType() const override; 72 HoverType primaryHoverType() const override;
73 virtual int availableHoverTypes() const override; 73 int availableHoverTypes() const override;
74 virtual bool threeDEnabled() const override; 74 bool threeDEnabled() const override;
75 virtual bool strictMode() const override; 75 bool strictMode() const override;
76 virtual Document* document() const override; 76 Document* document() const override;
77 virtual bool hasValues() const override; 77 bool hasValues() const override;
78 virtual const String mediaType() const override; 78 const String mediaType() const override;
79 virtual WebDisplayMode displayMode() const override; 79 WebDisplayMode displayMode() const override;
80 80
81 void setViewportWidth(int); 81 void setViewportWidth(int);
82 void setViewportHeight(int); 82 void setViewportHeight(int);
83 83
84 virtual bool isCached() const override { return true; } 84 bool isCached() const override { return true; }
85 protected: 85 protected:
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 93 } // namespace
94 94
95 #endif // MediaValuesCached_h 95 #endif // MediaValuesCached_h
OLDNEW
« no previous file with comments | « Source/core/css/MediaQueryListTest.cpp ('k') | Source/core/css/MediaValuesDynamic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698