Bug 1407040 - Remove nsIDOMHTMLMediaElement; r=bz draft
authorKyle Machulis <kyle@nonpolynomial.com>
Thu, 15 Feb 2018 12:52:30 -0800
changeset 755907 21707728cefb20fe33bbffd2a608a5e3880353aa
parent 755906 742db222dbfd66b09e42412fe3bf50b8a8583fc6
push id99316
push userbmo:kyle@nonpolynomial.com
push dateThu, 15 Feb 2018 22:50:26 +0000
reviewersbz
bugs1407040
milestone60.0a1
Bug 1407040 - Remove nsIDOMHTMLMediaElement; r=bz MozReview-Commit-ID: CnVw2IFacjC
dom/interfaces/html/moz.build
dom/interfaces/html/nsIDOMHTMLMediaElement.idl
xpcom/reflect/xptinfo/ShimInterfaceInfo.cpp
--- a/dom/interfaces/html/moz.build
+++ b/dom/interfaces/html/moz.build
@@ -5,16 +5,15 @@
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 with Files("**"):
     BUG_COMPONENT = ("Core", "DOM")
 
 XPIDL_SOURCES += [
     'nsIDOMHTMLFormElement.idl',
     'nsIDOMHTMLInputElement.idl',
-    'nsIDOMHTMLMediaElement.idl',
     'nsIDOMMozBrowserFrame.idl',
     'nsIDOMTimeRanges.idl',
     'nsIMozBrowserFrame.idl',
 ]
 
 XPIDL_MODULE = 'dom_html'
 
deleted file mode 100644
--- a/dom/interfaces/html/nsIDOMHTMLMediaElement.idl
+++ /dev/null
@@ -1,103 +0,0 @@
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/* vim:set ts=2 sw=2 sts=2 et cindent: */
-/* 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/. */
-
-#include "nsIDOMTimeRanges.idl"
-
-/**
- * The nsIDOMHTMLMediaElement interface is an interface to be implemented by the HTML
- * <audio> and <video> elements.
- *
- * For more information on this interface, please see
- * http://www.whatwg.org/specs/web-apps/current-work/#htmlmediaelement
- *
- * @status UNDER_DEVELOPMENT
- */
-
-// undef the GetCurrentTime macro defined in WinBase.h from the MS Platform SDK
-%{C++
-#ifdef GetCurrentTime
-#undef GetCurrentTime
-#endif
-#include "Visibility.h"
-%}
-
-native Visibility(mozilla::Visibility);
-
-[uuid(c041d76c-15ce-47ad-b61d-e8755a6db638)]
-interface nsIDOMHTMLMediaElement : nsISupports
-{
-  // network state
-           attribute DOMString src;
-  readonly attribute DOMString currentSrc;
-  const unsigned short NETWORK_EMPTY = 0;
-  const unsigned short NETWORK_IDLE = 1;
-  const unsigned short NETWORK_LOADING = 2;
-  const unsigned short NETWORK_NO_SOURCE = 3;
-  readonly attribute unsigned short networkState;
-           attribute DOMString preload;
-  readonly attribute nsIDOMTimeRanges buffered;
-  void load();
-  DOMString canPlayType(in DOMString type);
-
-  // ready state
-  const unsigned short HAVE_NOTHING = 0;
-  const unsigned short HAVE_METADATA = 1;
-  const unsigned short HAVE_CURRENT_DATA = 2;
-  const unsigned short HAVE_FUTURE_DATA = 3;
-  const unsigned short HAVE_ENOUGH_DATA = 4;
-  readonly attribute unsigned short readyState;
-  readonly attribute boolean seeking;
-
-  // playback state
-           attribute double currentTime;
-  readonly attribute double duration;
-  readonly attribute boolean paused;
-           attribute double defaultPlaybackRate;
-           attribute double playbackRate;
-           attribute boolean mozPreservesPitch;
-  readonly attribute nsIDOMTimeRanges played;
-  readonly attribute nsIDOMTimeRanges seekable;
-  readonly attribute boolean ended;
-           attribute boolean autoplay;
-           attribute boolean loop;
-  void pause();
-
-  // controls
-           attribute boolean controls;
-           attribute double volume;
-           attribute boolean muted;
-           attribute boolean defaultMuted;
-
-  // Mozilla extension: stream capture
-  readonly attribute boolean mozAudioCaptured;
-
-  // Mozilla extension: return embedded metadata from the stream as a
-  // JSObject with key:value pairs for each tag. This can be used by
-  // player interfaces to display the song title, artist, etc.
-  [implicit_jscontext]
-  jsval mozGetMetadata();
-
-  // Mozilla extension: provides access to the fragment end time if
-  // the media element has a fragment URI for the currentSrc, otherwise
-  // it is equal to the media duration.
-  readonly attribute double mozFragmentEnd;
-
-  // In addition the media element has this new events:
-  // * onmozinterruptbegin - called when the media element is interrupted
-  //   because of the audiochannel manager.
-  // * onmozinterruptend - called when the interruption is concluded
-
-  [notxpcom] boolean isVideo();
-
-  /**
-   * Called by layout to announce when the frame associated with this content
-   * has changed its visibility state.
-   *
-   * @param aOldVisibility    The previous visibility state.
-   * @param aNewVisibility    The new visibility state.
-   */
-  [noscript, notxpcom] void onVisibilityChange(in Visibility aNewVisibility);
-};
--- a/xpcom/reflect/xptinfo/ShimInterfaceInfo.cpp
+++ b/xpcom/reflect/xptinfo/ShimInterfaceInfo.cpp
@@ -29,17 +29,16 @@
 #include "nsIDOMEvent.h"
 #include "nsIDOMEventTarget.h"
 #include "nsIDOMFileList.h"
 #include "nsIDOMFocusEvent.h"
 #include "nsIDOMFormData.h"
 #include "nsIDOMGeoPositionError.h"
 #include "nsIDOMHTMLFormElement.h"
 #include "nsIDOMHTMLInputElement.h"
