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

Unified Diff: chrome/browser/extensions/speech_input/extension_speech_input_api_constants.h

Issue 8201030: Introducing the basic functionality to the speech input experimental API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removing media code and dependencies. Addressed in a different patch. 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/speech_input/extension_speech_input_api_constants.h
diff --git a/chrome/browser/extensions/speech_input/extension_speech_input_api_constants.h b/chrome/browser/extensions/speech_input/extension_speech_input_api_constants.h
new file mode 100644
index 0000000000000000000000000000000000000000..80005324d545b56a84c9f10d0cc5788fbbe4fde0
--- /dev/null
+++ b/chrome/browser/extensions/speech_input/extension_speech_input_api_constants.h
@@ -0,0 +1,41 @@
+// 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.
+
+#ifndef CHROME_BROWSER_EXTENSIONS_SPEECH_INPUT_EXTENSION_SPEECH_INPUT_API_CONSTANTS_H_
+#define CHROME_BROWSER_EXTENSIONS_SPEECH_INPUT_EXTENSION_SPEECH_INPUT_API_CONSTANTS_H_
+
+namespace extension_speech_input_api_constants {
+
+extern const char kLanguageKey[];
+extern const char kGrammarKey[];
+extern const char kFilterProfanitiesKey[];
+
+extern const char kErrorNoDevicesAvailable[];
+extern const char kErrorUnableToStart[];
+extern const char kErrorRequestDenied[];
+extern const char kErrorRequestInProgress[];
+extern const char kErrorInvalidOperation[];
+
+extern const char kErrorCodeKey[];
+extern const char kErrorCaptureError[];
+extern const char kErrorNetworkError[];
+extern const char kErrorNoSpeechHeard[];
+extern const char kErrorNoResults[];
+
+extern const char kUtteranceKey[];
+extern const char kConfidenceKey[];
+extern const char kHypothesesKey[];
+
+extern const char kOnErrorEvent[];
+extern const char kOnResultEvent[];
+extern const char kOnSoundStartEvent[];
+extern const char kOnSoundEndEvent[];
+
+extern const char kDefaultLanguage[];
+extern const char kDefaultGrammar[];
+extern const bool kDefaultFilterProfanities;
+
+} // namespace extension_speech_input_api_constants.
+
+#endif // CHROME_BROWSER_EXTENSIONS_SPEECH_INPUT_EXTENSION_SPEECH_INPUT_API_CONSTANTS_H_

Powered by Google App Engine
This is Rietveld 408576698