Coverage Report

Created: 2018-09-25 14:53

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