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

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: Move from content to chrome, add runtime flag 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
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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698