OLD | NEW |
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 #ifndef CHROME_BROWSER_SPEECH_EXTENSION_API_TTS_EXTENSION_API_CONSTANTS_H_ | 5 #ifndef CHROME_BROWSER_SPEECH_EXTENSION_API_TTS_EXTENSION_API_CONSTANTS_H_ |
6 #define CHROME_BROWSER_SPEECH_EXTENSION_API_TTS_EXTENSION_API_CONSTANTS_H_ | 6 #define CHROME_BROWSER_SPEECH_EXTENSION_API_TTS_EXTENSION_API_CONSTANTS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/values.h" | 10 #include "base/values.h" |
11 | 11 |
12 namespace tts_extension_api_constants { | 12 namespace tts_extension_api_constants { |
13 | 13 |
14 extern const char kCharIndexKey[]; | 14 extern const char kVoiceNameKey[]; |
15 extern const char kDesiredEventTypesKey[]; | 15 extern const char kLangKey[]; |
| 16 extern const char kGenderKey[]; |
| 17 extern const char kRateKey[]; |
| 18 extern const char kPitchKey[]; |
| 19 extern const char kVolumeKey[]; |
16 extern const char kEnqueueKey[]; | 20 extern const char kEnqueueKey[]; |
17 extern const char kErrorMessageKey[]; | |
18 extern const char kEventTypeKey[]; | 21 extern const char kEventTypeKey[]; |
19 extern const char kEventTypesKey[]; | 22 extern const char kEventTypesKey[]; |
| 23 extern const char kCharIndexKey[]; |
| 24 extern const char kErrorMessageKey[]; |
| 25 extern const char kRequiredEventTypesKey[]; |
| 26 extern const char kDesiredEventTypesKey[]; |
20 extern const char kExtensionIdKey[]; | 27 extern const char kExtensionIdKey[]; |
21 extern const char kGenderKey[]; | 28 extern const char kSrcIdKey[]; |
22 extern const char kIsFinalEventKey[]; | 29 extern const char kIsFinalEventKey[]; |
23 extern const char kLangKey[]; | |
24 extern const char kOnEventKey[]; | 30 extern const char kOnEventKey[]; |
25 extern const char kPitchKey[]; | |
26 extern const char kRateKey[]; | |
27 extern const char kRemoteKey[]; | |
28 extern const char kRequiredEventTypesKey[]; | |
29 extern const char kSrcIdKey[]; | |
30 extern const char kVoiceNameKey[]; | |
31 extern const char kVolumeKey[]; | |
32 | 31 |
33 extern const char kGenderFemale[]; | 32 extern const char kGenderFemale[]; |
34 extern const char kGenderMale[]; | 33 extern const char kGenderMale[]; |
35 | 34 |
| 35 extern const char kEventTypeStart[]; |
| 36 extern const char kEventTypeEnd[]; |
| 37 extern const char kEventTypeWord[]; |
| 38 extern const char kEventTypeSentence[]; |
| 39 extern const char kEventTypeMarker[]; |
| 40 extern const char kEventTypeInterrupted[]; |
36 extern const char kEventTypeCancelled[]; | 41 extern const char kEventTypeCancelled[]; |
37 extern const char kEventTypeEnd[]; | |
38 extern const char kEventTypeError[]; | 42 extern const char kEventTypeError[]; |
39 extern const char kEventTypeInterrupted[]; | |
40 extern const char kEventTypeMarker[]; | |
41 extern const char kEventTypePause[]; | 43 extern const char kEventTypePause[]; |
42 extern const char kEventTypeResume[]; | 44 extern const char kEventTypeResume[]; |
43 extern const char kEventTypeSentence[]; | |
44 extern const char kEventTypeStart[]; | |
45 extern const char kEventTypeWord[]; | |
46 | 45 |
| 46 extern const char kErrorUndeclaredEventType[]; |
| 47 extern const char kErrorUtteranceTooLong[]; |
| 48 extern const char kErrorInvalidLang[]; |
47 extern const char kErrorInvalidGender[]; | 49 extern const char kErrorInvalidGender[]; |
48 extern const char kErrorInvalidLang[]; | 50 extern const char kErrorInvalidRate[]; |
49 extern const char kErrorInvalidPitch[]; | 51 extern const char kErrorInvalidPitch[]; |
50 extern const char kErrorInvalidRate[]; | |
51 extern const char kErrorInvalidVolume[]; | 52 extern const char kErrorInvalidVolume[]; |
52 extern const char kErrorMissingPauseOrResume[]; | 53 extern const char kErrorMissingPauseOrResume[]; |
53 extern const char kErrorUndeclaredEventType[]; | |
54 extern const char kErrorUtteranceTooLong[]; | |
55 | 54 |
56 } // namespace tts_extension_api_constants. | 55 } // namespace tts_extension_api_constants. |
57 #endif // CHROME_BROWSER_SPEECH_EXTENSION_API_TTS_EXTENSION_API_CONSTANTS_H_ | 56 #endif // CHROME_BROWSER_SPEECH_EXTENSION_API_TTS_EXTENSION_API_CONSTANTS_H_ |
OLD | NEW |