summaryrefslogtreecommitdiffstats
path: root/chrome/browser/speech/tts_platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/speech/tts_platform.h')
-rw-r--r--chrome/browser/speech/tts_platform.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/speech/tts_platform.h b/chrome/browser/speech/tts_platform.h
index c6b5706..4b57fd4 100644
--- a/chrome/browser/speech/tts_platform.h
+++ b/chrome/browser/speech/tts_platform.h
@@ -49,6 +49,13 @@ class TtsPlatformImpl {
// to |out_voices|.
virtual void GetVoices(std::vector<VoiceData>* out_voices) = 0;
+ // Pause the current utterance, if any, until a call to Resume,
+ // Speak, or StopSpeaking.
+ virtual void Pause() = 0;
+
+ // Resume speaking the current utterance, if it was paused.
+ virtual void Resume() = 0;
+
virtual std::string error();
virtual void clear_error();
virtual void set_error(const std::string& error);