diff --git a/dom/webidl/DecoderDoctorNotification.webidl b/dom/webidl/DecoderDoctorNotification.webidl new file mode 100644 index 000000000000..6f7ec2c6ff1d --- /dev/null +++ b/dom/webidl/DecoderDoctorNotification.webidl @@ -0,0 +1,15 @@ +/* -*- 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/. + */ + +enum DecoderDoctorNotificationType { + "cannot-play", + "can-play-but-some-missing-decoders" +}; + +dictionary DecoderDoctorNotification { + required DecoderDoctorNotificationType type; + DOMString formats; +}; diff --git a/dom/webidl/moz.build b/dom/webidl/moz.build index 7c9170fc1661..6507aa4a9d85 100644 --- a/dom/webidl/moz.build +++ b/dom/webidl/moz.build @@ -112,6 +112,7 @@ WEBIDL_FILES = [ 'DataStore.webidl', 'DataStoreImpl.webidl', 'DataTransfer.webidl', + 'DecoderDoctorNotification.webidl', 'DedicatedWorkerGlobalScope.webidl', 'DelayNode.webidl', 'DesktopNotification.webidl',