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

Unified 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, 8 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/renderer_webkitplatformsupport_impl.cc
diff --git a/content/renderer/renderer_webkitplatformsupport_impl.cc b/content/renderer/renderer_webkitplatformsupport_impl.cc
index fa10df6407c652b0b04392097698a1161857ddc9..f76a736075a122c1afec17ddfbc32a39a891ab3e 100644
--- a/content/renderer/renderer_webkitplatformsupport_impl.cc
+++ b/content/renderer/renderer_webkitplatformsupport_impl.cc
@@ -855,6 +855,18 @@ WebKit::WebHyphenator* RendererWebKitPlatformSupportImpl::hyphenator() {
//------------------------------------------------------------------------------
+WebKit::WebSpeechSynthesizer*
+RendererWebKitPlatformSupportImpl::createSpeechSynthesizer(
+ WebKit::WebSpeechSynthesizerClient* client) {
+ WebKit::WebSpeechSynthesizer* synthesizer =
+ GetContentClient()->renderer()->OverrideSpeechSynthesizer(client);
+ if (synthesizer)
+ return synthesizer;
+ return NULL;
jam 2013/04/30 17:11:20 nit: return GetContentClient()->renderer()->Overr
dmazzoni 2013/05/02 22:13:25 Done.
+}
+
+//------------------------------------------------------------------------------
+
bool RendererWebKitPlatformSupportImpl::processMemorySizesInBytes(
size_t* private_bytes, size_t* shared_bytes) {
content::RenderThread::Get()->Send(

Powered by Google App Engine
This is Rietveld 408576698