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 16 matching lines...) Expand all Loading... |
27 #include "content/public/common/content_switches.h" | 27 #include "content/public/common/content_switches.h" |
28 #include "content/public/common/gpu_info.h" | 28 #include "content/public/common/gpu_info.h" |
29 #include "content/public/renderer/content_renderer_client.h" | 29 #include "content/public/renderer/content_renderer_client.h" |
30 #include "content/renderer/dom_storage/webstoragenamespace_impl.h" | 30 #include "content/renderer/dom_storage/webstoragenamespace_impl.h" |
31 #include "content/renderer/gamepad_shared_memory_reader.h" | 31 #include "content/renderer/gamepad_shared_memory_reader.h" |
32 #include "content/renderer/hyphenator/hyphenator.h" | 32 #include "content/renderer/hyphenator/hyphenator.h" |
33 #include "content/renderer/media/media_stream_dependency_factory.h" | 33 #include "content/renderer/media/media_stream_dependency_factory.h" |
34 #include "content/renderer/media/renderer_webaudiodevice_impl.h" | 34 #include "content/renderer/media/renderer_webaudiodevice_impl.h" |
35 #include "content/renderer/render_thread_impl.h" | 35 #include "content/renderer/render_thread_impl.h" |
36 #include "content/renderer/renderer_clipboard_client.h" | 36 #include "content/renderer/renderer_clipboard_client.h" |
| 37 #include "content/renderer/tts_dispatcher.h" |
37 #include "content/renderer/websharedworkerrepository_impl.h" | 38 #include "content/renderer/websharedworkerrepository_impl.h" |
38 #include "googleurl/src/gurl.h" | 39 #include "googleurl/src/gurl.h" |
39 #include "ipc/ipc_sync_message_filter.h" | 40 #include "ipc/ipc_sync_message_filter.h" |
40 #include "media/audio/audio_output_device.h" | 41 #include "media/audio/audio_output_device.h" |
41 #include "media/base/audio_hardware_config.h" | 42 #include "media/base/audio_hardware_config.h" |
42 #include "third_party/WebKit/Source/Platform/chromium/public/WebBlobRegistry.h" | 43 #include "third_party/WebKit/Source/Platform/chromium/public/WebBlobRegistry.h" |
43 #include "third_party/WebKit/Source/Platform/chromium/public/WebFileInfo.h" | 44 #include "third_party/WebKit/Source/Platform/chromium/public/WebFileInfo.h" |
44 #include "third_party/WebKit/Source/Platform/chromium/public/WebGamepads.h" | 45 #include "third_party/WebKit/Source/Platform/chromium/public/WebGamepads.h" |
45 #include "third_party/WebKit/Source/Platform/chromium/public/WebHyphenator.h" | 46 #include "third_party/WebKit/Source/Platform/chromium/public/WebHyphenator.h" |
46 #include "third_party/WebKit/Source/Platform/chromium/public/WebMediaStreamCente
r.h" | 47 #include "third_party/WebKit/Source/Platform/chromium/public/WebMediaStreamCente
r.h" |
(...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
841 WebKit::WebHyphenator* RendererWebKitPlatformSupportImpl::hyphenator() { | 842 WebKit::WebHyphenator* RendererWebKitPlatformSupportImpl::hyphenator() { |
842 WebKit::WebHyphenator* hyphenator = | 843 WebKit::WebHyphenator* hyphenator = |
843 GetContentClient()->renderer()->OverrideWebHyphenator(); | 844 GetContentClient()->renderer()->OverrideWebHyphenator(); |
844 if (hyphenator) | 845 if (hyphenator) |
845 return hyphenator; | 846 return hyphenator; |
846 return hyphenator_.get(); | 847 return hyphenator_.get(); |
847 } | 848 } |
848 | 849 |
849 //------------------------------------------------------------------------------ | 850 //------------------------------------------------------------------------------ |
850 | 851 |
| 852 WebKit::WebSpeechSynthesizer* |
| 853 RendererWebKitPlatformSupportImpl::createSpeechSynthesizer( |
| 854 WebKit::WebSpeechSynthesizerClient* client) { |
| 855 return new TtsDispatcher(client); |
| 856 } |
| 857 |
| 858 //------------------------------------------------------------------------------ |
| 859 |
851 bool RendererWebKitPlatformSupportImpl::processMemorySizesInBytes( | 860 bool RendererWebKitPlatformSupportImpl::processMemorySizesInBytes( |
852 size_t* private_bytes, size_t* shared_bytes) { | 861 size_t* private_bytes, size_t* shared_bytes) { |
853 content::RenderThread::Get()->Send( | 862 content::RenderThread::Get()->Send( |
854 new ViewHostMsg_GetProcessMemorySizes(private_bytes, shared_bytes)); | 863 new ViewHostMsg_GetProcessMemorySizes(private_bytes, shared_bytes)); |
855 return true; | 864 return true; |
856 } | 865 } |
857 | 866 |
858 //------------------------------------------------------------------------------ | 867 //------------------------------------------------------------------------------ |
859 | 868 |
860 WebKit::WebGraphicsContext3D* | 869 WebKit::WebGraphicsContext3D* |
(...skipping 30 matching lines...) Expand all Loading... |
891 //------------------------------------------------------------------------------ | 900 //------------------------------------------------------------------------------ |
892 | 901 |
893 GrContext* RendererWebKitPlatformSupportImpl::sharedOffscreenGrContext() { | 902 GrContext* RendererWebKitPlatformSupportImpl::sharedOffscreenGrContext() { |
894 if (!shared_offscreen_context_) | 903 if (!shared_offscreen_context_) |
895 return NULL; | 904 return NULL; |
896 return shared_offscreen_context_->GrContext(); | 905 return shared_offscreen_context_->GrContext(); |
897 } | 906 } |
898 | 907 |
899 | 908 |
900 } // namespace content | 909 } // namespace content |
OLD | NEW |