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

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: second iteration of review fixes. 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 kErrorCodeKey[] = "code";
14 const char kErrorNoDevicesAvailable[] = "noDevicesAvailable";
15 const char kErrorUnableToStart[] = "unableToStart";
16 const char kErrorCaptureError[] = "captureError";
17 const char kErrorNetworkError[] = "networkError";
18 const char kErrorRequestDenied[] = "requestDenied";
19 const char kErrorRequestOngoing[] = "requestOngoing";
20 const char kErrorNoSpeechHeard[] = "noSpeechHeard";
21 const char kErrorNoResults[] = "noResults";
22
23 const char kUtteranceKey[] = "utterance";
24 const char kConfidenceKey[] = "confidence";
25 const char kHypothesesKey[] = "hypotheses";
26
27 const char kOnErrorEvent[] = "experimental.speechInput.onError";
28 const char kOnResultEvent[] = "experimental.speechInput.onResult";
29 const char kOnSoundStartEvent[] = "experimental.speechInput.onSoundStart";
30 const char kOnSoundEndEvent[] = "experimental.speechInput.onSoundEnd";
31
32 const char kDefaultLanguage[] = "en";
33 const char kDefaultGrammar[] = "builtin:search";
34 const bool kDefaultFilterProfanities = true;
35
36 } // namespace extension_speech_input_api_constants.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698