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

Unified Diff: content/renderer/renderer_webkitplatformsupport_impl.cc

Issue 10448110: Adds monitor ICC profile support for win and mac (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added comment Created 8 years, 6 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: content/renderer/renderer_webkitplatformsupport_impl.cc
diff --git a/content/renderer/renderer_webkitplatformsupport_impl.cc b/content/renderer/renderer_webkitplatformsupport_impl.cc
index 32a708655c01c73b0daf9f4ae3a617b0d896f12e..7467e996d672983107215b52bc4b97ba999022b2 100644
--- a/content/renderer/renderer_webkitplatformsupport_impl.cc
+++ b/content/renderer/renderer_webkitplatformsupport_impl.cc
@@ -658,6 +658,19 @@ RendererWebKitPlatformSupportImpl::signedPublicKeyAndChallengeString(
//------------------------------------------------------------------------------
+void RendererWebKitPlatformSupportImpl::screenColorProfile(
+ const WebKit::WebString& type,
+ WebVector<char>* toProfile) {
jam 2012/06/20 16:21:21 nit: to_profile
tpayne 2012/06/20 16:39:03 Done.
+ std::vector<char> profile;
+ gfx::NativeViewId view_id = 0;
+ std::string type_str(type.utf8());
+ RenderThreadImpl::current()->Send(new ViewHostMsg_GetMonitorColorProfile(
+ view_id, type_str, &profile));
+ *toProfile = profile;
+}
+
+//------------------------------------------------------------------------------
+
WebBlobRegistry* RendererWebKitPlatformSupportImpl::blobRegistry() {
// ChildThread::current can be NULL when running some tests.
if (!blob_registry_.get() && ChildThread::current()) {

Powered by Google App Engine
This is Rietveld 408576698