Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/mozilla/dom/CSSGroupingRuleBinding.h
Line
Count
Source (jump to first uncovered line)
1
/* THIS FILE IS AUTOGENERATED FROM CSSGroupingRule.webidl BY Codegen.py - DO NOT EDIT */
2
3
#ifndef mozilla_dom_CSSGroupingRuleBinding_h
4
#define mozilla_dom_CSSGroupingRuleBinding_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
namespace css {
17
18
class GroupRule;
19
struct GroupRuleAtoms;
20
21
} // namespace css
22
23
namespace dom {
24
25
struct NativePropertyHooks;
26
class ProtoAndIfaceCache;
27
28
} // namespace dom
29
30
} // namespace mozilla
31
32
namespace mozilla {
33
namespace dom {
34
35
namespace CSSGroupingRule_Binding {
36
37
  typedef mozilla::css::GroupRule NativeType;
38
39
  // We declare this as an array so that retrieving a pointer to this
40
  // binding's property hooks only requires compile/link-time resolvable
41
  // address arithmetic.  Declaring it as a pointer instead would require
42
  // doing a run-time load to fetch a pointer to this binding's property
43
  // hooks.  And then structures which embedded a pointer to this structure
44
  // would require a run-time load for proper initialization, which would
45
  // then induce static constructors.  Lots of static constructors.
46
  extern const NativePropertyHooks sNativePropertyHooks[];
47
48
  void
49
  CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
50
51
  inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx)
52
0
  {
53
0
    /* Get the interface prototype object for this class.  This will create the
54
0
       object as needed. */
55
0
    return GetPerInterfaceObjectHandle(aCx, prototypes::id::CSSGroupingRule,
56
0
                                       &CreateInterfaceObjects,
57
0
                                       /* aDefineOnGlobal = */ true);
58
0
59
0
  }
60
61
  JSObject*
62
  GetProtoObject(JSContext* aCx);
63
64
  inline JS::Handle<JSObject*> GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true)
65
0
  {
66
0
    /* Get the interface object for this class.  This will create the object as
67
0
       needed. */
68
0
69
0
    return GetPerInterfaceObjectHandle(aCx, constructors::id::CSSGroupingRule,
70
0
                                       &CreateInterfaceObjects,
71
0
                                       aDefineOnGlobal);
72
0
  }
73
74
  JSObject*
75
  GetConstructorObject(JSContext* aCx);
76
77
} // namespace CSSGroupingRule_Binding
78
79
80
81
} // namespace dom
82
} // namespace mozilla
83
84
#endif // mozilla_dom_CSSGroupingRuleBinding_h