1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/html/nsIDOMHTMLVideoElement.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMHTMLVideoElement_h__
6 : #define __gen_nsIDOMHTMLVideoElement_h__
7 :
8 :
9 : #ifndef __gen_nsIDOMHTMLMediaElement_h__
10 : #include "nsIDOMHTMLMediaElement.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: nsIDOMHTMLVideoElement */
19 : #define NS_IDOMHTMLVIDEOELEMENT_IID_STR "c70ff348-6ac9-4982-b8d2-81fbd2b4b880"
20 :
21 : #define NS_IDOMHTMLVIDEOELEMENT_IID \
22 : {0xc70ff348, 0x6ac9, 0x4982, \
23 : { 0xb8, 0xd2, 0x81, 0xfb, 0xd2, 0xb4, 0xb8, 0x80 }}
24 :
25 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMHTMLVideoElement : public nsIDOMHTMLMediaElement {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMHTMLVIDEOELEMENT_IID)
29 :
30 : /* attribute long width; */
31 : NS_SCRIPTABLE NS_IMETHOD GetWidth(PRInt32 *aWidth) = 0;
32 : NS_SCRIPTABLE NS_IMETHOD SetWidth(PRInt32 aWidth) = 0;
33 :
34 : /* attribute long height; */
35 : NS_SCRIPTABLE NS_IMETHOD GetHeight(PRInt32 *aHeight) = 0;
36 : NS_SCRIPTABLE NS_IMETHOD SetHeight(PRInt32 aHeight) = 0;
37 :
38 : /* readonly attribute unsigned long videoWidth; */
39 : NS_SCRIPTABLE NS_IMETHOD GetVideoWidth(PRUint32 *aVideoWidth) = 0;
40 :
41 : /* readonly attribute unsigned long videoHeight; */
42 : NS_SCRIPTABLE NS_IMETHOD GetVideoHeight(PRUint32 *aVideoHeight) = 0;
43 :
44 : /* attribute DOMString poster; */
45 : NS_SCRIPTABLE NS_IMETHOD GetPoster(nsAString & aPoster) = 0;
46 : NS_SCRIPTABLE NS_IMETHOD SetPoster(const nsAString & aPoster) = 0;
47 :
48 : /* readonly attribute unsigned long mozParsedFrames; */
49 : NS_SCRIPTABLE NS_IMETHOD GetMozParsedFrames(PRUint32 *aMozParsedFrames) = 0;
50 :
51 : /* readonly attribute unsigned long mozDecodedFrames; */
52 : NS_SCRIPTABLE NS_IMETHOD GetMozDecodedFrames(PRUint32 *aMozDecodedFrames) = 0;
53 :
54 : /* readonly attribute unsigned long mozPresentedFrames; */
55 : NS_SCRIPTABLE NS_IMETHOD GetMozPresentedFrames(PRUint32 *aMozPresentedFrames) = 0;
56 :
57 : /* readonly attribute unsigned long mozPaintedFrames; */
58 : NS_SCRIPTABLE NS_IMETHOD GetMozPaintedFrames(PRUint32 *aMozPaintedFrames) = 0;
59 :
60 : /* readonly attribute double mozFrameDelay; */
61 : NS_SCRIPTABLE NS_IMETHOD GetMozFrameDelay(double *aMozFrameDelay) = 0;
62 :
63 : };
64 :
65 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMHTMLVideoElement, NS_IDOMHTMLVIDEOELEMENT_IID)
66 :
67 : /* Use this macro when declaring classes that implement this interface. */
68 : #define NS_DECL_NSIDOMHTMLVIDEOELEMENT \
69 : NS_SCRIPTABLE NS_IMETHOD GetWidth(PRInt32 *aWidth); \
70 : NS_SCRIPTABLE NS_IMETHOD SetWidth(PRInt32 aWidth); \
71 : NS_SCRIPTABLE NS_IMETHOD GetHeight(PRInt32 *aHeight); \
72 : NS_SCRIPTABLE NS_IMETHOD SetHeight(PRInt32 aHeight); \
73 : NS_SCRIPTABLE NS_IMETHOD GetVideoWidth(PRUint32 *aVideoWidth); \
74 : NS_SCRIPTABLE NS_IMETHOD GetVideoHeight(PRUint32 *aVideoHeight); \
75 : NS_SCRIPTABLE NS_IMETHOD GetPoster(nsAString & aPoster); \
76 : NS_SCRIPTABLE NS_IMETHOD SetPoster(const nsAString & aPoster); \
77 : NS_SCRIPTABLE NS_IMETHOD GetMozParsedFrames(PRUint32 *aMozParsedFrames); \
78 : NS_SCRIPTABLE NS_IMETHOD GetMozDecodedFrames(PRUint32 *aMozDecodedFrames); \
79 : NS_SCRIPTABLE NS_IMETHOD GetMozPresentedFrames(PRUint32 *aMozPresentedFrames); \
80 : NS_SCRIPTABLE NS_IMETHOD GetMozPaintedFrames(PRUint32 *aMozPaintedFrames); \
81 : NS_SCRIPTABLE NS_IMETHOD GetMozFrameDelay(double *aMozFrameDelay);
82 :
83 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
84 : #define NS_FORWARD_NSIDOMHTMLVIDEOELEMENT(_to) \
85 : NS_SCRIPTABLE NS_IMETHOD GetWidth(PRInt32 *aWidth) { return _to GetWidth(aWidth); } \
86 : NS_SCRIPTABLE NS_IMETHOD SetWidth(PRInt32 aWidth) { return _to SetWidth(aWidth); } \
87 : NS_SCRIPTABLE NS_IMETHOD GetHeight(PRInt32 *aHeight) { return _to GetHeight(aHeight); } \
88 : NS_SCRIPTABLE NS_IMETHOD SetHeight(PRInt32 aHeight) { return _to SetHeight(aHeight); } \
89 : NS_SCRIPTABLE NS_IMETHOD GetVideoWidth(PRUint32 *aVideoWidth) { return _to GetVideoWidth(aVideoWidth); } \
90 : NS_SCRIPTABLE NS_IMETHOD GetVideoHeight(PRUint32 *aVideoHeight) { return _to GetVideoHeight(aVideoHeight); } \
91 : NS_SCRIPTABLE NS_IMETHOD GetPoster(nsAString & aPoster) { return _to GetPoster(aPoster); } \
92 : NS_SCRIPTABLE NS_IMETHOD SetPoster(const nsAString & aPoster) { return _to SetPoster(aPoster); } \
93 : NS_SCRIPTABLE NS_IMETHOD GetMozParsedFrames(PRUint32 *aMozParsedFrames) { return _to GetMozParsedFrames(aMozParsedFrames); } \
94 : NS_SCRIPTABLE NS_IMETHOD GetMozDecodedFrames(PRUint32 *aMozDecodedFrames) { return _to GetMozDecodedFrames(aMozDecodedFrames); } \
95 : NS_SCRIPTABLE NS_IMETHOD GetMozPresentedFrames(PRUint32 *aMozPresentedFrames) { return _to GetMozPresentedFrames(aMozPresentedFrames); } \
96 : NS_SCRIPTABLE NS_IMETHOD GetMozPaintedFrames(PRUint32 *aMozPaintedFrames) { return _to GetMozPaintedFrames(aMozPaintedFrames); } \
97 : NS_SCRIPTABLE NS_IMETHOD GetMozFrameDelay(double *aMozFrameDelay) { return _to GetMozFrameDelay(aMozFrameDelay); }
98 :
99 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
100 : #define NS_FORWARD_SAFE_NSIDOMHTMLVIDEOELEMENT(_to) \
101 : NS_SCRIPTABLE NS_IMETHOD GetWidth(PRInt32 *aWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWidth(aWidth); } \
102 : NS_SCRIPTABLE NS_IMETHOD SetWidth(PRInt32 aWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWidth(aWidth); } \
103 : NS_SCRIPTABLE NS_IMETHOD GetHeight(PRInt32 *aHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHeight(aHeight); } \
104 : NS_SCRIPTABLE NS_IMETHOD SetHeight(PRInt32 aHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHeight(aHeight); } \
105 : NS_SCRIPTABLE NS_IMETHOD GetVideoWidth(PRUint32 *aVideoWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVideoWidth(aVideoWidth); } \
106 : NS_SCRIPTABLE NS_IMETHOD GetVideoHeight(PRUint32 *aVideoHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVideoHeight(aVideoHeight); } \
107 : NS_SCRIPTABLE NS_IMETHOD GetPoster(nsAString & aPoster) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPoster(aPoster); } \
108 : NS_SCRIPTABLE NS_IMETHOD SetPoster(const nsAString & aPoster) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPoster(aPoster); } \
109 : NS_SCRIPTABLE NS_IMETHOD GetMozParsedFrames(PRUint32 *aMozParsedFrames) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozParsedFrames(aMozParsedFrames); } \
110 : NS_SCRIPTABLE NS_IMETHOD GetMozDecodedFrames(PRUint32 *aMozDecodedFrames) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozDecodedFrames(aMozDecodedFrames); } \
111 : NS_SCRIPTABLE NS_IMETHOD GetMozPresentedFrames(PRUint32 *aMozPresentedFrames) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozPresentedFrames(aMozPresentedFrames); } \
112 : NS_SCRIPTABLE NS_IMETHOD GetMozPaintedFrames(PRUint32 *aMozPaintedFrames) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozPaintedFrames(aMozPaintedFrames); } \
113 : NS_SCRIPTABLE NS_IMETHOD GetMozFrameDelay(double *aMozFrameDelay) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozFrameDelay(aMozFrameDelay); }
114 :
115 : #if 0
116 : /* Use the code below as a template for the implementation class for this interface. */
117 :
118 : /* Header file */
119 : class nsDOMHTMLVideoElement : public nsIDOMHTMLVideoElement
120 : {
121 : public:
122 : NS_DECL_ISUPPORTS
123 : NS_DECL_NSIDOMHTMLVIDEOELEMENT
124 :
125 : nsDOMHTMLVideoElement();
126 :
127 : private:
128 : ~nsDOMHTMLVideoElement();
129 :
130 : protected:
131 : /* additional members */
132 : };
133 :
134 : /* Implementation file */
135 : NS_IMPL_ISUPPORTS1(nsDOMHTMLVideoElement, nsIDOMHTMLVideoElement)
136 :
137 : nsDOMHTMLVideoElement::nsDOMHTMLVideoElement()
138 : {
139 : /* member initializers and constructor code */
140 : }
141 :
142 : nsDOMHTMLVideoElement::~nsDOMHTMLVideoElement()
143 : {
144 : /* destructor code */
145 : }
146 :
147 : /* attribute long width; */
148 : NS_IMETHODIMP nsDOMHTMLVideoElement::GetWidth(PRInt32 *aWidth)
149 : {
150 : return NS_ERROR_NOT_IMPLEMENTED;
151 : }
152 : NS_IMETHODIMP nsDOMHTMLVideoElement::SetWidth(PRInt32 aWidth)
153 : {
154 : return NS_ERROR_NOT_IMPLEMENTED;
155 : }
156 :
157 : /* attribute long height; */
158 : NS_IMETHODIMP nsDOMHTMLVideoElement::GetHeight(PRInt32 *aHeight)
159 : {
160 : return NS_ERROR_NOT_IMPLEMENTED;
161 : }
162 : NS_IMETHODIMP nsDOMHTMLVideoElement::SetHeight(PRInt32 aHeight)
163 : {
164 : return NS_ERROR_NOT_IMPLEMENTED;
165 : }
166 :
167 : /* readonly attribute unsigned long videoWidth; */
168 : NS_IMETHODIMP nsDOMHTMLVideoElement::GetVideoWidth(PRUint32 *aVideoWidth)
169 : {
170 : return NS_ERROR_NOT_IMPLEMENTED;
171 : }
172 :
173 : /* readonly attribute unsigned long videoHeight; */
174 : NS_IMETHODIMP nsDOMHTMLVideoElement::GetVideoHeight(PRUint32 *aVideoHeight)
175 : {
176 : return NS_ERROR_NOT_IMPLEMENTED;
177 : }
178 :
179 : /* attribute DOMString poster; */
180 : NS_IMETHODIMP nsDOMHTMLVideoElement::GetPoster(nsAString & aPoster)
181 : {
182 : return NS_ERROR_NOT_IMPLEMENTED;
183 : }
184 : NS_IMETHODIMP nsDOMHTMLVideoElement::SetPoster(const nsAString & aPoster)
185 : {
186 : return NS_ERROR_NOT_IMPLEMENTED;
187 : }
188 :
189 : /* readonly attribute unsigned long mozParsedFrames; */
190 : NS_IMETHODIMP nsDOMHTMLVideoElement::GetMozParsedFrames(PRUint32 *aMozParsedFrames)
191 : {
192 : return NS_ERROR_NOT_IMPLEMENTED;
193 : }
194 :
195 : /* readonly attribute unsigned long mozDecodedFrames; */
196 : NS_IMETHODIMP nsDOMHTMLVideoElement::GetMozDecodedFrames(PRUint32 *aMozDecodedFrames)
197 : {
198 : return NS_ERROR_NOT_IMPLEMENTED;
199 : }
200 :
201 : /* readonly attribute unsigned long mozPresentedFrames; */
202 : NS_IMETHODIMP nsDOMHTMLVideoElement::GetMozPresentedFrames(PRUint32 *aMozPresentedFrames)
203 : {
204 : return NS_ERROR_NOT_IMPLEMENTED;
205 : }
206 :
207 : /* readonly attribute unsigned long mozPaintedFrames; */
208 : NS_IMETHODIMP nsDOMHTMLVideoElement::GetMozPaintedFrames(PRUint32 *aMozPaintedFrames)
209 : {
210 : return NS_ERROR_NOT_IMPLEMENTED;
211 : }
212 :
213 : /* readonly attribute double mozFrameDelay; */
214 : NS_IMETHODIMP nsDOMHTMLVideoElement::GetMozFrameDelay(double *aMozFrameDelay)
215 : {
216 : return NS_ERROR_NOT_IMPLEMENTED;
217 : }
218 :
219 : /* End of implementation class template. */
220 : #endif
221 :
222 :
223 : #endif /* __gen_nsIDOMHTMLVideoElement_h__ */
|