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

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 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 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 const WebKit::WebString& type,
663 WebVector<char>* to_profile) {
664 std::vector<char> profile;
665 gfx::NativeViewId view_id = 0;
666 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
667 RenderThreadImpl::current()->Send(new ViewHostMsg_GetMonitorColorProfile(
668 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
669 *to_profile = profile;
670 }
671
672 //------------------------------------------------------------------------------
673
661 WebBlobRegistry* RendererWebKitPlatformSupportImpl::blobRegistry() { 674 WebBlobRegistry* RendererWebKitPlatformSupportImpl::blobRegistry() {
662 // ChildThread::current can be NULL when running some tests. 675 // ChildThread::current can be NULL when running some tests.
663 if (!blob_registry_.get() && ChildThread::current()) { 676 if (!blob_registry_.get() && ChildThread::current()) {
664 blob_registry_.reset(new WebBlobRegistryImpl(ChildThread::current())); 677 blob_registry_.reset(new WebBlobRegistryImpl(ChildThread::current()));
665 } 678 }
666 return blob_registry_.get(); 679 return blob_registry_.get();
667 } 680 }
668 681
669 //------------------------------------------------------------------------------ 682 //------------------------------------------------------------------------------
670 683
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 bool enable) { 743 bool enable) {
731 bool was_enabled = g_sandbox_enabled; 744 bool was_enabled = g_sandbox_enabled;
732 g_sandbox_enabled = enable; 745 g_sandbox_enabled = enable;
733 return was_enabled; 746 return was_enabled;
734 } 747 }
735 748
736 GpuChannelHostFactory* 749 GpuChannelHostFactory*
737 RendererWebKitPlatformSupportImpl::GetGpuChannelHostFactory() { 750 RendererWebKitPlatformSupportImpl::GetGpuChannelHostFactory() {
738 return RenderThreadImpl::current(); 751 return RenderThreadImpl::current();
739 } 752 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698