1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/html/nsIDOMMediaError.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMMediaError_h__
6 : #define __gen_nsIDOMMediaError_h__
7 :
8 :
9 : #ifndef __gen_domstubs_h__
10 : #include "domstubs.h"
11 : #endif
12 :
13 : /* For IDL files that don't want to include root IDL files. */
14 : #ifndef NS_NO_VTABLE
15 : #define NS_NO_VTABLE
16 : #endif
17 :
18 : /* starting interface: nsIDOMMediaError */
19 : #define NS_IDOMMEDIAERROR_IID_STR "7bd8c29f-8a76-453f-9373-79f820f2dc01"
20 :
21 : #define NS_IDOMMEDIAERROR_IID \
22 : {0x7bd8c29f, 0x8a76, 0x453f, \
23 : { 0x93, 0x73, 0x79, 0xf8, 0x20, 0xf2, 0xdc, 0x01 }}
24 :
25 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMMediaError : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMMEDIAERROR_IID)
29 :
30 : enum {
31 : MEDIA_ERR_ABORTED = 1U,
32 : MEDIA_ERR_NETWORK = 2U,
33 : MEDIA_ERR_DECODE = 3U,
34 : MEDIA_ERR_SRC_NOT_SUPPORTED = 4U
35 : };
36 :
37 : /* readonly attribute unsigned short code; */
38 : NS_SCRIPTABLE NS_IMETHOD GetCode(PRUint16 *aCode) = 0;
39 :
40 : };
41 :
42 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMMediaError, NS_IDOMMEDIAERROR_IID)
43 :
44 : /* Use this macro when declaring classes that implement this interface. */
45 : #define NS_DECL_NSIDOMMEDIAERROR \
46 : NS_SCRIPTABLE NS_IMETHOD GetCode(PRUint16 *aCode);
47 :
48 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
49 : #define NS_FORWARD_NSIDOMMEDIAERROR(_to) \
50 : NS_SCRIPTABLE NS_IMETHOD GetCode(PRUint16 *aCode) { return _to GetCode(aCode); }
51 :
52 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
53 : #define NS_FORWARD_SAFE_NSIDOMMEDIAERROR(_to) \
54 : NS_SCRIPTABLE NS_IMETHOD GetCode(PRUint16 *aCode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCode(aCode); }
55 :
56 : #if 0
57 : /* Use the code below as a template for the implementation class for this interface. */
58 :
59 : /* Header file */
60 : class nsDOMMediaError : public nsIDOMMediaError
61 : {
62 : public:
63 : NS_DECL_ISUPPORTS
64 : NS_DECL_NSIDOMMEDIAERROR
65 :
66 : nsDOMMediaError();
67 :
68 : private:
69 : ~nsDOMMediaError();
70 :
71 : protected:
72 : /* additional members */
73 : };
74 :
75 : /* Implementation file */
76 : NS_IMPL_ISUPPORTS1(nsDOMMediaError, nsIDOMMediaError)
77 :
78 : nsDOMMediaError::nsDOMMediaError()
79 : {
80 : /* member initializers and constructor code */
81 : }
82 :
83 : nsDOMMediaError::~nsDOMMediaError()
84 : {
85 : /* destructor code */
86 : }
87 :
88 : /* readonly attribute unsigned short code; */
89 : NS_IMETHODIMP nsDOMMediaError::GetCode(PRUint16 *aCode)
90 : {
91 : return NS_ERROR_NOT_IMPLEMENTED;
92 : }
93 :
94 : /* End of implementation class template. */
95 : #endif
96 :
97 :
98 : #endif /* __gen_nsIDOMMediaError_h__ */
|