Line data Source code
1 : /* THIS FILE IS AUTOGENERATED FROM SVGStringList.webidl BY Codegen.py - DO NOT EDIT */
2 :
3 : #ifndef mozilla_dom_SVGStringListBinding_h
4 : #define mozilla_dom_SVGStringListBinding_h
5 :
6 : #include "js/RootingAPI.h"
7 : #include "jspubtd.h"
8 : #include "mozilla/ErrorResult.h"
9 : #include "mozilla/dom/BindingDeclarations.h"
10 : #include "mozilla/dom/Nullable.h"
11 :
12 : namespace mozilla {
13 :
14 : class DOMSVGStringList;
15 : struct DOMSVGStringListAtoms;
16 :
17 : namespace dom {
18 :
19 : struct NativePropertyHooks;
20 : class ProtoAndIfaceCache;
21 :
22 : } // namespace dom
23 :
24 : } // namespace mozilla
25 :
26 : namespace mozilla {
27 : namespace dom {
28 :
29 : namespace SVGStringListBinding {
30 :
31 : typedef mozilla::DOMSVGStringList NativeType;
32 :
33 : JSObject*
34 : DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
35 :
36 : bool
37 : Wrap(JSContext* aCx, mozilla::DOMSVGStringList* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
38 :
39 : template <class T>
40 0 : inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
41 : {
42 0 : JS::Rooted<JSObject*> reflector(aCx);
43 0 : return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
44 : }
45 :
46 : // We declare this as an array so that retrieving a pointer to this
47 : // binding's property hooks only requires compile/link-time resolvable
48 : // address arithmetic. Declaring it as a pointer instead would require
49 : // doing a run-time load to fetch a pointer to this binding's property
50 : // hooks. And then structures which embedded a pointer to this structure
51 : // would require a run-time load for proper initialization, which would
52 : // then induce static constructors. Lots of static constructors.
53 : extern const NativePropertyHooks sNativePropertyHooks[];
54 :
55 : void
56 : CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
57 :
58 : JS::Handle<JSObject*>
59 : GetProtoObjectHandle(JSContext* aCx);
60 :
61 : JS::Handle<JSObject*>
62 : GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
63 :
64 : JSObject*
65 : GetConstructorObject(JSContext* aCx);
66 :
67 : } // namespace SVGStringListBinding
68 :
69 :
70 :
71 : } // namespace dom
72 : } // namespace mozilla
73 :
74 : #endif // mozilla_dom_SVGStringListBinding_h
|