Chromium Code Reviews| Index: Source/core/css/MediaValuesDynamic.h |
| diff --git a/Source/core/css/MediaValuesDynamic.h b/Source/core/css/MediaValuesDynamic.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..ab9223783cb0527733dc83f962a02eec322ffc5a |
| --- /dev/null |
| +++ b/Source/core/css/MediaValuesDynamic.h |
| @@ -0,0 +1,46 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef MediaValuesDynamic_h |
| +#define MediaValuesDynamic_h |
| + |
| +#include "core/css/MediaValues.h" |
| + |
| +namespace WebCore { |
| + |
| +class Document; |
| + |
| +class MediaValuesDynamic : public MediaValues { |
|
eseidel
2014/04/14 23:10:13
You should mark this class as FINAL.
|
| +public: |
| + static PassRefPtr<MediaValues> create(PassRefPtr<LocalFrame>, PassRefPtr<RenderStyle>); |
| + virtual PassRefPtr<MediaValues> copy() const; |
| + virtual bool isSafeToSendToAnotherThread() const; |
| + virtual bool computeLength(CSSPrimitiveValue&, int& result) const; |
| + |
| + virtual int viewportWidth() const; |
|
eseidel
2014/04/14 23:10:13
These are all OVERRIDE.
|
| + virtual int viewportHeight() const; |
| + virtual int deviceWidth() const; |
| + virtual int deviceHeight() const; |
| + virtual float devicePixelRatio() const; |
| + virtual int colorBitsPerComponent() const; |
| + virtual int monochromeBitsPerComponent() const; |
| + virtual PointerDeviceType pointer() const; |
| + virtual bool threeDEnabled() const; |
| + virtual bool scanMediaType() const; |
| + virtual bool screenMediaType() const; |
| + virtual bool printMediaType() const; |
| + virtual bool strictMode() const; |
| + virtual Document* document() const; |
| + virtual bool hasValues() const; |
| + |
| +protected: |
| + MediaValuesDynamic(PassRefPtr<LocalFrame>, PassRefPtr<RenderStyle>); |
| + |
| + RefPtr<RenderStyle> m_style; |
| + RefPtr<LocalFrame> m_frame; |
| +}; |
| + |
| +} // namespace |
| + |
| +#endif // MediaValuesDynamic_h |