-#include "nsIDOMHTMLMediaElement.h"
 #include "nsIDOMMouseEvent.h"
 #include "nsIDOMMouseScrollEvent.h"
 #include "nsIDOMNode.h"
 #include "nsIDOMNodeList.h"
 #include "nsIDOMNotifyPaintEvent.h"
 #include "nsIDOMNSEvent.h"
 #include "nsIDOMOfflineResourceList.h"
 #include "nsIDOMParser.h"
@@ -95,17 +94,16 @@
 #include "mozilla/dom/FrameLoaderBinding.h"
 #include "mozilla/dom/HTMLAnchorElementBinding.h"
 #include "mozilla/dom/HTMLAreaElementBinding.h"
 #include "mozilla/dom/HTMLButtonElementBinding.h"
 #include "mozilla/dom/HTMLFormElementBinding.h"
 #include "mozilla/dom/HTMLFrameSetElementBinding.h"
 #include "mozilla/dom/HTMLHtmlElementBinding.h"
 #include "mozilla/dom/HTMLInputElementBinding.h"
-#include "mozilla/dom/HTMLMediaElementBinding.h"
 #include "mozilla/dom/ListBoxObjectBinding.h"
 #include "mozilla/dom/MediaListBinding.h"
 #include "mozilla/dom/MessageEventBinding.h"
 #include "mozilla/dom/MouseEventBinding.h"
 #include "mozilla/dom/MouseScrollEventBinding.h"
 #include "mozilla/dom/NodeListBinding.h"
 #include "mozilla/dom/NodeBinding.h"
 #include "mozilla/dom/NotifyPaintEventBinding.h"
@@ -214,17 +212,16 @@ const ComponentsInterfaceShimEntry kComp
   DEFINE_SHIM(EventTarget),
   DEFINE_SHIM(FileList),
   DEFINE_SHIM(FocusEvent),
   DEFINE_SHIM(FormData),
   DEFINE_SHIM_WITH_CUSTOM_INTERFACE(nsIFrameLoader, FrameLoader),
   DEFINE_SHIM_WITH_CUSTOM_INTERFACE(nsIDOMGeoPositionError, PositionError),
   DEFINE_SHIM(HTMLFormElement),
   DEFINE_SHIM(HTMLInputElement),
-  DEFINE_SHIM(HTMLMediaElement),
   DEFINE_SHIM_WITH_CUSTOM_INTERFACE(nsIListBoxObject, ListBoxObject),
   DEFINE_SHIM(MouseEvent),
   DEFINE_SHIM(MouseScrollEvent),
   DEFINE_SHIM(NodeList),
   DEFINE_SHIM(Node),
   DEFINE_SHIM(NotifyPaintEvent),
   DEFINE_SHIM_WITH_CUSTOM_INTERFACE(nsIDOMNSEvent, Event),
   DEFINE_SHIM(OfflineResourceList),