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

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: Fix reading length from small string 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..87158aa5dea7bf6aed2c0aa4c16baefe591f22ed 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>* to_profile) {
+ std::vector<char> profile;
+ gfx::NativeViewId view_id = 0;
+ std::string type_str(type.utf8());
Noel Gordon 2012/06/21 16:58:33 nit: you could ditch this line ...
tpayne 2012/07/02 19:22:32 N/A
+ RenderThreadImpl::current()->Send(new ViewHostMsg_GetMonitorColorProfile(
+ view_id, type_str, &profile));
Noel Gordon 2012/06/21 16:58:33 ... and here just write view_id, std::strin
tpayne 2012/07/02 19:22:32 N/A
+ *to_profile = 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