Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/mozilla/dom/SVGFECompositeElementBinding.h
Line
Count
Source (jump to first uncovered line)
1
/* THIS FILE IS AUTOGENERATED FROM SVGFECompositeElement.webidl BY Codegen.py - DO NOT EDIT */
2
3
#ifndef mozilla_dom_SVGFECompositeElementBinding_h
4
#define mozilla_dom_SVGFECompositeElementBinding_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 SVGFECompositeElement;
20
struct SVGFECompositeElementAtoms;
21
22
} // namespace dom
23
} // namespace mozilla
24
25
namespace mozilla {
26
namespace dom {
27
28
namespace SVGFECompositeElement_Binding {
29
30
  typedef mozilla::dom::SVGFECompositeElement NativeType;
31
32
  static const uint16_t SVG_FECOMPOSITE_OPERATOR_UNKNOWN = 0;
33
  static const uint16_t SVG_FECOMPOSITE_OPERATOR_OVER = 1;
34
  static const uint16_t SVG_FECOMPOSITE_OPERATOR_IN = 2;
35
  static const uint16_t SVG_FECOMPOSITE_OPERATOR_OUT = 3;
36
  static const uint16_t SVG_FECOMPOSITE_OPERATOR_ATOP = 4;
37
  static const uint16_t SVG_FECOMPOSITE_OPERATOR_XOR = 5;
38
  static const uint16_t SVG_FECOMPOSITE_OPERATOR_ARITHMETIC = 6;
39
  const JSClass*
40
  GetJSClass();
41
42
  bool
43
  Wrap(JSContext* aCx, mozilla::dom::SVGFECompositeElement* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
44
45
  template <class T>
46
  inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
47
0
  {
48
0
    JS::Rooted<JSObject*> reflector(aCx);
49
0
    return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
50
0
  }
51
52
  // We declare this as an array so that retrieving a pointer to this
53
  // binding's property hooks only requires compile/link-time resolvable
54
  // address arithmetic.  Declaring it as a pointer instead would require
55
  // doing a run-time load to fetch a pointer to this binding's property
56
  // hooks.  And then structures which embedded a pointer to this structure
57
  // would require a run-time load for proper initialization, which would
58
  // then induce static constructors.  Lots of static constructors.
59
  extern const NativePropertyHooks sNativePropertyHooks[];
60
61
  void
62
  CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
63
64
  inline JS::Handle<JSObject*> GetProtoObjectHandle(JSContext* aCx)
65
0
  {
66
0
    /* Get the interface prototype object for this class.  This will create the
67
0
       object as needed. */
68
0
    return GetPerInterfaceObjectHandle(aCx, prototypes::id::SVGFECompositeElement,
69
0
                                       &CreateInterfaceObjects,
70
0
                                       /* aDefineOnGlobal = */ true);
71
0
72
0
  }
73
74
  inline JS::Handle<JSObject*> GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true)
75
0
  {
76
0
    /* Get the interface object for this class.  This will create the object as
77
0
       needed. */
78
0
79
0
    return GetPerInterfaceObjectHandle(aCx, constructors::id::SVGFECompositeElement,
80
0
                                       &CreateInterfaceObjects,
81
0
                                       aDefineOnGlobal);
82
0
  }
83
84
  JSObject*
85
  GetConstructorObject(JSContext* aCx);
86
87
} // namespace SVGFECompositeElement_Binding
88
89
90
91
} // namespace dom
92
} // namespace mozilla
93
94
#endif // mozilla_dom_SVGFECompositeElementBinding_h