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 { |