1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/js/xpconnect/idl/nsIJSContextStack.idl
3 : */
4 :
5 : #ifndef __gen_nsIJSContextStack_h__
6 : #define __gen_nsIJSContextStack_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.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: nsIJSContextStack */
19 : #define NS_IJSCONTEXTSTACK_IID_STR "c67d8270-3189-11d3-9885-006008962422"
20 :
21 : #define NS_IJSCONTEXTSTACK_IID \
22 : {0xc67d8270, 0x3189, 0x11d3, \
23 : { 0x98, 0x85, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
24 :
25 1404 : class NS_NO_VTABLE nsIJSContextStack : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IJSCONTEXTSTACK_IID)
29 :
30 : /* readonly attribute PRInt32 count; */
31 : NS_IMETHOD GetCount(PRInt32 *aCount) = 0;
32 :
33 : /* JSContext peek (); */
34 : NS_IMETHOD Peek(JSContext **_retval NS_OUTPARAM) = 0;
35 :
36 : /* JSContext pop (); */
37 : NS_IMETHOD Pop(JSContext **_retval NS_OUTPARAM) = 0;
38 :
39 : /* void push (in JSContext cx); */
40 : NS_IMETHOD Push(JSContext *cx) = 0;
41 :
42 : };
43 :
44 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIJSContextStack, NS_IJSCONTEXTSTACK_IID)
45 :
46 : /* Use this macro when declaring classes that implement this interface. */
47 : #define NS_DECL_NSIJSCONTEXTSTACK \
48 : NS_IMETHOD GetCount(PRInt32 *aCount); \
49 : NS_IMETHOD Peek(JSContext **_retval NS_OUTPARAM); \
50 : NS_IMETHOD Pop(JSContext **_retval NS_OUTPARAM); \
51 : NS_IMETHOD Push(JSContext *cx);
52 :
53 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
54 : #define NS_FORWARD_NSIJSCONTEXTSTACK(_to) \
55 : NS_IMETHOD GetCount(PRInt32 *aCount) { return _to GetCount(aCount); } \
56 : NS_IMETHOD Peek(JSContext **_retval NS_OUTPARAM) { return _to Peek(_retval); } \
57 : NS_IMETHOD Pop(JSContext **_retval NS_OUTPARAM) { return _to Pop(_retval); } \
58 : NS_IMETHOD Push(JSContext *cx) { return _to Push(cx); }
59 :
60 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
61 : #define NS_FORWARD_SAFE_NSIJSCONTEXTSTACK(_to) \
62 : NS_IMETHOD GetCount(PRInt32 *aCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCount(aCount); } \
63 : NS_IMETHOD Peek(JSContext **_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Peek(_retval); } \
64 : NS_IMETHOD Pop(JSContext **_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Pop(_retval); } \
65 : NS_IMETHOD Push(JSContext *cx) { return !_to ? NS_ERROR_NULL_POINTER : _to->Push(cx); }
66 :
67 : #if 0
68 : /* Use the code below as a template for the implementation class for this interface. */
69 :
70 : /* Header file */
71 : class nsJSContextStack : public nsIJSContextStack
72 : {
73 : public:
74 : NS_DECL_ISUPPORTS
75 : NS_DECL_NSIJSCONTEXTSTACK
76 :
77 : nsJSContextStack();
78 :
79 : private:
80 : ~nsJSContextStack();
81 :
82 : protected:
83 : /* additional members */
84 : };
85 :
86 : /* Implementation file */
87 : NS_IMPL_ISUPPORTS1(nsJSContextStack, nsIJSContextStack)
88 :
89 : nsJSContextStack::nsJSContextStack()
90 : {
91 : /* member initializers and constructor code */
92 : }
93 :
94 : nsJSContextStack::~nsJSContextStack()
95 : {
96 : /* destructor code */
97 : }
98 :
99 : /* readonly attribute PRInt32 count; */
100 : NS_IMETHODIMP nsJSContextStack::GetCount(PRInt32 *aCount)
101 : {
102 : return NS_ERROR_NOT_IMPLEMENTED;
103 : }
104 :
105 : /* JSContext peek (); */
106 : NS_IMETHODIMP nsJSContextStack::Peek(JSContext **_retval NS_OUTPARAM)
107 : {
108 : return NS_ERROR_NOT_IMPLEMENTED;
109 : }
110 :
111 : /* JSContext pop (); */
112 : NS_IMETHODIMP nsJSContextStack::Pop(JSContext **_retval NS_OUTPARAM)
113 : {
114 : return NS_ERROR_NOT_IMPLEMENTED;
115 : }
116 :
117 : /* void push (in JSContext cx); */
118 : NS_IMETHODIMP nsJSContextStack::Push(JSContext *cx)
119 : {
120 : return NS_ERROR_NOT_IMPLEMENTED;
121 : }
122 :
123 : /* End of implementation class template. */
124 : #endif
125 :
126 :
127 : /* starting interface: nsIJSContextStackIterator */
128 : #define NS_IJSCONTEXTSTACKITERATOR_IID_STR "c7e6b7aa-fc12-4ca7-b140-98c38b698961"
129 :
130 : #define NS_IJSCONTEXTSTACKITERATOR_IID \
131 : {0xc7e6b7aa, 0xfc12, 0x4ca7, \
132 : { 0xb1, 0x40, 0x98, 0xc3, 0x8b, 0x69, 0x89, 0x61 }}
133 :
134 0 : class NS_NO_VTABLE nsIJSContextStackIterator : public nsISupports {
135 : public:
136 :
137 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IJSCONTEXTSTACKITERATOR_IID)
138 :
139 : /* void reset (in nsIJSContextStack stack); */
140 : NS_IMETHOD Reset(nsIJSContextStack *stack) = 0;
141 :
142 : /* boolean done (); */
143 : NS_IMETHOD Done(bool *_retval NS_OUTPARAM) = 0;
144 :
145 : /* JSContext prev (); */
146 : NS_IMETHOD Prev(JSContext **_retval NS_OUTPARAM) = 0;
147 :
148 : };
149 :
150 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIJSContextStackIterator, NS_IJSCONTEXTSTACKITERATOR_IID)
151 :
152 : /* Use this macro when declaring classes that implement this interface. */
153 : #define NS_DECL_NSIJSCONTEXTSTACKITERATOR \
154 : NS_IMETHOD Reset(nsIJSContextStack *stack); \
155 : NS_IMETHOD Done(bool *_retval NS_OUTPARAM); \
156 : NS_IMETHOD Prev(JSContext **_retval NS_OUTPARAM);
157 :
158 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
159 : #define NS_FORWARD_NSIJSCONTEXTSTACKITERATOR(_to) \
160 : NS_IMETHOD Reset(nsIJSContextStack *stack) { return _to Reset(stack); } \
161 : NS_IMETHOD Done(bool *_retval NS_OUTPARAM) { return _to Done(_retval); } \
162 : NS_IMETHOD Prev(JSContext **_retval NS_OUTPARAM) { return _to Prev(_retval); }
163 :
164 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
165 : #define NS_FORWARD_SAFE_NSIJSCONTEXTSTACKITERATOR(_to) \
166 : NS_IMETHOD Reset(nsIJSContextStack *stack) { return !_to ? NS_ERROR_NULL_POINTER : _to->Reset(stack); } \
167 : NS_IMETHOD Done(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Done(_retval); } \
168 : NS_IMETHOD Prev(JSContext **_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Prev(_retval); }
169 :
170 : #if 0
171 : /* Use the code below as a template for the implementation class for this interface. */
172 :
173 : /* Header file */
174 : class nsJSContextStackIterator : public nsIJSContextStackIterator
175 : {
176 : public:
177 : NS_DECL_ISUPPORTS
178 : NS_DECL_NSIJSCONTEXTSTACKITERATOR
179 :
180 : nsJSContextStackIterator();
181 :
182 : private:
183 : ~nsJSContextStackIterator();
184 :
185 : protected:
186 : /* additional members */
187 : };
188 :
189 : /* Implementation file */
190 : NS_IMPL_ISUPPORTS1(nsJSContextStackIterator, nsIJSContextStackIterator)
191 :
192 : nsJSContextStackIterator::nsJSContextStackIterator()
193 : {
194 : /* member initializers and constructor code */
195 : }
196 :
197 : nsJSContextStackIterator::~nsJSContextStackIterator()
198 : {
199 : /* destructor code */
200 : }
201 :
202 : /* void reset (in nsIJSContextStack stack); */
203 : NS_IMETHODIMP nsJSContextStackIterator::Reset(nsIJSContextStack *stack)
204 : {
205 : return NS_ERROR_NOT_IMPLEMENTED;
206 : }
207 :
208 : /* boolean done (); */
209 : NS_IMETHODIMP nsJSContextStackIterator::Done(bool *_retval NS_OUTPARAM)
210 : {
211 : return NS_ERROR_NOT_IMPLEMENTED;
212 : }
213 :
214 : /* JSContext prev (); */
215 : NS_IMETHODIMP nsJSContextStackIterator::Prev(JSContext **_retval NS_OUTPARAM)
216 : {
217 : return NS_ERROR_NOT_IMPLEMENTED;
218 : }
219 :
220 : /* End of implementation class template. */
221 : #endif
222 :
223 :
224 : /* starting interface: nsIThreadJSContextStack */
225 : #define NS_ITHREADJSCONTEXTSTACK_IID_STR "b7056a2a-a02d-43b1-abb9-47f81f8bf258"
226 :
227 : #define NS_ITHREADJSCONTEXTSTACK_IID \
228 : {0xb7056a2a, 0xa02d, 0x43b1, \
229 : { 0xab, 0xb9, 0x47, 0xf8, 0x1f, 0x8b, 0xf2, 0x58 }}
230 :
231 1404 : class NS_NO_VTABLE nsIThreadJSContextStack : public nsIJSContextStack {
232 : public:
233 :
234 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITHREADJSCONTEXTSTACK_IID)
235 :
236 : /* readonly attribute JSContext safeJSContext; */
237 : NS_IMETHOD GetSafeJSContext(JSContext **aSafeJSContext) = 0;
238 :
239 : };
240 :
241 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIThreadJSContextStack, NS_ITHREADJSCONTEXTSTACK_IID)
242 :
243 : /* Use this macro when declaring classes that implement this interface. */
244 : #define NS_DECL_NSITHREADJSCONTEXTSTACK \
245 : NS_IMETHOD GetSafeJSContext(JSContext **aSafeJSContext);
246 :
247 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
248 : #define NS_FORWARD_NSITHREADJSCONTEXTSTACK(_to) \
249 : NS_IMETHOD GetSafeJSContext(JSContext **aSafeJSContext) { return _to GetSafeJSContext(aSafeJSContext); }
250 :
251 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
252 : #define NS_FORWARD_SAFE_NSITHREADJSCONTEXTSTACK(_to) \
253 : NS_IMETHOD GetSafeJSContext(JSContext **aSafeJSContext) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSafeJSContext(aSafeJSContext); }
254 :
255 : #if 0
256 : /* Use the code below as a template for the implementation class for this interface. */
257 :
258 : /* Header file */
259 : class nsThreadJSContextStack : public nsIThreadJSContextStack
260 : {
261 : public:
262 : NS_DECL_ISUPPORTS
263 : NS_DECL_NSITHREADJSCONTEXTSTACK
264 :
265 : nsThreadJSContextStack();
266 :
267 : private:
268 : ~nsThreadJSContextStack();
269 :
270 : protected:
271 : /* additional members */
272 : };
273 :
274 : /* Implementation file */
275 : NS_IMPL_ISUPPORTS1(nsThreadJSContextStack, nsIThreadJSContextStack)
276 :
277 : nsThreadJSContextStack::nsThreadJSContextStack()
278 : {
279 : /* member initializers and constructor code */
280 : }
281 :
282 : nsThreadJSContextStack::~nsThreadJSContextStack()
283 : {
284 : /* destructor code */
285 : }
286 :
287 : /* readonly attribute JSContext safeJSContext; */
288 : NS_IMETHODIMP nsThreadJSContextStack::GetSafeJSContext(JSContext **aSafeJSContext)
289 : {
290 : return NS_ERROR_NOT_IMPLEMENTED;
291 : }
292 :
293 : /* End of implementation class template. */
294 : #endif
295 :
296 :
297 : #endif /* __gen_nsIJSContextStack_h__ */
|