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

Unified Diff: content/public/common/speech_recognition_error.h

Issue 1073513002: Fix to proper error type on SpeechRecognition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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: content/public/common/speech_recognition_error.h
diff --git a/content/public/common/speech_recognition_error.h b/content/public/common/speech_recognition_error.h
index bbd73c7494c23c4edc5aeeadaab74b1338ebd94e..585144b12abe77fcf19292097709042938588997 100644
--- a/content/public/common/speech_recognition_error.h
+++ b/content/public/common/speech_recognition_error.h
@@ -14,6 +14,9 @@ enum SpeechRecognitionErrorCode {
// There was no error.
SPEECH_RECOGNITION_ERROR_NONE,
+ // No speech heard before timeout.
+ SPEECH_RECOGNITION_ERROR_NO_SPEECH,
+
// The user or a script aborted speech input.
SPEECH_RECOGNITION_ERROR_ABORTED,
@@ -26,15 +29,19 @@ enum SpeechRecognitionErrorCode {
// Not allowed for privacy or security reasons.
SPEECH_RECOGNITION_ERROR_NOT_ALLOWED,
- // No speech heard before timeout.
- SPEECH_RECOGNITION_ERROR_NO_SPEECH,
+ // Speech service is not allowed for privacy or security reasons.
+ SPEECH_RECOGNITION_ERROR_SERVICE_NOT_ALLOWED,
+
+ // There was an error in the speech recognition grammar.
+ SPEECH_RECOGNITION_ERROR_BAD_GRAMMAR,
+
+ // The language was not supported.
+ SPEECH_RECOGNITION_ERROR_LANGUAGE_NOT_SUPPORTED,
// Speech was heard, but could not be interpreted.
SPEECH_RECOGNITION_ERROR_NO_MATCH,
- // There was an error in the speech recognition grammar.
- SPEECH_RECOGNITION_ERROR_BAD_GRAMMAR,
- SPEECH_RECOGNITION_ERROR_LAST = SPEECH_RECOGNITION_ERROR_BAD_GRAMMAR,
+ SPEECH_RECOGNITION_ERROR_LAST = SPEECH_RECOGNITION_ERROR_NO_MATCH,
};
// Error details for the SPEECH_RECOGNITION_ERROR_AUDIO error.
« no previous file with comments | « content/browser/speech/google_streaming_remote_engine.cc ('k') | content/renderer/speech_recognition_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698