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

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: Added invalid length layout test 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
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

Powered by Google App Engine
This is Rietveld 408576698