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

Unified Diff: chrome/browser/speech/extension_api/tts_extension_api_mac.mm

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: Revised description for IsSpeaking based on comment. 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_mac.mm
diff --git a/chrome/browser/speech/extension_api/tts_extension_api_mac.mm b/chrome/browser/speech/extension_api/tts_extension_api_mac.mm
index 07d54e32928498a55268f826680e48c3b1a2afa0..b9934f89b8850685a45e7331b4d12eadefc0f835 100644
--- a/chrome/browser/speech/extension_api/tts_extension_api_mac.mm
+++ b/chrome/browser/speech/extension_api/tts_extension_api_mac.mm
@@ -129,8 +129,7 @@ bool ExtensionTtsPlatformImplMac::StopSpeaking() {
}
bool ExtensionTtsPlatformImplMac::IsSpeaking() {
- // Note: this is OK even if speech_synthesizer_ is nil, it will return false.
- return [speech_synthesizer_ isSpeaking];
+ return [NSSpeechSynthesizer isAnyApplicationSpeaking];
}
bool ExtensionTtsPlatformImplMac::SendsEvent(TtsEventType event_type) {

Powered by Google App Engine
This is Rietveld 408576698