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

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

Issue 2652313004: Implement color-gamut media query (Closed)
Patch Set: fix windows build Created 3 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
Index: third_party/WebKit/Source/core/css/MediaValues.h
diff --git a/third_party/WebKit/Source/core/css/MediaValues.h b/third_party/WebKit/Source/core/css/MediaValues.h
index 6195aceb3a85164bf022d4662b46de356e8e29dd..26039d78acfef7cc4d9f2ad38570e80fb827350e 100644
--- a/third_party/WebKit/Source/core/css/MediaValues.h
+++ b/third_party/WebKit/Source/core/css/MediaValues.h
@@ -17,6 +17,7 @@ namespace blink {
class Document;
class CSSPrimitiveValue;
class LocalFrame;
+enum class ColorSpaceGamut;
class CORE_EXPORT MediaValues : public GarbageCollectedFinalized<MediaValues> {
public:
@@ -73,6 +74,7 @@ class CORE_EXPORT MediaValues : public GarbageCollectedFinalized<MediaValues> {
virtual void overrideViewportDimensions(double width, double height) = 0;
virtual DisplayShape displayShape() const = 0;
+ virtual ColorSpaceGamut colorGamut() const = 0;
protected:
static double calculateViewportWidth(LocalFrame*);
@@ -92,6 +94,7 @@ class CORE_EXPORT MediaValues : public GarbageCollectedFinalized<MediaValues> {
static HoverType calculatePrimaryHoverType(LocalFrame*);
static int calculateAvailableHoverTypes(LocalFrame*);
static DisplayShape calculateDisplayShape(LocalFrame*);
+ static ColorSpaceGamut calculateColorGamut(LocalFrame*);
static LocalFrame* frameFrom(Document&);
};

Powered by Google App Engine
This is Rietveld 408576698