| OLD | NEW |
| (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/speech_input/extension_speech_input_api_cons
tants.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 kErrorNoRecordingDeviceFound[] = "noRecordingDeviceFound"; | |
| 14 const char kErrorRecordingDeviceInUse[] = "recordingDeviceInUse"; | |
| 15 const char kErrorUnableToStart[] = "unableToStart"; | |
| 16 const char kErrorRequestDenied[] = "requestDenied"; | |
| 17 const char kErrorRequestInProgress[] = "requestInProgress"; | |
| 18 const char kErrorInvalidOperation[] = "invalidOperation"; | |
| 19 | |
| 20 const char kErrorCodeKey[] = "code"; | |
| 21 const char kErrorCaptureError[] = "captureError"; | |
| 22 const char kErrorNetworkError[] = "networkError"; | |
| 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 kOnResultEvent[] = "experimental.speechInput.onResult"; | |
| 32 const char kOnSoundStartEvent[] = "experimental.speechInput.onSoundStart"; | |
| 33 const char kOnSoundEndEvent[] = "experimental.speechInput.onSoundEnd"; | |
| 34 | |
| 35 const char kDefaultGrammar[] = "builtin:search"; | |
| 36 const bool kDefaultFilterProfanities = true; | |
| 37 | |
| 38 } // namespace extension_speech_input_api_constants. | |
| OLD | NEW |