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

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

Issue 8201030: Introducing the basic functionality to the speech input experimental API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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_speech_input_api_constants.h"
6
7 namespace extension_speech_input_api_constants {
8
9 const char kLanguageKey[] = "language";
10 const char kGrammarKey[] = "grammar";
11 const char kFilterProfanitiesKey[] = "filterProfanities";
12
13 const char kProfanitiesBlock[] = "block";
Satish 2011/10/08 23:15:07 what are these 3 used for? filterProfanities is a
Leandro Graciá Gil 2011/10/09 10:29:21 Done.
14 const char kProfanitiesAllow[] = "allow";
15 const char kProfanitiesDefault[] = "default";
16
17 const char kErrorCodeKey[] = "code";
18 const char kErrorNoDevicesAvailable[] = "noDevicesAvailable";
19 const char kErrorUnableToStart[] = "unableToStart";
20 const char kErrorCaptureError[] = "captureError";
21 const char kErrorNetworkError[] = "networkError";
22 const char kErrorRequestDenied[] = "requestDenied";
23 const char kErrorNoSpeechHeard[] = "noSpeechHeard";
24 const char kErrorNoResults[] = "noResults";
25
26 const char kUtteranceKey[] = "utterance";
27 const char kConfidenceKey[] = "confidence";
28 const char kHypothesesKey[] = "hypotheses";
29
30 const char kOnErrorEvent[] = "experimental.speechInput.onError";
31 const char kOnSpeechResultEvent[] = "experimental.speechInput.onSpeechResult";
32 const char kOnSoundStartEvent[] = "experimental.speechInput.onSoundStart";
33 const char kOnSoundEndEvent[] = "experimental.speechInput.onSoundEnd";
34
35 const char kDefaultLanguage[] = "en";
36 const char kDefaultGrammar[] = "builtin:search";
Satish 2011/10/08 23:15:07 should this default to 'builtin:dictation' as exte
Leandro Graciá Gil 2011/10/09 10:29:21 Yes, you got a point. That's something we should p
37 const bool kDefaultFilterProfanities = true;
38
39 } // namespace extension_speech_input_api_constants.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698