Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/mozilla/dom/TreeContentViewBinding.h
Line
Count
Source (jump to first uncovered line)
1
/* THIS FILE IS AUTOGENERATED FROM TreeContentView.webidl BY Codegen.py - DO NOT EDIT */
2
3
#ifndef mozilla_dom_TreeContentViewBinding_h
4
#define mozilla_dom_TreeContentViewBinding_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
class nsTreeContentView;
15
struct nsTreeContentViewAtoms;
16
17
namespace mozilla {
18
namespace dom {
19
20
struct NativePropertyHooks;
21
class ProtoAndIfaceCache;
22
23
} // namespace dom
24
} // namespace mozilla
25
26
namespace mozilla {
27
namespace dom {
28
29
namespace TreeContentView_Binding {
30
31
  typedef nsTreeContentView NativeType;
32
33
  static const int16_t DROP_BEFORE = -1;
34
  static const int16_t DROP_ON = 0;
35
  static const int16_t DROP_AFTER = 1;
36
  bool
37
  ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj);
38
39
  const JSClass*
40
  GetJSClass();
41
42
  bool
43
  Wrap(JSContext* aCx, nsTreeContentView* 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::TreeContentView,
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::TreeContentView,
80
0
                                       &CreateInterfaceObjects,
81
0
                                       aDefineOnGlobal);
82
0
  }
83
84
  JSObject*
85
  GetConstructorObject(JSContext* aCx);
86
87
} // namespace TreeContentView_Binding
88
89
90
91
} // namespace dom
92
} // namespace mozilla
93
94
#endif // mozilla_dom_TreeContentViewBinding_h