Bug 1248507 - p7. Minimal notification definition - r?bz draft
authorGerald Squelart <gsquelart@mozilla.com>
Wed, 13 Apr 2016 09:24:23 +1000
changeset 350206 6c454a0985d82424a78c70fd705c7ee0d24a5d16
parent 350205 196da720846d7131a74874cebbd88323ee6cb09d
child 350207 e6d54b5f7dd3ea8950820e59823ac4a714e38839
push id15268
push usergsquelart@mozilla.com
push dateTue, 12 Apr 2016 23:25:06 +0000
reviewersbz
bugs1248507
milestone48.0a1
Bug 1248507 - p7. Minimal notification definition - r?bz MozReview-Commit-ID: EdJoHtQpojH
dom/webidl/DecoderDoctorNotification.webidl
dom/webidl/moz.build
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
@@ -106,16 +106,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',