Line data Source code
1 : /* THIS FILE IS AUTOGENERATED FROM SVGSVGElement.webidl BY Codegen.py - DO NOT EDIT */
2 :
3 : #ifndef mozilla_dom_SVGSVGElementBinding_h
4 : #define mozilla_dom_SVGSVGElementBinding_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 : namespace dom {
14 :
15 : struct NativePropertyHooks;
16 : class ProtoAndIfaceCache;
17 : class SVGSVGElement;
18 : struct SVGSVGElementAtoms;
19 :
20 : } // namespace dom
21 : } // namespace mozilla
22 :
23 : namespace mozilla {
24 : namespace dom {
25 :
26 : namespace SVGSVGElementBinding {
27 :
28 : typedef mozilla::dom::SVGSVGElement NativeType;
29 :
30 : JSObject*
31 : DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
32 :
33 : const JSClass*
34 : GetJSClass();
35 :
36 : bool
37 : Wrap(JSContext* aCx, mozilla::dom::SVGSVGElement* 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 SVGSVGElementBinding
68 :
69 :
70 :
71 : } // namespace dom
72 : } // namespace mozilla
73 :
74 : #endif // mozilla_dom_SVGSVGElementBinding_h
|