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

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

Issue 15108002: Add Pause and Resume to Web TTS & Extension TTS APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/speech/extension_api/tts_engine_extension_api.h
diff --git a/chrome/browser/speech/extension_api/tts_engine_extension_api.h b/chrome/browser/speech/extension_api/tts_engine_extension_api.h
index b87de3a669e5c1f8b4d7f52dabd44af65bd0ec30..b77f4d979346869f13b1bee2b052ecde417e2627 100644
--- a/chrome/browser/speech/extension_api/tts_engine_extension_api.h
+++ b/chrome/browser/speech/extension_api/tts_engine_extension_api.h
@@ -24,6 +24,8 @@ class Extension;
namespace tts_engine_events {
extern const char kOnSpeak[];
extern const char kOnStop[];
+extern const char kOnPause[];
+extern const char kOnResume[];
}
// Return a list of all available voices registered by extensions.
@@ -47,6 +49,12 @@ void ExtensionTtsEngineSpeak(Utterance* utterance,
// associated with this utterance.
void ExtensionTtsEngineStop(Utterance* utterance);
+// Pause in the middle of speaking this utterance.
+void ExtensionTtsEnginePause(Utterance* utterance);
+
+// Resume speaking this utterance.
+void ExtensionTtsEngineResume(Utterance* utterance);
+
// Hidden/internal extension function used to allow TTS engine extensions
// to send events back to the client that's calling tts.speak().
class ExtensionTtsEngineSendTtsEventFunction : public SyncExtensionFunction {

Powered by Google App Engine
This is Rietveld 408576698