1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/js/xpconnect/idl/nsIXPConnect.idl
3 : */
4 :
5 : #ifndef __gen_nsIXPConnect_h__
6 : #define __gen_nsIXPConnect_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_nsIClassInfo_h__
14 : #include "nsIClassInfo.h"
15 : #endif
16 :
17 : #ifndef __gen_xpccomponents_h__
18 : #include "xpccomponents.h"
19 : #endif
20 :
21 : #ifndef __gen_xpcjsid_h__
22 : #include "xpcjsid.h"
23 : #endif
24 :
25 : #ifndef __gen_xpcexception_h__
26 : #include "xpcexception.h"
27 : #endif
28 :
29 : #ifndef __gen_nsIInterfaceInfo_h__
30 : #include "nsIInterfaceInfo.h"
31 : #endif
32 :
33 : #ifndef __gen_nsIInterfaceInfoManager_h__
34 : #include "nsIInterfaceInfoManager.h"
35 : #endif
36 :
37 : #ifndef __gen_nsIExceptionService_h__
38 : #include "nsIExceptionService.h"
39 : #endif
40 :
41 : #ifndef __gen_nsIVariant_h__
42 : #include "nsIVariant.h"
43 : #endif
44 :
45 : #include "jspubtd.h"
46 :
47 : /* For IDL files that don't want to include root IDL files. */
48 : #ifndef NS_NO_VTABLE
49 : #define NS_NO_VTABLE
50 : #endif
51 : #include "jspubtd.h"
52 : #include "xptinfo.h"
53 : #include "nsAXPCNativeCallContext.h"
54 : class nsWrapperCache;
55 : /***************************************************************************/
56 : #define GENERATE_XPC_FAILURE(x) \
57 : (NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_XPCONNECT,x))
58 : #define NS_ERROR_XPC_NOT_ENOUGH_ARGS GENERATE_XPC_FAILURE( 1)
59 : #define NS_ERROR_XPC_NEED_OUT_OBJECT GENERATE_XPC_FAILURE( 2)
60 : #define NS_ERROR_XPC_CANT_SET_OUT_VAL GENERATE_XPC_FAILURE( 3)
61 : #define NS_ERROR_XPC_NATIVE_RETURNED_FAILURE GENERATE_XPC_FAILURE( 4)
62 : #define NS_ERROR_XPC_CANT_GET_INTERFACE_INFO GENERATE_XPC_FAILURE( 5)
63 : #define NS_ERROR_XPC_CANT_GET_PARAM_IFACE_INFO GENERATE_XPC_FAILURE( 6)
64 : #define NS_ERROR_XPC_CANT_GET_METHOD_INFO GENERATE_XPC_FAILURE( 7)
65 : #define NS_ERROR_XPC_UNEXPECTED GENERATE_XPC_FAILURE( 8)
66 : #define NS_ERROR_XPC_BAD_CONVERT_JS GENERATE_XPC_FAILURE( 9)
67 : #define NS_ERROR_XPC_BAD_CONVERT_NATIVE GENERATE_XPC_FAILURE(10)
68 : #define NS_ERROR_XPC_BAD_CONVERT_JS_NULL_REF GENERATE_XPC_FAILURE(11)
69 : #define NS_ERROR_XPC_BAD_OP_ON_WN_PROTO GENERATE_XPC_FAILURE(12)
70 : #define NS_ERROR_XPC_CANT_CONVERT_WN_TO_FUN GENERATE_XPC_FAILURE(13)
71 : #define NS_ERROR_XPC_CANT_DEFINE_PROP_ON_WN GENERATE_XPC_FAILURE(14)
72 : #define NS_ERROR_XPC_CANT_WATCH_WN_STATIC GENERATE_XPC_FAILURE(15)
73 : #define NS_ERROR_XPC_CANT_EXPORT_WN_STATIC GENERATE_XPC_FAILURE(16)
74 : #define NS_ERROR_XPC_SCRIPTABLE_CALL_FAILED GENERATE_XPC_FAILURE(17)
75 : #define NS_ERROR_XPC_SCRIPTABLE_CTOR_FAILED GENERATE_XPC_FAILURE(18)
76 : #define NS_ERROR_XPC_CANT_CALL_WO_SCRIPTABLE GENERATE_XPC_FAILURE(19)
77 : #define NS_ERROR_XPC_CANT_CTOR_WO_SCRIPTABLE GENERATE_XPC_FAILURE(20)
78 : #define NS_ERROR_XPC_CI_RETURNED_FAILURE GENERATE_XPC_FAILURE(21)
79 : #define NS_ERROR_XPC_GS_RETURNED_FAILURE GENERATE_XPC_FAILURE(22)
80 : #define NS_ERROR_XPC_BAD_CID GENERATE_XPC_FAILURE(23)
81 : #define NS_ERROR_XPC_BAD_IID GENERATE_XPC_FAILURE(24)
82 : #define NS_ERROR_XPC_CANT_CREATE_WN GENERATE_XPC_FAILURE(25)
83 : #define NS_ERROR_XPC_JS_THREW_EXCEPTION GENERATE_XPC_FAILURE(26)
84 : #define NS_ERROR_XPC_JS_THREW_NATIVE_OBJECT GENERATE_XPC_FAILURE(27)
85 : #define NS_ERROR_XPC_JS_THREW_JS_OBJECT GENERATE_XPC_FAILURE(28)
86 : #define NS_ERROR_XPC_JS_THREW_NULL GENERATE_XPC_FAILURE(29)
87 : #define NS_ERROR_XPC_JS_THREW_STRING GENERATE_XPC_FAILURE(30)
88 : #define NS_ERROR_XPC_JS_THREW_NUMBER GENERATE_XPC_FAILURE(31)
89 : #define NS_ERROR_XPC_JAVASCRIPT_ERROR GENERATE_XPC_FAILURE(32)
90 : #define NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS GENERATE_XPC_FAILURE(33)
91 : #define NS_ERROR_XPC_CANT_CONVERT_PRIMITIVE_TO_ARRAY GENERATE_XPC_FAILURE(34)
92 : #define NS_ERROR_XPC_CANT_CONVERT_OBJECT_TO_ARRAY GENERATE_XPC_FAILURE(35)
93 : #define NS_ERROR_XPC_NOT_ENOUGH_ELEMENTS_IN_ARRAY GENERATE_XPC_FAILURE(36)
94 : #define NS_ERROR_XPC_CANT_GET_ARRAY_INFO GENERATE_XPC_FAILURE(37)
95 : #define NS_ERROR_XPC_NOT_ENOUGH_CHARS_IN_STRING GENERATE_XPC_FAILURE(38)
96 : #define NS_ERROR_XPC_SECURITY_MANAGER_VETO GENERATE_XPC_FAILURE(39)
97 : #define NS_ERROR_XPC_INTERFACE_NOT_SCRIPTABLE GENERATE_XPC_FAILURE(40)
98 : #define NS_ERROR_XPC_INTERFACE_NOT_FROM_NSISUPPORTS GENERATE_XPC_FAILURE(41)
99 : #define NS_ERROR_XPC_CANT_GET_JSOBJECT_OF_DOM_OBJECT GENERATE_XPC_FAILURE(42)
100 : #define NS_ERROR_XPC_CANT_SET_READ_ONLY_CONSTANT GENERATE_XPC_FAILURE(43)
101 : #define NS_ERROR_XPC_CANT_SET_READ_ONLY_ATTRIBUTE GENERATE_XPC_FAILURE(44)
102 : #define NS_ERROR_XPC_CANT_SET_READ_ONLY_METHOD GENERATE_XPC_FAILURE(45)
103 : #define NS_ERROR_XPC_CANT_ADD_PROP_TO_WRAPPED_NATIVE GENERATE_XPC_FAILURE(46)
104 : #define NS_ERROR_XPC_CALL_TO_SCRIPTABLE_FAILED GENERATE_XPC_FAILURE(47)
105 : #define NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED GENERATE_XPC_FAILURE(48)
106 : #define NS_ERROR_XPC_BAD_ID_STRING GENERATE_XPC_FAILURE(49)
107 : #define NS_ERROR_XPC_BAD_INITIALIZER_NAME GENERATE_XPC_FAILURE(50)
108 : #define NS_ERROR_XPC_HAS_BEEN_SHUTDOWN GENERATE_XPC_FAILURE(51)
109 : #define NS_ERROR_XPC_CANT_MODIFY_PROP_ON_WN GENERATE_XPC_FAILURE(52)
110 : #define NS_ERROR_XPC_BAD_CONVERT_JS_ZERO_ISNOT_NULL GENERATE_XPC_FAILURE(53)
111 : // any new errors here should have an associated entry added in xpc.msg
112 : /***************************************************************************/
113 : class nsIXPCScriptable; /* forward declaration */
114 :
115 : class nsIXPConnect; /* forward declaration */
116 :
117 : class nsIXPConnectWrappedNative; /* forward declaration */
118 :
119 : class nsIInterfaceInfo; /* forward declaration */
120 :
121 : class nsIXPCSecurityManager; /* forward declaration */
122 :
123 : class nsIPrincipal; /* forward declaration */
124 :
125 : class nsCycleCollectionTraversalCallback;
126 : class nsScriptObjectTracer;
127 :
128 : /* starting interface: nsIXPConnectJSObjectHolder */
129 : #define NS_IXPCONNECTJSOBJECTHOLDER_IID_STR "8916a320-d118-11d3-8f3a-0010a4e73d9a"
130 :
131 : #define NS_IXPCONNECTJSOBJECTHOLDER_IID \
132 : {0x8916a320, 0xd118, 0x11d3, \
133 : { 0x8f, 0x3a, 0x00, 0x10, 0xa4, 0xe7, 0x3d, 0x9a }}
134 :
135 1363103 : class NS_NO_VTABLE nsIXPConnectJSObjectHolder : public nsISupports {
136 : public:
137 :
138 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXPCONNECTJSOBJECTHOLDER_IID)
139 :
140 : /* readonly attribute JSObjectPtr JSObject; */
141 : NS_IMETHOD GetJSObject(JSObject **aJSObject) = 0;
142 :
143 : };
144 :
145 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIXPConnectJSObjectHolder, NS_IXPCONNECTJSOBJECTHOLDER_IID)
146 :
147 : /* Use this macro when declaring classes that implement this interface. */
148 : #define NS_DECL_NSIXPCONNECTJSOBJECTHOLDER \
149 : NS_IMETHOD GetJSObject(JSObject **aJSObject);
150 :
151 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
152 : #define NS_FORWARD_NSIXPCONNECTJSOBJECTHOLDER(_to) \
153 : NS_IMETHOD GetJSObject(JSObject **aJSObject) { return _to GetJSObject(aJSObject); }
154 :
155 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
156 : #define NS_FORWARD_SAFE_NSIXPCONNECTJSOBJECTHOLDER(_to) \
157 : NS_IMETHOD GetJSObject(JSObject **aJSObject) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetJSObject(aJSObject); }
158 :
159 : #if 0
160 : /* Use the code below as a template for the implementation class for this interface. */
161 :
162 : /* Header file */
163 : class nsXPConnectJSObjectHolder : public nsIXPConnectJSObjectHolder
164 : {
165 : public:
166 : NS_DECL_ISUPPORTS
167 : NS_DECL_NSIXPCONNECTJSOBJECTHOLDER
168 :
169 : nsXPConnectJSObjectHolder();
170 :
171 : private:
172 : ~nsXPConnectJSObjectHolder();
173 :
174 : protected:
175 : /* additional members */
176 : };
177 :
178 : /* Implementation file */
179 : NS_IMPL_ISUPPORTS1(nsXPConnectJSObjectHolder, nsIXPConnectJSObjectHolder)
180 :
181 : nsXPConnectJSObjectHolder::nsXPConnectJSObjectHolder()
182 : {
183 : /* member initializers and constructor code */
184 : }
185 :
186 : nsXPConnectJSObjectHolder::~nsXPConnectJSObjectHolder()
187 : {
188 : /* destructor code */
189 : }
190 :
191 : /* readonly attribute JSObjectPtr JSObject; */
192 : NS_IMETHODIMP nsXPConnectJSObjectHolder::GetJSObject(JSObject **aJSObject)
193 : {
194 : return NS_ERROR_NOT_IMPLEMENTED;
195 : }
196 :
197 : /* End of implementation class template. */
198 : #endif
199 :
200 :
201 : /* starting interface: nsIXPConnectWrappedNative */
202 : #define NS_IXPCONNECTWRAPPEDNATIVE_IID_STR "f819a95a-6ab5-4a02-bda6-32861e859581"
203 :
204 : #define NS_IXPCONNECTWRAPPEDNATIVE_IID \
205 : {0xf819a95a, 0x6ab5, 0x4a02, \
206 : { 0xbd, 0xa6, 0x32, 0x86, 0x1e, 0x85, 0x95, 0x81 }}
207 :
208 1256303 : class nsIXPConnectWrappedNative : public nsIXPConnectJSObjectHolder {
209 : public:
210 :
211 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXPCONNECTWRAPPEDNATIVE_IID)
212 :
213 : /* readonly attribute nsISupports Native; */
214 : NS_IMETHOD GetNative(nsISupports * *aNative) = 0;
215 :
216 : /* readonly attribute JSObjectPtr JSObjectPrototype; */
217 : NS_IMETHOD GetJSObjectPrototype(JSObject **aJSObjectPrototype) = 0;
218 :
219 : /* readonly attribute nsIXPConnect XPConnect; */
220 : NS_IMETHOD GetXPConnect(nsIXPConnect * *aXPConnect) = 0;
221 :
222 : /* nsIInterfaceInfo FindInterfaceWithMember (in jsid nameID); */
223 : NS_IMETHOD FindInterfaceWithMember(jsid nameID, nsIInterfaceInfo * *_retval NS_OUTPARAM) = 0;
224 :
225 : /* nsIInterfaceInfo FindInterfaceWithName (in jsid nameID); */
226 : NS_IMETHOD FindInterfaceWithName(jsid nameID, nsIInterfaceInfo * *_retval NS_OUTPARAM) = 0;
227 :
228 : /* void debugDump (in short depth); */
229 : NS_IMETHOD DebugDump(PRInt16 depth) = 0;
230 :
231 : /* void finishInitForWrappedGlobal (); */
232 : NS_IMETHOD FinishInitForWrappedGlobal(void) = 0;
233 :
234 : /* voidPtrPtr GetSecurityInfoAddress (); */
235 : NS_IMETHOD GetSecurityInfoAddress(void* **_retval NS_OUTPARAM) = 0;
236 :
237 : /**
238 : * Faster access to the native object from C++. Will never return null.
239 : */
240 2158352 : nsISupports* Native() const { return mIdentity; }
241 : protected:
242 : nsISupports *mIdentity;
243 : public:
244 : };
245 :
246 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIXPConnectWrappedNative, NS_IXPCONNECTWRAPPEDNATIVE_IID)
247 :
248 : /* Use this macro when declaring classes that implement this interface. */
249 : #define NS_DECL_NSIXPCONNECTWRAPPEDNATIVE \
250 : NS_IMETHOD GetNative(nsISupports * *aNative); \
251 : NS_IMETHOD GetJSObjectPrototype(JSObject **aJSObjectPrototype); \
252 : NS_IMETHOD GetXPConnect(nsIXPConnect * *aXPConnect); \
253 : NS_IMETHOD FindInterfaceWithMember(jsid nameID, nsIInterfaceInfo * *_retval NS_OUTPARAM); \
254 : NS_IMETHOD FindInterfaceWithName(jsid nameID, nsIInterfaceInfo * *_retval NS_OUTPARAM); \
255 : NS_IMETHOD DebugDump(PRInt16 depth); \
256 : NS_IMETHOD FinishInitForWrappedGlobal(void); \
257 : NS_IMETHOD GetSecurityInfoAddress(void* **_retval NS_OUTPARAM); \
258 :
259 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
260 : #define NS_FORWARD_NSIXPCONNECTWRAPPEDNATIVE(_to) \
261 : NS_IMETHOD GetNative(nsISupports * *aNative) { return _to GetNative(aNative); } \
262 : NS_IMETHOD GetJSObjectPrototype(JSObject **aJSObjectPrototype) { return _to GetJSObjectPrototype(aJSObjectPrototype); } \
263 : NS_IMETHOD GetXPConnect(nsIXPConnect * *aXPConnect) { return _to GetXPConnect(aXPConnect); } \
264 : NS_IMETHOD FindInterfaceWithMember(jsid nameID, nsIInterfaceInfo * *_retval NS_OUTPARAM) { return _to FindInterfaceWithMember(nameID, _retval); } \
265 : NS_IMETHOD FindInterfaceWithName(jsid nameID, nsIInterfaceInfo * *_retval NS_OUTPARAM) { return _to FindInterfaceWithName(nameID, _retval); } \
266 : NS_IMETHOD DebugDump(PRInt16 depth) { return _to DebugDump(depth); } \
267 : NS_IMETHOD FinishInitForWrappedGlobal(void) { return _to FinishInitForWrappedGlobal(); } \
268 : NS_IMETHOD GetSecurityInfoAddress(void* **_retval NS_OUTPARAM) { return _to GetSecurityInfoAddress(_retval); } \
269 :
270 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
271 : #define NS_FORWARD_SAFE_NSIXPCONNECTWRAPPEDNATIVE(_to) \
272 : NS_IMETHOD GetNative(nsISupports * *aNative) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNative(aNative); } \
273 : NS_IMETHOD GetJSObjectPrototype(JSObject **aJSObjectPrototype) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetJSObjectPrototype(aJSObjectPrototype); } \
274 : NS_IMETHOD GetXPConnect(nsIXPConnect * *aXPConnect) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetXPConnect(aXPConnect); } \
275 : NS_IMETHOD FindInterfaceWithMember(jsid nameID, nsIInterfaceInfo * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->FindInterfaceWithMember(nameID, _retval); } \
276 : NS_IMETHOD FindInterfaceWithName(jsid nameID, nsIInterfaceInfo * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->FindInterfaceWithName(nameID, _retval); } \
277 : NS_IMETHOD DebugDump(PRInt16 depth) { return !_to ? NS_ERROR_NULL_POINTER : _to->DebugDump(depth); } \
278 : NS_IMETHOD FinishInitForWrappedGlobal(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->FinishInitForWrappedGlobal(); } \
279 : NS_IMETHOD GetSecurityInfoAddress(void* **_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSecurityInfoAddress(_retval); } \
280 :
281 : #if 0
282 : /* Use the code below as a template for the implementation class for this interface. */
283 :
284 : /* Header file */
285 : class nsXPConnectWrappedNative : public nsIXPConnectWrappedNative
286 : {
287 : public:
288 : NS_DECL_ISUPPORTS
289 : NS_DECL_NSIXPCONNECTWRAPPEDNATIVE
290 :
291 : nsXPConnectWrappedNative();
292 :
293 : private:
294 : ~nsXPConnectWrappedNative();
295 :
296 : protected:
297 : /* additional members */
298 : };
299 :
300 : /* Implementation file */
301 : NS_IMPL_ISUPPORTS1(nsXPConnectWrappedNative, nsIXPConnectWrappedNative)
302 :
303 : nsXPConnectWrappedNative::nsXPConnectWrappedNative()
304 : {
305 : /* member initializers and constructor code */
306 : }
307 :
308 : nsXPConnectWrappedNative::~nsXPConnectWrappedNative()
309 : {
310 : /* destructor code */
311 : }
312 :
313 : /* readonly attribute nsISupports Native; */
314 : NS_IMETHODIMP nsXPConnectWrappedNative::GetNative(nsISupports * *aNative)
315 : {
316 : return NS_ERROR_NOT_IMPLEMENTED;
317 : }
318 :
319 : /* readonly attribute JSObjectPtr JSObjectPrototype; */
320 : NS_IMETHODIMP nsXPConnectWrappedNative::GetJSObjectPrototype(JSObject **aJSObjectPrototype)
321 : {
322 : return NS_ERROR_NOT_IMPLEMENTED;
323 : }
324 :
325 : /* readonly attribute nsIXPConnect XPConnect; */
326 : NS_IMETHODIMP nsXPConnectWrappedNative::GetXPConnect(nsIXPConnect * *aXPConnect)
327 : {
328 : return NS_ERROR_NOT_IMPLEMENTED;
329 : }
330 :
331 : /* nsIInterfaceInfo FindInterfaceWithMember (in jsid nameID); */
332 : NS_IMETHODIMP nsXPConnectWrappedNative::FindInterfaceWithMember(jsid nameID, nsIInterfaceInfo * *_retval NS_OUTPARAM)
333 : {
334 : return NS_ERROR_NOT_IMPLEMENTED;
335 : }
336 :
337 : /* nsIInterfaceInfo FindInterfaceWithName (in jsid nameID); */
338 : NS_IMETHODIMP nsXPConnectWrappedNative::FindInterfaceWithName(jsid nameID, nsIInterfaceInfo * *_retval NS_OUTPARAM)
339 : {
340 : return NS_ERROR_NOT_IMPLEMENTED;
341 : }
342 :
343 : /* void debugDump (in short depth); */
344 : NS_IMETHODIMP nsXPConnectWrappedNative::DebugDump(PRInt16 depth)
345 : {
346 : return NS_ERROR_NOT_IMPLEMENTED;
347 : }
348 :
349 : /* void finishInitForWrappedGlobal (); */
350 : NS_IMETHODIMP nsXPConnectWrappedNative::FinishInitForWrappedGlobal()
351 : {
352 : return NS_ERROR_NOT_IMPLEMENTED;
353 : }
354 :
355 : /* voidPtrPtr GetSecurityInfoAddress (); */
356 : NS_IMETHODIMP nsXPConnectWrappedNative::GetSecurityInfoAddress(void* **_retval NS_OUTPARAM)
357 : {
358 : return NS_ERROR_NOT_IMPLEMENTED;
359 : }
360 :
361 : /* End of implementation class template. */
362 : #endif
363 :
364 : #include "nsCOMPtr.h"
365 : inline
366 : const nsQueryInterface
367 26700 : do_QueryWrappedNative(nsIXPConnectWrappedNative *aWrappedNative)
368 : {
369 26700 : return nsQueryInterface(aWrappedNative->Native());
370 : }
371 : inline
372 : const nsQueryInterfaceWithError
373 : do_QueryWrappedNative(nsIXPConnectWrappedNative *aWrappedNative,
374 : nsresult *aError)
375 : {
376 : return nsQueryInterfaceWithError(aWrappedNative->Native(), aError);
377 : }
378 :
379 : /* starting interface: nsIXPConnectWrappedJS */
380 : #define NS_IXPCONNECTWRAPPEDJS_IID_STR "bed52030-bca6-11d2-ba79-00805f8a5dd7"
381 :
382 : #define NS_IXPCONNECTWRAPPEDJS_IID \
383 : {0xbed52030, 0xbca6, 0x11d2, \
384 : { 0xba, 0x79, 0x00, 0x80, 0x5f, 0x8a, 0x5d, 0xd7 }}
385 :
386 106800 : class NS_NO_VTABLE nsIXPConnectWrappedJS : public nsIXPConnectJSObjectHolder {
387 : public:
388 :
389 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXPCONNECTWRAPPEDJS_IID)
390 :
391 : /* readonly attribute nsIInterfaceInfo InterfaceInfo; */
392 : NS_IMETHOD GetInterfaceInfo(nsIInterfaceInfo * *aInterfaceInfo) = 0;
393 :
394 : /* readonly attribute nsIIDPtr InterfaceIID; */
395 : NS_IMETHOD GetInterfaceIID(nsIID **aInterfaceIID) = 0;
396 :
397 : /* void debugDump (in short depth); */
398 : NS_IMETHOD DebugDump(PRInt16 depth) = 0;
399 :
400 : /* void aggregatedQueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result); */
401 : NS_IMETHOD AggregatedQueryInterface(const nsIID & uuid, void **result NS_OUTPARAM) = 0;
402 :
403 : };
404 :
405 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIXPConnectWrappedJS, NS_IXPCONNECTWRAPPEDJS_IID)
406 :
407 : /* Use this macro when declaring classes that implement this interface. */
408 : #define NS_DECL_NSIXPCONNECTWRAPPEDJS \
409 : NS_IMETHOD GetInterfaceInfo(nsIInterfaceInfo * *aInterfaceInfo); \
410 : NS_IMETHOD GetInterfaceIID(nsIID **aInterfaceIID); \
411 : NS_IMETHOD DebugDump(PRInt16 depth); \
412 : NS_IMETHOD AggregatedQueryInterface(const nsIID & uuid, void **result NS_OUTPARAM);
413 :
414 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
415 : #define NS_FORWARD_NSIXPCONNECTWRAPPEDJS(_to) \
416 : NS_IMETHOD GetInterfaceInfo(nsIInterfaceInfo * *aInterfaceInfo) { return _to GetInterfaceInfo(aInterfaceInfo); } \
417 : NS_IMETHOD GetInterfaceIID(nsIID **aInterfaceIID) { return _to GetInterfaceIID(aInterfaceIID); } \
418 : NS_IMETHOD DebugDump(PRInt16 depth) { return _to DebugDump(depth); } \
419 : NS_IMETHOD AggregatedQueryInterface(const nsIID & uuid, void **result NS_OUTPARAM) { return _to AggregatedQueryInterface(uuid, result); }
420 :
421 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
422 : #define NS_FORWARD_SAFE_NSIXPCONNECTWRAPPEDJS(_to) \
423 : NS_IMETHOD GetInterfaceInfo(nsIInterfaceInfo * *aInterfaceInfo) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInterfaceInfo(aInterfaceInfo); } \
424 : NS_IMETHOD GetInterfaceIID(nsIID **aInterfaceIID) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInterfaceIID(aInterfaceIID); } \
425 : NS_IMETHOD DebugDump(PRInt16 depth) { return !_to ? NS_ERROR_NULL_POINTER : _to->DebugDump(depth); } \
426 : NS_IMETHOD AggregatedQueryInterface(const nsIID & uuid, void **result NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->AggregatedQueryInterface(uuid, result); }
427 :
428 : #if 0
429 : /* Use the code below as a template for the implementation class for this interface. */
430 :
431 : /* Header file */
432 : class nsXPConnectWrappedJS : public nsIXPConnectWrappedJS
433 : {
434 : public:
435 : NS_DECL_ISUPPORTS
436 : NS_DECL_NSIXPCONNECTWRAPPEDJS
437 :
438 : nsXPConnectWrappedJS();
439 :
440 : private:
441 : ~nsXPConnectWrappedJS();
442 :
443 : protected:
444 : /* additional members */
445 : };
446 :
447 : /* Implementation file */
448 : NS_IMPL_ISUPPORTS1(nsXPConnectWrappedJS, nsIXPConnectWrappedJS)
449 :
450 : nsXPConnectWrappedJS::nsXPConnectWrappedJS()
451 : {
452 : /* member initializers and constructor code */
453 : }
454 :
455 : nsXPConnectWrappedJS::~nsXPConnectWrappedJS()
456 : {
457 : /* destructor code */
458 : }
459 :
460 : /* readonly attribute nsIInterfaceInfo InterfaceInfo; */
461 : NS_IMETHODIMP nsXPConnectWrappedJS::GetInterfaceInfo(nsIInterfaceInfo * *aInterfaceInfo)
462 : {
463 : return NS_ERROR_NOT_IMPLEMENTED;
464 : }
465 :
466 : /* readonly attribute nsIIDPtr InterfaceIID; */
467 : NS_IMETHODIMP nsXPConnectWrappedJS::GetInterfaceIID(nsIID **aInterfaceIID)
468 : {
469 : return NS_ERROR_NOT_IMPLEMENTED;
470 : }
471 :
472 : /* void debugDump (in short depth); */
473 : NS_IMETHODIMP nsXPConnectWrappedJS::DebugDump(PRInt16 depth)
474 : {
475 : return NS_ERROR_NOT_IMPLEMENTED;
476 : }
477 :
478 : /* void aggregatedQueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result); */
479 : NS_IMETHODIMP nsXPConnectWrappedJS::AggregatedQueryInterface(const nsIID & uuid, void **result NS_OUTPARAM)
480 : {
481 : return NS_ERROR_NOT_IMPLEMENTED;
482 : }
483 :
484 : /* End of implementation class template. */
485 : #endif
486 :
487 :
488 : /* starting interface: nsIXPCWrappedJSObjectGetter */
489 : #define NS_IXPCWRAPPEDJSOBJECTGETTER_IID_STR "254bb2e0-6439-11d4-8fe0-0010a4e73d9a"
490 :
491 : #define NS_IXPCWRAPPEDJSOBJECTGETTER_IID \
492 : {0x254bb2e0, 0x6439, 0x11d4, \
493 : { 0x8f, 0xe0, 0x00, 0x10, 0xa4, 0xe7, 0x3d, 0x9a }}
494 :
495 : class NS_NO_VTABLE NS_SCRIPTABLE nsIXPCWrappedJSObjectGetter : public nsISupports {
496 : public:
497 :
498 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXPCWRAPPEDJSOBJECTGETTER_IID)
499 :
500 : /* readonly attribute nsISupports neverCalled; */
501 : NS_SCRIPTABLE NS_IMETHOD GetNeverCalled(nsISupports * *aNeverCalled) = 0;
502 :
503 : };
504 :
505 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIXPCWrappedJSObjectGetter, NS_IXPCWRAPPEDJSOBJECTGETTER_IID)
506 :
507 : /* Use this macro when declaring classes that implement this interface. */
508 : #define NS_DECL_NSIXPCWRAPPEDJSOBJECTGETTER \
509 : NS_SCRIPTABLE NS_IMETHOD GetNeverCalled(nsISupports * *aNeverCalled);
510 :
511 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
512 : #define NS_FORWARD_NSIXPCWRAPPEDJSOBJECTGETTER(_to) \
513 : NS_SCRIPTABLE NS_IMETHOD GetNeverCalled(nsISupports * *aNeverCalled) { return _to GetNeverCalled(aNeverCalled); }
514 :
515 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
516 : #define NS_FORWARD_SAFE_NSIXPCWRAPPEDJSOBJECTGETTER(_to) \
517 : NS_SCRIPTABLE NS_IMETHOD GetNeverCalled(nsISupports * *aNeverCalled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNeverCalled(aNeverCalled); }
518 :
519 : #if 0
520 : /* Use the code below as a template for the implementation class for this interface. */
521 :
522 : /* Header file */
523 : class nsXPCWrappedJSObjectGetter : public nsIXPCWrappedJSObjectGetter
524 : {
525 : public:
526 : NS_DECL_ISUPPORTS
527 : NS_DECL_NSIXPCWRAPPEDJSOBJECTGETTER
528 :
529 : nsXPCWrappedJSObjectGetter();
530 :
531 : private:
532 : ~nsXPCWrappedJSObjectGetter();
533 :
534 : protected:
535 : /* additional members */
536 : };
537 :
538 : /* Implementation file */
539 : NS_IMPL_ISUPPORTS1(nsXPCWrappedJSObjectGetter, nsIXPCWrappedJSObjectGetter)
540 :
541 : nsXPCWrappedJSObjectGetter::nsXPCWrappedJSObjectGetter()
542 : {
543 : /* member initializers and constructor code */
544 : }
545 :
546 : nsXPCWrappedJSObjectGetter::~nsXPCWrappedJSObjectGetter()
547 : {
548 : /* destructor code */
549 : }
550 :
551 : /* readonly attribute nsISupports neverCalled; */
552 : NS_IMETHODIMP nsXPCWrappedJSObjectGetter::GetNeverCalled(nsISupports * *aNeverCalled)
553 : {
554 : return NS_ERROR_NOT_IMPLEMENTED;
555 : }
556 :
557 : /* End of implementation class template. */
558 : #endif
559 :
560 :
561 : /* starting interface: nsIXPCFunctionThisTranslator */
562 : #define NS_IXPCFUNCTIONTHISTRANSLATOR_IID_STR "039ef260-2a0d-11d5-90a7-0010a4e73d9a"
563 :
564 : #define NS_IXPCFUNCTIONTHISTRANSLATOR_IID \
565 : {0x039ef260, 0x2a0d, 0x11d5, \
566 : { 0x90, 0xa7, 0x00, 0x10, 0xa4, 0xe7, 0x3d, 0x9a }}
567 :
568 306 : class NS_NO_VTABLE nsIXPCFunctionThisTranslator : public nsISupports {
569 : public:
570 :
571 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXPCFUNCTIONTHISTRANSLATOR_IID)
572 :
573 : /* nsISupports TranslateThis (in nsISupports aInitialThis, in nsIInterfaceInfo aInterfaceInfo, in PRUint16 aMethodIndex, out boolean aHideFirstParamFromJS, out nsIIDPtr aIIDOfResult); */
574 : NS_IMETHOD TranslateThis(nsISupports *aInitialThis, nsIInterfaceInfo *aInterfaceInfo, PRUint16 aMethodIndex, bool *aHideFirstParamFromJS NS_OUTPARAM, nsIID **aIIDOfResult NS_OUTPARAM, nsISupports * *_retval NS_OUTPARAM) = 0;
575 :
576 : };
577 :
578 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIXPCFunctionThisTranslator, NS_IXPCFUNCTIONTHISTRANSLATOR_IID)
579 :
580 : /* Use this macro when declaring classes that implement this interface. */
581 : #define NS_DECL_NSIXPCFUNCTIONTHISTRANSLATOR \
582 : NS_IMETHOD TranslateThis(nsISupports *aInitialThis, nsIInterfaceInfo *aInterfaceInfo, PRUint16 aMethodIndex, bool *aHideFirstParamFromJS NS_OUTPARAM, nsIID **aIIDOfResult NS_OUTPARAM, nsISupports * *_retval NS_OUTPARAM);
583 :
584 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
585 : #define NS_FORWARD_NSIXPCFUNCTIONTHISTRANSLATOR(_to) \
586 : NS_IMETHOD TranslateThis(nsISupports *aInitialThis, nsIInterfaceInfo *aInterfaceInfo, PRUint16 aMethodIndex, bool *aHideFirstParamFromJS NS_OUTPARAM, nsIID **aIIDOfResult NS_OUTPARAM, nsISupports * *_retval NS_OUTPARAM) { return _to TranslateThis(aInitialThis, aInterfaceInfo, aMethodIndex, aHideFirstParamFromJS, aIIDOfResult, _retval); }
587 :
588 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
589 : #define NS_FORWARD_SAFE_NSIXPCFUNCTIONTHISTRANSLATOR(_to) \
590 : NS_IMETHOD TranslateThis(nsISupports *aInitialThis, nsIInterfaceInfo *aInterfaceInfo, PRUint16 aMethodIndex, bool *aHideFirstParamFromJS NS_OUTPARAM, nsIID **aIIDOfResult NS_OUTPARAM, nsISupports * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->TranslateThis(aInitialThis, aInterfaceInfo, aMethodIndex, aHideFirstParamFromJS, aIIDOfResult, _retval); }
591 :
592 : #if 0
593 : /* Use the code below as a template for the implementation class for this interface. */
594 :
595 : /* Header file */
596 : class nsXPCFunctionThisTranslator : public nsIXPCFunctionThisTranslator
597 : {
598 : public:
599 : NS_DECL_ISUPPORTS
600 : NS_DECL_NSIXPCFUNCTIONTHISTRANSLATOR
601 :
602 : nsXPCFunctionThisTranslator();
603 :
604 : private:
605 : ~nsXPCFunctionThisTranslator();
606 :
607 : protected:
608 : /* additional members */
609 : };
610 :
611 : /* Implementation file */
612 : NS_IMPL_ISUPPORTS1(nsXPCFunctionThisTranslator, nsIXPCFunctionThisTranslator)
613 :
614 : nsXPCFunctionThisTranslator::nsXPCFunctionThisTranslator()
615 : {
616 : /* member initializers and constructor code */
617 : }
618 :
619 : nsXPCFunctionThisTranslator::~nsXPCFunctionThisTranslator()
620 : {
621 : /* destructor code */
622 : }
623 :
624 : /* nsISupports TranslateThis (in nsISupports aInitialThis, in nsIInterfaceInfo aInterfaceInfo, in PRUint16 aMethodIndex, out boolean aHideFirstParamFromJS, out nsIIDPtr aIIDOfResult); */
625 : NS_IMETHODIMP nsXPCFunctionThisTranslator::TranslateThis(nsISupports *aInitialThis, nsIInterfaceInfo *aInterfaceInfo, PRUint16 aMethodIndex, bool *aHideFirstParamFromJS NS_OUTPARAM, nsIID **aIIDOfResult NS_OUTPARAM, nsISupports * *_retval NS_OUTPARAM)
626 : {
627 : return NS_ERROR_NOT_IMPLEMENTED;
628 : }
629 :
630 : /* End of implementation class template. */
631 : #endif
632 :
633 : // For use with the service manager
634 : // {CB6593E0-F9B2-11d2-BDD6-000064657374}
635 : #define NS_XPCONNECT_CID \
636 : { 0xcb6593e0, 0xf9b2, 0x11d2, \
637 : { 0xbd, 0xd6, 0x0, 0x0, 0x64, 0x65, 0x73, 0x74 } }
638 : enum nsGCType {
639 : nsGCNormal,
640 : nsGCShrinking,
641 : nsGCIncremental
642 : };
643 :
644 : /* starting interface: nsIXPConnect */
645 : #define NS_IXPCONNECT_IID_STR "0213cb40-2dd5-4ac8-a9d3-157bd53c3824"
646 :
647 : #define NS_IXPCONNECT_IID \
648 : {0x0213cb40, 0x2dd5, 0x4ac8, \
649 : { 0xa9, 0xd3, 0x15, 0x7b, 0xd5, 0x3c, 0x38, 0x24 }}
650 :
651 1404 : class nsIXPConnect : public nsISupports {
652 : public:
653 :
654 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXPCONNECT_IID)
655 :
656 5556 : NS_DEFINE_STATIC_CID_ACCESSOR(NS_XPCONNECT_CID)
657 : /* void initClasses (in JSContextPtr aJSContext, in JSObjectPtr aGlobalJSObj); */
658 : NS_IMETHOD InitClasses(JSContext *aJSContext, JSObject *aGlobalJSObj) = 0;
659 :
660 : /* nsIXPConnectJSObjectHolder initClassesWithNewWrappedGlobal (in JSContextPtr aJSContext, in nsISupports aCOMObj, in nsIPrincipal aPrincipal, in PRUint32 aFlags); */
661 : NS_IMETHOD InitClassesWithNewWrappedGlobal(JSContext *aJSContext, nsISupports *aCOMObj, nsIPrincipal *aPrincipal, PRUint32 aFlags, nsIXPConnectJSObjectHolder * *_retval NS_OUTPARAM) = 0;
662 :
663 : enum {
664 : INIT_JS_STANDARD_CLASSES = 1U,
665 : FLAG_SYSTEM_GLOBAL_OBJECT = 2U,
666 : OMIT_COMPONENTS_OBJECT = 4U
667 : };
668 :
669 : /* nsIXPConnectJSObjectHolder wrapNative (in JSContextPtr aJSContext, in JSObjectPtr aScope, in nsISupports aCOMObj, in nsIIDRef aIID); */
670 : NS_IMETHOD WrapNative(JSContext *aJSContext, JSObject *aScope, nsISupports *aCOMObj, const nsIID & aIID, nsIXPConnectJSObjectHolder * *_retval NS_OUTPARAM) = 0;
671 :
672 : /* void wrapNativeToJSVal (in JSContextPtr aJSContext, in JSObjectPtr aScope, in nsISupports aCOMObj, in nsWrapperCachePtr aCache, in nsIIDPtr aIID, in boolean aAllowWrapper, out jsval aVal, out nsIXPConnectJSObjectHolder aHolder); */
673 : NS_IMETHOD WrapNativeToJSVal(JSContext *aJSContext, JSObject *aScope, nsISupports *aCOMObj, nsWrapperCache *aCache, const nsIID *aIID, bool aAllowWrapper, JS::Value *aVal NS_OUTPARAM, nsIXPConnectJSObjectHolder * *aHolder NS_OUTPARAM) = 0;
674 :
675 : /* void wrapJS (in JSContextPtr aJSContext, in JSObjectPtr aJSObj, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult result); */
676 : NS_IMETHOD WrapJS(JSContext *aJSContext, JSObject *aJSObj, const nsIID & aIID, void **result NS_OUTPARAM) = 0;
677 :
678 : /* nsIVariant jSValToVariant (in JSContextPtr cx, in JSValPtr aJSVal); */
679 : NS_IMETHOD JSValToVariant(JSContext *cx, jsval *aJSVal, nsIVariant * *_retval NS_OUTPARAM) = 0;
680 :
681 : /* nsIXPConnectWrappedNative getWrappedNativeOfJSObject (in JSContextPtr aJSContext, in JSObjectPtr aJSObj); */
682 : NS_IMETHOD GetWrappedNativeOfJSObject(JSContext *aJSContext, JSObject *aJSObj, nsIXPConnectWrappedNative * *_retval NS_OUTPARAM) = 0;
683 :
684 : /* [noscript,notxpcom] nsISupports getNativeOfWrapper (in JSContextPtr aJSContext, in JSObjectPtr aJSObj); */
685 : NS_IMETHOD_(nsISupports *) GetNativeOfWrapper(JSContext *aJSContext, JSObject *aJSObj) = 0;
686 :
687 : /* JSObjectPtr getJSObjectOfWrapper (in JSContextPtr aJSContext, in JSObjectPtr aJSObj); */
688 : NS_IMETHOD GetJSObjectOfWrapper(JSContext *aJSContext, JSObject *aJSObj, JSObject **_retval NS_OUTPARAM) = 0;
689 :
690 : /* void setSecurityManagerForJSContext (in JSContextPtr aJSContext, in nsIXPCSecurityManager aManager, in PRUint16 flags); */
691 : NS_IMETHOD SetSecurityManagerForJSContext(JSContext *aJSContext, nsIXPCSecurityManager *aManager, PRUint16 flags) = 0;
692 :
693 : /* void getSecurityManagerForJSContext (in JSContextPtr aJSContext, out nsIXPCSecurityManager aManager, out PRUint16 flags); */
694 : NS_IMETHOD GetSecurityManagerForJSContext(JSContext *aJSContext, nsIXPCSecurityManager * *aManager NS_OUTPARAM, PRUint16 *flags NS_OUTPARAM) = 0;
695 :
696 : /* void setDefaultSecurityManager (in nsIXPCSecurityManager aManager, in PRUint16 flags); */
697 : NS_IMETHOD SetDefaultSecurityManager(nsIXPCSecurityManager *aManager, PRUint16 flags) = 0;
698 :
699 : /* void getDefaultSecurityManager (out nsIXPCSecurityManager aManager, out PRUint16 flags); */
700 : NS_IMETHOD GetDefaultSecurityManager(nsIXPCSecurityManager * *aManager NS_OUTPARAM, PRUint16 *flags NS_OUTPARAM) = 0;
701 :
702 : /* nsIStackFrame createStackFrameLocation (in PRUint32 aLanguage, in string aFilename, in string aFunctionName, in PRInt32 aLineNumber, in nsIStackFrame aCaller); */
703 : NS_IMETHOD CreateStackFrameLocation(PRUint32 aLanguage, const char * aFilename, const char * aFunctionName, PRInt32 aLineNumber, nsIStackFrame *aCaller, nsIStackFrame * *_retval NS_OUTPARAM) = 0;
704 :
705 : /* [deprecated] void syncJSContexts (); */
706 : NS_IMETHOD SyncJSContexts(void) = 0;
707 :
708 : /* readonly attribute nsIStackFrame CurrentJSStack; */
709 : NS_IMETHOD GetCurrentJSStack(nsIStackFrame * *aCurrentJSStack) = 0;
710 :
711 : /* readonly attribute nsAXPCNativeCallContextPtr CurrentNativeCallContext; */
712 : NS_IMETHOD GetCurrentNativeCallContext(nsAXPCNativeCallContext **aCurrentNativeCallContext) = 0;
713 :
714 : /* attribute nsIException PendingException; */
715 : NS_IMETHOD GetPendingException(nsIException * *aPendingException) = 0;
716 : NS_IMETHOD SetPendingException(nsIException *aPendingException) = 0;
717 :
718 : /* void debugDump (in short depth); */
719 : NS_IMETHOD DebugDump(PRInt16 depth) = 0;
720 :
721 : /* void debugDumpObject (in nsISupports aCOMObj, in short depth); */
722 : NS_IMETHOD DebugDumpObject(nsISupports *aCOMObj, PRInt16 depth) = 0;
723 :
724 : /* void debugDumpJSStack (in boolean showArgs, in boolean showLocals, in boolean showThisProps); */
725 : NS_IMETHOD DebugDumpJSStack(bool showArgs, bool showLocals, bool showThisProps) = 0;
726 :
727 : /* void debugDumpEvalInJSStackFrame (in PRUint32 aFrameNumber, in string aSourceText); */
728 : NS_IMETHOD DebugDumpEvalInJSStackFrame(PRUint32 aFrameNumber, const char * aSourceText) = 0;
729 :
730 : /* void wrapJSAggregatedToNative (in nsISupports aOuter, in JSContextPtr aJSContext, in JSObjectPtr aJSObj, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult result); */
731 : NS_IMETHOD WrapJSAggregatedToNative(nsISupports *aOuter, JSContext *aJSContext, JSObject *aJSObj, const nsIID & aIID, void **result NS_OUTPARAM) = 0;
732 :
733 : /* nsIXPConnectWrappedNative getWrappedNativeOfNativeObject (in JSContextPtr aJSContext, in JSObjectPtr aScope, in nsISupports aCOMObj, in nsIIDRef aIID); */
734 : NS_IMETHOD GetWrappedNativeOfNativeObject(JSContext *aJSContext, JSObject *aScope, nsISupports *aCOMObj, const nsIID & aIID, nsIXPConnectWrappedNative * *_retval NS_OUTPARAM) = 0;
735 :
736 : /* nsIXPCFunctionThisTranslator getFunctionThisTranslator (in nsIIDRef aIID); */
737 : NS_IMETHOD GetFunctionThisTranslator(const nsIID & aIID, nsIXPCFunctionThisTranslator * *_retval NS_OUTPARAM) = 0;
738 :
739 : /* nsIXPCFunctionThisTranslator setFunctionThisTranslator (in nsIIDRef aIID, in nsIXPCFunctionThisTranslator aTranslator); */
740 : NS_IMETHOD SetFunctionThisTranslator(const nsIID & aIID, nsIXPCFunctionThisTranslator *aTranslator, nsIXPCFunctionThisTranslator * *_retval NS_OUTPARAM) = 0;
741 :
742 : /* nsIXPConnectJSObjectHolder reparentWrappedNativeIfFound (in JSContextPtr aJSContext, in JSObjectPtr aScope, in JSObjectPtr aNewParent, in nsISupports aCOMObj); */
743 : NS_IMETHOD ReparentWrappedNativeIfFound(JSContext *aJSContext, JSObject *aScope, JSObject *aNewParent, nsISupports *aCOMObj, nsIXPConnectJSObjectHolder * *_retval NS_OUTPARAM) = 0;
744 :
745 : /* void moveWrappers (in JSContextPtr aJSContext, in JSObjectPtr aOldScope, in JSObjectPtr aNewScope); */
746 : NS_IMETHOD MoveWrappers(JSContext *aJSContext, JSObject *aOldScope, JSObject *aNewScope) = 0;
747 :
748 : /* void clearAllWrappedNativeSecurityPolicies (); */
749 : NS_IMETHOD ClearAllWrappedNativeSecurityPolicies(void) = 0;
750 :
751 : /* nsIXPConnectJSObjectHolder getWrappedNativePrototype (in JSContextPtr aJSContext, in JSObjectPtr aScope, in nsIClassInfo aClassInfo); */
752 : NS_IMETHOD GetWrappedNativePrototype(JSContext *aJSContext, JSObject *aScope, nsIClassInfo *aClassInfo, nsIXPConnectJSObjectHolder * *_retval NS_OUTPARAM) = 0;
753 :
754 : /* void releaseJSContext (in JSContextPtr aJSContext, in boolean noGC); */
755 : NS_IMETHOD ReleaseJSContext(JSContext *aJSContext, bool noGC) = 0;
756 :
757 : /* jsval variantToJS (in JSContextPtr ctx, in JSObjectPtr scope, in nsIVariant value); */
758 : NS_IMETHOD VariantToJS(JSContext *ctx, JSObject *scope, nsIVariant *value, JS::Value *_retval NS_OUTPARAM) = 0;
759 :
760 : /* nsIVariant JSToVariant (in JSContextPtr ctx, in jsval value); */
761 : NS_IMETHOD JSToVariant(JSContext *ctx, const JS::Value & value, nsIVariant * *_retval NS_OUTPARAM) = 0;
762 :
763 : /* [noscript] nsIXPConnectJSObjectHolder createSandbox (in JSContextPtr cx, in nsIPrincipal principal); */
764 : NS_IMETHOD CreateSandbox(JSContext *cx, nsIPrincipal *principal, nsIXPConnectJSObjectHolder * *_retval NS_OUTPARAM) = 0;
765 :
766 : /* [noscript] jsval evalInSandboxObject (in AString source, in JSContextPtr cx, in nsIXPConnectJSObjectHolder sandbox, in boolean returnStringOnly); */
767 : NS_IMETHOD EvalInSandboxObject(const nsAString & source, JSContext *cx, nsIXPConnectJSObjectHolder *sandbox, bool returnStringOnly, JS::Value *_retval NS_OUTPARAM) = 0;
768 :
769 : /* [noscript] void addJSHolder (in voidPtr aHolder, in nsScriptObjectTracerPtr aTracer); */
770 : NS_IMETHOD AddJSHolder(void *aHolder, nsScriptObjectTracer *aTracer) = 0;
771 :
772 : /* [noscript] void removeJSHolder (in voidPtr aHolder); */
773 : NS_IMETHOD RemoveJSHolder(void *aHolder) = 0;
774 :
775 : /* [noscript,notxpcom] void noteJSContext (in JSContextPtr aJSContext, in nsCCTraversalCallbackRef aCb); */
776 : NS_IMETHOD_(void) NoteJSContext(JSContext *aJSContext, nsCycleCollectionTraversalCallback & aCb) = 0;
777 :
778 : /* void setReportAllJSExceptions (in boolean reportAllJSExceptions); */
779 : NS_IMETHOD SetReportAllJSExceptions(bool reportAllJSExceptions) = 0;
780 :
781 : /* void GarbageCollect (in PRUint32 reason, in PRUint32 kind); */
782 : NS_IMETHOD GarbageCollect(PRUint32 reason, PRUint32 kind) = 0;
783 :
784 : /* void NotifyDidPaint (); */
785 : NS_IMETHOD NotifyDidPaint(void) = 0;
786 :
787 : /* [noscript,notxpcom] boolean defineDOMQuickStubs (in JSContextPtr cx, in JSObjectPtr proto, in PRUint32 flags, in PRUint32 interfaceCount, [array, size_is (interfaceCount)] in nsIIDPtr interfaceArray); */
788 : NS_IMETHOD_(bool) DefineDOMQuickStubs(JSContext *cx, JSObject *proto, PRUint32 flags, PRUint32 interfaceCount, const nsIID **interfaceArray) = 0;
789 :
790 : /**
791 : * Get the object principal for this wrapper. Note that this may well end
792 : * up being null; in that case one should seek principals elsewhere. Null
793 : * here does NOT indicate system principal or no principals at all, just
794 : * that this wrapper doesn't have an intrinsic one.
795 : */
796 : virtual nsIPrincipal* GetPrincipal(JSObject* obj,
797 : bool allowShortCircuit) const = 0;
798 : virtual char* DebugPrintJSStack(bool showArgs,
799 : bool showLocals,
800 : bool showThisProps) = 0;
801 : /* nsIXPConnectJSObjectHolder holdObject (in JSContextPtr aJSContext, in JSObjectPtr aObject); */
802 : NS_IMETHOD HoldObject(JSContext *aJSContext, JSObject *aObject, nsIXPConnectJSObjectHolder * *_retval NS_OUTPARAM) = 0;
803 :
804 : /* [noscript,notxpcom] void getCaller (out JSContextPtr aJSContext, out JSObjectPtr aObject); */
805 : NS_IMETHOD_(void) GetCaller(JSContext **aJSContext NS_OUTPARAM, JSObject **aObject NS_OUTPARAM) = 0;
806 :
807 : /* [noscript] void setDebugModeWhenPossible (in boolean mode, in boolean allowSyncDisable); */
808 : NS_IMETHOD SetDebugModeWhenPossible(bool mode, bool allowSyncDisable) = 0;
809 :
810 : };
811 :
812 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIXPConnect, NS_IXPCONNECT_IID)
813 :
814 : /* Use this macro when declaring classes that implement this interface. */
815 : #define NS_DECL_NSIXPCONNECT \
816 : NS_IMETHOD InitClasses(JSContext *aJSContext, JSObject *aGlobalJSObj); \
817 : NS_IMETHOD InitClassesWithNewWrappedGlobal(JSContext *aJSContext, nsISupports *aCOMObj, nsIPrincipal *aPrincipal, PRUint32 aFlags, nsIXPConnectJSObjectHolder * *_retval NS_OUTPARAM); \
818 : NS_IMETHOD WrapNative(JSContext *aJSContext, JSObject *aScope, nsISupports *aCOMObj, const nsIID & aIID, nsIXPConnectJSObjectHolder * *_retval NS_OUTPARAM); \
819 : NS_IMETHOD WrapNativeToJSVal(JSContext *aJSContext, JSObject *aScope, nsISupports *aCOMObj, nsWrapperCache *aCache, const nsIID *aIID, bool aAllowWrapper, JS::Value *aVal NS_OUTPARAM, nsIXPConnectJSObjectHolder * *aHolder NS_OUTPARAM); \
820 : NS_IMETHOD WrapJS(JSContext *aJSContext, JSObject *aJSObj, const nsIID & aIID, void **result NS_OUTPARAM); \
821 : NS_IMETHOD JSValToVariant(JSContext *cx, jsval *aJSVal, nsIVariant * *_retval NS_OUTPARAM); \
822 : NS_IMETHOD GetWrappedNativeOfJSObject(JSContext *aJSContext, JSObject *aJSObj, nsIXPConnectWrappedNative * *_retval NS_OUTPARAM); \
823 : NS_IMETHOD_(nsISupports *) GetNativeOfWrapper(JSContext *aJSContext, JSObject *aJSObj); \
824 : NS_IMETHOD GetJSObjectOfWrapper(JSContext *aJSContext, JSObject *aJSObj, JSObject **_retval NS_OUTPARAM); \
825 : NS_IMETHOD SetSecurityManagerForJSContext(JSContext *aJSContext, nsIXPCSecurityManager *aManager, PRUint16 flags); \
826 : NS_IMETHOD GetSecurityManagerForJSContext(JSContext *aJSContext, nsIXPCSecurityManager * *aManager NS_OUTPARAM, PRUint16 *flags NS_OUTPARAM); \
827 : NS_IMETHOD SetDefaultSecurityManager(nsIXPCSecurityManager *aManager, PRUint16 flags); \
828 : NS_IMETHOD GetDefaultSecurityManager(nsIXPCSecurityManager * *aManager NS_OUTPARAM, PRUint16 *flags NS_OUTPARAM); \
829 : NS_IMETHOD CreateStackFrameLocation(PRUint32 aLanguage, const char * aFilename, const char * aFunctionName, PRInt32 aLineNumber, nsIStackFrame *aCaller, nsIStackFrame * *_retval NS_OUTPARAM); \
830 : NS_IMETHOD SyncJSContexts(void); \
831 : NS_IMETHOD GetCurrentJSStack(nsIStackFrame * *aCurrentJSStack); \
832 : NS_IMETHOD GetCurrentNativeCallContext(nsAXPCNativeCallContext **aCurrentNativeCallContext); \
833 : NS_IMETHOD GetPendingException(nsIException * *aPendingException); \
834 : NS_IMETHOD SetPendingException(nsIException *aPendingException); \
835 : NS_IMETHOD DebugDump(PRInt16 depth); \
836 : NS_IMETHOD DebugDumpObject(nsISupports *aCOMObj, PRInt16 depth); \
837 : NS_IMETHOD DebugDumpJSStack(bool showArgs, bool showLocals, bool showThisProps); \
838 : NS_IMETHOD DebugDumpEvalInJSStackFrame(PRUint32 aFrameNumber, const char * aSourceText); \
839 : NS_IMETHOD WrapJSAggregatedToNative(nsISupports *aOuter, JSContext *aJSContext, JSObject *aJSObj, const nsIID & aIID, void **result NS_OUTPARAM); \
840 : NS_IMETHOD GetWrappedNativeOfNativeObject(JSContext *aJSContext, JSObject *aScope, nsISupports *aCOMObj, const nsIID & aIID, nsIXPConnectWrappedNative * *_retval NS_OUTPARAM); \
841 : NS_IMETHOD GetFunctionThisTranslator(const nsIID & aIID, nsIXPCFunctionThisTranslator * *_retval NS_OUTPARAM); \
842 : NS_IMETHOD SetFunctionThisTranslator(const nsIID & aIID, nsIXPCFunctionThisTranslator *aTranslator, nsIXPCFunctionThisTranslator * *_retval NS_OUTPARAM); \
843 : NS_IMETHOD ReparentWrappedNativeIfFound(JSContext *aJSContext, JSObject *aScope, JSObject *aNewParent, nsISupports *aCOMObj, nsIXPConnectJSObjectHolder * *_retval NS_OUTPARAM); \
844 : NS_IMETHOD MoveWrappers(JSContext *aJSContext, JSObject *aOldScope, JSObject *aNewScope); \
845 : NS_IMETHOD ClearAllWrappedNativeSecurityPolicies(void); \
846 : NS_IMETHOD GetWrappedNativePrototype(JSContext *aJSContext, JSObject *aScope, nsIClassInfo *aClassInfo, nsIXPConnectJSObjectHolder * *_retval NS_OUTPARAM); \
847 : NS_IMETHOD ReleaseJSContext(JSContext *aJSContext, bool noGC); \
848 : NS_IMETHOD VariantToJS(JSContext *ctx, JSObject *scope, nsIVariant *value, JS::Value *_retval NS_OUTPARAM); \
849 : NS_IMETHOD JSToVariant(JSContext *ctx, const JS::Value & value, nsIVariant * *_retval NS_OUTPARAM); \
850 : NS_IMETHOD CreateSandbox(JSContext *cx, nsIPrincipal *principal, nsIXPConnectJSObjectHolder * *_retval NS_OUTPARAM); \
851 : NS_IMETHOD EvalInSandboxObject(const nsAString & source, JSContext *cx, nsIXPConnectJSObjectHolder *sandbox, bool returnStringOnly, JS::Value *_retval NS_OUTPARAM); \
852 : NS_IMETHOD AddJSHolder(void *aHolder, nsScriptObjectTracer *aTracer); \
853 : NS_IMETHOD RemoveJSHolder(void *aHolder); \
854 : NS_IMETHOD_(void) NoteJSContext(JSContext *aJSContext, nsCycleCollectionTraversalCallback & aCb); \
855 : NS_IMETHOD SetReportAllJSExceptions(bool reportAllJSExceptions); \
856 : NS_IMETHOD GarbageCollect(PRUint32 reason, PRUint32 kind); \
857 : NS_IMETHOD NotifyDidPaint(void); \
858 : NS_IMETHOD_(bool) DefineDOMQuickStubs(JSContext *cx, JSObject *proto, PRUint32 flags, PRUint32 interfaceCount, const nsIID **interfaceArray); \
859 : NS_IMETHOD HoldObject(JSContext *aJSContext, JSObject *aObject, nsIXPConnectJSObjectHolder * *_retval NS_OUTPARAM); \
860 : NS_IMETHOD_(void) GetCaller(JSContext **aJSContext NS_OUTPARAM, JSObject **aObject NS_OUTPARAM); \
861 : NS_IMETHOD SetDebugModeWhenPossible(bool mode, bool allowSyncDisable);
862 :
863 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
864 : #define NS_FORWARD_NSIXPCONNECT(_to) \
865 : NS_IMETHOD InitClasses(JSContext *aJSContext, JSObject *aGlobalJSObj) { return _to InitClasses(aJSContext, aGlobalJSObj); } \
866 : NS_IMETHOD InitClassesWithNewWrappedGlobal(JSContext *aJSContext, nsISupports *aCOMObj, nsIPrincipal *aPrincipal, PRUint32 aFlags, nsIXPConnectJSObjectHolder * *_retval NS_OUTPARAM) { return _to InitClassesWithNewWrappedGlobal(aJSContext, aCOMObj, aPrincipal, aFlags, _retval); } \
867 : NS_IMETHOD WrapNative(JSContext *aJSContext, JSObject *aScope, nsISupports *aCOMObj, const nsIID & aIID, nsIXPConnectJSObjectHolder * *_retval NS_OUTPARAM) { return _to WrapNative(aJSContext, aScope, aCOMObj, aIID, _retval); } \
868 : NS_IMETHOD WrapNativeToJSVal(JSContext *aJSContext, JSObject *aScope, nsISupports *aCOMObj, nsWrapperCache *aCache, const nsIID *aIID, bool aAllowWrapper, JS::Value *aVal NS_OUTPARAM, nsIXPConnectJSObjectHolder * *aHolder NS_OUTPARAM) { return _to WrapNativeToJSVal(aJSContext, aScope, aCOMObj, aCache, aIID, aAllowWrapper, aVal, aHolder); } \
869 : NS_IMETHOD WrapJS(JSContext *aJSContext, JSObject *aJSObj, const nsIID & aIID, void **result NS_OUTPARAM) { return _to WrapJS(aJSContext, aJSObj, aIID, result); } \
870 : NS_IMETHOD JSValToVariant(JSContext *cx, jsval *aJSVal, nsIVariant * *_retval NS_OUTPARAM) { return _to JSValToVariant(cx, aJSVal, _retval); } \
871 : NS_IMETHOD GetWrappedNativeOfJSObject(JSContext *aJSContext, JSObject *aJSObj, nsIXPConnectWrappedNative * *_retval NS_OUTPARAM) { return _to GetWrappedNativeOfJSObject(aJSContext, aJSObj, _retval); } \
872 : NS_IMETHOD_(nsISupports *) GetNativeOfWrapper(JSContext *aJSContext, JSObject *aJSObj) { return _to GetNativeOfWrapper(aJSContext, aJSObj); } \
873 : NS_IMETHOD GetJSObjectOfWrapper(JSContext *aJSContext, JSObject *aJSObj, JSObject **_retval NS_OUTPARAM) { return _to GetJSObjectOfWrapper(aJSContext, aJSObj, _retval); } \
874 : NS_IMETHOD SetSecurityManagerForJSContext(JSContext *aJSContext, nsIXPCSecurityManager *aManager, PRUint16 flags) { return _to SetSecurityManagerForJSContext(aJSContext, aManager, flags); } \
875 : NS_IMETHOD GetSecurityManagerForJSContext(JSContext *aJSContext, nsIXPCSecurityManager * *aManager NS_OUTPARAM, PRUint16 *flags NS_OUTPARAM) { return _to GetSecurityManagerForJSContext(aJSContext, aManager, flags); } \
876 : NS_IMETHOD SetDefaultSecurityManager(nsIXPCSecurityManager *aManager, PRUint16 flags) { return _to SetDefaultSecurityManager(aManager, flags); } \
877 : NS_IMETHOD GetDefaultSecurityManager(nsIXPCSecurityManager * *aManager NS_OUTPARAM, PRUint16 *flags NS_OUTPARAM) { return _to GetDefaultSecurityManager(aManager, flags); } \
878 : NS_IMETHOD CreateStackFrameLocation(PRUint32 aLanguage, const char * aFilename, const char * aFunctionName, PRInt32 aLineNumber, nsIStackFrame *aCaller, nsIStackFrame * *_retval NS_OUTPARAM) { return _to CreateStackFrameLocation(aLanguage, aFilename, aFunctionName, aLineNumber, aCaller, _retval); } \
879 : NS_IMETHOD SyncJSContexts(void) { return _to SyncJSContexts(); } \
880 : NS_IMETHOD GetCurrentJSStack(nsIStackFrame * *aCurrentJSStack) { return _to GetCurrentJSStack(aCurrentJSStack); } \
881 : NS_IMETHOD GetCurrentNativeCallContext(nsAXPCNativeCallContext **aCurrentNativeCallContext) { return _to GetCurrentNativeCallContext(aCurrentNativeCallContext); } \
882 : NS_IMETHOD GetPendingException(nsIException * *aPendingException) { return _to GetPendingException(aPendingException); } \
883 : NS_IMETHOD SetPendingException(nsIException *aPendingException) { return _to SetPendingException(aPendingException); } \
884 : NS_IMETHOD DebugDump(PRInt16 depth) { return _to DebugDump(depth); } \
885 : NS_IMETHOD DebugDumpObject(nsISupports *aCOMObj, PRInt16 depth) { return _to DebugDumpObject(aCOMObj, depth); } \
886 : NS_IMETHOD DebugDumpJSStack(bool showArgs, bool showLocals, bool showThisProps) { return _to DebugDumpJSStack(showArgs, showLocals, showThisProps); } \
887 : NS_IMETHOD DebugDumpEvalInJSStackFrame(PRUint32 aFrameNumber, const char * aSourceText) { return _to DebugDumpEvalInJSStackFrame(aFrameNumber, aSourceText); } \
888 : NS_IMETHOD WrapJSAggregatedToNative(nsISupports *aOuter, JSContext *aJSContext, JSObject *aJSObj, const nsIID & aIID, void **result NS_OUTPARAM) { return _to WrapJSAggregatedToNative(aOuter, aJSContext, aJSObj, aIID, result); } \
889 : NS_IMETHOD GetWrappedNativeOfNativeObject(JSContext *aJSContext, JSObject *aScope, nsISupports *aCOMObj, const nsIID & aIID, nsIXPConnectWrappedNative * *_retval NS_OUTPARAM) { return _to GetWrappedNativeOfNativeObject(aJSContext, aScope, aCOMObj, aIID, _retval); } \
890 : NS_IMETHOD GetFunctionThisTranslator(const nsIID & aIID, nsIXPCFunctionThisTranslator * *_retval NS_OUTPARAM) { return _to GetFunctionThisTranslator(aIID, _retval); } \
891 : NS_IMETHOD SetFunctionThisTranslator(const nsIID & aIID, nsIXPCFunctionThisTranslator *aTranslator, nsIXPCFunctionThisTranslator * *_retval NS_OUTPARAM) { return _to SetFunctionThisTranslator(aIID, aTranslator, _retval); } \
892 : NS_IMETHOD ReparentWrappedNativeIfFound(JSContext *aJSContext, JSObject *aScope, JSObject *aNewParent, nsISupports *aCOMObj, nsIXPConnectJSObjectHolder * *_retval NS_OUTPARAM) { return _to ReparentWrappedNativeIfFound(aJSContext, aScope, aNewParent, aCOMObj, _retval); } \
893 : NS_IMETHOD MoveWrappers(JSContext *aJSContext, JSObject *aOldScope, JSObject *aNewScope) { return _to MoveWrappers(aJSContext, aOldScope, aNewScope); } \
894 : NS_IMETHOD ClearAllWrappedNativeSecurityPolicies(void) { return _to ClearAllWrappedNativeSecurityPolicies(); } \
895 : NS_IMETHOD GetWrappedNativePrototype(JSContext *aJSContext, JSObject *aScope, nsIClassInfo *aClassInfo, nsIXPConnectJSObjectHolder * *_retval NS_OUTPARAM) { return _to GetWrappedNativePrototype(aJSContext, aScope, aClassInfo, _retval); } \
896 : NS_IMETHOD ReleaseJSContext(JSContext *aJSContext, bool noGC) { return _to ReleaseJSContext(aJSContext, noGC); } \
897 : NS_IMETHOD VariantToJS(JSContext *ctx, JSObject *scope, nsIVariant *value, JS::Value *_retval NS_OUTPARAM) { return _to VariantToJS(ctx, scope, value, _retval); } \
898 : NS_IMETHOD JSToVariant(JSContext *ctx, const JS::Value & value, nsIVariant * *_retval NS_OUTPARAM) { return _to JSToVariant(ctx, value, _retval); } \
899 : NS_IMETHOD CreateSandbox(JSContext *cx, nsIPrincipal *principal, nsIXPConnectJSObjectHolder * *_retval NS_OUTPARAM) { return _to CreateSandbox(cx, principal, _retval); } \
900 : NS_IMETHOD EvalInSandboxObject(const nsAString & source, JSContext *cx, nsIXPConnectJSObjectHolder *sandbox, bool returnStringOnly, JS::Value *_retval NS_OUTPARAM) { return _to EvalInSandboxObject(source, cx, sandbox, returnStringOnly, _retval); } \
901 : NS_IMETHOD AddJSHolder(void *aHolder, nsScriptObjectTracer *aTracer) { return _to AddJSHolder(aHolder, aTracer); } \
902 : NS_IMETHOD RemoveJSHolder(void *aHolder) { return _to RemoveJSHolder(aHolder); } \
903 : NS_IMETHOD_(void) NoteJSContext(JSContext *aJSContext, nsCycleCollectionTraversalCallback & aCb) { return _to NoteJSContext(aJSContext, aCb); } \
904 : NS_IMETHOD SetReportAllJSExceptions(bool reportAllJSExceptions) { return _to SetReportAllJSExceptions(reportAllJSExceptions); } \
905 : NS_IMETHOD GarbageCollect(PRUint32 reason, PRUint32 kind) { return _to GarbageCollect(reason, kind); } \
906 : NS_IMETHOD NotifyDidPaint(void) { return _to NotifyDidPaint(); } \
907 : NS_IMETHOD_(bool) DefineDOMQuickStubs(JSContext *cx, JSObject *proto, PRUint32 flags, PRUint32 interfaceCount, const nsIID **interfaceArray) { return _to DefineDOMQuickStubs(cx, proto, flags, interfaceCount, interfaceArray); } \
908 : NS_IMETHOD HoldObject(JSContext *aJSContext, JSObject *aObject, nsIXPConnectJSObjectHolder * *_retval NS_OUTPARAM) { return _to HoldObject(aJSContext, aObject, _retval); } \
909 : NS_IMETHOD_(void) GetCaller(JSContext **aJSContext NS_OUTPARAM, JSObject **aObject NS_OUTPARAM) { return _to GetCaller(aJSContext, aObject); } \
910 : NS_IMETHOD SetDebugModeWhenPossible(bool mode, bool allowSyncDisable) { return _to SetDebugModeWhenPossible(mode, allowSyncDisable); }
911 :
912 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
913 : #define NS_FORWARD_SAFE_NSIXPCONNECT(_to) \
914 : NS_IMETHOD InitClasses(JSContext *aJSContext, JSObject *aGlobalJSObj) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitClasses(aJSContext, aGlobalJSObj); } \
915 : NS_IMETHOD InitClassesWithNewWrappedGlobal(JSContext *aJSContext, nsISupports *aCOMObj, nsIPrincipal *aPrincipal, PRUint32 aFlags, nsIXPConnectJSObjectHolder * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitClassesWithNewWrappedGlobal(aJSContext, aCOMObj, aPrincipal, aFlags, _retval); } \
916 : NS_IMETHOD WrapNative(JSContext *aJSContext, JSObject *aScope, nsISupports *aCOMObj, const nsIID & aIID, nsIXPConnectJSObjectHolder * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->WrapNative(aJSContext, aScope, aCOMObj, aIID, _retval); } \
917 : NS_IMETHOD WrapNativeToJSVal(JSContext *aJSContext, JSObject *aScope, nsISupports *aCOMObj, nsWrapperCache *aCache, const nsIID *aIID, bool aAllowWrapper, JS::Value *aVal NS_OUTPARAM, nsIXPConnectJSObjectHolder * *aHolder NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->WrapNativeToJSVal(aJSContext, aScope, aCOMObj, aCache, aIID, aAllowWrapper, aVal, aHolder); } \
918 : NS_IMETHOD WrapJS(JSContext *aJSContext, JSObject *aJSObj, const nsIID & aIID, void **result NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->WrapJS(aJSContext, aJSObj, aIID, result); } \
919 : NS_IMETHOD JSValToVariant(JSContext *cx, jsval *aJSVal, nsIVariant * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->JSValToVariant(cx, aJSVal, _retval); } \
920 : NS_IMETHOD GetWrappedNativeOfJSObject(JSContext *aJSContext, JSObject *aJSObj, nsIXPConnectWrappedNative * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWrappedNativeOfJSObject(aJSContext, aJSObj, _retval); } \
921 : NS_IMETHOD_(nsISupports *) GetNativeOfWrapper(JSContext *aJSContext, JSObject *aJSObj) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNativeOfWrapper(aJSContext, aJSObj); } \
922 : NS_IMETHOD GetJSObjectOfWrapper(JSContext *aJSContext, JSObject *aJSObj, JSObject **_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetJSObjectOfWrapper(aJSContext, aJSObj, _retval); } \
923 : NS_IMETHOD SetSecurityManagerForJSContext(JSContext *aJSContext, nsIXPCSecurityManager *aManager, PRUint16 flags) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSecurityManagerForJSContext(aJSContext, aManager, flags); } \
924 : NS_IMETHOD GetSecurityManagerForJSContext(JSContext *aJSContext, nsIXPCSecurityManager * *aManager NS_OUTPARAM, PRUint16 *flags NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSecurityManagerForJSContext(aJSContext, aManager, flags); } \
925 : NS_IMETHOD SetDefaultSecurityManager(nsIXPCSecurityManager *aManager, PRUint16 flags) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDefaultSecurityManager(aManager, flags); } \
926 : NS_IMETHOD GetDefaultSecurityManager(nsIXPCSecurityManager * *aManager NS_OUTPARAM, PRUint16 *flags NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultSecurityManager(aManager, flags); } \
927 : NS_IMETHOD CreateStackFrameLocation(PRUint32 aLanguage, const char * aFilename, const char * aFunctionName, PRInt32 aLineNumber, nsIStackFrame *aCaller, nsIStackFrame * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateStackFrameLocation(aLanguage, aFilename, aFunctionName, aLineNumber, aCaller, _retval); } \
928 : NS_IMETHOD SyncJSContexts(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SyncJSContexts(); } \
929 : NS_IMETHOD GetCurrentJSStack(nsIStackFrame * *aCurrentJSStack) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentJSStack(aCurrentJSStack); } \
930 : NS_IMETHOD GetCurrentNativeCallContext(nsAXPCNativeCallContext **aCurrentNativeCallContext) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentNativeCallContext(aCurrentNativeCallContext); } \
931 : NS_IMETHOD GetPendingException(nsIException * *aPendingException) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPendingException(aPendingException); } \
932 : NS_IMETHOD SetPendingException(nsIException *aPendingException) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPendingException(aPendingException); } \
933 : NS_IMETHOD DebugDump(PRInt16 depth) { return !_to ? NS_ERROR_NULL_POINTER : _to->DebugDump(depth); } \
934 : NS_IMETHOD DebugDumpObject(nsISupports *aCOMObj, PRInt16 depth) { return !_to ? NS_ERROR_NULL_POINTER : _to->DebugDumpObject(aCOMObj, depth); } \
935 : NS_IMETHOD DebugDumpJSStack(bool showArgs, bool showLocals, bool showThisProps) { return !_to ? NS_ERROR_NULL_POINTER : _to->DebugDumpJSStack(showArgs, showLocals, showThisProps); } \
936 : NS_IMETHOD DebugDumpEvalInJSStackFrame(PRUint32 aFrameNumber, const char * aSourceText) { return !_to ? NS_ERROR_NULL_POINTER : _to->DebugDumpEvalInJSStackFrame(aFrameNumber, aSourceText); } \
937 : NS_IMETHOD WrapJSAggregatedToNative(nsISupports *aOuter, JSContext *aJSContext, JSObject *aJSObj, const nsIID & aIID, void **result NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->WrapJSAggregatedToNative(aOuter, aJSContext, aJSObj, aIID, result); } \
938 : NS_IMETHOD GetWrappedNativeOfNativeObject(JSContext *aJSContext, JSObject *aScope, nsISupports *aCOMObj, const nsIID & aIID, nsIXPConnectWrappedNative * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWrappedNativeOfNativeObject(aJSContext, aScope, aCOMObj, aIID, _retval); } \
939 : NS_IMETHOD GetFunctionThisTranslator(const nsIID & aIID, nsIXPCFunctionThisTranslator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFunctionThisTranslator(aIID, _retval); } \
940 : NS_IMETHOD SetFunctionThisTranslator(const nsIID & aIID, nsIXPCFunctionThisTranslator *aTranslator, nsIXPCFunctionThisTranslator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFunctionThisTranslator(aIID, aTranslator, _retval); } \
941 : NS_IMETHOD ReparentWrappedNativeIfFound(JSContext *aJSContext, JSObject *aScope, JSObject *aNewParent, nsISupports *aCOMObj, nsIXPConnectJSObjectHolder * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReparentWrappedNativeIfFound(aJSContext, aScope, aNewParent, aCOMObj, _retval); } \
942 : NS_IMETHOD MoveWrappers(JSContext *aJSContext, JSObject *aOldScope, JSObject *aNewScope) { return !_to ? NS_ERROR_NULL_POINTER : _to->MoveWrappers(aJSContext, aOldScope, aNewScope); } \
943 : NS_IMETHOD ClearAllWrappedNativeSecurityPolicies(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearAllWrappedNativeSecurityPolicies(); } \
944 : NS_IMETHOD GetWrappedNativePrototype(JSContext *aJSContext, JSObject *aScope, nsIClassInfo *aClassInfo, nsIXPConnectJSObjectHolder * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWrappedNativePrototype(aJSContext, aScope, aClassInfo, _retval); } \
945 : NS_IMETHOD ReleaseJSContext(JSContext *aJSContext, bool noGC) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReleaseJSContext(aJSContext, noGC); } \
946 : NS_IMETHOD VariantToJS(JSContext *ctx, JSObject *scope, nsIVariant *value, JS::Value *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->VariantToJS(ctx, scope, value, _retval); } \
947 : NS_IMETHOD JSToVariant(JSContext *ctx, const JS::Value & value, nsIVariant * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->JSToVariant(ctx, value, _retval); } \
948 : NS_IMETHOD CreateSandbox(JSContext *cx, nsIPrincipal *principal, nsIXPConnectJSObjectHolder * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateSandbox(cx, principal, _retval); } \
949 : NS_IMETHOD EvalInSandboxObject(const nsAString & source, JSContext *cx, nsIXPConnectJSObjectHolder *sandbox, bool returnStringOnly, JS::Value *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->EvalInSandboxObject(source, cx, sandbox, returnStringOnly, _retval); } \
950 : NS_IMETHOD AddJSHolder(void *aHolder, nsScriptObjectTracer *aTracer) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddJSHolder(aHolder, aTracer); } \
951 : NS_IMETHOD RemoveJSHolder(void *aHolder) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveJSHolder(aHolder); } \
952 : NS_IMETHOD_(void) NoteJSContext(JSContext *aJSContext, nsCycleCollectionTraversalCallback & aCb) { return !_to ? NS_ERROR_NULL_POINTER : _to->NoteJSContext(aJSContext, aCb); } \
953 : NS_IMETHOD SetReportAllJSExceptions(bool reportAllJSExceptions) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetReportAllJSExceptions(reportAllJSExceptions); } \
954 : NS_IMETHOD GarbageCollect(PRUint32 reason, PRUint32 kind) { return !_to ? NS_ERROR_NULL_POINTER : _to->GarbageCollect(reason, kind); } \
955 : NS_IMETHOD NotifyDidPaint(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyDidPaint(); } \
956 : NS_IMETHOD_(bool) DefineDOMQuickStubs(JSContext *cx, JSObject *proto, PRUint32 flags, PRUint32 interfaceCount, const nsIID **interfaceArray) { return !_to ? NS_ERROR_NULL_POINTER : _to->DefineDOMQuickStubs(cx, proto, flags, interfaceCount, interfaceArray); } \
957 : NS_IMETHOD HoldObject(JSContext *aJSContext, JSObject *aObject, nsIXPConnectJSObjectHolder * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->HoldObject(aJSContext, aObject, _retval); } \
958 : NS_IMETHOD_(void) GetCaller(JSContext **aJSContext NS_OUTPARAM, JSObject **aObject NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCaller(aJSContext, aObject); } \
959 : NS_IMETHOD SetDebugModeWhenPossible(bool mode, bool allowSyncDisable) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDebugModeWhenPossible(mode, allowSyncDisable); }
960 :
961 : #if 0
962 : /* Use the code below as a template for the implementation class for this interface. */
963 :
964 : /* Header file */
965 : class nsXPConnect : public nsIXPConnect
966 : {
967 : public:
968 : NS_DECL_ISUPPORTS
969 : NS_DECL_NSIXPCONNECT
970 :
971 : nsXPConnect();
972 :
973 : private:
974 : ~nsXPConnect();
975 :
976 : protected:
977 : /* additional members */
978 : };
979 :
980 : /* Implementation file */
981 : NS_IMPL_ISUPPORTS1(nsXPConnect, nsIXPConnect)
982 :
983 : nsXPConnect::nsXPConnect()
984 : {
985 : /* member initializers and constructor code */
986 : }
987 :
988 : nsXPConnect::~nsXPConnect()
989 : {
990 : /* destructor code */
991 : }
992 :
993 : /* void initClasses (in JSContextPtr aJSContext, in JSObjectPtr aGlobalJSObj); */
994 : NS_IMETHODIMP nsXPConnect::InitClasses(JSContext *aJSContext, JSObject *aGlobalJSObj)
995 : {
996 : return NS_ERROR_NOT_IMPLEMENTED;
997 : }
998 :
999 : /* nsIXPConnectJSObjectHolder initClassesWithNewWrappedGlobal (in JSContextPtr aJSContext, in nsISupports aCOMObj, in nsIPrincipal aPrincipal, in PRUint32 aFlags); */
1000 : NS_IMETHODIMP nsXPConnect::InitClassesWithNewWrappedGlobal(JSContext *aJSContext, nsISupports *aCOMObj, nsIPrincipal *aPrincipal, PRUint32 aFlags, nsIXPConnectJSObjectHolder * *_retval NS_OUTPARAM)
1001 : {
1002 : return NS_ERROR_NOT_IMPLEMENTED;
1003 : }
1004 :
1005 : /* nsIXPConnectJSObjectHolder wrapNative (in JSContextPtr aJSContext, in JSObjectPtr aScope, in nsISupports aCOMObj, in nsIIDRef aIID); */
1006 : NS_IMETHODIMP nsXPConnect::WrapNative(JSContext *aJSContext, JSObject *aScope, nsISupports *aCOMObj, const nsIID & aIID, nsIXPConnectJSObjectHolder * *_retval NS_OUTPARAM)
1007 : {
1008 : return NS_ERROR_NOT_IMPLEMENTED;
1009 : }
1010 :
1011 : /* void wrapNativeToJSVal (in JSContextPtr aJSContext, in JSObjectPtr aScope, in nsISupports aCOMObj, in nsWrapperCachePtr aCache, in nsIIDPtr aIID, in boolean aAllowWrapper, out jsval aVal, out nsIXPConnectJSObjectHolder aHolder); */
1012 : NS_IMETHODIMP nsXPConnect::WrapNativeToJSVal(JSContext *aJSContext, JSObject *aScope, nsISupports *aCOMObj, nsWrapperCache *aCache, const nsIID *aIID, bool aAllowWrapper, JS::Value *aVal NS_OUTPARAM, nsIXPConnectJSObjectHolder * *aHolder NS_OUTPARAM)
1013 : {
1014 : return NS_ERROR_NOT_IMPLEMENTED;
1015 : }
1016 :
1017 : /* void wrapJS (in JSContextPtr aJSContext, in JSObjectPtr aJSObj, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult result); */
1018 : NS_IMETHODIMP nsXPConnect::WrapJS(JSContext *aJSContext, JSObject *aJSObj, const nsIID & aIID, void **result NS_OUTPARAM)
1019 : {
1020 : return NS_ERROR_NOT_IMPLEMENTED;
1021 : }
1022 :
1023 : /* nsIVariant jSValToVariant (in JSContextPtr cx, in JSValPtr aJSVal); */
1024 : NS_IMETHODIMP nsXPConnect::JSValToVariant(JSContext *cx, jsval *aJSVal, nsIVariant * *_retval NS_OUTPARAM)
1025 : {
1026 : return NS_ERROR_NOT_IMPLEMENTED;
1027 : }
1028 :
1029 : /* nsIXPConnectWrappedNative getWrappedNativeOfJSObject (in JSContextPtr aJSContext, in JSObjectPtr aJSObj); */
1030 : NS_IMETHODIMP nsXPConnect::GetWrappedNativeOfJSObject(JSContext *aJSContext, JSObject *aJSObj, nsIXPConnectWrappedNative * *_retval NS_OUTPARAM)
1031 : {
1032 : return NS_ERROR_NOT_IMPLEMENTED;
1033 : }
1034 :
1035 : /* [noscript,notxpcom] nsISupports getNativeOfWrapper (in JSContextPtr aJSContext, in JSObjectPtr aJSObj); */
1036 : NS_IMETHODIMP_(nsISupports *) nsXPConnect::GetNativeOfWrapper(JSContext *aJSContext, JSObject *aJSObj)
1037 : {
1038 : return NS_ERROR_NOT_IMPLEMENTED;
1039 : }
1040 :
1041 : /* JSObjectPtr getJSObjectOfWrapper (in JSContextPtr aJSContext, in JSObjectPtr aJSObj); */
1042 : NS_IMETHODIMP nsXPConnect::GetJSObjectOfWrapper(JSContext *aJSContext, JSObject *aJSObj, JSObject **_retval NS_OUTPARAM)
1043 : {
1044 : return NS_ERROR_NOT_IMPLEMENTED;
1045 : }
1046 :
1047 : /* void setSecurityManagerForJSContext (in JSContextPtr aJSContext, in nsIXPCSecurityManager aManager, in PRUint16 flags); */
1048 : NS_IMETHODIMP nsXPConnect::SetSecurityManagerForJSContext(JSContext *aJSContext, nsIXPCSecurityManager *aManager, PRUint16 flags)
1049 : {
1050 : return NS_ERROR_NOT_IMPLEMENTED;
1051 : }
1052 :
1053 : /* void getSecurityManagerForJSContext (in JSContextPtr aJSContext, out nsIXPCSecurityManager aManager, out PRUint16 flags); */
1054 : NS_IMETHODIMP nsXPConnect::GetSecurityManagerForJSContext(JSContext *aJSContext, nsIXPCSecurityManager * *aManager NS_OUTPARAM, PRUint16 *flags NS_OUTPARAM)
1055 : {
1056 : return NS_ERROR_NOT_IMPLEMENTED;
1057 : }
1058 :
1059 : /* void setDefaultSecurityManager (in nsIXPCSecurityManager aManager, in PRUint16 flags); */
1060 : NS_IMETHODIMP nsXPConnect::SetDefaultSecurityManager(nsIXPCSecurityManager *aManager, PRUint16 flags)
1061 : {
1062 : return NS_ERROR_NOT_IMPLEMENTED;
1063 : }
1064 :
1065 : /* void getDefaultSecurityManager (out nsIXPCSecurityManager aManager, out PRUint16 flags); */
1066 : NS_IMETHODIMP nsXPConnect::GetDefaultSecurityManager(nsIXPCSecurityManager * *aManager NS_OUTPARAM, PRUint16 *flags NS_OUTPARAM)
1067 : {
1068 : return NS_ERROR_NOT_IMPLEMENTED;
1069 : }
1070 :
1071 : /* nsIStackFrame createStackFrameLocation (in PRUint32 aLanguage, in string aFilename, in string aFunctionName, in PRInt32 aLineNumber, in nsIStackFrame aCaller); */
1072 : NS_IMETHODIMP nsXPConnect::CreateStackFrameLocation(PRUint32 aLanguage, const char * aFilename, const char * aFunctionName, PRInt32 aLineNumber, nsIStackFrame *aCaller, nsIStackFrame * *_retval NS_OUTPARAM)
1073 : {
1074 : return NS_ERROR_NOT_IMPLEMENTED;
1075 : }
1076 :
1077 : /* [deprecated] void syncJSContexts (); */
1078 : NS_IMETHODIMP nsXPConnect::SyncJSContexts()
1079 : {
1080 : return NS_ERROR_NOT_IMPLEMENTED;
1081 : }
1082 :
1083 : /* readonly attribute nsIStackFrame CurrentJSStack; */
1084 : NS_IMETHODIMP nsXPConnect::GetCurrentJSStack(nsIStackFrame * *aCurrentJSStack)
1085 : {
1086 : return NS_ERROR_NOT_IMPLEMENTED;
1087 : }
1088 :
1089 : /* readonly attribute nsAXPCNativeCallContextPtr CurrentNativeCallContext; */
1090 : NS_IMETHODIMP nsXPConnect::GetCurrentNativeCallContext(nsAXPCNativeCallContext **aCurrentNativeCallContext)
1091 : {
1092 : return NS_ERROR_NOT_IMPLEMENTED;
1093 : }
1094 :
1095 : /* attribute nsIException PendingException; */
1096 : NS_IMETHODIMP nsXPConnect::GetPendingException(nsIException * *aPendingException)
1097 : {
1098 : return NS_ERROR_NOT_IMPLEMENTED;
1099 : }
1100 : NS_IMETHODIMP nsXPConnect::SetPendingException(nsIException *aPendingException)
1101 : {
1102 : return NS_ERROR_NOT_IMPLEMENTED;
1103 : }
1104 :
1105 : /* void debugDump (in short depth); */
1106 : NS_IMETHODIMP nsXPConnect::DebugDump(PRInt16 depth)
1107 : {
1108 : return NS_ERROR_NOT_IMPLEMENTED;
1109 : }
1110 :
1111 : /* void debugDumpObject (in nsISupports aCOMObj, in short depth); */
1112 : NS_IMETHODIMP nsXPConnect::DebugDumpObject(nsISupports *aCOMObj, PRInt16 depth)
1113 : {
1114 : return NS_ERROR_NOT_IMPLEMENTED;
1115 : }
1116 :
1117 : /* void debugDumpJSStack (in boolean showArgs, in boolean showLocals, in boolean showThisProps); */
1118 : NS_IMETHODIMP nsXPConnect::DebugDumpJSStack(bool showArgs, bool showLocals, bool showThisProps)
1119 : {
1120 : return NS_ERROR_NOT_IMPLEMENTED;
1121 : }
1122 :
1123 : /* void debugDumpEvalInJSStackFrame (in PRUint32 aFrameNumber, in string aSourceText); */
1124 : NS_IMETHODIMP nsXPConnect::DebugDumpEvalInJSStackFrame(PRUint32 aFrameNumber, const char * aSourceText)
1125 : {
1126 : return NS_ERROR_NOT_IMPLEMENTED;
1127 : }
1128 :
1129 : /* void wrapJSAggregatedToNative (in nsISupports aOuter, in JSContextPtr aJSContext, in JSObjectPtr aJSObj, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult result); */
1130 : NS_IMETHODIMP nsXPConnect::WrapJSAggregatedToNative(nsISupports *aOuter, JSContext *aJSContext, JSObject *aJSObj, const nsIID & aIID, void **result NS_OUTPARAM)
1131 : {
1132 : return NS_ERROR_NOT_IMPLEMENTED;
1133 : }
1134 :
1135 : /* nsIXPConnectWrappedNative getWrappedNativeOfNativeObject (in JSContextPtr aJSContext, in JSObjectPtr aScope, in nsISupports aCOMObj, in nsIIDRef aIID); */
1136 : NS_IMETHODIMP nsXPConnect::GetWrappedNativeOfNativeObject(JSContext *aJSContext, JSObject *aScope, nsISupports *aCOMObj, const nsIID & aIID, nsIXPConnectWrappedNative * *_retval NS_OUTPARAM)
1137 : {
1138 : return NS_ERROR_NOT_IMPLEMENTED;
1139 : }
1140 :
1141 : /* nsIXPCFunctionThisTranslator getFunctionThisTranslator (in nsIIDRef aIID); */
1142 : NS_IMETHODIMP nsXPConnect::GetFunctionThisTranslator(const nsIID & aIID, nsIXPCFunctionThisTranslator * *_retval NS_OUTPARAM)
1143 : {
1144 : return NS_ERROR_NOT_IMPLEMENTED;
1145 : }
1146 :
1147 : /* nsIXPCFunctionThisTranslator setFunctionThisTranslator (in nsIIDRef aIID, in nsIXPCFunctionThisTranslator aTranslator); */
1148 : NS_IMETHODIMP nsXPConnect::SetFunctionThisTranslator(const nsIID & aIID, nsIXPCFunctionThisTranslator *aTranslator, nsIXPCFunctionThisTranslator * *_retval NS_OUTPARAM)
1149 : {
1150 : return NS_ERROR_NOT_IMPLEMENTED;
1151 : }
1152 :
1153 : /* nsIXPConnectJSObjectHolder reparentWrappedNativeIfFound (in JSContextPtr aJSContext, in JSObjectPtr aScope, in JSObjectPtr aNewParent, in nsISupports aCOMObj); */
1154 : NS_IMETHODIMP nsXPConnect::ReparentWrappedNativeIfFound(JSContext *aJSContext, JSObject *aScope, JSObject *aNewParent, nsISupports *aCOMObj, nsIXPConnectJSObjectHolder * *_retval NS_OUTPARAM)
1155 : {
1156 : return NS_ERROR_NOT_IMPLEMENTED;
1157 : }
1158 :
1159 : /* void moveWrappers (in JSContextPtr aJSContext, in JSObjectPtr aOldScope, in JSObjectPtr aNewScope); */
1160 : NS_IMETHODIMP nsXPConnect::MoveWrappers(JSContext *aJSContext, JSObject *aOldScope, JSObject *aNewScope)
1161 : {
1162 : return NS_ERROR_NOT_IMPLEMENTED;
1163 : }
1164 :
1165 : /* void clearAllWrappedNativeSecurityPolicies (); */
1166 : NS_IMETHODIMP nsXPConnect::ClearAllWrappedNativeSecurityPolicies()
1167 : {
1168 : return NS_ERROR_NOT_IMPLEMENTED;
1169 : }
1170 :
1171 : /* nsIXPConnectJSObjectHolder getWrappedNativePrototype (in JSContextPtr aJSContext, in JSObjectPtr aScope, in nsIClassInfo aClassInfo); */
1172 : NS_IMETHODIMP nsXPConnect::GetWrappedNativePrototype(JSContext *aJSContext, JSObject *aScope, nsIClassInfo *aClassInfo, nsIXPConnectJSObjectHolder * *_retval NS_OUTPARAM)
1173 : {
1174 : return NS_ERROR_NOT_IMPLEMENTED;
1175 : }
1176 :
1177 : /* void releaseJSContext (in JSContextPtr aJSContext, in boolean noGC); */
1178 : NS_IMETHODIMP nsXPConnect::ReleaseJSContext(JSContext *aJSContext, bool noGC)
1179 : {
1180 : return NS_ERROR_NOT_IMPLEMENTED;
1181 : }
1182 :
1183 : /* jsval variantToJS (in JSContextPtr ctx, in JSObjectPtr scope, in nsIVariant value); */
1184 : NS_IMETHODIMP nsXPConnect::VariantToJS(JSContext *ctx, JSObject *scope, nsIVariant *value, JS::Value *_retval NS_OUTPARAM)
1185 : {
1186 : return NS_ERROR_NOT_IMPLEMENTED;
1187 : }
1188 :
1189 : /* nsIVariant JSToVariant (in JSContextPtr ctx, in jsval value); */
1190 : NS_IMETHODIMP nsXPConnect::JSToVariant(JSContext *ctx, const JS::Value & value, nsIVariant * *_retval NS_OUTPARAM)
1191 : {
1192 : return NS_ERROR_NOT_IMPLEMENTED;
1193 : }
1194 :
1195 : /* [noscript] nsIXPConnectJSObjectHolder createSandbox (in JSContextPtr cx, in nsIPrincipal principal); */
1196 : NS_IMETHODIMP nsXPConnect::CreateSandbox(JSContext *cx, nsIPrincipal *principal, nsIXPConnectJSObjectHolder * *_retval NS_OUTPARAM)
1197 : {
1198 : return NS_ERROR_NOT_IMPLEMENTED;
1199 : }
1200 :
1201 : /* [noscript] jsval evalInSandboxObject (in AString source, in JSContextPtr cx, in nsIXPConnectJSObjectHolder sandbox, in boolean returnStringOnly); */
1202 : NS_IMETHODIMP nsXPConnect::EvalInSandboxObject(const nsAString & source, JSContext *cx, nsIXPConnectJSObjectHolder *sandbox, bool returnStringOnly, JS::Value *_retval NS_OUTPARAM)
1203 : {
1204 : return NS_ERROR_NOT_IMPLEMENTED;
1205 : }
1206 :
1207 : /* [noscript] void addJSHolder (in voidPtr aHolder, in nsScriptObjectTracerPtr aTracer); */
1208 : NS_IMETHODIMP nsXPConnect::AddJSHolder(void *aHolder, nsScriptObjectTracer *aTracer)
1209 : {
1210 : return NS_ERROR_NOT_IMPLEMENTED;
1211 : }
1212 :
1213 : /* [noscript] void removeJSHolder (in voidPtr aHolder); */
1214 : NS_IMETHODIMP nsXPConnect::RemoveJSHolder(void *aHolder)
1215 : {
1216 : return NS_ERROR_NOT_IMPLEMENTED;
1217 : }
1218 :
1219 : /* [noscript,notxpcom] void noteJSContext (in JSContextPtr aJSContext, in nsCCTraversalCallbackRef aCb); */
1220 : NS_IMETHODIMP_(void) nsXPConnect::NoteJSContext(JSContext *aJSContext, nsCycleCollectionTraversalCallback & aCb)
1221 : {
1222 : return NS_ERROR_NOT_IMPLEMENTED;
1223 : }
1224 :
1225 : /* void setReportAllJSExceptions (in boolean reportAllJSExceptions); */
1226 : NS_IMETHODIMP nsXPConnect::SetReportAllJSExceptions(bool reportAllJSExceptions)
1227 : {
1228 : return NS_ERROR_NOT_IMPLEMENTED;
1229 : }
1230 :
1231 : /* void GarbageCollect (in PRUint32 reason, in PRUint32 kind); */
1232 : NS_IMETHODIMP nsXPConnect::GarbageCollect(PRUint32 reason, PRUint32 kind)
1233 : {
1234 : return NS_ERROR_NOT_IMPLEMENTED;
1235 : }
1236 :
1237 : /* void NotifyDidPaint (); */
1238 : NS_IMETHODIMP nsXPConnect::NotifyDidPaint()
1239 : {
1240 : return NS_ERROR_NOT_IMPLEMENTED;
1241 : }
1242 :
1243 : /* [noscript,notxpcom] boolean defineDOMQuickStubs (in JSContextPtr cx, in JSObjectPtr proto, in PRUint32 flags, in PRUint32 interfaceCount, [array, size_is (interfaceCount)] in nsIIDPtr interfaceArray); */
1244 : NS_IMETHODIMP_(bool) nsXPConnect::DefineDOMQuickStubs(JSContext *cx, JSObject *proto, PRUint32 flags, PRUint32 interfaceCount, const nsIID **interfaceArray)
1245 : {
1246 : return NS_ERROR_NOT_IMPLEMENTED;
1247 : }
1248 :
1249 : /* nsIXPConnectJSObjectHolder holdObject (in JSContextPtr aJSContext, in JSObjectPtr aObject); */
1250 : NS_IMETHODIMP nsXPConnect::HoldObject(JSContext *aJSContext, JSObject *aObject, nsIXPConnectJSObjectHolder * *_retval NS_OUTPARAM)
1251 : {
1252 : return NS_ERROR_NOT_IMPLEMENTED;
1253 : }
1254 :
1255 : /* [noscript,notxpcom] void getCaller (out JSContextPtr aJSContext, out JSObjectPtr aObject); */
1256 : NS_IMETHODIMP_(void) nsXPConnect::GetCaller(JSContext **aJSContext NS_OUTPARAM, JSObject **aObject NS_OUTPARAM)
1257 : {
1258 : return NS_ERROR_NOT_IMPLEMENTED;
1259 : }
1260 :
1261 : /* [noscript] void setDebugModeWhenPossible (in boolean mode, in boolean allowSyncDisable); */
1262 : NS_IMETHODIMP nsXPConnect::SetDebugModeWhenPossible(bool mode, bool allowSyncDisable)
1263 : {
1264 : return NS_ERROR_NOT_IMPLEMENTED;
1265 : }
1266 :
1267 : /* End of implementation class template. */
1268 : #endif
1269 :
1270 :
1271 : #endif /* __gen_nsIXPConnect_h__ */
|