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

Unified Diff: Source/web/WebViewImpl.cpp

Issue 261633002: Add RenderView / Widget setDeviceColorProfile interface to Page (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use WebVector. Created 6 years, 3 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/web/WebViewImpl.h ('k') | public/web/WebView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index a702afc94dfd29e9d25ff316072bf0ba60b6486a..b84ce0ce4f2a69aeee1afaf15db9ca5d9374e6e6 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -2962,6 +2962,25 @@ void WebViewImpl::setDeviceScaleFactor(float scaleFactor)
updateLayerTreeDeviceScaleFactor();
}
+void WebViewImpl::setDeviceColorProfile(const WebVector<char>& colorProfile)
+{
+ if (!page())
+ return;
+
+ Vector<char> deviceProfile;
+ deviceProfile.append(colorProfile.data(), colorProfile.size());
+
+ page()->setDeviceColorProfile(deviceProfile);
+}
+
+void WebViewImpl::resetDeviceColorProfile()
+{
+ if (!page())
+ return;
+
+ page()->resetDeviceColorProfile();
+}
+
void WebViewImpl::enableAutoResizeMode(const WebSize& minSize, const WebSize& maxSize)
{
m_shouldAutoResize = true;
« no previous file with comments | « Source/web/WebViewImpl.h ('k') | public/web/WebView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698