Backout a74bd5095902, Bug 959405 - Please update the Buri Moz-central, 1.3, 1.2 with...
[gecko.git] / dom / webidl / SpeechRecognitionError.webidl
blobf5dc5fcb33ab9f749e0b29216106111761fdd8d5
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4  * You can obtain one at http://mozilla.org/MPL/2.0/.
5  */
7 enum SpeechRecognitionErrorCode {
8   "no-speech",
9   "aborted",
10   "audio-capture",
11   "network",
12   "not-allowed",
13   "service-not-allowed",
14   "bad-grammar",
15   "language-not-supported"
18 [Constructor(DOMString type, optional SpeechRecognitionErrorInit eventInitDict)]
19 interface SpeechRecognitionError : Event
21   readonly attribute SpeechRecognitionErrorCode error;
22   readonly attribute DOMString? message;
25 dictionary SpeechRecognitionErrorInit : EventInit
27   SpeechRecognitionErrorCode error = "no-speech";
28   DOMString message = "";