dom/webidl/SpeechRecognitionEvent.webidl
author Marian-Vasile Laza <mlaza@mozilla.com>
Thu, 06 Oct 2022 21:34:22 +0300
changeset 637142 942c201b1ac7a46a449f1fb80da7b050ec0ea120
parent 495397 2416d17d33c1c6774e62f786aaeff6c02462a5bd
permissions -rw-r--r--
Backed out changeset c6cf679e8f08 (bug 1773237) for causing bc failures on Promise-inl.h. CLOSED TREE

/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/.
 */
interface nsISupports;

[Pref="media.webspeech.recognition.enable",
 Func="SpeechRecognition::IsAuthorized",
 Exposed=Window]
interface SpeechRecognitionEvent : Event
{
  constructor(DOMString type,
              optional SpeechRecognitionEventInit eventInitDict = {});

  readonly attribute unsigned long resultIndex;
  readonly attribute SpeechRecognitionResultList? results;
  readonly attribute any interpretation;
  readonly attribute Document? emma;
};

dictionary SpeechRecognitionEventInit : EventInit
{
  unsigned long resultIndex = 0;
  SpeechRecognitionResultList? results = null;
  any interpretation = null;
  Document? emma = null;
};