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

Side by Side 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 android build Created 8 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/renderer_webkitplatformsupport_impl.h" 5 #include "content/renderer/renderer_webkitplatformsupport_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 RenderThreadImpl::current()->Send(new ViewHostMsg_Keygen( 651 RenderThreadImpl::current()->Send(new ViewHostMsg_Keygen(
652 static_cast<uint32>(key_size_index), 652 static_cast<uint32>(key_size_index),
653 challenge.utf8(), 653 challenge.utf8(),
654 GURL(url), 654 GURL(url),
655 &signed_public_key)); 655 &signed_public_key));
656 return WebString::fromUTF8(signed_public_key); 656 return WebString::fromUTF8(signed_public_key);
657 } 657 }
658 658
659 //------------------------------------------------------------------------------ 659 //------------------------------------------------------------------------------
660 660
661 void RendererWebKitPlatformSupportImpl::screenColorProfile(
662 WebVector<char>* to_profile) {
663 std::vector<char> profile;
664 RenderThreadImpl::current()->Send(
665 new ViewHostMsg_GetMonitorColorProfile(&profile));
666 *to_profile = profile;
667 }
668
669 //------------------------------------------------------------------------------
670
661 WebBlobRegistry* RendererWebKitPlatformSupportImpl::blobRegistry() { 671 WebBlobRegistry* RendererWebKitPlatformSupportImpl::blobRegistry() {
662 // ChildThread::current can be NULL when running some tests. 672 // ChildThread::current can be NULL when running some tests.
663 if (!blob_registry_.get() && ChildThread::current()) { 673 if (!blob_registry_.get() && ChildThread::current()) {
664 blob_registry_.reset(new WebBlobRegistryImpl(ChildThread::current())); 674 blob_registry_.reset(new WebBlobRegistryImpl(ChildThread::current()));
665 } 675 }
666 return blob_registry_.get(); 676 return blob_registry_.get();
667 } 677 }
668 678
669 //------------------------------------------------------------------------------ 679 //------------------------------------------------------------------------------
670 680
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 bool enable) { 740 bool enable) {
731 bool was_enabled = g_sandbox_enabled; 741 bool was_enabled = g_sandbox_enabled;
732 g_sandbox_enabled = enable; 742 g_sandbox_enabled = enable;
733 return was_enabled; 743 return was_enabled;
734 } 744 }
735 745
736 GpuChannelHostFactory* 746 GpuChannelHostFactory*
737 RendererWebKitPlatformSupportImpl::GetGpuChannelHostFactory() { 747 RendererWebKitPlatformSupportImpl::GetGpuChannelHostFactory() {
738 return RenderThreadImpl::current(); 748 return RenderThreadImpl::current();
739 } 749 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698