Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/mozilla/dom/GridBinding.h
Line
Count
Source (jump to first uncovered line)
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 "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
namespace dom {
16
17
class Grid;
18
class GridArea;
19
struct GridAreaAtoms;
20
struct GridAtoms;
21
class GridDimension;
22
struct GridDimensionAtoms;
23
class GridLine;
24
struct GridLineAtoms;
25
class GridLines;
26
struct GridLinesAtoms;
27
class GridTrack;
28
struct GridTrackAtoms;
29
class GridTracks;
30
struct GridTracksAtoms;
31
struct NativePropertyHooks;
32
class ProtoAndIfaceCache;
33
34
} // namespace dom
35
} // namespace mozilla
36
37
namespace mozilla {
38
namespace dom {
39
40
enum class GridDeclaration : uint8_t {
41
  Explicit,
42
  Implicit,
43
  EndGuard_
44
};
45
46
namespace GridDeclarationValues {
47
extern const EnumEntry strings[3];
48
} // namespace GridDeclarationValues
49
50
bool
51
ToJSValue(JSContext* aCx, GridDeclaration aArgument, JS::MutableHandle<JS::Value> aValue);
52
53
54
enum class GridTrackState : uint8_t {
55
  Static,
56
  Repeat,
57
  Removed,
58
  EndGuard_
59
};
60
61
namespace GridTrackStateValues {
62
extern const EnumEntry strings[4];
63
} // namespace GridTrackStateValues
64
65
bool
66
ToJSValue(JSContext* aCx, GridTrackState aArgument, JS::MutableHandle<JS::Value> aValue);
67
68
69
namespace Grid_Binding {
70
71
  typedef mozilla::dom::Grid NativeType;
72
73
  bool
74
  ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj);
75
76
  const JSClass*
77
  GetJSClass();
78
79
  bool
80
  Wrap(JSContext* aCx, mozilla::dom::Grid* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
81
82
  template <class T>
83
  inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
84
0
  {
85
0
    JS::Rooted<JSObject*> reflector(aCx);
86
0
    return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
87
0
  }
88
89
  // We declare this as an array so that retrieving a pointer to this
90
  // binding's property hooks only requires compile/link-time resolvable
91
  // address arithmetic.  Declaring it as a pointer instead would require
92
  // doing a run-time load to fetch a pointer to this binding's property
93
  // hooks.  And then structures which embedded a pointer to this structure
94
  // would require a run-time load for proper initialization, which would
95
  // then induce static constructors.  Lots of static constructors.
96
  extern const NativePropertyHooks sNativePropertyHooks[];
97
98
  void
99
  CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
100
101
  inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx)
102
0
  {
103
0
    /* Get the interface prototype object for this class.  This will create the
104
0
       object as needed. */
105
0
    return GetPerInterfaceObjectHandle(aCx, prototypes::id::Grid,
106
0
                                       &CreateInterfaceObjects,
107
0
                                       /* aDefineOnGlobal = */ true);
108
0
109
0
  }
110
111
  inline JS::Handle<JSObject*> GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true)
112
0
  {
113
0
    /* Get the interface object for this class.  This will create the object as
114
0
       needed. */
115
0
116
0
    return GetPerInterfaceObjectHandle(aCx, constructors::id::Grid,
117
0
                                       &CreateInterfaceObjects,
118
0
                                       aDefineOnGlobal);
119
0
  }
120
121
  JSObject*
122
  GetConstructorObject(JSContext* aCx);
123
124
} // namespace Grid_Binding
125
126
127
128
namespace GridArea_Binding {
129
130
  typedef mozilla::dom::GridArea NativeType;
131
132
  bool
133
  ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj);
134
135
  const JSClass*
136
  GetJSClass();
137
138
  bool
139
  Wrap(JSContext* aCx, mozilla::dom::GridArea* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
140
141
  template <class T>
142
  inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
143
0
  {
144
0
    JS::Rooted<JSObject*> reflector(aCx);
145
0
    return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
146
0
  }
147
148
  // We declare this as an array so that retrieving a pointer to this
149
  // binding's property hooks only requires compile/link-time resolvable
150
  // address arithmetic.  Declaring it as a pointer instead would require
151
  // doing a run-time load to fetch a pointer to this binding's property
152
  // hooks.  And then structures which embedded a pointer to this structure
153
  // would require a run-time load for proper initialization, which would
154
  // then induce static constructors.  Lots of static constructors.
155
  extern const NativePropertyHooks sNativePropertyHooks[];
156
157
  void
158
  CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
159
160
  inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx)
161
0
  {
162
0
    /* Get the interface prototype object for this class.  This will create the
163
0
       object as needed. */
164
0
    return GetPerInterfaceObjectHandle(aCx, prototypes::id::GridArea,
165
0
                                       &CreateInterfaceObjects,
166
0
                                       /* aDefineOnGlobal = */ true);
167
0
168
0
  }
169
170
  inline JS::Handle<JSObject*> GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true)
