Line data Source code
1 : /* THIS FILE IS AUTOGENERATED FROM Grid.webidl BY Codegen.py - DO NOT EDIT */
2 :
3 : #ifndef mozilla_dom_GridBinding_h
4 : #define mozilla_dom_GridBinding_h
5 :
6 : #include "js/RootingAPI.h"
7 : #include "jspubtd.h"
8 : #include "mozilla/ErrorResult.h"
9 : #include "mozilla/dom/BindingDeclarations.h"
10 : #include "mozilla/dom/Nullable.h"
11 :
12 : namespace mozilla {
13 : namespace dom {
14 :
15 : class Grid;
16 : class GridArea;
17 : struct GridAreaAtoms;
18 : struct GridAtoms;
19 : class GridDimension;
20 : struct GridDimensionAtoms;
21 : class GridLine;
22 : struct GridLineAtoms;
23 : class GridLines;
24 : struct GridLinesAtoms;
25 : class GridTrack;
26 : struct GridTrackAtoms;
27 : class GridTracks;
28 : struct GridTracksAtoms;
29 : struct NativePropertyHooks;
30 : class ProtoAndIfaceCache;
31 :
32 : } // namespace dom
33 : } // namespace mozilla
34 :
35 : namespace mozilla {
36 : namespace dom {
37 :
38 : enum class GridDeclaration : uint8_t {
39 : Explicit,
40 : Implicit,
41 : EndGuard_
42 : };
43 :
44 : namespace GridDeclarationValues {
45 : extern const EnumEntry strings[3];
46 : } // namespace GridDeclarationValues
47 :
48 : bool
49 : ToJSValue(JSContext* aCx, GridDeclaration aArgument, JS::MutableHandle<JS::Value> aValue);
50 :
51 :
52 : enum class GridTrackState : uint8_t {
53 : Static,
54 : Repeat,
55 : Removed,
56 : EndGuard_
57 : };
58 :
59 : namespace GridTrackStateValues {
60 : extern const EnumEntry strings[4];
61 : } // namespace GridTrackStateValues
62 :
63 : bool
64 : ToJSValue(JSContext* aCx, GridTrackState aArgument, JS::MutableHandle<JS::Value> aValue);
65 :
66 :
67 : namespace GridBinding {
68 :
69 : typedef mozilla::dom::Grid NativeType;
70 :
71 : bool
72 : ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj);
73 :
74 : JSObject*
75 : DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
76 :
77 : const JSClass*
78 : GetJSClass();
79 :
80 : bool
81 : Wrap(JSContext* aCx, mozilla::dom::Grid* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
82 :
83 : template <class T>
84 0 : inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
85 : {
86 0 : JS::Rooted<JSObject*> reflector(aCx);
87 0 : return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
88 : }
89 :
90 : // We declare this as an array so that retrieving a pointer to this
91 : // binding's property hooks only requires compile/link-time resolvable
92 : // address arithmetic. Declaring it as a pointer instead would require
93 : // doing a run-time load to fetch a pointer to this binding's property
94 : // hooks. And then structures which embedded a pointer to this structure
95 : // would require a run-time load for proper initialization, which would
96 : // then induce static constructors. Lots of static constructors.
97 : extern const NativePropertyHooks sNativePropertyHooks[];
98 :
99 : void
100 : CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
101 :
102 : JS::Handle<JSObject*>
103 : GetProtoObjectHandle(JSContext* aCx);
104 :
105 : JS::Handle<JSObject*>
106 : GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
107 :
108 : JSObject*
109 : GetConstructorObject(JSContext* aCx);
110 :
111 : } // namespace GridBinding
112 :
113 :
114 :
115 : namespace GridAreaBinding {
116 :
117 : typedef mozilla::dom::GridArea NativeType;
118 :
119 : bool
120 : ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj);
121 :
122 : JSObject*
123 : DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
124 :
125 : const JSClass*
126 : GetJSClass();
127 :
128 : bool
129 : Wrap(JSContext* aCx, mozilla::dom::GridArea* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
130 :
131 : template <class T>
132 0 : inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
133 : {
134 0 : JS::Rooted<JSObject*> reflector(aCx);
135 0 : return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
136 : }
137 :
138 : // We declare this as an array so that retrieving a pointer to this
139 : // binding's property hooks only requires compile/link-time resolvable
140 : // address arithmetic. Declaring it as a pointer instead would require
141 : // doing a run-time load to fetch a pointer to this binding's property
142 : // hooks. And then structures which embedded a pointer to this structure
143 : // would require a run-time load for proper initialization, which would
144 : // then induce static constructors. Lots of static constructors.
145 : extern const NativePropertyHooks sNativePropertyHooks[];
146 :
147 : void
148 : CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
149 :
150 : JS::Handle<JSObject*>
151 : GetProtoObjectHandle(JSContext* aCx);
152 :
153 : JS::Handle<JSObject*>
154 : GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
155 :
156 : JSObject*
157 : GetConstructorObject(JSContext* aCx);
158 :
159 : } // namespace GridAreaBinding
160 :
161 :
162 :
163 : namespace GridDimensionBinding {
164 :
165 : typedef mozilla::dom::GridDimension NativeType;
166 :
167 : bool
168 : ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj);
169 :
170 : JSObject*
171 : DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
172 :
173 : const JSClass*
174 : GetJSClass();
175 :
176 : bool
177 : Wrap(JSContext* aCx, mozilla::dom::GridDimension* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
178 :
179 : template <class T>
180 0 : inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
181 : {
182 0 : JS::Rooted<JSObject*> reflector(aCx);
183 0 : return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
184 : }
185 :
186 : // We declare this as an array so that retrieving a pointer to this
187 : // binding's property hooks only requires compile/link-time resolvable
188 : // address arithmetic. Declaring it as a pointer instead would require
189 : // doing a run-time load to fetch a pointer to this binding's property
190 : // hooks. And then structures which embedded a pointer to this structure
191 : // would require a run-time load for proper initialization, which would
192 : // then induce static constructors. Lots of static constructors.
193 : extern const NativePropertyHooks sNativePropertyHooks[];
194 :
195 : void
196 : CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
197 :
198 : JS::Handle<JSObject*>
199 : GetProtoObjectHandle(JSContext* aCx);
200 :
201 : JS::Handle<JSObject*>
202 : GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
203 :
204 : JSObject*
205 : GetConstructorObject(JSContext* aCx);
206 :
207 : } // namespace GridDimensionBinding
208 :
209 :
210 :
211 : namespace GridLineBinding {
212 :
213 : typedef mozilla::dom::GridLine NativeType;
214 :
215 : bool
216 : ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj);
217 :
218 : JSObject*
219 : DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
220 :
221 : const JSClass*
222 : GetJSClass();
223 :
224 : bool
225 : Wrap(JSContext* aCx, mozilla::dom::GridLine* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
226 :
227 : template <class T>
228 0 : inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
229 : {
230 0 : JS::Rooted<JSObject*> reflector(aCx);
231 0 : return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
232 : }
233 :
234 : // We declare this as an array so that retrieving a pointer to this
235 : // binding's property hooks only requires compile/link-time resolvable
236 : // address arithmetic. Declaring it as a pointer instead would require
237 : // doing a run-time load to fetch a pointer to this binding's property
238 : // hooks. And then structures which embedded a pointer to this structure
239 : // would require a run-time load for proper initialization, which would
240 : // then induce static constructors. Lots of static constructors.
241 : extern const NativePropertyHooks sNativePropertyHooks[];
242 :
243 : void
244 : CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
245 :
246 : JS::Handle<JSObject*>
247 : GetProtoObjectHandle(JSContext* aCx);
248 :
249 : JS::Handle<JSObject*>
250 : GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
251 :
252 : JSObject*
253 : GetConstructorObject(JSContext* aCx);
254 :
255 : } // namespace GridLineBinding
256 :
257 :
258 :
259 : namespace GridLinesBinding {
260 :
261 : typedef mozilla::dom::GridLines NativeType;
262 :
263 : bool
264 : ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj);
265 :
266 : JSObject*
267 : DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
268 :
269 : bool
270 : Wrap(JSContext* aCx, mozilla::dom::GridLines* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
271 :
272 : template <class T>
273 0 : inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
274 : {
275 0 : JS::Rooted<JSObject*> reflector(aCx);
276 0 : return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
277 : }
278 :
279 : // We declare this as an array so that retrieving a pointer to this
280 : // binding's property hooks only requires compile/link-time resolvable
281 : // address arithmetic. Declaring it as a pointer instead would require
282 : // doing a run-time load to fetch a pointer to this binding's property
283 : // hooks. And then structures which embedded a pointer to this structure
284 : // would require a run-time load for proper initialization, which would
285 : // then induce static constructors. Lots of static constructors.
286 : extern const NativePropertyHooks sNativePropertyHooks[];
287 :
288 : void
289 : CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
290 :
291 : JS::Handle<JSObject*>
292 : GetProtoObjectHandle(JSContext* aCx);
293 :
294 : JS::Handle<JSObject*>
295 : GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
296 :
297 : JSObject*
298 : GetConstructorObject(JSContext* aCx);
299 :
300 : } // namespace GridLinesBinding
301 :
302 :
303 :
304 : namespace GridTrackBinding {
305 :
306 : typedef mozilla::dom::GridTrack NativeType;
307 :
308 : bool
309 : ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj);
310 :
311 : JSObject*
312 : DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
313 :
314 : const JSClass*
315 : GetJSClass();
316 :
317 : bool
318 : Wrap(JSContext* aCx, mozilla::dom::GridTrack* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
319 :
320 : template <class T>
321 0 : inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
322 : {
323 0 : JS::Rooted<JSObject*> reflector(aCx);
324 0 : return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
325 : }
326 :
327 : // We declare this as an array so that retrieving a pointer to this
328 : // binding's property hooks only requires compile/link-time resolvable
329 : // address arithmetic. Declaring it as a pointer instead would require
330 : // doing a run-time load to fetch a pointer to this binding's property
331 : // hooks. And then structures which embedded a pointer to this structure
332 : // would require a run-time load for proper initialization, which would
333 : // then induce static constructors. Lots of static constructors.
334 : extern const NativePropertyHooks sNativePropertyHooks[];
335 :
336 : void
337 : CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
338 :
339 : JS::Handle<JSObject*>
340 : GetProtoObjectHandle(JSContext* aCx);
341 :
342 : JS::Handle<JSObject*>
343 : GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
344 :
345 : JSObject*
346 : GetConstructorObject(JSContext* aCx);
347 :
348 : } // namespace GridTrackBinding
349 :
350 :
351 :
352 : namespace GridTracksBinding {
353 :
354 : typedef mozilla::dom::GridTracks NativeType;
355 :
356 : bool
357 : ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj);
358 :
359 : JSObject*
360 : DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
361 :
362 : bool
363 : Wrap(JSContext* aCx, mozilla::dom::GridTracks* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
364 :
365 : template <class T>
366 0 : inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
367 : {
368 0 : JS::Rooted<JSObject*> reflector(aCx);
369 0 : return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
370 : }
371 :
372 : // We declare this as an array so that retrieving a pointer to this
373 : // binding's property hooks only requires compile/link-time resolvable
374 : // address arithmetic. Declaring it as a pointer instead would require
375 : // doing a run-time load to fetch a pointer to this binding's property
376 : // hooks. And then structures which embedded a pointer to this structure
377 : // would require a run-time load for proper initialization, which would
378 : // then induce static constructors. Lots of static constructors.
379 : extern const NativePropertyHooks sNativePropertyHooks[];
380 :
381 : void
382 : CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
383 :
384 : JS::Handle<JSObject*>
385 : GetProtoObjectHandle(JSContext* aCx);
386 :
387 : JS::Handle<JSObject*>
388 : GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
389 :
390 : JSObject*
391 : GetConstructorObject(JSContext* aCx);
392 :
393 : } // namespace GridTracksBinding
394 :
395 :
396 :
397 : } // namespace dom
398 : } // namespace mozilla
399 :
400 : #endif // mozilla_dom_GridBinding_h
|