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

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

Issue 853483003: Add support for 'display-mode' MQ defined in Manifest spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 years, 11 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/MediaQueryExp.cpp ('k') | Source/core/css/MediaValues.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/MediaValues.h
diff --git a/Source/core/css/MediaValues.h b/Source/core/css/MediaValues.h
index 2a0b282f2993aaca109fd33d99fbe3e37741a971..a5a43dc52a431aafb665ccbe887e32a6226eeea8 100644
--- a/Source/core/css/MediaValues.h
+++ b/Source/core/css/MediaValues.h
@@ -6,6 +6,7 @@
#define MediaValues_h
#include "core/css/CSSPrimitiveValue.h"
+#include "core/css/DisplayModeProperties.h"
#include "core/css/PointerProperties.h"
#include "wtf/RefCounted.h"
#include "wtf/RefPtr.h"
@@ -56,6 +57,7 @@ public:
virtual int availableHoverTypes() const = 0;
virtual bool threeDEnabled() const = 0;
virtual const String mediaType() const = 0;
+ virtual DisplayMode displayMode() const = 0;
virtual bool strictMode() const = 0;
virtual Document* document() const = 0;
virtual bool hasValues() const = 0;
@@ -71,6 +73,7 @@ protected:
int calculateMonochromeBitsPerComponent(LocalFrame*) const;
int calculateDefaultFontSize(LocalFrame*) const;
const String calculateMediaType(LocalFrame*) const;
+ DisplayMode calculateDisplayMode(LocalFrame*) const;
bool calculateThreeDEnabled(LocalFrame*) const;
PointerType calculatePrimaryPointerType(LocalFrame*) const;
int calculateAvailablePointerTypes(LocalFrame*) const;
« no previous file with comments | « Source/core/css/MediaQueryExp.cpp ('k') | Source/core/css/MediaValues.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698