Coverage Report

Created: 2018-09-25 14:53

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