Coverage Report

Created: 2018-09-25 14:53

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