Coverage Report

Created: 2018-09-25 14:53

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