Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/mozilla/dom/SVGZoomAndPanBinding.h
Line
Count
Source (jump to first uncovered line)
1
/* THIS FILE IS AUTOGENERATED FROM SVGZoomAndPan.webidl BY Codegen.py - DO NOT EDIT */
2
3
#ifndef mozilla_dom_SVGZoomAndPanBinding_h
4
#define mozilla_dom_SVGZoomAndPanBinding_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 SVGZoomAndPan;
20
struct SVGZoomAndPanAtoms;
21
22
} // namespace dom
23
} // namespace mozilla
24
25
namespace mozilla {
26
namespace dom {
27
28
namespace SVGZoomAndPan_Binding {
29
30
  typedef mozilla::dom::SVGZoomAndPan NativeType;
31
32
  static const uint16_t SVG_ZOOMANDPAN_UNKNOWN = 0;
33
  static const uint16_t SVG_ZOOMANDPAN_DISABLE = 1;
34
  static const uint16_t SVG_ZOOMANDPAN_MAGNIFY = 2;
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*> GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true)
48
0
  {
49
0
    /* Get the interface object for this class.  This will create the object as
50
0
       needed. */
51
0
52
0
    return GetPerInterfaceObjectHandle(aCx, constructors::id::SVGZoomAndPan,
53
0
                                       &CreateInterfaceObjects,
54
0
                                       aDefineOnGlobal);
55
0
  }
56
57
  JSObject*
58
  GetConstructorObject(JSContext* aCx);
59
60
} // namespace SVGZoomAndPan_Binding
61
62
63
64
} // namespace dom
65
} // namespace mozilla
66
67
#endif // mozilla_dom_SVGZoomAndPanBinding_h