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 return GetContentClient()->renderer()->OverrideSpeechSynthesizer(client); |
| 862 } |
| 863 |
| 864 //------------------------------------------------------------------------------ |
| 865 |
858 bool RendererWebKitPlatformSupportImpl::processMemorySizesInBytes( | 866 bool RendererWebKitPlatformSupportImpl::processMemorySizesInBytes( |
859 size_t* private_bytes, size_t* shared_bytes) { | 867 size_t* private_bytes, size_t* shared_bytes) { |
860 content::RenderThread::Get()->Send( | 868 content::RenderThread::Get()->Send( |
861 new ViewHostMsg_GetProcessMemorySizes(private_bytes, shared_bytes)); | 869 new ViewHostMsg_GetProcessMemorySizes(private_bytes, shared_bytes)); |
862 return true; | 870 return true; |
863 } | 871 } |
864 | 872 |
865 //------------------------------------------------------------------------------ | 873 //------------------------------------------------------------------------------ |
866 | 874 |
867 WebKit::WebGraphicsContext3D* | 875 WebKit::WebGraphicsContext3D* |
(...skipping 22 matching lines...) Expand all Loading... |
890 //------------------------------------------------------------------------------ | 898 //------------------------------------------------------------------------------ |
891 | 899 |
892 GrContext* RendererWebKitPlatformSupportImpl::sharedOffscreenGrContext() { | 900 GrContext* RendererWebKitPlatformSupportImpl::sharedOffscreenGrContext() { |
893 if (!shared_offscreen_context_) | 901 if (!shared_offscreen_context_) |
894 return NULL; | 902 return NULL; |
895 return shared_offscreen_context_->GrContext(); | 903 return shared_offscreen_context_->GrContext(); |
896 } | 904 } |
897 | 905 |
898 | 906 |
899 } // namespace content | 907 } // namespace content |
OLD | NEW |