Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/mozilla/dom/RTCDTMFToneChangeEventBinding.h
Line
Count
Source (jump to first uncovered line)
1
/* THIS FILE IS AUTOGENERATED FROM RTCDTMFToneChangeEvent.webidl BY Codegen.py - DO NOT EDIT */
2
3
#ifndef mozilla_dom_RTCDTMFToneChangeEventBinding_h
4
#define mozilla_dom_RTCDTMFToneChangeEventBinding_h
5
6
#include "EventBinding.h"
7
#include "GeckoProfiler.h"
8
#include "js/RootingAPI.h"
9
#include "jspubtd.h"
10
#include "mozilla/ErrorResult.h"
11
#include "mozilla/dom/BindingDeclarations.h"
12
#include "mozilla/dom/Nullable.h"
13
#include "mozilla/dom/PrototypeList.h"
14
15
namespace mozilla {
16
namespace dom {
17
18
struct NativePropertyHooks;
19
class ProtoAndIfaceCache;
20
class RTCDTMFToneChangeEvent;
21
struct RTCDTMFToneChangeEventAtoms;
22
struct RTCDTMFToneChangeEventInitAtoms;
23
24
} // namespace dom
25
} // namespace mozilla
26
27
namespace mozilla {
28
namespace dom {
29
30
struct RTCDTMFToneChangeEventInit : public EventInit
31
{
32
  MOZ_INIT_OUTSIDE_CTOR nsString mTone;
33
34
  RTCDTMFToneChangeEventInit();
35
36
  explicit inline RTCDTMFToneChangeEventInit(const FastDictionaryInitializer& )
37
    : EventInit(FastDictionaryInitializer())
38
0
  {
39
0
    // Do nothing here; this is used by our "Fast" subclass
40
0
  }
41
42
  explicit inline RTCDTMFToneChangeEventInit(const RTCDTMFToneChangeEventInit& aOther)
43
0
  {
44
0
    *this = aOther;
45
0
  }
46
47
  bool
48
  Init(JSContext* cx, JS::Handle<JS::Value> val, const char* sourceDescription = "Value", bool passedToJSImpl = false);
49
50
  bool
51
  Init(const nsAString& aJSON);
52
53
  bool
54
  ToObjectInternal(JSContext* cx, JS::MutableHandle<JS::Value> rval) const;
55
56
  bool
57
  ToJSON(nsAString& aJSON) const;
58
59
  void
60
  TraceDictionary(JSTracer* trc);
61
62
  RTCDTMFToneChangeEventInit&
63
  operator=(const RTCDTMFToneChangeEventInit& aOther);
64
65
private:
66
  static bool
67
  InitIds(JSContext* cx, RTCDTMFToneChangeEventInitAtoms* atomsCache);
68
};
69
70
namespace binding_detail {
71
struct FastRTCDTMFToneChangeEventInit : public RTCDTMFToneChangeEventInit
72
{
73
  inline FastRTCDTMFToneChangeEventInit()
74
    : RTCDTMFToneChangeEventInit(FastDictionaryInitializer())
75
0
  {
76
0
    // Doesn't matter what int we pass to the parent constructor
77
0
  }
78
};
79
} // namespace binding_detail
80
81
82
namespace RTCDTMFToneChangeEvent_Binding {
83
84
  typedef mozilla::dom::RTCDTMFToneChangeEvent NativeType;
85
86
  const JSClass*
87
  GetJSClass();
88
89
  bool
90
  Wrap(JSContext* aCx, mozilla::dom::RTCDTMFToneChangeEvent* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
91
92
  template <class T>
93
  inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
94
0
  {
95
0
    JS::Rooted<JSObject*> reflector(aCx);
96
0
    return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
97
0
  }
98
99
  // We declare this as an array so that retrieving a pointer to this
100
  // binding's property hooks only requires compile/link-time resolvable
101
  // address arithmetic.  Declaring it as a pointer instead would require
102
  // doing a run-time load to fetch a pointer to this binding's property
103
  // hooks.  And then structures which embedded a pointer to this structure
104
  // would require a run-time load for proper initialization, which would
105
  // then induce static constructors.  Lots of static constructors.
106
  extern const NativePropertyHooks sNativePropertyHooks[];
107
108
  void
109
  CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
110
111
  inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx)
112
0
  {
113
0
    /* Get the interface prototype object for this class.  This will create the
114
0
       object as needed. */
115
0
    return GetPerInterfaceObjectHandle(aCx, prototypes::id::RTCDTMFToneChangeEvent,
116
0
                                       &CreateInterfaceObjects,
117
0
                                       /* aDefineOnGlobal = */ true);
118
0
119
0
  }
120
121
  inline JS::Handle<JSObject*> GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true)
122
0
  {
123
0
    /* Get the interface object for this class.  This will create the object as
124
0
       needed. */
125
0
126
0
    return GetPerInterfaceObjectHandle(aCx, constructors::id::RTCDTMFToneChangeEvent,
127
0
                                       &CreateInterfaceObjects,
128
0
                                       aDefineOnGlobal);
129
0
  }
130
131
  JSObject*
132
  GetConstructorObject(JSContext* aCx);
133
134
} // namespace RTCDTMFToneChangeEvent_Binding
135
136
137
138
} // namespace dom
139
} // namespace mozilla
140
141
#endif // mozilla_dom_RTCDTMFToneChangeEventBinding_h