Coverage Report

Created: 2018-09-25 14:53

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