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

Side by Side Diff: chrome/browser/extensions/extension_tts_api_constants.cc

Issue 9808024: Move TTS extension API to chrome/browser/speech/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix chromeos compile error, rebase Created 8 years, 9 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
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/extensions/extension_tts_api_constants.h"
6
7 namespace extension_tts_api_constants {
8
9 const char kVoiceNameKey[] = "voiceName";
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";
15 const char kEnqueueKey[] = "enqueue";
16 const char kEventTypeKey[] = "type";
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";
22 const char kExtensionIdKey[] = "extensionId";
23 const char kSrcIdKey[] = "srcId";
24 const char kIsFinalEventKey[] = "isFinalEvent";
25
26 const char kGenderFemale[] = "female";
27 const char kGenderMale[] = "male";
28
29 const char kEventTypeStart[] = "start";
30 const char kEventTypeEnd[] = "end";
31 const char kEventTypeWord[] = "word";
32 const char kEventTypeSentence[] = "sentence";
33 const char kEventTypeMarker[] = "marker";
34 const char kEventTypeInterrupted[] = "interrupted";
35 const char kEventTypeCancelled[] = "cancelled";
36 const char kEventTypeError[] = "error";
37
38 const char kNativeVoiceName[] = "native";
39
40 const char kErrorUndeclaredEventType[] =
41 "Cannot send an event type that is not declared in the extension manifest.";
42 const char kErrorUtteranceTooLong[] = "Utterance length is too long.";
43 const char kErrorInvalidLang[] = "Invalid lang.";
44 const char kErrorInvalidGender[] = "Invalid gender.";
45 const char kErrorInvalidRate[] = "Invalid rate.";
46 const char kErrorInvalidPitch[] = "Invalid pitch.";
47 const char kErrorInvalidVolume[] = "Invalid volume.";
48
49 } // namespace extension_tts_api_constants.
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_tts_api_constants.h ('k') | chrome/browser/extensions/extension_tts_api_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698