Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIJSInspector.idl
3 : */
4 :
5 : #ifndef __gen_nsIJSInspector_h__
6 : #define __gen_nsIJSInspector_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #include "js/Value.h"
14 :
15 : /* For IDL files that don't want to include root IDL files. */
16 : #ifndef NS_NO_VTABLE
17 : #define NS_NO_VTABLE
18 : #endif
19 :
20 : /* starting interface: nsIJSInspector */
21 : #define NS_IJSINSPECTOR_IID_STR "6758d0d7-e96a-4c5c-bca8-3bcbe5a15943"
22 :
23 : #define NS_IJSINSPECTOR_IID \
24 : {0x6758d0d7, 0xe96a, 0x4c5c, \
25 : { 0xbc, 0xa8, 0x3b, 0xcb, 0xe5, 0xa1, 0x59, 0x43 }}
26 :
27 0 : class NS_NO_VTABLE nsIJSInspector : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IJSINSPECTOR_IID)
31 :
32 : /* unsigned long enterNestedEventLoop (in jsval requestor); */
33 : NS_IMETHOD EnterNestedEventLoop(JS::HandleValue requestor, uint32_t *_retval) = 0;
34 :
35 : /* unsigned long exitNestedEventLoop (); */
36 : NS_IMETHOD ExitNestedEventLoop(uint32_t *_retval) = 0;
37 :
38 : /* readonly attribute unsigned long eventLoopNestLevel; */
39 : NS_IMETHOD GetEventLoopNestLevel(uint32_t *aEventLoopNestLevel) = 0;
40 :
41 : /* readonly attribute jsval lastNestRequestor; */
42 : NS_IMETHOD GetLastNestRequestor(JS::MutableHandleValue aLastNestRequestor) = 0;
43 :
44 : };
45 :
46 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIJSInspector, NS_IJSINSPECTOR_IID)
47 :
48 : /* Use this macro when declaring classes that implement this interface. */
49 : #define NS_DECL_NSIJSINSPECTOR \
50 : NS_IMETHOD EnterNestedEventLoop(JS::HandleValue requestor, uint32_t *_retval) override; \
51 : NS_IMETHOD ExitNestedEventLoop(uint32_t *_retval) override; \
52 : NS_IMETHOD GetEventLoopNestLevel(uint32_t *aEventLoopNestLevel) override; \
53 : NS_IMETHOD GetLastNestRequestor(JS::MutableHandleValue aLastNestRequestor) override;
54 :
55 : /* Use this macro when declaring the members of this interface when the
56 : class doesn't implement the interface. This is useful for forwarding. */
57 : #define NS_DECL_NON_VIRTUAL_NSIJSINSPECTOR \
58 : nsresult EnterNestedEventLoop(JS::HandleValue requestor, uint32_t *_retval); \
59 : nsresult ExitNestedEventLoop(uint32_t *_retval); \
60 : nsresult GetEventLoopNestLevel(uint32_t *aEventLoopNestLevel); \
61 : nsresult GetLastNestRequestor(JS::MutableHandleValue aLastNestRequestor);
62 :
63 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
64 : #define NS_FORWARD_NSIJSINSPECTOR(_to) \
65 : NS_IMETHOD EnterNestedEventLoop(JS::HandleValue requestor, uint32_t *_retval) override { return _to EnterNestedEventLoop(requestor, _retval); } \
66 : NS_IMETHOD ExitNestedEventLoop(uint32_t *_retval) override { return _to ExitNestedEventLoop(_retval); } \
67 : NS_IMETHOD GetEventLoopNestLevel(uint32_t *aEventLoopNestLevel) override { return _to GetEventLoopNestLevel(aEventLoopNestLevel); } \
68 : NS_IMETHOD GetLastNestRequestor(JS::MutableHandleValue aLastNestRequestor) override { return _to GetLastNestRequestor(aLastNestRequestor); }
69 :
70 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
71 : #define NS_FORWARD_SAFE_NSIJSINSPECTOR(_to) \
72 : NS_IMETHOD EnterNestedEventLoop(JS::HandleValue requestor, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EnterNestedEventLoop(requestor, _retval); } \
73 : NS_IMETHOD ExitNestedEventLoop(uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ExitNestedEventLoop(_retval); } \
74 : NS_IMETHOD GetEventLoopNestLevel(uint32_t *aEventLoopNestLevel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEventLoopNestLevel(aEventLoopNestLevel); } \
75 : NS_IMETHOD GetLastNestRequestor(JS::MutableHandleValue aLastNestRequestor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastNestRequestor(aLastNestRequestor); }
76 :
77 : #if 0
78 : /* Use the code below as a template for the implementation class for this interface. */
79 :
80 : /* Header file */
81 : class nsJSInspector : public nsIJSInspector
82 : {
83 : public:
84 : NS_DECL_ISUPPORTS
85 : NS_DECL_NSIJSINSPECTOR
86 :
87 : nsJSInspector();
88 :
89 : private:
90 : ~nsJSInspector();
91 :
92 : protected:
93 : /* additional members */
94 : };
95 :
96 : /* Implementation file */
97 : NS_IMPL_ISUPPORTS(nsJSInspector, nsIJSInspector)
98 :
99 : nsJSInspector::nsJSInspector()
100 : {
101 : /* member initializers and constructor code */
102 : }
103 :
104 : nsJSInspector::~nsJSInspector()
105 : {
106 : /* destructor code */
107 : }
108 :
109 : /* unsigned long enterNestedEventLoop (in jsval requestor); */
110 : NS_IMETHODIMP nsJSInspector::EnterNestedEventLoop(JS::HandleValue requestor, uint32_t *_retval)
111 : {
112 : return NS_ERROR_NOT_IMPLEMENTED;
113 : }
114 :
115 : /* unsigned long exitNestedEventLoop (); */
116 : NS_IMETHODIMP nsJSInspector::ExitNestedEventLoop(uint32_t *_retval)
117 : {
118 : return NS_ERROR_NOT_IMPLEMENTED;
119 : }
120 :
121 : /* readonly attribute unsigned long eventLoopNestLevel; */
122 : NS_IMETHODIMP nsJSInspector::GetEventLoopNestLevel(uint32_t *aEventLoopNestLevel)
123 : {
124 : return NS_ERROR_NOT_IMPLEMENTED;
125 : }
126 :
127 : /* readonly attribute jsval lastNestRequestor; */
128 : NS_IMETHODIMP nsJSInspector::GetLastNestRequestor(JS::MutableHandleValue aLastNestRequestor)
129 : {
130 : return NS_ERROR_NOT_IMPLEMENTED;
131 : }
132 :
133 : /* End of implementation class template. */
134 : #endif
135 :
136 :
137 : #endif /* __gen_nsIJSInspector_h__ */
|