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

Unified Diff: chrome/browser/speech/extension_api/tts_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_extension_api.h
diff --git a/chrome/browser/speech/extension_api/tts_extension_api.h b/chrome/browser/speech/extension_api/tts_extension_api.h
index a70d95e3c9df90276c99bbae01ecea724c968697..e2ed95c69d89f535140a54cb3e8f6010227bf0f5 100644
--- a/chrome/browser/speech/extension_api/tts_extension_api.h
+++ b/chrome/browser/speech/extension_api/tts_extension_api.h
@@ -33,6 +33,20 @@ class TtsStopSpeakingFunction : public SyncExtensionFunction {
DECLARE_EXTENSION_FUNCTION("tts.stop", TTS_STOP)
};
+class TtsPauseFunction : public SyncExtensionFunction {
+ private:
+ virtual ~TtsPauseFunction() {}
+ virtual bool RunImpl() OVERRIDE;
+ DECLARE_EXTENSION_FUNCTION("tts.pause", TTS_PAUSE)
+};
+
+class TtsResumeFunction : public SyncExtensionFunction {
+ private:
+ virtual ~TtsResumeFunction() {}
+ virtual bool RunImpl() OVERRIDE;
+ DECLARE_EXTENSION_FUNCTION("tts.resume", TTS_RESUME)
+};
+
class TtsIsSpeakingFunction : public SyncExtensionFunction {
private:
virtual ~TtsIsSpeakingFunction() {}

Powered by Google App Engine
This is Rietveld 408576698