171
0
  {
172
0
    /* Get the interface object for this class.  This will create the object as
173
0
       needed. */
174
0
175
0
    return GetPerInterfaceObjectHandle(aCx, constructors::id::GridArea,
176
0
                                       &CreateInterfaceObjects,
177
0
                                       aDefineOnGlobal);
178
0
  }
179
180
  JSObject*
181
  GetConstructorObject(JSContext* aCx);
182
183
} // namespace GridArea_Binding
184
185
186
187
namespace GridDimension_Binding {
188
189
  typedef mozilla::dom::GridDimension NativeType;
190
191
  bool
192
  ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj);
193
194
  const JSClass*
195
  GetJSClass();
196
197
  bool
198
  Wrap(JSContext* aCx, mozilla::dom::GridDimension* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
199
200
  template <class T>
201
  inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
202
0
  {
203
0
    JS::Rooted<JSObject*> reflector(aCx);
204
0
    return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
205
0
  }
206
207
  // We declare this as an array so that retrieving a pointer to this
208
  // binding's property hooks only requires compile/link-time resolvable
209
  // address arithmetic.  Declaring it as a pointer instead would require
210
  // doing a run-time load to fetch a pointer to this binding's property
211
  // hooks.  And then structures which embedded a pointer to this structure
212
  // would require a run-time load for proper initialization, which would
213
  // then induce static constructors.  Lots of static constructors.
214
  extern const NativePropertyHooks sNativePropertyHooks[];
215
216
  void
217
  CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
218
219
  inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx)
220
0
  {
221
0
    /* Get the interface prototype object for this class.  This will create the
222
0
       object as needed. */
223
0
    return GetPerInterfaceObjectHandle(aCx, prototypes::id::GridDimension,
224
0
                                       &CreateInterfaceObjects,
225
0
                                       /* aDefineOnGlobal = */ true);
226
0
227
0
  }
228
229
  inline JS::Handle<JSObject*> GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true)
230
0
  {
231
0
    /* Get the interface object for this class.  This will create the object as
232
0
       needed. */
233
0
234
0
    return GetPerInterfaceObjectHandle(aCx, constructors::id::GridDimension,
235
0
                                       &CreateInterfaceObjects,
236
0
                                       aDefineOnGlobal);
237
0
  }
238
239
  JSObject*
240
  GetConstructorObject(JSContext* aCx);
241
242
} // namespace GridDimension_Binding
243
244
245
246
namespace GridLine_Binding {
247
248
  typedef mozilla::dom::GridLine NativeType;
249
250
  bool
251
  ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj);
252
253
  const JSClass*
254
  GetJSClass();
255
256
  bool
257
  Wrap(JSContext* aCx, mozilla::dom::GridLine* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
258
259
  template <class T>
260
  inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
261
0
  {
262
0
    JS::Rooted<JSObject*> reflector(aCx);
263
0
    return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
264
0
  }
265
266
  // We declare this as an array so that retrieving a pointer to this
267
  // binding's property hooks only requires compile/link-time resolvable
268
  // address arithmetic.  Declaring it as a pointer instead would require
269
  // doing a run-time load to fetch a pointer to this binding's property
270
  // hooks.  And then structures which embedded a pointer to this structure
271
  // would require a run-time load for proper initialization, which would
272
  // then induce static constructors.  Lots of static constructors.
273
  extern const NativePropertyHooks sNativePropertyHooks[];
274
275
  void
276
  CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
277
278
  inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx)
279
0
  {
280
0
    /* Get the interface prototype object for this class.  This will create the
281
0
       object as needed. */
282
0
    return GetPerInterfaceObjectHandle(aCx, prototypes::id::GridLine,
283
0
                                       &CreateInterfaceObjects,
284
0
                                       /* aDefineOnGlobal = */ true);
285
0
286
0
  }
287
288
  inline JS::Handle<JSObject*> GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true)
289
0
  {
290
0
    /* Get the interface object for this class.  This will create the object as
291
0
       needed. */
292
0
293
0
    return GetPerInterfaceObjectHandle(aCx, constructors::id::GridLine,
294
0
                                       &CreateInterfaceObjects,
295
0
                                       aDefineOnGlobal);
296
0
  }
297
298
  JSObject*
299
  GetConstructorObject(JSContext* aCx);
300
301
} // namespace GridLine_Binding
302
303
304
305
namespace GridLines_Binding {
306
307
  typedef mozilla::dom::GridLines NativeType;
308
309
  bool
310
  ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj);
311
312
  bool
313
  Wrap(JSContext* aCx, mozilla::dom::GridLines* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
314
315
  template <class T>
316
  inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
317
0
  {
318
0
    JS::Rooted<JSObject*> reflector(aCx);
319
0
    return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
320
0
  }
321
322
  // We declare this as an array so that retrieving a pointer to this
323
  // binding's property hooks only requires compile/link-time resolvable
324
  // address arithmetic.  Declaring it as a pointer instead would require
325
  // doing a run-time load to fetch a pointer to this binding's property
326
  // hooks.  And then structures which embedded a pointer to this structure
327
  // would require a run-time load for proper initialization, which would
328
  // then induce static constructors.  Lots of static constructors.
329
  extern const NativePropertyHooks sNativePropertyHooks[];
330
331
  void
332
  CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
333
334
  inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx)
