1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/html/nsIDOMHTMLAudioElement.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMHTMLAudioElement_h__
6 : #define __gen_nsIDOMHTMLAudioElement_h__
7 :
8 :
9 : #ifndef __gen_nsIDOMHTMLMediaElement_h__
10 : #include "nsIDOMHTMLMediaElement.h"
11 : #endif
12 :
13 : #include "jspubtd.h"
14 :
15 : /* For IDL files that don't want to include root IDL files. */
16 : #ifndef NS_NO_VTABLE
17 : #define NS_NO_VTABLE
18 : #endif
19 : #include "jsapi.h"
20 :
21 : /* starting interface: nsIDOMHTMLAudioElement */
22 : #define NS_IDOMHTMLAUDIOELEMENT_IID_STR "0969143a-fe20-4924-a950-55deb4d0d1ab"
23 :
24 : #define NS_IDOMHTMLAUDIOELEMENT_IID \
25 : {0x0969143a, 0xfe20, 0x4924, \
26 : { 0xa9, 0x50, 0x55, 0xde, 0xb4, 0xd0, 0xd1, 0xab }}
27 :
28 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMHTMLAudioElement : public nsIDOMHTMLMediaElement {
29 : public:
30 :
31 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMHTMLAUDIOELEMENT_IID)
32 :
33 : /* void mozSetup (in PRUint32 channels, in PRUint32 rate); */
34 : NS_SCRIPTABLE NS_IMETHOD MozSetup(PRUint32 channels, PRUint32 rate) = 0;
35 :
36 : /* [implicit_jscontext] unsigned long mozWriteAudio (in jsval data); */
37 : NS_SCRIPTABLE NS_IMETHOD MozWriteAudio(const JS::Value & data, JSContext* cx, PRUint32 *_retval NS_OUTPARAM) = 0;
38 :
39 : /* unsigned long long mozCurrentSampleOffset (); */
40 : NS_SCRIPTABLE NS_IMETHOD MozCurrentSampleOffset(PRUint64 *_retval NS_OUTPARAM) = 0;
41 :
42 : };
43 :
44 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMHTMLAudioElement, NS_IDOMHTMLAUDIOELEMENT_IID)
45 :
46 : /* Use this macro when declaring classes that implement this interface. */
47 : #define NS_DECL_NSIDOMHTMLAUDIOELEMENT \
48 : NS_SCRIPTABLE NS_IMETHOD MozSetup(PRUint32 channels, PRUint32 rate); \
49 : NS_SCRIPTABLE NS_IMETHOD MozWriteAudio(const JS::Value & data, JSContext* cx, PRUint32 *_retval NS_OUTPARAM); \
50 : NS_SCRIPTABLE NS_IMETHOD MozCurrentSampleOffset(PRUint64 *_retval NS_OUTPARAM);
51 :
52 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
53 : #define NS_FORWARD_NSIDOMHTMLAUDIOELEMENT(_to) \
54 : NS_SCRIPTABLE NS_IMETHOD MozSetup(PRUint32 channels, PRUint32 rate) { return _to MozSetup(channels, rate); } \
55 : NS_SCRIPTABLE NS_IMETHOD MozWriteAudio(const JS::Value & data, JSContext* cx, PRUint32 *_retval NS_OUTPARAM) { return _to MozWriteAudio(data, cx, _retval); } \
56 : NS_SCRIPTABLE NS_IMETHOD MozCurrentSampleOffset(PRUint64 *_retval NS_OUTPARAM) { return _to MozCurrentSampleOffset(_retval); }
57 :
58 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
59 : #define NS_FORWARD_SAFE_NSIDOMHTMLAUDIOELEMENT(_to) \
60 : NS_SCRIPTABLE NS_IMETHOD MozSetup(PRUint32 channels, PRUint32 rate) { return !_to ? NS_ERROR_NULL_POINTER : _to->MozSetup(channels, rate); } \
61 : NS_SCRIPTABLE NS_IMETHOD MozWriteAudio(const JS::Value & data, JSContext* cx, PRUint32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MozWriteAudio(data, cx, _retval); } \
62 : NS_SCRIPTABLE NS_IMETHOD MozCurrentSampleOffset(PRUint64 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MozCurrentSampleOffset(_retval); }
63 :
64 : #if 0
65 : /* Use the code below as a template for the implementation class for this interface. */
66 :
67 : /* Header file */
68 : class nsDOMHTMLAudioElement : public nsIDOMHTMLAudioElement
69 : {
70 : public:
71 : NS_DECL_ISUPPORTS
72 : NS_DECL_NSIDOMHTMLAUDIOELEMENT
73 :
74 : nsDOMHTMLAudioElement();
75 :
76 : private:
77 : ~nsDOMHTMLAudioElement();
78 :
79 : protected:
80 : /* additional members */
81 : };
82 :
83 : /* Implementation file */
84 : NS_IMPL_ISUPPORTS1(nsDOMHTMLAudioElement, nsIDOMHTMLAudioElement)
85 :
86 : nsDOMHTMLAudioElement::nsDOMHTMLAudioElement()
87 : {
88 : /* member initializers and constructor code */
89 : }
90 :
91 : nsDOMHTMLAudioElement::~nsDOMHTMLAudioElement()
92 : {
93 : /* destructor code */
94 : }
95 :
96 : /* void mozSetup (in PRUint32 channels, in PRUint32 rate); */
97 : NS_IMETHODIMP nsDOMHTMLAudioElement::MozSetup(PRUint32 channels, PRUint32 rate)
98 : {
99 : return NS_ERROR_NOT_IMPLEMENTED;
100 : }
101 :
102 : /* [implicit_jscontext] unsigned long mozWriteAudio (in jsval data); */
103 : NS_IMETHODIMP nsDOMHTMLAudioElement::MozWriteAudio(const JS::Value & data, JSContext* cx, PRUint32 *_retval NS_OUTPARAM)
104 : {
105 : return NS_ERROR_NOT_IMPLEMENTED;
106 : }
107 :
108 : /* unsigned long long mozCurrentSampleOffset (); */
109 : NS_IMETHODIMP nsDOMHTMLAudioElement::MozCurrentSampleOffset(PRUint64 *_retval NS_OUTPARAM)
110 : {
111 : return NS_ERROR_NOT_IMPLEMENTED;
112 : }
113 :
114 : /* End of implementation class template. */
115 : #endif
116 :
117 :
118 : #endif /* __gen_nsIDOMHTMLAudioElement_h__ */
|