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

Side by Side Diff: content/renderer/renderer_webkitplatformsupport_impl.cc

Issue 12589005: Implement web speech synthesis. (Closed) Base URL: http://git.chromium.org/chromium/src.git@webtts
Patch Set: Fix android build Created 7 years, 7 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
« no previous file with comments | « content/renderer/renderer_webkitplatformsupport_impl.h ('k') | ipc/ipc_message_start.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
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
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
OLDNEW
« no previous file with comments | « content/renderer/renderer_webkitplatformsupport_impl.h ('k') | ipc/ipc_message_start.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698