Lines Matching defs:SpeechRecognitionError
28 #include "modules/speech/SpeechRecognitionError.h"
32 static String ErrorCodeToString(SpeechRecognitionError::ErrorCode code)
35 case SpeechRecognitionError::ErrorCodeOther:
37 case SpeechRecognitionError::ErrorCodeNoSpeech:
39 case SpeechRecognitionError::ErrorCodeAborted:
41 case SpeechRecognitionError::ErrorCodeAudioCapture:
43 case SpeechRecognitionError::ErrorCodeNetwork:
45 case SpeechRecognitionError::ErrorCodeNotAllowed:
47 case SpeechRecognitionError::ErrorCodeServiceNotAllowed:
49 case SpeechRecognitionError::ErrorCodeBadGrammar:
51 case SpeechRecognitionError::ErrorCodeLanguageNotSupported:
59 PassRefPtrWillBeRawPtr<SpeechRecognitionError> SpeechRecognitionError::create(ErrorCode code, const String& message)
61 return adoptRefWillBeNoop(new SpeechRecognitionError(ErrorCodeToString(code), message));
64 PassRefPtrWillBeRawPtr<SpeechRecognitionError> SpeechRecognitionError::create()
66 return adoptRefWillBeNoop(new SpeechRecognitionError(emptyString(), emptyString()));
69 PassRefPtrWillBeRawPtr<SpeechRecognitionError> SpeechRecognitionError::create(const AtomicString& eventName, const SpeechRecognitionErrorInit& initializer)
71 return adoptRefWillBeNoop(new SpeechRecognitionError(eventName, initializer));
74 SpeechRecognitionError::SpeechRecognitionError(const String& error, const String& message)
82 SpeechRecognitionError::SpeechRecognitionError(const AtomicString& eventName, const SpeechRecognitionErrorInit& initializer)
90 const AtomicString& SpeechRecognitionError::interfaceName() const
92 return EventNames::SpeechRecognitionError;