Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/mozilla/dom/PushMessageDataBinding.h
Line
Count
Source (jump to first uncovered line)
1
/* THIS FILE IS AUTOGENERATED FROM PushMessageData.webidl BY Codegen.py - DO NOT EDIT */
2
3
#ifndef mozilla_dom_PushMessageDataBinding_h
4
#define mozilla_dom_PushMessageDataBinding_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
struct NativePropertyHooks;
18
class ProtoAndIfaceCache;
19
class PushMessageData;
20
struct PushMessageDataAtoms;
21
22
} // namespace dom
23
} // namespace mozilla
24
25
namespace mozilla {
26
namespace dom {
27
28
namespace PushMessageData_Binding {
29
30
  typedef mozilla::dom::PushMessageData 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::PushMessageData* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
40
41
  template <class T>
42
  inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
43
0
  {
44
0
    JS::Rooted<JSObject*> reflector(aCx);
45
0
    return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
46
0
  }
47
48
  void
49
  CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
50
51
  inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx)
52
0
  {
53
0
    /* Get the interface prototype object for this class.  This will create the
54
0
       object as needed. */
55
0
    return GetPerInterfaceObjectHandle(aCx, prototypes::id::PushMessageData,
56
0
                                       &CreateInterfaceObjects,
57
0
                                       /* aDefineOnGlobal = */ true);
58
0
59
0
  }
60
61
  inline JS::Handle<JSObject*> GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true)
62
0
  {
63
0
    /* Get the interface object for this class.  This will create the object as
64
0
       needed. */
65
0
66
0
    return GetPerInterfaceObjectHandle(aCx, constructors::id::PushMessageData,
67
0
                                       &CreateInterfaceObjects,
68
0
                                       aDefineOnGlobal);
69
0
  }
70
71
  JSObject*
72
  GetConstructorObject(JSContext* aCx);
73
74
} // namespace PushMessageData_Binding
75
76
77
78
} // namespace dom
79
} // namespace mozilla
80
81
#endif // mozilla_dom_PushMessageDataBinding_h