Line data Source code
1 : /* THIS FILE IS AUTOGENERATED FROM VRServiceTest.webidl BY Codegen.py - DO NOT EDIT */
2 :
3 : #ifndef mozilla_dom_VRServiceTestBinding_h
4 : #define mozilla_dom_VRServiceTestBinding_h
5 :
6 : #include "VRDisplayBinding.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 :
13 : namespace mozilla {
14 : namespace dom {
15 :
16 : struct NativePropertyHooks;
17 : class ProtoAndIfaceCache;
18 : class VRMockController;
19 : struct VRMockControllerAtoms;
20 : class VRMockDisplay;
21 : struct VRMockDisplayAtoms;
22 : class VRServiceTest;
23 : struct VRServiceTestAtoms;
24 :
25 : } // namespace dom
26 : } // namespace mozilla
27 :
28 : namespace mozilla {
29 : namespace dom {
30 :
31 : namespace VRMockControllerBinding {
32 :
33 : typedef mozilla::dom::VRMockController NativeType;
34 :
35 : bool
36 : ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj);
37 :
38 : JSObject*
39 : DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
40 :
41 : const JSClass*
42 : GetJSClass();
43 :
44 : bool
45 : Wrap(JSContext* aCx, mozilla::dom::VRMockController* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
46 :
47 : template <class T>
48 0 : inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
49 : {
50 0 : JS::Rooted<JSObject*> reflector(aCx);
51 0 : return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
52 : }
53 :
54 : // We declare this as an array so that retrieving a pointer to this
55 : // binding's property hooks only requires compile/link-time resolvable
56 : // address arithmetic. Declaring it as a pointer instead would require
57 : // doing a run-time load to fetch a pointer to this binding's property
58 : // hooks. And then structures which embedded a pointer to this structure
59 : // would require a run-time load for proper initialization, which would
60 : // then induce static constructors. Lots of static constructors.
61 : extern const NativePropertyHooks sNativePropertyHooks[];
62 :
63 : void
64 : CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
65 :
66 : JS::Handle<JSObject*>
67 : GetProtoObjectHandle(JSContext* aCx);
68 :
69 : JS::Handle<JSObject*>
70 : GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
71 :
72 : JSObject*
73 : GetConstructorObject(JSContext* aCx);
74 :
75 : } // namespace VRMockControllerBinding
76 :
77 :
78 :
79 : namespace VRMockDisplayBinding {
80 :
81 : typedef mozilla::dom::VRMockDisplay NativeType;
82 :
83 : bool
84 : ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj);
85 :
86 : JSObject*
87 : DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
88 :
89 : const JSClass*
90 : GetJSClass();
91 :
92 : bool
93 : Wrap(JSContext* aCx, mozilla::dom::VRMockDisplay* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
94 :
95 : template <class T>
96 0 : inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
97 : {
98 0 : JS::Rooted<JSObject*> reflector(aCx);
99 0 : return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
100 : }
101 :
102 : // We declare this as an array so that retrieving a pointer to this
103 : // binding's property hooks only requires compile/link-time resolvable
104 : // address arithmetic. Declaring it as a pointer instead would require
105 : // doing a run-time load to fetch a pointer to this binding's property
106 : // hooks. And then structures which embedded a pointer to this structure
107 : // would require a run-time load for proper initialization, which would
108 : // then induce static constructors. Lots of static constructors.
109 : extern const NativePropertyHooks sNativePropertyHooks[];
110 :
111 : void
112 : CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
113 :
114 : JS::Handle<JSObject*>
115 : GetProtoObjectHandle(JSContext* aCx);
116 :
117 : JS::Handle<JSObject*>
118 : GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
119 :
120 : JSObject*
121 : GetConstructorObject(JSContext* aCx);
122 :
123 : } // namespace VRMockDisplayBinding
124 :
125 :
126 :
127 : namespace VRServiceTestBinding {
128 :
129 : typedef mozilla::dom::VRServiceTest NativeType;
130 :
131 : bool
132 : ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj);
133 :
134 : JSObject*
135 : DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
136 :
137 : const JSClass*
138 : GetJSClass();
139 :
140 : bool
141 : Wrap(JSContext* aCx, mozilla::dom::VRServiceTest* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
142 :
143 : template <class T>
144 0 : inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
145 : {
146 0 : JS::Rooted<JSObject*> reflector(aCx);
147 0 : return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
148 : }
149 :
150 : // We declare this as an array so that retrieving a pointer to this
151 : // binding's property hooks only requires compile/link-time resolvable
152 : // address arithmetic. Declaring it as a pointer instead would require
153 : // doing a run-time load to fetch a pointer to this binding's property
154 : // hooks. And then structures which embedded a pointer to this structure
155 : // would require a run-time load for proper initialization, which would
156 : // then induce static constructors. Lots of static constructors.
157 : extern const NativePropertyHooks sNativePropertyHooks[];
158 :
159 : void
160 : CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
161 :
162 : JS::Handle<JSObject*>
163 : GetProtoObjectHandle(JSContext* aCx);
164 :
165 : JS::Handle<JSObject*>
166 : GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
167 :
168 : JSObject*
169 : GetConstructorObject(JSContext* aCx);
170 :
171 : } // namespace VRServiceTestBinding
172 :
173 :
174 :
175 : } // namespace dom
176 : } // namespace mozilla
177 :
178 : #endif // mozilla_dom_VRServiceTestBinding_h
|