335
0
  {
336
0
    /* Get the interface prototype object for this class.  This will create the
337
0
       object as needed. */
338
0
    return GetPerInterfaceObjectHandle(aCx, prototypes::id::GridLines,
339
0
                                       &CreateInterfaceObjects,
340
0
                                       /* aDefineOnGlobal = */ true);
341
0
342
0
  }
343
344
  inline JS::Handle<JSObject*> GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true)
345
0
  {
346
0
    /* Get the interface object for this class.  This will create the object as
347
0
       needed. */
348
0
349
0
    return GetPerInterfaceObjectHandle(aCx, constructors::id::GridLines,
350
0
                                       &CreateInterfaceObjects,
351
0
                                       aDefineOnGlobal);
352
0
  }
353
354
  JSObject*
355
  GetConstructorObject(JSContext* aCx);
356
357
} // namespace GridLines_Binding
358
359
360
361
namespace GridTrack_Binding {
362
363
  typedef mozilla::dom::GridTrack NativeType;
364
365
  bool
366
  ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj);
367
368
  const JSClass*
369
  GetJSClass();
370
371
  bool
372
  Wrap(JSContext* aCx, mozilla::dom::GridTrack* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
373
374
  template <class T>
375
  inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
376
0
  {
377
0
    JS::Rooted<JSObject*> reflector(aCx);
378
0
    return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
379
0
  }
380
381
  // We declare this as an array so that retrieving a pointer to this
382
  // binding's property hooks only requires compile/link-time resolvable
383
  // address arithmetic.  Declaring it as a pointer instead would require
384
  // doing a run-time load to fetch a pointer to this binding's property
385
  // hooks.  And then structures which embedded a pointer to this structure
386
  // would require a run-time load for proper initialization, which would
387
  // then induce static constructors.  Lots of static constructors.
388
  extern const NativePropertyHooks sNativePropertyHooks[];
389
390
  void
391
  CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
392
393
  inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx)
394
0
  {
395
0
    /* Get the interface prototype object for this class.  This will create the
396
0
       object as needed. */
397
0
    return GetPerInterfaceObjectHandle(aCx, prototypes::id::GridTrack,
398
0
                                       &CreateInterfaceObjects,
399
0
                                       /* aDefineOnGlobal = */ true);
400
0
401
0
  }
402
403
  inline JS::Handle<JSObject*> GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true)
404
0
  {
405
0
    /* Get the interface object for this class.  This will create the object as
406
0
       needed. */
407
0
408
0
    return GetPerInterfaceObjectHandle(aCx, constructors::id::GridTrack,
409
0
                                       &CreateInterfaceObjects,
410
0
                                       aDefineOnGlobal);
411
0
  }
412
413
  JSObject*
414
  GetConstructorObject(JSContext* aCx);
415
416
} // namespace GridTrack_Binding
417
418
419
420
namespace GridTracks_Binding {
421
422
  typedef mozilla::dom::GridTracks NativeType;
423
424
  bool
425
  ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj);
426
427
  bool
428
  Wrap(JSContext* aCx, mozilla::dom::GridTracks* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
429
430
  template <class T>
431
  inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
432
0
  {
433
0
    JS::Rooted<JSObject*> reflector(aCx);
434
0
    return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
435
0
  }
436
437
  // We declare this as an array so that retrieving a pointer to this
438
  // binding's property hooks only requires compile/link-time resolvable
439
  // address arithmetic.  Declaring it as a pointer instead would require
440
  // doing a run-time load to fetch a pointer to this binding's property
441
  // hooks.  And then structures which embedded a pointer to this structure
442
  // would require a run-time load for proper initialization, which would
443
  // then induce static constructors.  Lots of static constructors.
444
  extern const NativePropertyHooks sNativePropertyHooks[];
445
446
  void
447
  CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
448
449
  inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx)
450
0
  {
451
0
    /* Get the interface prototype object for this class.  This will create the
452
0
       object as needed. */
453
0
    return GetPerInterfaceObjectHandle(aCx, prototypes::id::GridTracks,
454
0
                                       &CreateInterfaceObjects,
455
0
                                       /* aDefineOnGlobal = */ true);
456
0
457
0
  }
458
459
  inline JS::Handle<JSObject*> GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true)
460
0
  {
461
0
    /* Get the interface object for this class.  This will create the object as
462
0
       needed. */
463
0
464
0
    return GetPerInterfaceObjectHandle(aCx, constructors::id::GridTracks,
465
0
                                       &CreateInterfaceObjects,
466
0
                                       aDefineOnGlobal);
467
0
  }
468
469
  JSObject*
470
  GetConstructorObject(JSContext* aCx);
471
472
} // namespace GridTracks_Binding
473
474
475
476
} // namespace dom
477
} // namespace mozilla
478
479
#endif // mozilla_dom_GridBinding_h