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

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

Issue 58903014: Revert 232412 "Implement Google network speech synthesis." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1700/src/
Patch Set: Created 7 years, 1 month 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 kCharIndexKey[] = "charIndex"; 9 const char kVoiceNameKey[] = "voiceName";
10 const char kDesiredEventTypesKey[] = "desiredEventTypes"; 10 const char kLangKey[] = "lang";
11 const char kGenderKey[] = "gender";
12 const char kRateKey[] = "rate";
13 const char kPitchKey[] = "pitch";
14 const char kVolumeKey[] = "volume";
11 const char kEnqueueKey[] = "enqueue"; 15 const char kEnqueueKey[] = "enqueue";
12 const char kErrorMessageKey[] = "errorMessage";
13 const char kEventTypeKey[] = "type"; 16 const char kEventTypeKey[] = "type";
14 const char kEventTypesKey[] = "eventTypes"; 17 const char kEventTypesKey[] = "eventTypes";
18 const char kCharIndexKey[] = "charIndex";
19 const char kErrorMessageKey[] = "errorMessage";
20 const char kRequiredEventTypesKey[] = "requiredEventTypes";
21 const char kDesiredEventTypesKey[] = "desiredEventTypes";
15 const char kExtensionIdKey[] = "extensionId"; 22 const char kExtensionIdKey[] = "extensionId";
16 const char kGenderKey[] = "gender"; 23 const char kSrcIdKey[] = "srcId";
17 const char kIsFinalEventKey[] = "isFinalEvent"; 24 const char kIsFinalEventKey[] = "isFinalEvent";
18 const char kLangKey[] = "lang";
19 const char kOnEventKey[] = "onEvent"; 25 const char kOnEventKey[] = "onEvent";
20 const char kPitchKey[] = "pitch";
21 const char kRateKey[] = "rate";
22 const char kRemoteKey[] = "remote";
23 const char kRequiredEventTypesKey[] = "requiredEventTypes";
24 const char kSrcIdKey[] = "srcId";
25 const char kVoiceNameKey[] = "voiceName";
26 const char kVolumeKey[] = "volume";
27 26
28 const char kGenderFemale[] = "female"; 27 const char kGenderFemale[] = "female";
29 const char kGenderMale[] = "male"; 28 const char kGenderMale[] = "male";
30 29
30 const char kEventTypeStart[] = "start";
31 const char kEventTypeEnd[] = "end";
32 const char kEventTypeWord[] = "word";
33 const char kEventTypeSentence[] = "sentence";
34 const char kEventTypeMarker[] = "marker";
35 const char kEventTypeInterrupted[] = "interrupted";
31 const char kEventTypeCancelled[] = "cancelled"; 36 const char kEventTypeCancelled[] = "cancelled";
32 const char kEventTypeEnd[] = "end";
33 const char kEventTypeError[] = "error"; 37 const char kEventTypeError[] = "error";
34 const char kEventTypeInterrupted[] = "interrupted";
35 const char kEventTypeMarker[] = "marker";
36 const char kEventTypePause[] = "pause"; 38 const char kEventTypePause[] = "pause";
37 const char kEventTypeResume[] = "resume"; 39 const char kEventTypeResume[] = "resume";
38 const char kEventTypeSentence[] = "sentence";
39 const char kEventTypeStart[] = "start";
40 const char kEventTypeWord[] = "word";
41 40
41 const char kErrorUndeclaredEventType[] =
42 "Cannot send an event type that is not declared in the extension manifest.";
43 const char kErrorUtteranceTooLong[] = "Utterance length is too long.";
44 const char kErrorInvalidLang[] = "Invalid lang.";
42 const char kErrorInvalidGender[] = "Invalid gender."; 45 const char kErrorInvalidGender[] = "Invalid gender.";
43 const char kErrorInvalidLang[] = "Invalid lang."; 46 const char kErrorInvalidRate[] = "Invalid rate.";
44 const char kErrorInvalidPitch[] = "Invalid pitch."; 47 const char kErrorInvalidPitch[] = "Invalid pitch.";
45 const char kErrorInvalidRate[] = "Invalid rate.";
46 const char kErrorInvalidVolume[] = "Invalid volume."; 48 const char kErrorInvalidVolume[] = "Invalid volume.";
47 const char kErrorMissingPauseOrResume[] = 49 const char kErrorMissingPauseOrResume[] =
48 "A TTS engine extension should either listen for both onPause and onResume " 50 "A TTS engine extension should either listen for both onPause and onResume "
49 "events, or neither."; 51 "events, or neither.";
50 const char kErrorUndeclaredEventType[] =
51 "Cannot send an event type that is not declared in the extension manifest.";
52 const char kErrorUtteranceTooLong[] = "Utterance length is too long.";
53 52
54 } // namespace tts_extension_api_constants. 53 } // namespace tts_extension_api_constants.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698