OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef MediaValuesDynamic_h | |
6 #define MediaValuesDynamic_h | |
7 | |
8 #include "core/css/MediaValues.h" | |
9 | |
10 namespace WebCore { | |
11 | |
12 class Document; | |
13 | |
14 class MediaValuesDynamic : public MediaValues { | |
eseidel
2014/04/14 23:10:13
You should mark this class as FINAL.
| |
15 public: | |
16 static PassRefPtr<MediaValues> create(PassRefPtr<LocalFrame>, PassRefPtr<Ren derStyle>); | |
17 virtual PassRefPtr<MediaValues> copy() const; | |
18 virtual bool isSafeToSendToAnotherThread() const; | |
19 virtual bool computeLength(CSSPrimitiveValue&, int& result) const; | |
20 | |
21 virtual int viewportWidth() const; | |
eseidel
2014/04/14 23:10:13
These are all OVERRIDE.
| |
22 virtual int viewportHeight() const; | |
23 virtual int deviceWidth() const; | |
24 virtual int deviceHeight() const; | |
25 virtual float devicePixelRatio() const; | |
26 virtual int colorBitsPerComponent() const; | |
27 virtual int monochromeBitsPerComponent() const; | |
28 virtual PointerDeviceType pointer() const; | |
29 virtual bool threeDEnabled() const; | |
30 virtual bool scanMediaType() const; | |
31 virtual bool screenMediaType() const; | |
32 virtual bool printMediaType() const; | |
33 virtual bool strictMode() const; | |
34 virtual Document* document() const; | |
35 virtual bool hasValues() const; | |
36 | |
37 protected: | |
38 MediaValuesDynamic(PassRefPtr<LocalFrame>, PassRefPtr<RenderStyle>); | |
39 | |
40 RefPtr<RenderStyle> m_style; | |
41 RefPtr<LocalFrame> m_frame; | |
42 }; | |
43 | |
44 } // namespace | |
45 | |
46 #endif // MediaValuesDynamic_h | |
OLD | NEW |