1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/js/xpconnect/idl/nsIJSRuntimeService.idl
3 : */
4 :
5 : #ifndef __gen_nsIJSRuntimeService_h__
6 : #define __gen_nsIJSRuntimeService_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 : class nsIXPCScriptable; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIJSRuntimeService */
21 : #define NS_IJSRUNTIMESERVICE_IID_STR "364bcec3-7034-4a4e-bff5-b3f796ca9771"
22 :
23 : #define NS_IJSRUNTIMESERVICE_IID \
24 : {0x364bcec3, 0x7034, 0x4a4e, \
25 : { 0xbf, 0xf5, 0xb3, 0xf7, 0x96, 0xca, 0x97, 0x71 }}
26 :
27 1404 : class NS_NO_VTABLE nsIJSRuntimeService : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IJSRUNTIMESERVICE_IID)
31 :
32 : /* readonly attribute JSRuntime runtime; */
33 : NS_IMETHOD GetRuntime(JSRuntime **aRuntime) = 0;
34 :
35 : /* readonly attribute nsIXPCScriptable backstagePass; */
36 : NS_IMETHOD GetBackstagePass(nsIXPCScriptable * *aBackstagePass) = 0;
37 :
38 : /* [noscript,notxpcom] void registerGCCallback (in JSGCCallback func); */
39 : NS_IMETHOD_(void) RegisterGCCallback(JSGCCallback func) = 0;
40 :
41 : /* [noscript,notxpcom] void unregisterGCCallback (in JSGCCallback func); */
42 : NS_IMETHOD_(void) UnregisterGCCallback(JSGCCallback func) = 0;
43 :
44 : };
45 :
46 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIJSRuntimeService, NS_IJSRUNTIMESERVICE_IID)
47 :
48 : /* Use this macro when declaring classes that implement this interface. */
49 : #define NS_DECL_NSIJSRUNTIMESERVICE \
50 : NS_IMETHOD GetRuntime(JSRuntime **aRuntime); \
51 : NS_IMETHOD GetBackstagePass(nsIXPCScriptable * *aBackstagePass); \
52 : NS_IMETHOD_(void) RegisterGCCallback(JSGCCallback func); \
53 : NS_IMETHOD_(void) UnregisterGCCallback(JSGCCallback func);
54 :
55 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
56 : #define NS_FORWARD_NSIJSRUNTIMESERVICE(_to) \
57 : NS_IMETHOD GetRuntime(JSRuntime **aRuntime) { return _to GetRuntime(aRuntime); } \
58 : NS_IMETHOD GetBackstagePass(nsIXPCScriptable * *aBackstagePass) { return _to GetBackstagePass(aBackstagePass); } \
59 : NS_IMETHOD_(void) RegisterGCCallback(JSGCCallback func) { return _to RegisterGCCallback(func); } \
60 : NS_IMETHOD_(void) UnregisterGCCallback(JSGCCallback func) { return _to UnregisterGCCallback(func); }
61 :
62 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
63 : #define NS_FORWARD_SAFE_NSIJSRUNTIMESERVICE(_to) \
64 : NS_IMETHOD GetRuntime(JSRuntime **aRuntime) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRuntime(aRuntime); } \
65 : NS_IMETHOD GetBackstagePass(nsIXPCScriptable * *aBackstagePass) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBackstagePass(aBackstagePass); } \
66 : NS_IMETHOD_(void) RegisterGCCallback(JSGCCallback func) { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterGCCallback(func); } \
67 : NS_IMETHOD_(void) UnregisterGCCallback(JSGCCallback func) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterGCCallback(func); }
68 :
69 : #if 0
70 : /* Use the code below as a template for the implementation class for this interface. */
71 :
72 : /* Header file */
73 : class nsJSRuntimeService : public nsIJSRuntimeService
74 : {
75 : public:
76 : NS_DECL_ISUPPORTS
77 : NS_DECL_NSIJSRUNTIMESERVICE
78 :
79 : nsJSRuntimeService();
80 :
81 : private:
82 : ~nsJSRuntimeService();
83 :
84 : protected:
85 : /* additional members */
86 : };
87 :
88 : /* Implementation file */
89 : NS_IMPL_ISUPPORTS1(nsJSRuntimeService, nsIJSRuntimeService)
90 :
91 : nsJSRuntimeService::nsJSRuntimeService()
92 : {
93 : /* member initializers and constructor code */
94 : }
95 :
96 : nsJSRuntimeService::~nsJSRuntimeService()
97 : {
98 : /* destructor code */
99 : }
100 :
101 : /* readonly attribute JSRuntime runtime; */
102 : NS_IMETHODIMP nsJSRuntimeService::GetRuntime(JSRuntime **aRuntime)
103 : {
104 : return NS_ERROR_NOT_IMPLEMENTED;
105 : }
106 :
107 : /* readonly attribute nsIXPCScriptable backstagePass; */
108 : NS_IMETHODIMP nsJSRuntimeService::GetBackstagePass(nsIXPCScriptable * *aBackstagePass)
109 : {
110 : return NS_ERROR_NOT_IMPLEMENTED;
111 : }
112 :
113 : /* [noscript,notxpcom] void registerGCCallback (in JSGCCallback func); */
114 : NS_IMETHODIMP_(void) nsJSRuntimeService::RegisterGCCallback(JSGCCallback func)
115 : {
116 : return NS_ERROR_NOT_IMPLEMENTED;
117 : }
118 :
119 : /* [noscript,notxpcom] void unregisterGCCallback (in JSGCCallback func); */
120 : NS_IMETHODIMP_(void) nsJSRuntimeService::UnregisterGCCallback(JSGCCallback func)
121 : {
122 : return NS_ERROR_NOT_IMPLEMENTED;
123 : }
124 :
125 : /* End of implementation class template. */
126 : #endif
127 :
128 :
129 : #endif /* __gen_nsIJSRuntimeService_h__ */
|