summaryrefslogtreecommitdiff
path: root/chromium/content/renderer/speech_recognition_dispatcher.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/renderer/speech_recognition_dispatcher.cc')
-rw-r--r--chromium/content/renderer/speech_recognition_dispatcher.cc14
1 files changed, 9 insertions, 5 deletions
diff --git a/chromium/content/renderer/speech_recognition_dispatcher.cc b/chromium/content/renderer/speech_recognition_dispatcher.cc
index dea16bc5cfe..cb787359f73 100644
--- a/chromium/content/renderer/speech_recognition_dispatcher.cc
+++ b/chromium/content/renderer/speech_recognition_dispatcher.cc
@@ -164,21 +164,25 @@ static WebSpeechRecognizerClient::ErrorCode WebKitErrorCode(
case SPEECH_RECOGNITION_ERROR_NONE:
NOTREACHED();
return WebSpeechRecognizerClient::OtherError;
+ case SPEECH_RECOGNITION_ERROR_NO_SPEECH:
+ return WebSpeechRecognizerClient::NoSpeechError;
case SPEECH_RECOGNITION_ERROR_ABORTED:
return WebSpeechRecognizerClient::AbortedError;
- case SPEECH_RECOGNITION_ERROR_AUDIO:
+ case SPEECH_RECOGNITION_ERROR_AUDIO_CAPTURE:
return WebSpeechRecognizerClient::AudioCaptureError;
case SPEECH_RECOGNITION_ERROR_NETWORK:
return WebSpeechRecognizerClient::NetworkError;
case SPEECH_RECOGNITION_ERROR_NOT_ALLOWED:
return WebSpeechRecognizerClient::NotAllowedError;
- case SPEECH_RECOGNITION_ERROR_NO_SPEECH:
- return WebSpeechRecognizerClient::NoSpeechError;
+ case SPEECH_RECOGNITION_ERROR_SERVICE_NOT_ALLOWED:
+ return WebSpeechRecognizerClient::ServiceNotAllowedError;
+ case SPEECH_RECOGNITION_ERROR_BAD_GRAMMAR:
+ return WebSpeechRecognizerClient::BadGrammarError;
+ case SPEECH_RECOGNITION_ERROR_LANGUAGE_NOT_SUPPORTED:
+ return WebSpeechRecognizerClient::LanguageNotSupportedError;
case SPEECH_RECOGNITION_ERROR_NO_MATCH:
NOTREACHED();
return WebSpeechRecognizerClient::OtherError;
- case SPEECH_RECOGNITION_ERROR_BAD_GRAMMAR:
- return WebSpeechRecognizerClient::BadGrammarError;
}
NOTREACHED();
return WebSpeechRecognizerClient::OtherError;