/work/obj-fuzz/dist/include/mozilla/dom/VRServiceTestBinding.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* THIS FILE IS AUTOGENERATED FROM VRServiceTest.webidl BY Codegen.py - DO NOT EDIT */ |
2 | | |
3 | | #ifndef mozilla_dom_VRServiceTestBinding_h |
4 | | #define mozilla_dom_VRServiceTestBinding_h |
5 | | |
6 | | #include "GeckoProfiler.h" |
7 | | #include "VRDisplayBinding.h" |
8 | | #include "js/RootingAPI.h" |
9 | | #include "jspubtd.h" |
10 | | #include "mozilla/ErrorResult.h" |
11 | | #include "mozilla/dom/BindingDeclarations.h" |
12 | | #include "mozilla/dom/Nullable.h" |
13 | | #include "mozilla/dom/PrototypeList.h" |
14 | | |
15 | | namespace mozilla { |
16 | | namespace dom { |
17 | | |
18 | | struct NativePropertyHooks; |
19 | | class ProtoAndIfaceCache; |
20 | | class VRMockController; |
21 | | struct VRMockControllerAtoms; |
22 | | class VRMockDisplay; |
23 | | struct VRMockDisplayAtoms; |
24 | | class VRServiceTest; |
25 | | struct VRServiceTestAtoms; |
26 | | |
27 | | } // namespace dom |
28 | | } // namespace mozilla |
29 | | |
30 | | namespace mozilla { |
31 | | namespace dom { |
32 | | |
33 | | namespace VRMockController_Binding { |
34 | | |
35 | | typedef mozilla::dom::VRMockController NativeType; |
36 | | |
37 | | bool |
38 | | ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj); |
39 | | |
40 | | const JSClass* |
41 | | GetJSClass(); |
42 | | |
43 | | bool |
44 | | Wrap(JSContext* aCx, mozilla::dom::VRMockController* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector); |
45 | | |
46 | | template <class T> |
47 | | inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto) |
48 | 0 | { |
49 | 0 | JS::Rooted<JSObject*> reflector(aCx); |
50 | 0 | return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr; |
51 | 0 | } |
52 | | |
53 | | // We declare this as an array so that retrieving a pointer to this |
54 | | // binding's property hooks only requires compile/link-time resolvable |
55 | | // address arithmetic. Declaring it as a pointer instead would require |
56 | | // doing a run-time load to fetch a pointer to this binding's property |
57 | | // hooks. And then structures which embedded a pointer to this structure |
58 | | // would require a run-time load for proper initialization, which would |
59 | | // then induce static constructors. Lots of static constructors. |
60 | | extern const NativePropertyHooks sNativePropertyHooks[]; |
61 | | |
62 | | void |
63 | | CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal); |
64 | | |
65 | | inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx) |
66 | 0 | { |
67 | 0 | /* Get the interface prototype object for this class. This will create the |
68 | 0 | object as needed. */ |
69 | 0 | return GetPerInterfaceObjectHandle(aCx, prototypes::id::VRMockController, |
70 | 0 | &CreateInterfaceObjects, |
71 | 0 | /* aDefineOnGlobal = */ true); |
72 | 0 |
|
73 | 0 | } |
74 | | |
75 | | inline JS::Handle<JSObject*> GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true) |
76 | 0 | { |
77 | 0 | /* Get the interface object for this class. This will create the object as |
78 | 0 | needed. */ |
79 | 0 |
|
80 | 0 | return GetPerInterfaceObjectHandle(aCx, constructors::id::VRMockController, |
81 | 0 | &CreateInterfaceObjects, |
82 | 0 | aDefineOnGlobal); |
83 | 0 | } |
84 | | |
85 | | JSObject* |
86 | | GetConstructorObject(JSContext* aCx); |
87 | | |
88 | | } // namespace VRMockController_Binding |
89 | | |
90 | | |
91 | | |
92 | | namespace VRMockDisplay_Binding { |
93 | | |
94 | | typedef mozilla::dom::VRMockDisplay NativeType; |
95 | | |
96 | | bool |
97 | | ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj); |
98 | | |
99 | | const JSClass* |
100 | | GetJSClass(); |
101 | | |
102 | | bool |
103 | | Wrap(JSContext* aCx, mozilla::dom::VRMockDisplay* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector); |
104 | | |
105 | | template <class T> |
106 | | inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto) |
107 | 0 | { |
108 | 0 | JS::Rooted<JSObject*> reflector(aCx); |
109 | 0 | return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr; |
110 | 0 | } |
111 | | |
112 | | // We declare this as an array so that retrieving a pointer to this |
113 | | // binding's property hooks only requires compile/link-time resolvable |
114 | | // address arithmetic. Declaring it as a pointer instead would require |
115 | | // doing a run-time load to fetch a pointer to this binding's property |
116 | | // hooks. And then structures which embedded a pointer to this structure |
117 | | // would require a run-time load for proper initialization, which would |
118 | | // then induce static constructors. Lots of static constructors. |
119 | | extern const NativePropertyHooks sNativePropertyHooks[]; |
120 | | |
121 | | void |
122 | | CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal); |
123 | | |
124 | | inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx) |
125 | 0 | { |
126 | 0 | /* Get the interface prototype object for this class. This will create the |
127 | 0 | object as needed. */ |
128 | 0 | return GetPerInterfaceObjectHandle(aCx, prototypes::id::VRMockDisplay, |
129 | 0 | &CreateInterfaceObjects, |
130 | 0 | /* aDefineOnGlobal = */ true); |
131 | 0 |
|
132 | 0 | } |
133 | | |
134 | | inline JS::Handle<JSObject*> GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true) |
135 | 0 | { |
136 | 0 | /* Get the interface object for this class. This will create the object as |
137 | 0 | needed. */ |
138 | 0 |
|
139 | 0 | return GetPerInterfaceObjectHandle(aCx, constructors::id::VRMockDisplay, |
140 | 0 | &CreateInterfaceObjects, |
141 | 0 | aDefineOnGlobal); |
142 | 0 | } |
143 | | |
144 | | JSObject* |
145 | | GetConstructorObject(JSContext* aCx); |
146 | | |
147 | | } // namespace VRMockDisplay_Binding |
148 | | |
149 | | |
150 | | |
151 | | namespace VRServiceTest_Binding { |
152 | | |
153 | | typedef mozilla::dom::VRServiceTest NativeType; |
154 | | |
155 | | bool |
156 | | ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj); |
157 | | |
158 | | const JSClass* |
159 | | GetJSClass(); |
160 | | |
161 | | bool |
162 | | Wrap(JSContext* aCx, mozilla::dom::VRServiceTest* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector); |
163 | | |
164 | | template <class T> |
165 | | inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto) |
166 | 0 | { |
167 | 0 | JS::Rooted<JSObject*> reflector(aCx); |
168 | 0 | return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr; |
169 | 0 | } |
170 | | |
171 | | // We declare this as an array so that retrieving a pointer to this |
172 | | // binding's property hooks only requires compile/link-time resolvable |
173 | | // address arithmetic. Declaring it as a pointer instead would require |
174 | | // doing a run-time load to fetch a pointer to this binding's property |
175 | | // hooks. And then structures which embedded a pointer to this structure |
176 | | // would require a run-time load for proper initialization, which would |
177 | | // then induce static constructors. Lots of static constructors. |
178 | | extern const NativePropertyHooks sNativePropertyHooks[]; |
179 | | |
180 | | void |
181 | | CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal); |
182 | | |
183 | | inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx) |
184 | 0 | { |
185 | 0 | /* Get the interface prototype object for this class. This will create the |
186 | 0 | object as needed. */ |
187 | 0 | return GetPerInterfaceObjectHandle(aCx, prototypes::id::VRServiceTest, |
188 | 0 | &CreateInterfaceObjects, |
189 | 0 | /* aDefineOnGlobal = */ true); |
190 | 0 |
|
191 | 0 | } |
192 | | |
193 | | inline JS::Handle<JSObject*> GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true) |
194 | 0 | { |
195 | 0 | /* Get the interface object for this class. This will create the object as |
196 | 0 | needed. */ |
197 | 0 |
|
198 | 0 | return GetPerInterfaceObjectHandle(aCx, constructors::id::VRServiceTest, |
199 | 0 | &CreateInterfaceObjects, |
200 | 0 | aDefineOnGlobal); |
201 | 0 | } |
202 | | |
203 | | JSObject* |
204 | | GetConstructorObject(JSContext* aCx); |
205 | | |
206 | | } // namespace VRServiceTest_Binding |
207 | | |
208 | | |
209 | | |
210 | | } // namespace dom |
211 | | } // namespace mozilla |
212 | | |
213 | | #endif // mozilla_dom_VRServiceTestBinding_h |