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

Unified Diff: chrome/browser/speech/extension_api/tts_extension_api_platform.h

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: Address comments. 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_platform.h
diff --git a/chrome/browser/speech/extension_api/tts_extension_api_platform.h b/chrome/browser/speech/extension_api/tts_extension_api_platform.h
index 5fb90c511c9e48979b5246958b3050f691640590..038fbe05a574574aad08fe26a0b60ab668610702 100644
--- a/chrome/browser/speech/extension_api/tts_extension_api_platform.h
+++ b/chrome/browser/speech/extension_api/tts_extension_api_platform.h
@@ -34,6 +34,9 @@ class ExtensionTtsPlatformImpl {
// Stop speaking immediately and return true on success.
virtual bool StopSpeaking() = 0;
+ // Returns whether any speech is on going.
+ virtual bool IsSpeaking() = 0;
+
// Return true if this platform implementation will fire the given event.
// All platform implementations must fire the TTS_EVENT_END event at a
// minimum.

Powered by Google App Engine
This is Rietveld 408576698