/work/obj-fuzz/dist/include/mozilla/dom/SVGPathSegBinding.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* THIS FILE IS AUTOGENERATED FROM SVGPathSeg.webidl BY Codegen.py - DO NOT EDIT */ |
2 | | |
3 | | #ifndef mozilla_dom_SVGPathSegBinding_h |
4 | | #define mozilla_dom_SVGPathSegBinding_h |
5 | | |
6 | | #include "GeckoProfiler.h" |
7 | | #include "js/RootingAPI.h" |
8 | | #include "jspubtd.h" |
9 | | #include "mozilla/ErrorResult.h" |
10 | | #include "mozilla/dom/BindingDeclarations.h" |
11 | | #include "mozilla/dom/Nullable.h" |
12 | | #include "mozilla/dom/PrototypeList.h" |
13 | | |
14 | | namespace mozilla { |
15 | | |
16 | | class DOMSVGPathSeg; |
17 | | class DOMSVGPathSegArcAbs; |
18 | | struct DOMSVGPathSegArcAbsAtoms; |
19 | | class DOMSVGPathSegArcRel; |
20 | | struct DOMSVGPathSegArcRelAtoms; |
21 | | struct DOMSVGPathSegAtoms; |
22 | | class DOMSVGPathSegClosePath; |
23 | | struct DOMSVGPathSegClosePathAtoms; |
24 | | class DOMSVGPathSegCurvetoCubicAbs; |
25 | | struct DOMSVGPathSegCurvetoCubicAbsAtoms; |
26 | | class DOMSVGPathSegCurvetoCubicRel; |
27 | | struct DOMSVGPathSegCurvetoCubicRelAtoms; |
28 | | class DOMSVGPathSegCurvetoCubicSmoothAbs; |
29 | | struct DOMSVGPathSegCurvetoCubicSmoothAbsAtoms; |
30 | | class DOMSVGPathSegCurvetoCubicSmoothRel; |
31 | | struct DOMSVGPathSegCurvetoCubicSmoothRelAtoms; |
32 | | class DOMSVGPathSegCurvetoQuadraticAbs; |
33 | | struct DOMSVGPathSegCurvetoQuadraticAbsAtoms; |
34 | | class DOMSVGPathSegCurvetoQuadraticRel; |
35 | | struct DOMSVGPathSegCurvetoQuadraticRelAtoms; |
36 | | class DOMSVGPathSegCurvetoQuadraticSmoothAbs; |
37 | | struct DOMSVGPathSegCurvetoQuadraticSmoothAbsAtoms; |
38 | | class DOMSVGPathSegCurvetoQuadraticSmoothRel; |
39 | | struct DOMSVGPathSegCurvetoQuadraticSmoothRelAtoms; |
40 | | class DOMSVGPathSegLinetoAbs; |
41 | | struct DOMSVGPathSegLinetoAbsAtoms; |
42 | | class DOMSVGPathSegLinetoHorizontalAbs; |
43 | | struct DOMSVGPathSegLinetoHorizontalAbsAtoms; |
44 | | class DOMSVGPathSegLinetoHorizontalRel; |
45 | | struct DOMSVGPathSegLinetoHorizontalRelAtoms; |
46 | | class DOMSVGPathSegLinetoRel; |
47 | | struct DOMSVGPathSegLinetoRelAtoms; |
48 | | class DOMSVGPathSegLinetoVerticalAbs; |
49 | | struct DOMSVGPathSegLinetoVerticalAbsAtoms; |
50 | | class DOMSVGPathSegLinetoVerticalRel; |
51 | | struct DOMSVGPathSegLinetoVerticalRelAtoms; |
52 | | class DOMSVGPathSegMovetoAbs; |
53 | | struct DOMSVGPathSegMovetoAbsAtoms; |
54 | | class DOMSVGPathSegMovetoRel; |
55 | | struct DOMSVGPathSegMovetoRelAtoms; |
56 | | |
57 | | namespace dom { |
58 | | |
59 | | struct NativePropertyHooks; |
60 | | class ProtoAndIfaceCache; |
61 | | |
62 | | } // namespace dom |
63 | | |
64 | | } // namespace mozilla |
65 | | |
66 | | namespace mozilla { |
67 | | namespace dom { |
68 | | |
69 | | namespace SVGPathSeg_Binding { |
70 | | |
71 | | typedef mozilla::DOMSVGPathSeg NativeType; |
72 | | |
73 | | static const uint16_t PATHSEG_UNKNOWN = 0; |
74 | | static const uint16_t PATHSEG_CLOSEPATH = 1; |
75 | | static const uint16_t PATHSEG_MOVETO_ABS = 2; |
76 | | static const uint16_t PATHSEG_MOVETO_REL = 3; |
77 | | static const uint16_t PATHSEG_LINETO_ABS = 4; |
78 | | static const uint16_t PATHSEG_LINETO_REL = 5; |
79 | | static const uint16_t PATHSEG_CURVETO_CUBIC_ABS = 6; |
80 | | static const uint16_t PATHSEG_CURVETO_CUBIC_REL = 7; |
81 | | static const uint16_t PATHSEG_CURVETO_QUADRATIC_ABS = 8; |
82 | | static const uint16_t PATHSEG_CURVETO_QUADRATIC_REL = 9; |
83 | | static const uint16_t PATHSEG_ARC_ABS = 10; |
84 | | static const uint16_t PATHSEG_ARC_REL = 11; |
85 | | static const uint16_t PATHSEG_LINETO_HORIZONTAL_ABS = 12; |
86 | | static const uint16_t PATHSEG_LINETO_HORIZONTAL_REL = 13; |
87 | | static const uint16_t PATHSEG_LINETO_VERTICAL_ABS = 14; |
88 | | static const uint16_t PATHSEG_LINETO_VERTICAL_REL = 15; |
89 | | static const uint16_t PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16; |
90 | | static const uint16_t PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17; |
91 | | static const uint16_t PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18; |
92 | | static const uint16_t PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19; |
93 | | // We declare this as an array so that retrieving a pointer to this |
94 | | // binding's property hooks only requires compile/link-time resolvable |
95 | | // address arithmetic. Declaring it as a pointer instead would require |
96 | | // doing a run-time load to fetch a pointer to this binding's property |
97 | | // hooks. And then structures which embedded a pointer to this structure |
98 | | // would require a run-time load for proper initialization, which would |
99 | | // then induce static constructors. Lots of static constructors. |
100 | | extern const NativePropertyHooks sNativePropertyHooks[]; |
101 | | |
102 | | void |
103 | | CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal); |
104 | | |
105 | | inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx) |
106 | 0 | { |
107 | 0 | /* Get the interface prototype object for this class. This will create the |
108 | 0 | object as needed. */ |
109 | 0 | return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSeg, |
110 | 0 | &CreateInterfaceObjects, |
111 | 0 | /* aDefineOnGlobal = */ true); |
112 | 0 |
|
113 | 0 | } |
114 | | |
115 | | JSObject* |
116 | | GetProtoObject(JSContext* aCx); |
117 | | |
118 | | } // namespace SVGPathSeg_Binding |
119 | | |
120 | | |
121 | | |
122 | | namespace SVGPathSegArcAbs_Binding { |
123 | | |
124 | | typedef mozilla::DOMSVGPathSegArcAbs NativeType; |
125 | | |
126 | | const JSClass* |
127 | | GetJSClass(); |
128 | | |
129 | | bool |
130 | | Wrap(JSContext* aCx, mozilla::DOMSVGPathSegArcAbs* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector); |
131 | | |
132 | | template <class T> |
133 | | inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto) |
134 | 0 | { |
135 | 0 | JS::Rooted<JSObject*> reflector(aCx); |
136 | 0 | return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr; |
137 | 0 | } |
138 | | |
139 | | // We declare this as an array so that retrieving a pointer to this |
140 | | // binding's property hooks only requires compile/link-time resolvable |
141 | | // address arithmetic. Declaring it as a pointer instead would require |
142 | | // doing a run-time load to fetch a pointer to this binding's property |
143 | | // hooks. And then structures which embedded a pointer to this structure |
144 | | // would require a run-time load for proper initialization, which would |
145 | | // then induce static constructors. Lots of static constructors. |
146 | | extern const NativePropertyHooks sNativePropertyHooks[]; |
147 | | |
148 | | void |
149 | | CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal); |
150 | | |
151 | | inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx) |
152 | 0 | { |
153 | 0 | /* Get the interface prototype object for this class. This will create the |
154 | 0 | object as needed. */ |
155 | 0 | return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegArcAbs, |
156 | 0 | &CreateInterfaceObjects, |
157 | 0 | /* aDefineOnGlobal = */ true); |
158 | 0 |
|
159 | 0 | } |
160 | | |
161 | | } // namespace SVGPathSegArcAbs_Binding |
162 | | |
163 | | |
164 | | |
165 | | namespace SVGPathSegArcRel_Binding { |
166 | | |
167 | | typedef mozilla::DOMSVGPathSegArcRel NativeType; |
168 | | |
169 | | const JSClass* |
170 | | GetJSClass(); |
171 | | |
172 | | bool |
173 | | Wrap(JSContext* aCx, mozilla::DOMSVGPathSegArcRel* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector); |
174 | | |
175 | | template <class T> |
176 | | inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto) |
177 | 0 | { |
178 | 0 | JS::Rooted<JSObject*> reflector(aCx); |
179 | 0 | return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr; |
180 | 0 | } |
181 | | |
182 | | // We declare this as an array so that retrieving a pointer to this |
183 | | // binding's property hooks only requires compile/link-time resolvable |
184 | | // address arithmetic. Declaring it as a pointer instead would require |
185 | | // doing a run-time load to fetch a pointer to this binding's property |
186 | | // hooks. And then structures which embedded a pointer to this structure |
187 | | // would require a run-time load for proper initialization, which would |
188 | | // then induce static constructors. Lots of static constructors. |
189 | | extern const NativePropertyHooks sNativePropertyHooks[]; |
190 | | |
191 | | void |
192 | | CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal); |
193 | | |
194 | | inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx) |
195 | 0 | { |
196 | 0 | /* Get the interface prototype object for this class. This will create the |
197 | 0 | object as needed. */ |
198 | 0 | return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegArcRel, |
199 | 0 | &CreateInterfaceObjects, |
200 | 0 | /* aDefineOnGlobal = */ true); |
201 | 0 |
|
202 | 0 | } |
203 | | |
204 | | } // namespace SVGPathSegArcRel_Binding |
205 | | |
206 | | |
207 | | |
208 | | namespace SVGPathSegClosePath_Binding { |
209 | | |
210 | | typedef mozilla::DOMSVGPathSegClosePath NativeType; |
211 | | |
212 | | const JSClass* |
213 | | GetJSClass(); |
214 | | |
215 | | bool |
216 | | Wrap(JSContext* aCx, mozilla::DOMSVGPathSegClosePath* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector); |
217 | | |
218 | | template <class T> |
219 | | inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto) |
220 | 0 | { |
221 | 0 | JS::Rooted<JSObject*> reflector(aCx); |
222 | 0 | return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr; |
223 | 0 | } |
224 | | |
225 | | // We declare this as an array so that retrieving a pointer to this |
226 | | // binding's property hooks only requires compile/link-time resolvable |
227 | | // address arithmetic. Declaring it as a pointer instead would require |
228 | | // doing a run-time load to fetch a pointer to this binding's property |
229 | | // hooks. And then structures which embedded a pointer to this structure |
230 | | // would require a run-time load for proper initialization, which would |
231 | | // then induce static constructors. Lots of static constructors. |
232 | | extern const NativePropertyHooks sNativePropertyHooks[]; |
233 | | |
234 | | void |
235 | | CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal); |
236 | | |
237 | | inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx) |
238 | 0 | { |
239 | 0 | /* Get the interface prototype object for this class. This will create the |
240 | 0 | object as needed. */ |
241 | 0 | return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegClosePath, |
242 | 0 | &CreateInterfaceObjects, |
243 | 0 | /* aDefineOnGlobal = */ true); |
244 | 0 |
|
245 | 0 | } |
246 | | |
247 | | } // namespace SVGPathSegClosePath_Binding |
248 | | |
249 | | |
250 | | |
251 | | namespace SVGPathSegCurvetoCubicAbs_Binding { |
252 | | |
253 | | typedef mozilla::DOMSVGPathSegCurvetoCubicAbs NativeType; |
254 | | |
255 | | const JSClass* |
256 | | GetJSClass(); |
257 | | |
258 | | bool |
259 | | Wrap(JSContext* aCx, mozilla::DOMSVGPathSegCurvetoCubicAbs* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector); |
260 | | |
261 | | template <class T> |
262 | | inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto) |
263 | 0 | { |
264 | 0 | JS::Rooted<JSObject*> reflector(aCx); |
265 | 0 | return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr; |
266 | 0 | } |
267 | | |
268 | | // We declare this as an array so that retrieving a pointer to this |
269 | | // binding's property hooks only requires compile/link-time resolvable |
270 | | // address arithmetic. Declaring it as a pointer instead would require |
271 | | // doing a run-time load to fetch a pointer to this binding's property |
272 | | // hooks. And then structures which embedded a pointer to this structure |
273 | | // would require a run-time load for proper initialization, which would |
274 | | // then induce static constructors. Lots of static constructors. |
275 | | extern const NativePropertyHooks sNativePropertyHooks[]; |
276 | | |
277 | | void |
278 | | CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal); |
279 | | |
280 | | inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx) |
281 | 0 | { |
282 | 0 | /* Get the interface prototype object for this class. This will create the |
283 | 0 | object as needed. */ |
284 | 0 | return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegCurvetoCubicAbs, |
285 | 0 | &CreateInterfaceObjects, |
286 | 0 | /* aDefineOnGlobal = */ true); |
287 | 0 |
|
288 | 0 | } |
289 | | |
290 | | } // namespace SVGPathSegCurvetoCubicAbs_Binding |
291 | | |
292 | | |
293 | | |
294 | | namespace SVGPathSegCurvetoCubicRel_Binding { |
295 | | |
296 | | typedef mozilla::DOMSVGPathSegCurvetoCubicRel NativeType; |
297 | | |
298 | | const JSClass* |
299 | | GetJSClass(); |
300 | | |
301 | | bool |
302 | | Wrap(JSContext* aCx, mozilla::DOMSVGPathSegCurvetoCubicRel* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector); |
303 | | |
304 | | template <class T> |
305 | | inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto) |
306 | 0 | { |
307 | 0 | JS::Rooted<JSObject*> reflector(aCx); |
308 | 0 | return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr; |
309 | 0 | } |
310 | | |
311 | | // We declare this as an array so that retrieving a pointer to this |
312 | | // binding's property hooks only requires compile/link-time resolvable |
313 | | // address arithmetic. Declaring it as a pointer instead would require |
314 | | // doing a run-time load to fetch a pointer to this binding's property |
315 | | // hooks. And then structures which embedded a pointer to this structure |
316 | | // would require a run-time load for proper initialization, which would |
317 | | // then induce static constructors. Lots of static constructors. |
318 | | extern const NativePropertyHooks sNativePropertyHooks[]; |
319 | | |
320 | | void |
321 | | CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal); |
322 | | |
323 | | inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx) |
324 | 0 | { |
325 | 0 | /* Get the interface prototype object for this class. This will create the |
326 | 0 | object as needed. */ |
327 | 0 | return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegCurvetoCubicRel, |
328 | 0 | &CreateInterfaceObjects, |
329 | 0 | /* aDefineOnGlobal = */ true); |
330 | 0 |
|
331 | 0 | } |
332 | | |
333 | | } // namespace SVGPathSegCurvetoCubicRel_Binding |
334 | | |
335 | | |
336 | | |
337 | | namespace SVGPathSegCurvetoCubicSmoothAbs_Binding { |
338 | | |
339 | | typedef mozilla::DOMSVGPathSegCurvetoCubicSmoothAbs NativeType; |
340 | | |
341 | | const JSClass* |
342 | | GetJSClass(); |
343 | | |
344 | | bool |
345 | | Wrap(JSContext* aCx, mozilla::DOMSVGPathSegCurvetoCubicSmoothAbs* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector); |
346 | | |
347 | | template <class T> |
348 | | inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto) |
349 | 0 | { |
350 | 0 | JS::Rooted<JSObject*> reflector(aCx); |
351 | 0 | return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr; |
352 | 0 | } |
353 | | |
354 | | // We declare this as an array so that retrieving a pointer to this |
355 | | // binding's property hooks only requires compile/link-time resolvable |
356 | | // address arithmetic. Declaring it as a pointer instead would require |
357 | | // doing a run-time load to fetch a pointer to this binding's property |
358 | | // hooks. And then structures which embedded a pointer to this structure |
359 | | // would require a run-time load for proper initialization, which would |
360 | | // then induce static constructors. Lots of static constructors. |
361 | | extern const NativePropertyHooks sNativePropertyHooks[]; |
362 | | |
363 | | void |
364 | | CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal); |
365 | | |
366 | | inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx) |
367 | 0 | { |
368 | 0 | /* Get the interface prototype object for this class. This will create the |
369 | 0 | object as needed. */ |
370 | 0 | return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegCurvetoCubicSmoothAbs, |
371 | 0 | &CreateInterfaceObjects, |
372 | 0 | /* aDefineOnGlobal = */ true); |
373 | 0 |
|
374 | 0 | } |
375 | | |
376 | | } // namespace SVGPathSegCurvetoCubicSmoothAbs_Binding |
377 | | |
378 | | |
379 | | |
380 | | namespace SVGPathSegCurvetoCubicSmoothRel_Binding { |
381 | | |
382 | | typedef mozilla::DOMSVGPathSegCurvetoCubicSmoothRel NativeType; |
383 | | |
384 | | const JSClass* |
385 | | GetJSClass(); |
386 | | |
387 | | bool |
388 | | Wrap(JSContext* aCx, mozilla::DOMSVGPathSegCurvetoCubicSmoothRel* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector); |
389 | | |
390 | | template <class T> |
391 | | inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto) |
392 | 0 | { |
393 | 0 | JS::Rooted<JSObject*> reflector(aCx); |
394 | 0 | return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr; |
395 | 0 | } |
396 | | |
397 | | // We declare this as an array so that retrieving a pointer to this |
398 | | // binding's property hooks only requires compile/link-time resolvable |
399 | | // address arithmetic. Declaring it as a pointer instead would require |
400 | | // doing a run-time load to fetch a pointer to this binding's property |
401 | | // hooks. And then structures which embedded a pointer to this structure |
402 | | // would require a run-time load for proper initialization, which would |
403 | | // then induce static constructors. Lots of static constructors. |
404 | | extern const NativePropertyHooks sNativePropertyHooks[]; |
405 | | |
406 | | void |
407 | | CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal); |
408 | | |
409 | | inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx) |
410 | 0 | { |
411 | 0 | /* Get the interface prototype object for this class. This will create the |
412 | 0 | object as needed. */ |
413 | 0 | return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegCurvetoCubicSmoothRel, |
414 | 0 | &CreateInterfaceObjects, |
415 | 0 | /* aDefineOnGlobal = */ true); |
416 | 0 |
|
417 | 0 | } |
418 | | |
419 | | } // namespace SVGPathSegCurvetoCubicSmoothRel_Binding |
420 | | |
421 | | |
422 | | |
423 | | namespace SVGPathSegCurvetoQuadraticAbs_Binding { |
424 | | |
425 | | typedef mozilla::DOMSVGPathSegCurvetoQuadraticAbs NativeType; |
426 | | |
427 | | const JSClass* |
428 | | GetJSClass(); |
429 | | |
430 | | bool |
431 | | Wrap(JSContext* aCx, mozilla::DOMSVGPathSegCurvetoQuadraticAbs* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector); |
432 | | |
433 | | template <class T> |
434 | | inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto) |
435 | 0 | { |
436 | 0 | JS::Rooted<JSObject*> reflector(aCx); |
437 | 0 | return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr; |
438 | 0 | } |
439 | | |
440 | | // We declare this as an array so that retrieving a pointer to this |
441 | | // binding's property hooks only requires compile/link-time resolvable |
442 | | // address arithmetic. Declaring it as a pointer instead would require |
443 | | // doing a run-time load to fetch a pointer to this binding's property |
444 | | // hooks. And then structures which embedded a pointer to this structure |
445 | | // would require a run-time load for proper initialization, which would |
446 | | // then induce static constructors. Lots of static constructors. |
447 | | extern const NativePropertyHooks sNativePropertyHooks[]; |
448 | | |
449 | | void |
450 | | CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal); |
451 | | |
452 | | inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx) |
453 | 0 | { |
454 | 0 | /* Get the interface prototype object for this class. This will create the |
455 | 0 | object as needed. */ |
456 | 0 | return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegCurvetoQuadraticAbs, |
457 | 0 | &CreateInterfaceObjects, |
458 | 0 | /* aDefineOnGlobal = */ true); |
459 | 0 |
|
460 | 0 | } |
461 | | |
462 | | } // namespace SVGPathSegCurvetoQuadraticAbs_Binding |
463 | | |
464 | | |
465 | | |
466 | | namespace SVGPathSegCurvetoQuadraticRel_Binding { |
467 | | |
468 | | typedef mozilla::DOMSVGPathSegCurvetoQuadraticRel NativeType; |
469 | | |
470 | | const JSClass* |
471 | | GetJSClass(); |
472 | | |
473 | | bool |
474 | | Wrap(JSContext* aCx, mozilla::DOMSVGPathSegCurvetoQuadraticRel* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector); |
475 | | |
476 | | template <class T> |
477 | | inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto) |
478 | 0 | { |
479 | 0 | JS::Rooted<JSObject*> reflector(aCx); |
480 | 0 | return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr; |
481 | 0 | } |
482 | | |
483 | | // We declare this as an array so that retrieving a pointer to this |
484 | | // binding's property hooks only requires compile/link-time resolvable |
485 | | // address arithmetic. Declaring it as a pointer instead would require |
486 | | // doing a run-time load to fetch a pointer to this binding's property |
487 | | // hooks. And then structures which embedded a pointer to this structure |
488 | | // would require a run-time load for proper initialization, which would |
489 | | // then induce static constructors. Lots of static constructors. |
490 | | extern const NativePropertyHooks sNativePropertyHooks[]; |
491 | | |
492 | | void |
493 | | CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal); |
494 | | |
495 | | inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx) |
496 | 0 | { |
497 | 0 | /* Get the interface prototype object for this class. This will create the |
498 | 0 | object as needed. */ |
499 | 0 | return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegCurvetoQuadraticRel, |
500 | 0 | &CreateInterfaceObjects, |
501 | 0 | /* aDefineOnGlobal = */ true); |
502 | 0 |
|
503 | 0 | } |
504 | | |
505 | | } // namespace SVGPathSegCurvetoQuadraticRel_Binding |
506 | | |
507 | | |
508 | | |
509 | | namespace SVGPathSegCurvetoQuadraticSmoothAbs_Binding { |
510 | | |
511 | | typedef mozilla::DOMSVGPathSegCurvetoQuadraticSmoothAbs NativeType; |
512 | | |
513 | | const JSClass* |
514 | | GetJSClass(); |
515 | | |
516 | | bool |
517 | | Wrap(JSContext* aCx, mozilla::DOMSVGPathSegCurvetoQuadraticSmoothAbs* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector); |
518 | | |
519 | | template <class T> |
520 | | inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto) |
521 | 0 | { |
522 | 0 | JS::Rooted<JSObject*> reflector(aCx); |
523 | 0 | return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr; |
524 | 0 | } |
525 | | |
526 | | // We declare this as an array so that retrieving a pointer to this |
527 | | // binding's property hooks only requires compile/link-time resolvable |
528 | | // address arithmetic. Declaring it as a pointer instead would require |
529 | | // doing a run-time load to fetch a pointer to this binding's property |
530 | | // hooks. And then structures which embedded a pointer to this structure |
531 | | // would require a run-time load for proper initialization, which would |
532 | | // then induce static constructors. Lots of static constructors. |
533 | | extern const NativePropertyHooks sNativePropertyHooks[]; |
534 | | |
535 | | void |
536 | | CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal); |
537 | | |
538 | | inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx) |
539 | 0 | { |
540 | 0 | /* Get the interface prototype object for this class. This will create the |
541 | 0 | object as needed. */ |
542 | 0 | return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegCurvetoQuadraticSmoothAbs, |
543 | 0 | &CreateInterfaceObjects, |
544 | 0 | /* aDefineOnGlobal = */ true); |
545 | 0 |
|
546 | 0 | } |
547 | | |
548 | | } // namespace SVGPathSegCurvetoQuadraticSmoothAbs_Binding |
549 | | |
550 | | |
551 | | |
552 | | namespace SVGPathSegCurvetoQuadraticSmoothRel_Binding { |
553 | | |
554 | | typedef mozilla::DOMSVGPathSegCurvetoQuadraticSmoothRel NativeType; |
555 | | |
556 | | const JSClass* |
557 | | GetJSClass(); |
558 | | |
559 | | bool |
560 | | Wrap(JSContext* aCx, mozilla::DOMSVGPathSegCurvetoQuadraticSmoothRel* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector); |
561 | | |
562 | | template <class T> |
563 | | inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto) |
564 | 0 | { |
565 | 0 | JS::Rooted<JSObject*> reflector(aCx); |
566 | 0 | return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr; |
567 | 0 | } |
568 | | |
569 | | // We declare this as an array so that retrieving a pointer to this |
570 | | // binding's property hooks only requires compile/link-time resolvable |
571 | | // address arithmetic. Declaring it as a pointer instead would require |
572 | | // doing a run-time load to fetch a pointer to this binding's property |
573 | | // hooks. And then structures which embedded a pointer to this structure |
574 | | // would require a run-time load for proper initialization, which would |
575 | | // then induce static constructors. Lots of static constructors. |
576 | | extern const NativePropertyHooks sNativePropertyHooks[]; |
577 | | |
578 | | void |
579 | | CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal); |
580 | | |
581 | | inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx) |
582 | 0 | { |
583 | 0 | /* Get the interface prototype object for this class. This will create the |
584 | 0 | object as needed. */ |
585 | 0 | return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegCurvetoQuadraticSmoothRel, |
586 | 0 | &CreateInterfaceObjects, |
587 | 0 | /* aDefineOnGlobal = */ true); |
588 | 0 |
|
589 | 0 | } |
590 | | |
591 | | } // namespace SVGPathSegCurvetoQuadraticSmoothRel_Binding |
592 | | |
593 | | |
594 | | |
595 | | namespace SVGPathSegLinetoAbs_Binding { |
596 | | |
597 | | typedef mozilla::DOMSVGPathSegLinetoAbs NativeType; |
598 | | |
599 | | const JSClass* |
600 | | GetJSClass(); |
601 | | |
602 | | bool |
603 | | Wrap(JSContext* aCx, mozilla::DOMSVGPathSegLinetoAbs* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector); |
604 | | |
605 | | template <class T> |
606 | | inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto) |
607 | 0 | { |
608 | 0 | JS::Rooted<JSObject*> reflector(aCx); |
609 | 0 | return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr; |
610 | 0 | } |
611 | | |
612 | | // We declare this as an array so that retrieving a pointer to this |
613 | | // binding's property hooks only requires compile/link-time resolvable |
614 | | // address arithmetic. Declaring it as a pointer instead would require |
615 | | // doing a run-time load to fetch a pointer to this binding's property |
616 | | // hooks. And then structures which embedded a pointer to this structure |
617 | | // would require a run-time load for proper initialization, which would |
618 | | // then induce static constructors. Lots of static constructors. |
619 | | extern const NativePropertyHooks sNativePropertyHooks[]; |
620 | | |
621 | | void |
622 | | CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal); |
623 | | |
624 | | inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx) |
625 | 0 | { |
626 | 0 | /* Get the interface prototype object for this class. This will create the |
627 | 0 | object as needed. */ |
628 | 0 | return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegLinetoAbs, |
629 | 0 | &CreateInterfaceObjects, |
630 | 0 | /* aDefineOnGlobal = */ true); |
631 | 0 |
|
632 | 0 | } |
633 | | |
634 | | } // namespace SVGPathSegLinetoAbs_Binding |
635 | | |
636 | | |
637 | | |
638 | | namespace SVGPathSegLinetoHorizontalAbs_Binding { |
639 | | |
640 | | typedef mozilla::DOMSVGPathSegLinetoHorizontalAbs NativeType; |
641 | | |
642 | | const JSClass* |
643 | | GetJSClass(); |
644 | | |
645 | | bool |
646 | | Wrap(JSContext* aCx, mozilla::DOMSVGPathSegLinetoHorizontalAbs* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector); |
647 | | |
648 | | template <class T> |
649 | | inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto) |
650 | 0 | { |
651 | 0 | JS::Rooted<JSObject*> reflector(aCx); |
652 | 0 | return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr; |
653 | 0 | } |
654 | | |
655 | | // We declare this as an array so that retrieving a pointer to this |
656 | | // binding's property hooks only requires compile/link-time resolvable |
657 | | // address arithmetic. Declaring it as a pointer instead would require |
658 | | // doing a run-time load to fetch a pointer to this binding's property |
659 | | // hooks. And then structures which embedded a pointer to this structure |
660 | | // would require a run-time load for proper initialization, which would |
661 | | // then induce static constructors. Lots of static constructors. |
662 | | extern const NativePropertyHooks sNativePropertyHooks[]; |
663 | | |
664 | | void |
665 | | CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal); |
666 | | |
667 | | inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx) |
668 | 0 | { |
669 | 0 | /* Get the interface prototype object for this class. This will create the |
670 | 0 | object as needed. */ |
671 | 0 | return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegLinetoHorizontalAbs, |
672 | 0 | &CreateInterfaceObjects, |
673 | 0 | /* aDefineOnGlobal = */ true); |
674 | 0 |
|
675 | 0 | } |
676 | | |
677 | | } // namespace SVGPathSegLinetoHorizontalAbs_Binding |
678 | | |
679 | | |
680 | | |
681 | | namespace SVGPathSegLinetoHorizontalRel_Binding { |
682 | | |
683 | | typedef mozilla::DOMSVGPathSegLinetoHorizontalRel NativeType; |
684 | | |
685 | | const JSClass* |
686 | | GetJSClass(); |
687 | | |
688 | | bool |
689 | | Wrap(JSContext* aCx, mozilla::DOMSVGPathSegLinetoHorizontalRel* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector); |
690 | | |
691 | | template <class T> |
692 | | inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto) |
693 | 0 | { |
694 | 0 | JS::Rooted<JSObject*> reflector(aCx); |
695 | 0 | return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr; |
696 | 0 | } |
697 | | |
698 | | // We declare this as an array so that retrieving a pointer to this |
699 | | // binding's property hooks only requires compile/link-time resolvable |
700 | | // address arithmetic. Declaring it as a pointer instead would require |
701 | | // doing a run-time load to fetch a pointer to this binding's property |
702 | | // hooks. And then structures which embedded a pointer to this structure |
703 | | // would require a run-time load for proper initialization, which would |
704 | | // then induce static constructors. Lots of static constructors. |
705 | | extern const NativePropertyHooks sNativePropertyHooks[]; |
706 | | |
707 | | void |
708 | | CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal); |
709 | | |
710 | | inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx) |
711 | 0 | { |
712 | 0 | /* Get the interface prototype object for this class. This will create the |
713 | 0 | object as needed. */ |
714 | 0 | return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegLinetoHorizontalRel, |
715 | 0 | &CreateInterfaceObjects, |
716 | 0 | /* aDefineOnGlobal = */ true); |
717 | 0 |
|
718 | 0 | } |
719 | | |
720 | | } // namespace SVGPathSegLinetoHorizontalRel_Binding |
721 | | |
722 | | |
723 | | |
724 | | namespace SVGPathSegLinetoRel_Binding { |
725 | | |
726 | | typedef mozilla::DOMSVGPathSegLinetoRel NativeType; |
727 | | |
728 | | const JSClass* |
729 | | GetJSClass(); |
730 | | |
731 | | bool |
732 | | Wrap(JSContext* aCx, mozilla::DOMSVGPathSegLinetoRel* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector); |
733 | | |
734 | | template <class T> |
735 | | inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto) |
736 | 0 | { |
737 | 0 | JS::Rooted<JSObject*> reflector(aCx); |
738 | 0 | return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr; |
739 | 0 | } |
740 | | |
741 | | // We declare this as an array so that retrieving a pointer to this |
742 | | // binding's property hooks only requires compile/link-time resolvable |
743 | | // address arithmetic. Declaring it as a pointer instead would require |
744 | | // doing a run-time load to fetch a pointer to this binding's property |
745 | | // hooks. And then structures which embedded a pointer to this structure |
746 | | // would require a run-time load for proper initialization, which would |
747 | | // then induce static constructors. Lots of static constructors. |
748 | | extern const NativePropertyHooks sNativePropertyHooks[]; |
749 | | |
750 | | void |
751 | | CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal); |
752 | | |
753 | | inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx) |
754 | 0 | { |
755 | 0 | /* Get the interface prototype object for this class. This will create the |
756 | 0 | object as needed. */ |
757 | 0 | return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegLinetoRel, |
758 | 0 | &CreateInterfaceObjects, |
759 | 0 | /* aDefineOnGlobal = */ true); |
760 | 0 |
|
761 | 0 | } |
762 | | |
763 | | } // namespace SVGPathSegLinetoRel_Binding |
764 | | |
765 | | |
766 | | |
767 | | namespace SVGPathSegLinetoVerticalAbs_Binding { |
768 | | |
769 | | typedef mozilla::DOMSVGPathSegLinetoVerticalAbs NativeType; |
770 | | |
771 | | const JSClass* |
772 | | GetJSClass(); |
773 | | |
774 | | bool |
775 | | Wrap(JSContext* aCx, mozilla::DOMSVGPathSegLinetoVerticalAbs* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector); |
776 | | |
777 | | template <class T> |
778 | | inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto) |
779 | 0 | { |
780 | 0 | JS::Rooted<JSObject*> reflector(aCx); |
781 | 0 | return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr; |
782 | 0 | } |
783 | | |
784 | | // We declare this as an array so that retrieving a pointer to this |
785 | | // binding's property hooks only requires compile/link-time resolvable |
786 | | // address arithmetic. Declaring it as a pointer instead would require |
787 | | // doing a run-time load to fetch a pointer to this binding's property |
788 | | // hooks. And then structures which embedded a pointer to this structure |
789 | | // would require a run-time load for proper initialization, which would |
790 | | // then induce static constructors. Lots of static constructors. |
791 | | extern const NativePropertyHooks sNativePropertyHooks[]; |
792 | | |
793 | | void |
794 | | CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal); |
795 | | |
796 | | inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx) |
797 | 0 | { |
798 | 0 | /* Get the interface prototype object for this class. This will create the |
799 | 0 | object as needed. */ |
800 | 0 | return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegLinetoVerticalAbs, |
801 | 0 | &CreateInterfaceObjects, |
802 | 0 | /* aDefineOnGlobal = */ true); |
803 | 0 |
|
804 | 0 | } |
805 | | |
806 | | } // namespace SVGPathSegLinetoVerticalAbs_Binding |
807 | | |
808 | | |
809 | | |
810 | | namespace SVGPathSegLinetoVerticalRel_Binding { |
811 | | |
812 | | typedef mozilla::DOMSVGPathSegLinetoVerticalRel NativeType; |
813 | | |
814 | | const JSClass* |
815 | | GetJSClass(); |
816 | | |
817 | | bool |
818 | | Wrap(JSContext* aCx, mozilla::DOMSVGPathSegLinetoVerticalRel* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector); |
819 | | |
820 | | template <class T> |
821 | | inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto) |
822 | 0 | { |
823 | 0 | JS::Rooted<JSObject*> reflector(aCx); |
824 | 0 | return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr; |
825 | 0 | } |
826 | | |
827 | | // We declare this as an array so that retrieving a pointer to this |
828 | | // binding's property hooks only requires compile/link-time resolvable |
829 | | // address arithmetic. Declaring it as a pointer instead would require |
830 | | // doing a run-time load to fetch a pointer to this binding's property |
831 | | // hooks. And then structures which embedded a pointer to this structure |
832 | | // would require a run-time load for proper initialization, which would |
833 | | // then induce static constructors. Lots of static constructors. |
834 | | extern const NativePropertyHooks sNativePropertyHooks[]; |
835 | | |
836 | | void |
837 | | CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal); |
838 | | |
839 | | inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx) |
840 | 0 | { |
841 | 0 | /* Get the interface prototype object for this class. This will create the |
842 | 0 | object as needed. */ |
843 | 0 | return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegLinetoVerticalRel, |
844 | 0 | &CreateInterfaceObjects, |
845 | 0 | /* aDefineOnGlobal = */ true); |
846 | 0 |
|
847 | 0 | } |
848 | | |
849 | | } // namespace SVGPathSegLinetoVerticalRel_Binding |
850 | | |
851 | | |
852 | | |
853 | | namespace SVGPathSegMovetoAbs_Binding { |
854 | | |
855 | | typedef mozilla::DOMSVGPathSegMovetoAbs NativeType; |
856 | | |
857 | | const JSClass* |
858 | | GetJSClass(); |
859 | | |
860 | | bool |
861 | | Wrap(JSContext* aCx, mozilla::DOMSVGPathSegMovetoAbs* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector); |
862 | | |
863 | | template <class T> |
864 | | inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto) |
865 | 0 | { |
866 | 0 | JS::Rooted<JSObject*> reflector(aCx); |
867 | 0 | return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr; |
868 | 0 | } |
869 | | |
870 | | // We declare this as an array so that retrieving a pointer to this |
871 | | // binding's property hooks only requires compile/link-time resolvable |
872 | | // address arithmetic. Declaring it as a pointer instead would require |
873 | | // doing a run-time load to fetch a pointer to this binding's property |
874 | | // hooks. And then structures which embedded a pointer to this structure |
875 | | // would require a run-time load for proper initialization, which would |
876 | | // then induce static constructors. Lots of static constructors. |
877 | | extern const NativePropertyHooks sNativePropertyHooks[]; |
878 | | |
879 | | void |
880 | | CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal); |
881 | | |
882 | | inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx) |
883 | 0 | { |
884 | 0 | /* Get the interface prototype object for this class. This will create the |
885 | 0 | object as needed. */ |
886 | 0 | return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegMovetoAbs, |
887 | 0 | &CreateInterfaceObjects, |
888 | 0 | /* aDefineOnGlobal = */ true); |
889 | 0 |
|
890 | 0 | } |
891 | | |
892 | | } // namespace SVGPathSegMovetoAbs_Binding |
893 | | |
894 | | |
895 | | |
896 | | namespace SVGPathSegMovetoRel_Binding { |
897 | | |
898 | | typedef mozilla::DOMSVGPathSegMovetoRel NativeType; |
899 | | |
900 | | const JSClass* |
901 | | GetJSClass(); |
902 | | |
903 | | bool |
904 | | Wrap(JSContext* aCx, mozilla::DOMSVGPathSegMovetoRel* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector); |
905 | | |
906 | | template <class T> |
907 | | inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto) |
908 | 0 | { |
909 | 0 | JS::Rooted<JSObject*> reflector(aCx); |
910 | 0 | return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr; |
911 | 0 | } |
912 | | |
913 | | // We declare this as an array so that retrieving a pointer to this |
914 | | // binding's property hooks only requires compile/link-time resolvable |
915 | | // address arithmetic. Declaring it as a pointer instead would require |
916 | | // doing a run-time load to fetch a pointer to this binding's property |
917 | | // hooks. And then structures which embedded a pointer to this structure |
918 | | // would require a run-time load for proper initialization, which would |
919 | | // then induce static constructors. Lots of static constructors. |
920 | | extern const NativePropertyHooks sNativePropertyHooks[]; |
921 | | |
922 | | void |
923 | | CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal); |
924 | | |
925 | | inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx) |
926 | 0 | { |
927 | 0 | /* Get the interface prototype object for this class. This will create the |
928 | 0 | object as needed. */ |
929 | 0 | return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGPathSegMovetoRel, |
930 | 0 | &CreateInterfaceObjects, |
931 | 0 | /* aDefineOnGlobal = */ true); |
932 | 0 |
|
933 | 0 | } |
934 | | |
935 | | } // namespace SVGPathSegMovetoRel_Binding |
936 | | |
937 | | |
938 | | |
939 | | } // namespace dom |
940 | | } // namespace mozilla |
941 | | |
942 | | #endif // mozilla_dom_SVGPathSegBinding_h |