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

Side by Side Diff: chrome/browser/speech/extension_api/tts_extension_api_constants.cc

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, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/speech/extension_api/tts_extension_api_constants.h" 5 #include "chrome/browser/speech/extension_api/tts_extension_api_constants.h"
6 6
7 namespace tts_extension_api_constants { 7 namespace tts_extension_api_constants {
8 8
9 const char kVoiceNameKey[] = "voiceName"; 9 const char kVoiceNameKey[] = "voiceName";
10 const char kLangKey[] = "lang"; 10 const char kLangKey[] = "lang";
(...skipping 17 matching lines...) Expand all
28 const char kGenderMale[] = "male"; 28 const char kGenderMale[] = "male";
29 29
30 const char kEventTypeStart[] = "start"; 30 const char kEventTypeStart[] = "start";
31 const char kEventTypeEnd[] = "end"; 31 const char kEventTypeEnd[] = "end";
32 const char kEventTypeWord[] = "word"; 32 const char kEventTypeWord[] = "word";
33 const char kEventTypeSentence[] = "sentence"; 33 const char kEventTypeSentence[] = "sentence";
34 const char kEventTypeMarker[] = "marker"; 34 const char kEventTypeMarker[] = "marker";
35 const char kEventTypeInterrupted[] = "interrupted"; 35 const char kEventTypeInterrupted[] = "interrupted";
36 const char kEventTypeCancelled[] = "cancelled"; 36 const char kEventTypeCancelled[] = "cancelled";
37 const char kEventTypeError[] = "error"; 37 const char kEventTypeError[] = "error";
38 const char kEventTypePause[] = "pause";
39 const char kEventTypeResume[] = "resume";
38 40
39 const char kErrorUndeclaredEventType[] = 41 const char kErrorUndeclaredEventType[] =
40 "Cannot send an event type that is not declared in the extension manifest."; 42 "Cannot send an event type that is not declared in the extension manifest.";
41 const char kErrorUtteranceTooLong[] = "Utterance length is too long."; 43 const char kErrorUtteranceTooLong[] = "Utterance length is too long.";
42 const char kErrorInvalidLang[] = "Invalid lang."; 44 const char kErrorInvalidLang[] = "Invalid lang.";
43 const char kErrorInvalidGender[] = "Invalid gender."; 45 const char kErrorInvalidGender[] = "Invalid gender.";
44 const char kErrorInvalidRate[] = "Invalid rate."; 46 const char kErrorInvalidRate[] = "Invalid rate.";
45 const char kErrorInvalidPitch[] = "Invalid pitch."; 47 const char kErrorInvalidPitch[] = "Invalid pitch.";
46 const char kErrorInvalidVolume[] = "Invalid volume."; 48 const char kErrorInvalidVolume[] = "Invalid volume.";
49 const char kErrorMissingPauseOrResume[] =
50 "A TTS engine extension should either listen for both onPause and onResume "
51 "events, or neither.";
47 52
48 } // namespace tts_extension_api_constants. 53 } // namespace tts_extension_api_constants.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698