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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_speech_input_api_constants.cc
diff --git a/chrome/browser/extensions/extension_speech_input_api_constants.cc b/chrome/browser/extensions/extension_speech_input_api_constants.cc
new file mode 100644
index 0000000000000000000000000000000000000000..b94312fabbed44ed61e28eec0902dd78428fa192
--- /dev/null
+++ b/chrome/browser/extensions/extension_speech_input_api_constants.cc
@@ -0,0 +1,39 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/extensions/extension_speech_input_api_constants.h"
+
+namespace extension_speech_input_api_constants {
+
+const char kLanguageKey[] = "language";
+const char kGrammarKey[] = "grammar";
+const char kFilterProfanitiesKey[] = "filterProfanities";
+
+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.
+const char kProfanitiesAllow[] = "allow";
+const char kProfanitiesDefault[] = "default";
+
+const char kErrorCodeKey[] = "code";
+const char kErrorNoDevicesAvailable[] = "noDevicesAvailable";
+const char kErrorUnableToStart[] = "unableToStart";
+const char kErrorCaptureError[] = "captureError";
+const char kErrorNetworkError[] = "networkError";
+const char kErrorRequestDenied[] = "requestDenied";
+const char kErrorNoSpeechHeard[] = "noSpeechHeard";
+const char kErrorNoResults[] = "noResults";
+
+const char kUtteranceKey[] = "utterance";
+const char kConfidenceKey[] = "confidence";
+const char kHypothesesKey[] = "hypotheses";
+
+const char kOnErrorEvent[] = "experimental.speechInput.onError";
+const char kOnSpeechResultEvent[] = "experimental.speechInput.onSpeechResult";
+const char kOnSoundStartEvent[] = "experimental.speechInput.onSoundStart";
+const char kOnSoundEndEvent[] = "experimental.speechInput.onSoundEnd";
+
+const char kDefaultLanguage[] = "en";
+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
+const bool kDefaultFilterProfanities = true;
+
+} // namespace extension_speech_input_api_constants.

Powered by Google App Engine
This is Rietveld 408576698