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

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

Issue 2652313004: Implement color-gamut media query (Closed)
Patch Set: add back notreached for dumb compilers 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/MediaValuesCached.h
diff --git a/third_party/WebKit/Source/core/css/MediaValuesCached.h b/third_party/WebKit/Source/core/css/MediaValuesCached.h
index fa042b4edfb67595e0ae6d286df59fd7fa7f1f19..6455212fff4d087f42eaeed7f4d8f063fc146599 100644
--- a/third_party/WebKit/Source/core/css/MediaValuesCached.h
+++ b/third_party/WebKit/Source/core/css/MediaValuesCached.h
@@ -8,6 +8,7 @@
#include "core/CoreExport.h"
#include "core/css/MediaValues.h"
#include "platform/CrossThreadCopier.h"
+#include "platform/graphics/ColorSpace.h"
namespace blink {
@@ -34,25 +35,9 @@ class CORE_EXPORT MediaValuesCached final : public MediaValues {
String mediaType;
WebDisplayMode displayMode;
DisplayShape displayShape;
+ ColorSpaceGamut colorGamut;
- MediaValuesCachedData()
- : viewportWidth(0),
- viewportHeight(0),
- deviceWidth(0),
- deviceHeight(0),
- devicePixelRatio(1.0),
- colorBitsPerComponent(24),
- monochromeBitsPerComponent(0),
- primaryPointerType(PointerTypeNone),
- availablePointerTypes(PointerTypeNone),
- primaryHoverType(HoverTypeNone),
- availableHoverTypes(HoverTypeNone),
- defaultFontSize(16),
- threeDEnabled(false),
- strictMode(true),
- displayMode(WebDisplayModeBrowser),
- displayShape(DisplayShapeRect) {}
-
+ MediaValuesCachedData();
explicit MediaValuesCachedData(Document&);
MediaValuesCachedData deepCopy() const {
@@ -74,6 +59,7 @@ class CORE_EXPORT MediaValuesCached final : public MediaValues {
data.mediaType = mediaType.isolatedCopy();
data.displayMode = displayMode;
data.displayShape = displayShape;
+ data.colorGamut = colorGamut;
return data;
}
};
@@ -106,6 +92,7 @@ class CORE_EXPORT MediaValuesCached final : public MediaValues {
const String mediaType() const override;
WebDisplayMode displayMode() const override;
DisplayShape displayShape() const override;
+ ColorSpaceGamut colorGamut() const override;
void overrideViewportDimensions(double width, double height) override;
« no previous file with comments | « third_party/WebKit/Source/core/css/MediaValues.cpp ('k') | third_party/WebKit/Source/core/css/MediaValuesCached.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698