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

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

Issue 870933002: Make it possible to set the display mode from the WebView API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Using enum now 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/MediaQueryEvaluatorTest.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 a5a43dc52a431aafb665ccbe887e32a6226eeea8..e45caf46f08982af94ba195e312c9352517cd1cf 100644
--- a/Source/core/css/MediaValues.h
+++ b/Source/core/css/MediaValues.h
@@ -6,8 +6,8 @@
#define MediaValues_h
#include "core/css/CSSPrimitiveValue.h"
-#include "core/css/DisplayModeProperties.h"
#include "core/css/PointerProperties.h"
+#include "public/platform/WebDisplayMode.h"
#include "wtf/RefCounted.h"
#include "wtf/RefPtr.h"
@@ -57,7 +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 WebDisplayMode displayMode() const = 0;
virtual bool strictMode() const = 0;
virtual Document* document() const = 0;
virtual bool hasValues() const = 0;
@@ -73,7 +73,7 @@ protected:
int calculateMonochromeBitsPerComponent(LocalFrame*) const;
int calculateDefaultFontSize(LocalFrame*) const;
const String calculateMediaType(LocalFrame*) const;
- DisplayMode calculateDisplayMode(LocalFrame*) const;
+ WebDisplayMode calculateDisplayMode(LocalFrame*) const;
bool calculateThreeDEnabled(LocalFrame*) const;
PointerType calculatePrimaryPointerType(LocalFrame*) const;
int calculateAvailablePointerTypes(LocalFrame*) const;
« no previous file with comments | « Source/core/css/MediaQueryEvaluatorTest.cpp ('k') | Source/core/css/MediaValues.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698