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

Unified Diff: Source/core/css/MediaValuesDynamic.h

Issue 224733011: A sizes attribute parser (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed rebase Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/MediaValuesCached.cpp ('k') | Source/core/css/MediaValuesDynamic.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..d10fe9a0337f6358e190b962bc30ac3ed2d57ffe
--- /dev/null
+++ b/Source/core/css/MediaValuesDynamic.h
@@ -0,0 +1,47 @@
+// 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 FINAL : public MediaValues {
+public:
+ static PassRefPtr<MediaValues> create(Document&);
+ static PassRefPtr<MediaValues> create(PassRefPtr<LocalFrame>, PassRefPtr<RenderStyle>);
+ virtual PassRefPtr<MediaValues> copy() const OVERRIDE;
+ virtual bool isSafeToSendToAnotherThread() const OVERRIDE;
+ virtual bool computeLength(double value, unsigned short type, int& result) const OVERRIDE;
+
+ virtual int viewportWidth() const OVERRIDE;
+ virtual int viewportHeight() const OVERRIDE;
+ virtual int deviceWidth() const OVERRIDE;
+ virtual int deviceHeight() const OVERRIDE;
+ virtual float devicePixelRatio() const OVERRIDE;
+ virtual int colorBitsPerComponent() const OVERRIDE;
+ virtual int monochromeBitsPerComponent() const OVERRIDE;
+ virtual PointerDeviceType pointer() const OVERRIDE;
+ virtual bool threeDEnabled() const OVERRIDE;
+ virtual bool scanMediaType() const OVERRIDE;
+ virtual bool screenMediaType() const OVERRIDE;
+ virtual bool printMediaType() const OVERRIDE;
+ virtual bool strictMode() const OVERRIDE;
+ virtual Document* document() const OVERRIDE;
+ virtual bool hasValues() const OVERRIDE;
+
+protected:
+ MediaValuesDynamic(PassRefPtr<LocalFrame>, PassRefPtr<RenderStyle>);
+
+ RefPtr<RenderStyle> m_style;
+ RefPtr<LocalFrame> m_frame;
+};
+
+} // namespace
+
+#endif // MediaValuesDynamic_h
« no previous file with comments | « Source/core/css/MediaValuesCached.cpp ('k') | Source/core/css/MediaValuesDynamic.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698