Coverage Report

Created: 2018-09-25 14:53

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