1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/html/nsIDOMHTMLMediaElement.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMHTMLMediaElement_h__
6 : #define __gen_nsIDOMHTMLMediaElement_h__
7 :
8 :
9 : #ifndef __gen_nsIDOMHTMLElement_h__
10 : #include "nsIDOMHTMLElement.h"
11 : #endif
12 :
13 : #ifndef __gen_nsIDOMMediaError_h__
14 : #include "nsIDOMMediaError.h"
15 : #endif
16 :
17 : #ifndef __gen_nsIDOMTimeRanges_h__
18 : #include "nsIDOMTimeRanges.h"
19 : #endif
20 :
21 : /* For IDL files that don't want to include root IDL files. */
22 : #ifndef NS_NO_VTABLE
23 : #define NS_NO_VTABLE
24 : #endif
25 : #ifdef GetCurrentTime
26 : #undef GetCurrentTime
27 : #endif
28 :
29 : /* starting interface: nsIDOMHTMLMediaElement */
30 : #define NS_IDOMHTMLMEDIAELEMENT_IID_STR "13890f14-d2bc-465a-b5c6-b0f34e4b5e57"
31 :
32 : #define NS_IDOMHTMLMEDIAELEMENT_IID \
33 : {0x13890f14, 0xd2bc, 0x465a, \
34 : { 0xb5, 0xc6, 0xb0, 0xf3, 0x4e, 0x4b, 0x5e, 0x57 }}
35 :
36 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMHTMLMediaElement : public nsIDOMHTMLElement {
37 : public:
38 :
39 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMHTMLMEDIAELEMENT_IID)
40 :
41 : /* readonly attribute nsIDOMMediaError error; */
42 : NS_SCRIPTABLE NS_IMETHOD GetError(nsIDOMMediaError * *aError) = 0;
43 :
44 : /* attribute DOMString src; */
45 : NS_SCRIPTABLE NS_IMETHOD GetSrc(nsAString & aSrc) = 0;
46 : NS_SCRIPTABLE NS_IMETHOD SetSrc(const nsAString & aSrc) = 0;
47 :
48 : /* readonly attribute DOMString currentSrc; */
49 : NS_SCRIPTABLE NS_IMETHOD GetCurrentSrc(nsAString & aCurrentSrc) = 0;
50 :
51 : /* attribute DOMString crossorigin; */
52 : NS_SCRIPTABLE NS_IMETHOD GetCrossorigin(nsAString & aCrossorigin) = 0;
53 : NS_SCRIPTABLE NS_IMETHOD SetCrossorigin(const nsAString & aCrossorigin) = 0;
54 :
55 : enum {
56 : NETWORK_EMPTY = 0U,
57 : NETWORK_IDLE = 1U,
58 : NETWORK_LOADING = 2U,
59 : NETWORK_NO_SOURCE = 3U
60 : };
61 :
62 : /* readonly attribute unsigned short networkState; */
63 : NS_SCRIPTABLE NS_IMETHOD GetNetworkState(PRUint16 *aNetworkState) = 0;
64 :
65 : /* attribute DOMString preload; */
66 : NS_SCRIPTABLE NS_IMETHOD GetPreload(nsAString & aPreload) = 0;
67 : NS_SCRIPTABLE NS_IMETHOD SetPreload(const nsAString & aPreload) = 0;
68 :
69 : /* readonly attribute nsIDOMTimeRanges buffered; */
70 : NS_SCRIPTABLE NS_IMETHOD GetBuffered(nsIDOMTimeRanges * *aBuffered) = 0;
71 :
72 : /* void load (); */
73 : NS_SCRIPTABLE NS_IMETHOD Load(void) = 0;
74 :
75 : /* DOMString canPlayType (in DOMString type); */
76 : NS_SCRIPTABLE NS_IMETHOD CanPlayType(const nsAString & type, nsAString & _retval NS_OUTPARAM) = 0;
77 :
78 : enum {
79 : HAVE_NOTHING = 0U,
80 : HAVE_METADATA = 1U,
81 : HAVE_CURRENT_DATA = 2U,
82 : HAVE_FUTURE_DATA = 3U,
83 : HAVE_ENOUGH_DATA = 4U
84 : };
85 :
86 : /* readonly attribute unsigned short readyState; */
87 : NS_SCRIPTABLE NS_IMETHOD GetReadyState(PRUint16 *aReadyState) = 0;
88 :
89 : /* readonly attribute boolean seeking; */
90 : NS_SCRIPTABLE NS_IMETHOD GetSeeking(bool *aSeeking) = 0;
91 :
92 : /* attribute double currentTime; */
93 : NS_SCRIPTABLE NS_IMETHOD GetCurrentTime(double *aCurrentTime) = 0;
94 : NS_SCRIPTABLE NS_IMETHOD SetCurrentTime(double aCurrentTime) = 0;
95 :
96 : /* readonly attribute double initialTime; */
97 : NS_SCRIPTABLE NS_IMETHOD GetInitialTime(double *aInitialTime) = 0;
98 :
99 : /* readonly attribute double duration; */
100 : NS_SCRIPTABLE NS_IMETHOD GetDuration(double *aDuration) = 0;
101 :
102 : /* readonly attribute boolean paused; */
103 : NS_SCRIPTABLE NS_IMETHOD GetPaused(bool *aPaused) = 0;
104 :
105 : /* readonly attribute nsIDOMTimeRanges seekable; */
106 : NS_SCRIPTABLE NS_IMETHOD GetSeekable(nsIDOMTimeRanges * *aSeekable) = 0;
107 :
108 : /* readonly attribute boolean ended; */
109 : NS_SCRIPTABLE NS_IMETHOD GetEnded(bool *aEnded) = 0;
110 :
111 : /* readonly attribute boolean mozAutoplayEnabled; */
112 : NS_SCRIPTABLE NS_IMETHOD GetMozAutoplayEnabled(bool *aMozAutoplayEnabled) = 0;
113 :
114 : /* attribute boolean autoplay; */
115 : NS_SCRIPTABLE NS_IMETHOD GetAutoplay(bool *aAutoplay) = 0;
116 : NS_SCRIPTABLE NS_IMETHOD SetAutoplay(bool aAutoplay) = 0;
117 :
118 : /* attribute boolean loop; */
119 : NS_SCRIPTABLE NS_IMETHOD GetLoop(bool *aLoop) = 0;
120 : NS_SCRIPTABLE NS_IMETHOD SetLoop(bool aLoop) = 0;
121 :
122 : /* void play (); */
123 : NS_SCRIPTABLE NS_IMETHOD Play(void) = 0;
124 :
125 : /* void pause (); */
126 : NS_SCRIPTABLE NS_IMETHOD Pause(void) = 0;
127 :
128 : /* attribute boolean controls; */
129 : NS_SCRIPTABLE NS_IMETHOD GetControls(bool *aControls) = 0;
130 : NS_SCRIPTABLE NS_IMETHOD SetControls(bool aControls) = 0;
131 :
132 : /* attribute double volume; */
133 : NS_SCRIPTABLE NS_IMETHOD GetVolume(double *aVolume) = 0;
134 : NS_SCRIPTABLE NS_IMETHOD SetVolume(double aVolume) = 0;
135 :
136 : /* attribute boolean muted; */
137 : NS_SCRIPTABLE NS_IMETHOD GetMuted(bool *aMuted) = 0;
138 : NS_SCRIPTABLE NS_IMETHOD SetMuted(bool aMuted) = 0;
139 :
140 : /* attribute boolean defaultMuted; */
141 : NS_SCRIPTABLE NS_IMETHOD GetDefaultMuted(bool *aDefaultMuted) = 0;
142 : NS_SCRIPTABLE NS_IMETHOD SetDefaultMuted(bool aDefaultMuted) = 0;
143 :
144 : /* readonly attribute unsigned long mozChannels; */
145 : NS_SCRIPTABLE NS_IMETHOD GetMozChannels(PRUint32 *aMozChannels) = 0;
146 :
147 : /* readonly attribute unsigned long mozSampleRate; */
148 : NS_SCRIPTABLE NS_IMETHOD GetMozSampleRate(PRUint32 *aMozSampleRate) = 0;
149 :
150 : /* attribute unsigned long mozFrameBufferLength; */
151 : NS_SCRIPTABLE NS_IMETHOD GetMozFrameBufferLength(PRUint32 *aMozFrameBufferLength) = 0;
152 : NS_SCRIPTABLE NS_IMETHOD SetMozFrameBufferLength(PRUint32 aMozFrameBufferLength) = 0;
153 :
154 : /* void mozLoadFrom (in nsIDOMHTMLMediaElement other); */
155 : NS_SCRIPTABLE NS_IMETHOD MozLoadFrom(nsIDOMHTMLMediaElement *other) = 0;
156 :
157 : /* readonly attribute double mozFragmentEnd; */
158 : NS_SCRIPTABLE NS_IMETHOD GetMozFragmentEnd(double *aMozFragmentEnd) = 0;
159 :
160 : };
161 :
162 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMHTMLMediaElement, NS_IDOMHTMLMEDIAELEMENT_IID)
163 :
164 : /* Use this macro when declaring classes that implement this interface. */
165 : #define NS_DECL_NSIDOMHTMLMEDIAELEMENT \
166 : NS_SCRIPTABLE NS_IMETHOD GetError(nsIDOMMediaError * *aError); \
167 : NS_SCRIPTABLE NS_IMETHOD GetSrc(nsAString & aSrc); \
168 : NS_SCRIPTABLE NS_IMETHOD SetSrc(const nsAString & aSrc); \
169 : NS_SCRIPTABLE NS_IMETHOD GetCurrentSrc(nsAString & aCurrentSrc); \
170 : NS_SCRIPTABLE NS_IMETHOD GetCrossorigin(nsAString & aCrossorigin); \
171 : NS_SCRIPTABLE NS_IMETHOD SetCrossorigin(const nsAString & aCrossorigin); \
172 : NS_SCRIPTABLE NS_IMETHOD GetNetworkState(PRUint16 *aNetworkState); \
173 : NS_SCRIPTABLE NS_IMETHOD GetPreload(nsAString & aPreload); \
174 : NS_SCRIPTABLE NS_IMETHOD SetPreload(const nsAString & aPreload); \
175 : NS_SCRIPTABLE NS_IMETHOD GetBuffered(nsIDOMTimeRanges * *aBuffered); \
176 : NS_SCRIPTABLE NS_IMETHOD Load(void); \
177 : NS_SCRIPTABLE NS_IMETHOD CanPlayType(const nsAString & type, nsAString & _retval NS_OUTPARAM); \
178 : NS_SCRIPTABLE NS_IMETHOD GetReadyState(PRUint16 *aReadyState); \
179 : NS_SCRIPTABLE NS_IMETHOD GetSeeking(bool *aSeeking); \
180 : NS_SCRIPTABLE NS_IMETHOD GetCurrentTime(double *aCurrentTime); \
181 : NS_SCRIPTABLE NS_IMETHOD SetCurrentTime(double aCurrentTime); \
182 : NS_SCRIPTABLE NS_IMETHOD GetInitialTime(double *aInitialTime); \
183 : NS_SCRIPTABLE NS_IMETHOD GetDuration(double *aDuration); \
184 : NS_SCRIPTABLE NS_IMETHOD GetPaused(bool *aPaused); \
185 : NS_SCRIPTABLE NS_IMETHOD GetSeekable(nsIDOMTimeRanges * *aSeekable); \
186 : NS_SCRIPTABLE NS_IMETHOD GetEnded(bool *aEnded); \
187 : NS_SCRIPTABLE NS_IMETHOD GetMozAutoplayEnabled(bool *aMozAutoplayEnabled); \
188 : NS_SCRIPTABLE NS_IMETHOD GetAutoplay(bool *aAutoplay); \
189 : NS_SCRIPTABLE NS_IMETHOD SetAutoplay(bool aAutoplay); \
190 : NS_SCRIPTABLE NS_IMETHOD GetLoop(bool *aLoop); \
191 : NS_SCRIPTABLE NS_IMETHOD SetLoop(bool aLoop); \
192 : NS_SCRIPTABLE NS_IMETHOD Play(void); \
193 : NS_SCRIPTABLE NS_IMETHOD Pause(void); \
194 : NS_SCRIPTABLE NS_IMETHOD GetControls(bool *aControls); \
195 : NS_SCRIPTABLE NS_IMETHOD SetControls(bool aControls); \
196 : NS_SCRIPTABLE NS_IMETHOD GetVolume(double *aVolume); \
197 : NS_SCRIPTABLE NS_IMETHOD SetVolume(double aVolume); \
198 : NS_SCRIPTABLE NS_IMETHOD GetMuted(bool *aMuted); \
199 : NS_SCRIPTABLE NS_IMETHOD SetMuted(bool aMuted); \
200 : NS_SCRIPTABLE NS_IMETHOD GetDefaultMuted(bool *aDefaultMuted); \
201 : NS_SCRIPTABLE NS_IMETHOD SetDefaultMuted(bool aDefaultMuted); \
202 : NS_SCRIPTABLE NS_IMETHOD GetMozChannels(PRUint32 *aMozChannels); \
203 : NS_SCRIPTABLE NS_IMETHOD GetMozSampleRate(PRUint32 *aMozSampleRate); \
204 : NS_SCRIPTABLE NS_IMETHOD GetMozFrameBufferLength(PRUint32 *aMozFrameBufferLength); \
205 : NS_SCRIPTABLE NS_IMETHOD SetMozFrameBufferLength(PRUint32 aMozFrameBufferLength); \
206 : NS_SCRIPTABLE NS_IMETHOD MozLoadFrom(nsIDOMHTMLMediaElement *other); \
207 : NS_SCRIPTABLE NS_IMETHOD GetMozFragmentEnd(double *aMozFragmentEnd);
208 :
209 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
210 : #define NS_FORWARD_NSIDOMHTMLMEDIAELEMENT(_to) \
211 : NS_SCRIPTABLE NS_IMETHOD GetError(nsIDOMMediaError * *aError) { return _to GetError(aError); } \
212 : NS_SCRIPTABLE NS_IMETHOD GetSrc(nsAString & aSrc) { return _to GetSrc(aSrc); } \
213 : NS_SCRIPTABLE NS_IMETHOD SetSrc(const nsAString & aSrc) { return _to SetSrc(aSrc); } \
214 : NS_SCRIPTABLE NS_IMETHOD GetCurrentSrc(nsAString & aCurrentSrc) { return _to GetCurrentSrc(aCurrentSrc); } \
215 : NS_SCRIPTABLE NS_IMETHOD GetCrossorigin(nsAString & aCrossorigin) { return _to GetCrossorigin(aCrossorigin); } \
216 : NS_SCRIPTABLE NS_IMETHOD SetCrossorigin(const nsAString & aCrossorigin) { return _to SetCrossorigin(aCrossorigin); } \
217 : NS_SCRIPTABLE NS_IMETHOD GetNetworkState(PRUint16 *aNetworkState) { return _to GetNetworkState(aNetworkState); } \
218 : NS_SCRIPTABLE NS_IMETHOD GetPreload(nsAString & aPreload) { return _to GetPreload(aPreload); } \
219 : NS_SCRIPTABLE NS_IMETHOD SetPreload(const nsAString & aPreload) { return _to SetPreload(aPreload); } \
220 : NS_SCRIPTABLE NS_IMETHOD GetBuffered(nsIDOMTimeRanges * *aBuffered) { return _to GetBuffered(aBuffered); } \
221 : NS_SCRIPTABLE NS_IMETHOD Load(void) { return _to Load(); } \
222 : NS_SCRIPTABLE NS_IMETHOD CanPlayType(const nsAString & type, nsAString & _retval NS_OUTPARAM) { return _to CanPlayType(type, _retval); } \
223 : NS_SCRIPTABLE NS_IMETHOD GetReadyState(PRUint16 *aReadyState) { return _to GetReadyState(aReadyState); } \
224 : NS_SCRIPTABLE NS_IMETHOD GetSeeking(bool *aSeeking) { return _to GetSeeking(aSeeking); } \
225 : NS_SCRIPTABLE NS_IMETHOD GetCurrentTime(double *aCurrentTime) { return _to GetCurrentTime(aCurrentTime); } \
226 : NS_SCRIPTABLE NS_IMETHOD SetCurrentTime(double aCurrentTime) { return _to SetCurrentTime(aCurrentTime); } \
227 : NS_SCRIPTABLE NS_IMETHOD GetInitialTime(double *aInitialTime) { return _to GetInitialTime(aInitialTime); } \
228 : NS_SCRIPTABLE NS_IMETHOD GetDuration(double *aDuration) { return _to GetDuration(aDuration); } \
229 : NS_SCRIPTABLE NS_IMETHOD GetPaused(bool *aPaused) { return _to GetPaused(aPaused); } \
230 : NS_SCRIPTABLE NS_IMETHOD GetSeekable(nsIDOMTimeRanges * *aSeekable) { return _to GetSeekable(aSeekable); } \
231 : NS_SCRIPTABLE NS_IMETHOD GetEnded(bool *aEnded) { return _to GetEnded(aEnded); } \
232 : NS_SCRIPTABLE NS_IMETHOD GetMozAutoplayEnabled(bool *aMozAutoplayEnabled) { return _to GetMozAutoplayEnabled(aMozAutoplayEnabled); } \
233 : NS_SCRIPTABLE NS_IMETHOD GetAutoplay(bool *aAutoplay) { return _to GetAutoplay(aAutoplay); } \
234 : NS_SCRIPTABLE NS_IMETHOD SetAutoplay(bool aAutoplay) { return _to SetAutoplay(aAutoplay); } \
235 : NS_SCRIPTABLE NS_IMETHOD GetLoop(bool *aLoop) { return _to GetLoop(aLoop); } \
236 : NS_SCRIPTABLE NS_IMETHOD SetLoop(bool aLoop) { return _to SetLoop(aLoop); } \
237 : NS_SCRIPTABLE NS_IMETHOD Play(void) { return _to Play(); } \
238 : NS_SCRIPTABLE NS_IMETHOD Pause(void) { return _to Pause(); } \
239 : NS_SCRIPTABLE NS_IMETHOD GetControls(bool *aControls) { return _to GetControls(aControls); } \
240 : NS_SCRIPTABLE NS_IMETHOD SetControls(bool aControls) { return _to SetControls(aControls); } \
241 : NS_SCRIPTABLE NS_IMETHOD GetVolume(double *aVolume) { return _to GetVolume(aVolume); } \
242 : NS_SCRIPTABLE NS_IMETHOD SetVolume(double aVolume) { return _to SetVolume(aVolume); } \
243 : NS_SCRIPTABLE NS_IMETHOD GetMuted(bool *aMuted) { return _to GetMuted(aMuted); } \
244 : NS_SCRIPTABLE NS_IMETHOD SetMuted(bool aMuted) { return _to SetMuted(aMuted); } \
245 : NS_SCRIPTABLE NS_IMETHOD GetDefaultMuted(bool *aDefaultMuted) { return _to GetDefaultMuted(aDefaultMuted); } \
246 : NS_SCRIPTABLE NS_IMETHOD SetDefaultMuted(bool aDefaultMuted) { return _to SetDefaultMuted(aDefaultMuted); } \
247 : NS_SCRIPTABLE NS_IMETHOD GetMozChannels(PRUint32 *aMozChannels) { return _to GetMozChannels(aMozChannels); } \
248 : NS_SCRIPTABLE NS_IMETHOD GetMozSampleRate(PRUint32 *aMozSampleRate) { return _to GetMozSampleRate(aMozSampleRate); } \
249 : NS_SCRIPTABLE NS_IMETHOD GetMozFrameBufferLength(PRUint32 *aMozFrameBufferLength) { return _to GetMozFrameBufferLength(aMozFrameBufferLength); } \
250 : NS_SCRIPTABLE NS_IMETHOD SetMozFrameBufferLength(PRUint32 aMozFrameBufferLength) { return _to SetMozFrameBufferLength(aMozFrameBufferLength); } \
251 : NS_SCRIPTABLE NS_IMETHOD MozLoadFrom(nsIDOMHTMLMediaElement *other) { return _to MozLoadFrom(other); } \
252 : NS_SCRIPTABLE NS_IMETHOD GetMozFragmentEnd(double *aMozFragmentEnd) { return _to GetMozFragmentEnd(aMozFragmentEnd); }
253 :
254 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
255 : #define NS_FORWARD_SAFE_NSIDOMHTMLMEDIAELEMENT(_to) \
256 : NS_SCRIPTABLE NS_IMETHOD GetError(nsIDOMMediaError * *aError) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetError(aError); } \
257 : NS_SCRIPTABLE NS_IMETHOD GetSrc(nsAString & aSrc) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSrc(aSrc); } \
258 : NS_SCRIPTABLE NS_IMETHOD SetSrc(const nsAString & aSrc) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSrc(aSrc); } \
259 : NS_SCRIPTABLE NS_IMETHOD GetCurrentSrc(nsAString & aCurrentSrc) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentSrc(aCurrentSrc); } \
260 : NS_SCRIPTABLE NS_IMETHOD GetCrossorigin(nsAString & aCrossorigin) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCrossorigin(aCrossorigin); } \
261 : NS_SCRIPTABLE NS_IMETHOD SetCrossorigin(const nsAString & aCrossorigin) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCrossorigin(aCrossorigin); } \
262 : NS_SCRIPTABLE NS_IMETHOD GetNetworkState(PRUint16 *aNetworkState) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNetworkState(aNetworkState); } \
263 : NS_SCRIPTABLE NS_IMETHOD GetPreload(nsAString & aPreload) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPreload(aPreload); } \
264 : NS_SCRIPTABLE NS_IMETHOD SetPreload(const nsAString & aPreload) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPreload(aPreload); } \
265 : NS_SCRIPTABLE NS_IMETHOD GetBuffered(nsIDOMTimeRanges * *aBuffered) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBuffered(aBuffered); } \
266 : NS_SCRIPTABLE NS_IMETHOD Load(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Load(); } \
267 : NS_SCRIPTABLE NS_IMETHOD CanPlayType(const nsAString & type, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CanPlayType(type, _retval); } \
268 : NS_SCRIPTABLE NS_IMETHOD GetReadyState(PRUint16 *aReadyState) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReadyState(aReadyState); } \
269 : NS_SCRIPTABLE NS_IMETHOD GetSeeking(bool *aSeeking) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSeeking(aSeeking); } \
270 : NS_SCRIPTABLE NS_IMETHOD GetCurrentTime(double *aCurrentTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentTime(aCurrentTime); } \
271 : NS_SCRIPTABLE NS_IMETHOD SetCurrentTime(double aCurrentTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCurrentTime(aCurrentTime); } \
272 : NS_SCRIPTABLE NS_IMETHOD GetInitialTime(double *aInitialTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInitialTime(aInitialTime); } \
273 : NS_SCRIPTABLE NS_IMETHOD GetDuration(double *aDuration) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDuration(aDuration); } \
274 : NS_SCRIPTABLE NS_IMETHOD GetPaused(bool *aPaused) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPaused(aPaused); } \
275 : NS_SCRIPTABLE NS_IMETHOD GetSeekable(nsIDOMTimeRanges * *aSeekable) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSeekable(aSeekable); } \
276 : NS_SCRIPTABLE NS_IMETHOD GetEnded(bool *aEnded) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEnded(aEnded); } \
277 : NS_SCRIPTABLE NS_IMETHOD GetMozAutoplayEnabled(bool *aMozAutoplayEnabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozAutoplayEnabled(aMozAutoplayEnabled); } \
278 : NS_SCRIPTABLE NS_IMETHOD GetAutoplay(bool *aAutoplay) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAutoplay(aAutoplay); } \
279 : NS_SCRIPTABLE NS_IMETHOD SetAutoplay(bool aAutoplay) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAutoplay(aAutoplay); } \
280 : NS_SCRIPTABLE NS_IMETHOD GetLoop(bool *aLoop) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoop(aLoop); } \
281 : NS_SCRIPTABLE NS_IMETHOD SetLoop(bool aLoop) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLoop(aLoop); } \
282 : NS_SCRIPTABLE NS_IMETHOD Play(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Play(); } \
283 : NS_SCRIPTABLE NS_IMETHOD Pause(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Pause(); } \
284 : NS_SCRIPTABLE NS_IMETHOD GetControls(bool *aControls) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetControls(aControls); } \
285 : NS_SCRIPTABLE NS_IMETHOD SetControls(bool aControls) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetControls(aControls); } \
286 : NS_SCRIPTABLE NS_IMETHOD GetVolume(double *aVolume) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVolume(aVolume); } \
287 : NS_SCRIPTABLE NS_IMETHOD SetVolume(double aVolume) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetVolume(aVolume); } \
288 : NS_SCRIPTABLE NS_IMETHOD GetMuted(bool *aMuted) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMuted(aMuted); } \
289 : NS_SCRIPTABLE NS_IMETHOD SetMuted(bool aMuted) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMuted(aMuted); } \
290 : NS_SCRIPTABLE NS_IMETHOD GetDefaultMuted(bool *aDefaultMuted) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultMuted(aDefaultMuted); } \
291 : NS_SCRIPTABLE NS_IMETHOD SetDefaultMuted(bool aDefaultMuted) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDefaultMuted(aDefaultMuted); } \
292 : NS_SCRIPTABLE NS_IMETHOD GetMozChannels(PRUint32 *aMozChannels) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozChannels(aMozChannels); } \
293 : NS_SCRIPTABLE NS_IMETHOD GetMozSampleRate(PRUint32 *aMozSampleRate) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozSampleRate(aMozSampleRate); } \
294 : NS_SCRIPTABLE NS_IMETHOD GetMozFrameBufferLength(PRUint32 *aMozFrameBufferLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozFrameBufferLength(aMozFrameBufferLength); } \
295 : NS_SCRIPTABLE NS_IMETHOD SetMozFrameBufferLength(PRUint32 aMozFrameBufferLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMozFrameBufferLength(aMozFrameBufferLength); } \
296 : NS_SCRIPTABLE NS_IMETHOD MozLoadFrom(nsIDOMHTMLMediaElement *other) { return !_to ? NS_ERROR_NULL_POINTER : _to->MozLoadFrom(other); } \
297 : NS_SCRIPTABLE NS_IMETHOD GetMozFragmentEnd(double *aMozFragmentEnd) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozFragmentEnd(aMozFragmentEnd); }
298 :
299 : #if 0
300 : /* Use the code below as a template for the implementation class for this interface. */
301 :
302 : /* Header file */
303 : class nsDOMHTMLMediaElement : public nsIDOMHTMLMediaElement
304 : {
305 : public:
306 : NS_DECL_ISUPPORTS
307 : NS_DECL_NSIDOMHTMLMEDIAELEMENT
308 :
309 : nsDOMHTMLMediaElement();
310 :
311 : private:
312 : ~nsDOMHTMLMediaElement();
313 :
314 : protected:
315 : /* additional members */
316 : };
317 :
318 : /* Implementation file */
319 : NS_IMPL_ISUPPORTS1(nsDOMHTMLMediaElement, nsIDOMHTMLMediaElement)
320 :
321 : nsDOMHTMLMediaElement::nsDOMHTMLMediaElement()
322 : {
323 : /* member initializers and constructor code */
324 : }
325 :
326 : nsDOMHTMLMediaElement::~nsDOMHTMLMediaElement()
327 : {
328 : /* destructor code */
329 : }
330 :
331 : /* readonly attribute nsIDOMMediaError error; */
332 : NS_IMETHODIMP nsDOMHTMLMediaElement::GetError(nsIDOMMediaError * *aError)
333 : {
334 : return NS_ERROR_NOT_IMPLEMENTED;
335 : }
336 :
337 : /* attribute DOMString src; */
338 : NS_IMETHODIMP nsDOMHTMLMediaElement::GetSrc(nsAString & aSrc)
339 : {
340 : return NS_ERROR_NOT_IMPLEMENTED;
341 : }
342 : NS_IMETHODIMP nsDOMHTMLMediaElement::SetSrc(const nsAString & aSrc)
343 : {
344 : return NS_ERROR_NOT_IMPLEMENTED;
345 : }
346 :
347 : /* readonly attribute DOMString currentSrc; */
348 : NS_IMETHODIMP nsDOMHTMLMediaElement::GetCurrentSrc(nsAString & aCurrentSrc)
349 : {
350 : return NS_ERROR_NOT_IMPLEMENTED;
351 : }
352 :
353 : /* attribute DOMString crossorigin; */
354 : NS_IMETHODIMP nsDOMHTMLMediaElement::GetCrossorigin(nsAString & aCrossorigin)
355 : {
356 : return NS_ERROR_NOT_IMPLEMENTED;
357 : }
358 : NS_IMETHODIMP nsDOMHTMLMediaElement::SetCrossorigin(const nsAString & aCrossorigin)
359 : {
360 : return NS_ERROR_NOT_IMPLEMENTED;
361 : }
362 :
363 : /* readonly attribute unsigned short networkState; */
364 : NS_IMETHODIMP nsDOMHTMLMediaElement::GetNetworkState(PRUint16 *aNetworkState)
365 : {
366 : return NS_ERROR_NOT_IMPLEMENTED;
367 : }
368 :
369 : /* attribute DOMString preload; */
370 : NS_IMETHODIMP nsDOMHTMLMediaElement::GetPreload(nsAString & aPreload)
371 : {
372 : return NS_ERROR_NOT_IMPLEMENTED;
373 : }
374 : NS_IMETHODIMP nsDOMHTMLMediaElement::SetPreload(const nsAString & aPreload)
375 : {
376 : return NS_ERROR_NOT_IMPLEMENTED;
377 : }
378 :
379 : /* readonly attribute nsIDOMTimeRanges buffered; */
380 : NS_IMETHODIMP nsDOMHTMLMediaElement::GetBuffered(nsIDOMTimeRanges * *aBuffered)
381 : {
382 : return NS_ERROR_NOT_IMPLEMENTED;
383 : }
384 :
385 : /* void load (); */
386 : NS_IMETHODIMP nsDOMHTMLMediaElement::Load()
387 : {
388 : return NS_ERROR_NOT_IMPLEMENTED;
389 : }
390 :
391 : /* DOMString canPlayType (in DOMString type); */
392 : NS_IMETHODIMP nsDOMHTMLMediaElement::CanPlayType(const nsAString & type, nsAString & _retval NS_OUTPARAM)
393 : {
394 : return NS_ERROR_NOT_IMPLEMENTED;
395 : }
396 :
397 : /* readonly attribute unsigned short readyState; */
398 : NS_IMETHODIMP nsDOMHTMLMediaElement::GetReadyState(PRUint16 *aReadyState)
399 : {
400 : return NS_ERROR_NOT_IMPLEMENTED;
401 : }
402 :
403 : /* readonly attribute boolean seeking; */
404 : NS_IMETHODIMP nsDOMHTMLMediaElement::GetSeeking(bool *aSeeking)
405 : {
406 : return NS_ERROR_NOT_IMPLEMENTED;
407 : }
408 :
409 : /* attribute double currentTime; */
410 : NS_IMETHODIMP nsDOMHTMLMediaElement::GetCurrentTime(double *aCurrentTime)
411 : {
412 : return NS_ERROR_NOT_IMPLEMENTED;
413 : }
414 : NS_IMETHODIMP nsDOMHTMLMediaElement::SetCurrentTime(double aCurrentTime)
415 : {
416 : return NS_ERROR_NOT_IMPLEMENTED;
417 : }
418 :
419 : /* readonly attribute double initialTime; */
420 : NS_IMETHODIMP nsDOMHTMLMediaElement::GetInitialTime(double *aInitialTime)
421 : {
422 : return NS_ERROR_NOT_IMPLEMENTED;
423 : }
424 :
425 : /* readonly attribute double duration; */
426 : NS_IMETHODIMP nsDOMHTMLMediaElement::GetDuration(double *aDuration)
427 : {
428 : return NS_ERROR_NOT_IMPLEMENTED;
429 : }
430 :
431 : /* readonly attribute boolean paused; */
432 : NS_IMETHODIMP nsDOMHTMLMediaElement::GetPaused(bool *aPaused)
433 : {
434 : return NS_ERROR_NOT_IMPLEMENTED;
435 : }
436 :
437 : /* readonly attribute nsIDOMTimeRanges seekable; */
438 : NS_IMETHODIMP nsDOMHTMLMediaElement::GetSeekable(nsIDOMTimeRanges * *aSeekable)
439 : {
440 : return NS_ERROR_NOT_IMPLEMENTED;
441 : }
442 :
443 : /* readonly attribute boolean ended; */
444 : NS_IMETHODIMP nsDOMHTMLMediaElement::GetEnded(bool *aEnded)
445 : {
446 : return NS_ERROR_NOT_IMPLEMENTED;
447 : }
448 :
449 : /* readonly attribute boolean mozAutoplayEnabled; */
450 : NS_IMETHODIMP nsDOMHTMLMediaElement::GetMozAutoplayEnabled(bool *aMozAutoplayEnabled)
451 : {
452 : return NS_ERROR_NOT_IMPLEMENTED;
453 : }
454 :
455 : /* attribute boolean autoplay; */
456 : NS_IMETHODIMP nsDOMHTMLMediaElement::GetAutoplay(bool *aAutoplay)
457 : {
458 : return NS_ERROR_NOT_IMPLEMENTED;
459 : }
460 : NS_IMETHODIMP nsDOMHTMLMediaElement::SetAutoplay(bool aAutoplay)
461 : {
462 : return NS_ERROR_NOT_IMPLEMENTED;
463 : }
464 :
465 : /* attribute boolean loop; */
466 : NS_IMETHODIMP nsDOMHTMLMediaElement::GetLoop(bool *aLoop)
467 : {
468 : return NS_ERROR_NOT_IMPLEMENTED;
469 : }
470 : NS_IMETHODIMP nsDOMHTMLMediaElement::SetLoop(bool aLoop)
471 : {
472 : return NS_ERROR_NOT_IMPLEMENTED;
473 : }
474 :
475 : /* void play (); */
476 : NS_IMETHODIMP nsDOMHTMLMediaElement::Play()
477 : {
478 : return NS_ERROR_NOT_IMPLEMENTED;
479 : }
480 :
481 : /* void pause (); */
482 : NS_IMETHODIMP nsDOMHTMLMediaElement::Pause()
483 : {
484 : return NS_ERROR_NOT_IMPLEMENTED;
485 : }
486 :
487 : /* attribute boolean controls; */
488 : NS_IMETHODIMP nsDOMHTMLMediaElement::GetControls(bool *aControls)
489 : {
490 : return NS_ERROR_NOT_IMPLEMENTED;
491 : }
492 : NS_IMETHODIMP nsDOMHTMLMediaElement::SetControls(bool aControls)
493 : {
494 : return NS_ERROR_NOT_IMPLEMENTED;
495 : }
496 :
497 : /* attribute double volume; */
498 : NS_IMETHODIMP nsDOMHTMLMediaElement::GetVolume(double *aVolume)
499 : {
500 : return NS_ERROR_NOT_IMPLEMENTED;
501 : }
502 : NS_IMETHODIMP nsDOMHTMLMediaElement::SetVolume(double aVolume)
503 : {
504 : return NS_ERROR_NOT_IMPLEMENTED;
505 : }
506 :
507 : /* attribute boolean muted; */
508 : NS_IMETHODIMP nsDOMHTMLMediaElement::GetMuted(bool *aMuted)
509 : {
510 : return NS_ERROR_NOT_IMPLEMENTED;
511 : }
512 : NS_IMETHODIMP nsDOMHTMLMediaElement::SetMuted(bool aMuted)
513 : {
514 : return NS_ERROR_NOT_IMPLEMENTED;
515 : }
516 :
517 : /* attribute boolean defaultMuted; */
518 : NS_IMETHODIMP nsDOMHTMLMediaElement::GetDefaultMuted(bool *aDefaultMuted)
519 : {
520 : return NS_ERROR_NOT_IMPLEMENTED;
521 : }
522 : NS_IMETHODIMP nsDOMHTMLMediaElement::SetDefaultMuted(bool aDefaultMuted)
523 : {
524 : return NS_ERROR_NOT_IMPLEMENTED;
525 : }
526 :
527 : /* readonly attribute unsigned long mozChannels; */
528 : NS_IMETHODIMP nsDOMHTMLMediaElement::GetMozChannels(PRUint32 *aMozChannels)
529 : {
530 : return NS_ERROR_NOT_IMPLEMENTED;
531 : }
532 :
533 : /* readonly attribute unsigned long mozSampleRate; */
534 : NS_IMETHODIMP nsDOMHTMLMediaElement::GetMozSampleRate(PRUint32 *aMozSampleRate)
535 : {
536 : return NS_ERROR_NOT_IMPLEMENTED;
537 : }
538 :
539 : /* attribute unsigned long mozFrameBufferLength; */
540 : NS_IMETHODIMP nsDOMHTMLMediaElement::GetMozFrameBufferLength(PRUint32 *aMozFrameBufferLength)
541 : {
542 : return NS_ERROR_NOT_IMPLEMENTED;
543 : }
544 : NS_IMETHODIMP nsDOMHTMLMediaElement::SetMozFrameBufferLength(PRUint32 aMozFrameBufferLength)
545 : {
546 : return NS_ERROR_NOT_IMPLEMENTED;
547 : }
548 :
549 : /* void mozLoadFrom (in nsIDOMHTMLMediaElement other); */
550 : NS_IMETHODIMP nsDOMHTMLMediaElement::MozLoadFrom(nsIDOMHTMLMediaElement *other)
551 : {
552 : return NS_ERROR_NOT_IMPLEMENTED;
553 : }
554 :
555 : /* readonly attribute double mozFragmentEnd; */
556 : NS_IMETHODIMP nsDOMHTMLMediaElement::GetMozFragmentEnd(double *aMozFragmentEnd)
557 : {
558 : return NS_ERROR_NOT_IMPLEMENTED;
559 : }
560 :
561 : /* End of implementation class template. */
562 : #endif
563 :
564 :
565 : #endif /* __gen_nsIDOMHTMLMediaElement_h__ */
|