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

Unified Diff: chrome/browser/speech/tts_platform.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
« no previous file with comments | « chrome/browser/speech/tts_message_filter.cc ('k') | chrome/browser/speech/tts_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/speech/tts_platform.h
diff --git a/chrome/browser/speech/tts_platform.h b/chrome/browser/speech/tts_platform.h
index c6b570687c259cc41958c84c5c76ffa110b9775f..4b57fd49e46bf735b14ff4139446e22096cb9a83 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);
« no previous file with comments | « chrome/browser/speech/tts_message_filter.cc ('k') | chrome/browser/speech/tts_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698