OLD | NEW |
---|---|
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_util.h" | 8 #include "base/file_util.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
(...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
848 WebKit::WebHyphenator* RendererWebKitPlatformSupportImpl::hyphenator() { | 848 WebKit::WebHyphenator* RendererWebKitPlatformSupportImpl::hyphenator() { |
849 WebKit::WebHyphenator* hyphenator = | 849 WebKit::WebHyphenator* hyphenator = |
850 GetContentClient()->renderer()->OverrideWebHyphenator(); | 850 GetContentClient()->renderer()->OverrideWebHyphenator(); |
851 if (hyphenator) | 851 if (hyphenator) |
852 return hyphenator; | 852 return hyphenator; |
853 return hyphenator_.get(); | 853 return hyphenator_.get(); |
854 } | 854 } |
855 | 855 |
856 //------------------------------------------------------------------------------ | 856 //------------------------------------------------------------------------------ |
857 | 857 |
858 WebKit::WebSpeechSynthesizer* | |
859 RendererWebKitPlatformSupportImpl::createSpeechSynthesizer( | |
860 WebKit::WebSpeechSynthesizerClient* client) { | |
861 WebKit::WebSpeechSynthesizer* synthesizer = | |
862 GetContentClient()->renderer()->OverrideSpeechSynthesizer(client); | |
863 if (synthesizer) | |
864 return synthesizer; | |
865 return NULL; | |
jam
2013/04/30 17:11:20
nit:
return GetContentClient()->renderer()->Overr
dmazzoni
2013/05/02 22:13:25
Done.
| |
866 } | |
867 | |
868 //------------------------------------------------------------------------------ | |
869 | |
858 bool RendererWebKitPlatformSupportImpl::processMemorySizesInBytes( | 870 bool RendererWebKitPlatformSupportImpl::processMemorySizesInBytes( |
859 size_t* private_bytes, size_t* shared_bytes) { | 871 size_t* private_bytes, size_t* shared_bytes) { |
860 content::RenderThread::Get()->Send( | 872 content::RenderThread::Get()->Send( |
861 new ViewHostMsg_GetProcessMemorySizes(private_bytes, shared_bytes)); | 873 new ViewHostMsg_GetProcessMemorySizes(private_bytes, shared_bytes)); |
862 return true; | 874 return true; |
863 } | 875 } |
864 | 876 |
865 //------------------------------------------------------------------------------ | 877 //------------------------------------------------------------------------------ |
866 | 878 |
867 WebKit::WebGraphicsContext3D* | 879 WebKit::WebGraphicsContext3D* |
(...skipping 22 matching lines...) Expand all Loading... | |
890 //------------------------------------------------------------------------------ | 902 //------------------------------------------------------------------------------ |
891 | 903 |
892 GrContext* RendererWebKitPlatformSupportImpl::sharedOffscreenGrContext() { | 904 GrContext* RendererWebKitPlatformSupportImpl::sharedOffscreenGrContext() { |
893 if (!shared_offscreen_context_) | 905 if (!shared_offscreen_context_) |
894 return NULL; | 906 return NULL; |
895 return shared_offscreen_context_->GrContext(); | 907 return shared_offscreen_context_->GrContext(); |
896 } | 908 } |
897 | 909 |
898 | 910 |
899 } // namespace content | 911 } // namespace content |
OLD | NEW |