Index: chrome/browser/speech/extension_api/tts_extension_api_constants.cc |
diff --git a/chrome/browser/speech/extension_api/tts_extension_api_constants.cc b/chrome/browser/speech/extension_api/tts_extension_api_constants.cc |
index 3568a8d5d782d1c5e2e75f102de012ac464a351e..7b8c45bbe4ca499791c7b77130ec48a00b6b780b 100644 |
--- a/chrome/browser/speech/extension_api/tts_extension_api_constants.cc |
+++ b/chrome/browser/speech/extension_api/tts_extension_api_constants.cc |
@@ -35,6 +35,8 @@ const char kEventTypeMarker[] = "marker"; |
const char kEventTypeInterrupted[] = "interrupted"; |
const char kEventTypeCancelled[] = "cancelled"; |
const char kEventTypeError[] = "error"; |
+const char kEventTypePause[] = "pause"; |
+const char kEventTypeResume[] = "resume"; |
const char kErrorUndeclaredEventType[] = |
"Cannot send an event type that is not declared in the extension manifest."; |
@@ -44,5 +46,8 @@ const char kErrorInvalidGender[] = "Invalid gender."; |
const char kErrorInvalidRate[] = "Invalid rate."; |
const char kErrorInvalidPitch[] = "Invalid pitch."; |
const char kErrorInvalidVolume[] = "Invalid volume."; |
+const char kErrorMissingPauseOrResume[] = |
+ "A TTS engine extension should either listen for both onPause and onResume " |
+ "events, or neither."; |
} // namespace tts_extension_api_constants. |