Bug 1248507 - p6. Minimal notification definition - r=bz
MozReview-Commit-ID: JWd0BWehttB
new file mode 100644
--- /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;
+};
--- a/dom/webidl/moz.build
+++ b/dom/webidl/moz.build
@@ -107,16 +107,17 @@ WEBIDL_FILES = [
'CSSStyleSheet.webidl',
'CSSTransition.webidl',
'CSSValue.webidl',
'CSSValueList.webidl',
'DataContainerEvent.webidl',
'DataStore.webidl',
'DataStoreImpl.webidl',
'DataTransfer.webidl',
+ 'DecoderDoctorNotification.webidl',
'DedicatedWorkerGlobalScope.webidl',
'DelayNode.webidl',
'DesktopNotification.webidl',
'DeviceMotionEvent.webidl',
'DeviceStorage.webidl',
'DeviceStorageAreaListener.webidl',
'Directory.webidl',
'DisplayPortInputPort.webidl',