dom/interfaces/html/nsIDOMMediaError.idl

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     2 /* vim:set ts=2 sw=2 sts=2 et cindent: */
     3 /* This Source Code Form is subject to the terms of the Mozilla Public
     4  * License, v. 2.0. If a copy of the MPL was not distributed with this
     5  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     6 #include "domstubs.idl"
     8 [scriptable, uuid(7bd8c29f-8a76-453f-9373-79f820f2dc01)]
     9 interface nsIDOMMediaError : nsISupports
    10 {
    11   /* The download of the media resource was aborted by
    12      the user agent at the user's requet */
    13   const unsigned short MEDIA_ERR_ABORTED = 1;
    15   /* A network error of some description caused the 
    16      user agent to stop downloading the media resource */
    17   const unsigned short MEDIA_ERR_NETWORK = 2;
    19   /* An error of some description occurred while decoding 
    20      the media resource */
    21   const unsigned short MEDIA_ERR_DECODE  = 3;
    23   /* No suitable media resource could be found */
    24   const unsigned short MEDIA_ERR_SRC_NOT_SUPPORTED = 4;
    26   readonly attribute unsigned short code;
    27 };

mercurial