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

Unified Diff: chrome/browser/speech/extension_api/tts_extension_api_chromeos.cc

Issue 9967021: Uses a system-wide notion of isSpeaking in the Mac extension TTS api. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update tts.json and run build/build.py Created 8 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: chrome/browser/speech/extension_api/tts_extension_api_chromeos.cc
diff --git a/chrome/browser/speech/extension_api/tts_extension_api_chromeos.cc b/chrome/browser/speech/extension_api/tts_extension_api_chromeos.cc
index 45d82202449c548564a06aa1b69c3b2616428583..08a31d18d0d6491e4731600ed7fa474533298595 100644
--- a/chrome/browser/speech/extension_api/tts_extension_api_chromeos.cc
+++ b/chrome/browser/speech/extension_api/tts_extension_api_chromeos.cc
@@ -47,6 +47,8 @@ class ExtensionTtsPlatformImplChromeOs
virtual bool StopSpeaking();
+ virtual bool IsSpeaking();
+
virtual bool SendsEvent(TtsEventType event_type);
// Get the single instance of this class.
@@ -163,6 +165,11 @@ bool ExtensionTtsPlatformImplChromeOs::StopSpeaking() {
return true;
}
+bool ExtensionTtsPlatformImplChromeOs::IsSpeaking() {
+ // Defers to controller's utterance based detection of is speaking.
+ return true;
+}
+
bool ExtensionTtsPlatformImplChromeOs::SendsEvent(TtsEventType event_type) {
return (event_type == TTS_EVENT_START ||
event_type == TTS_EVENT_END ||

Powered by Google App Engine
This is Rietveld 408576698