Line data Source code
1 : /* THIS FILE IS AUTOGENERATED FROM SVGNumber.webidl BY Codegen.py - DO NOT EDIT */
2 :
3 : #ifndef mozilla_dom_SVGNumberBinding_h
4 : #define mozilla_dom_SVGNumberBinding_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 DOMSVGNumber;
15 : struct DOMSVGNumberAtoms;
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 SVGNumberBinding {
30 :
31 : typedef mozilla::DOMSVGNumber NativeType;
32 :
33 : JSObject*
34 : DefineDOMInterface(JSContext* aCx, JS::Handle<JSObject*> aGlobal, JS::Handle<jsid> id, bool aDefineOnGlobal);
35 :
36 : const JSClass*
37 : GetJSClass();
38 :
39 : bool
40 : Wrap(JSContext* aCx, mozilla::DOMSVGNumber* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
41 :
42 : template <class T>
43 0 : inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
44 : {
45 0 : JS::Rooted<JSObject*> reflector(aCx);
46 0 : return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
47 : }
48 :
49 : // We declare this as an array so that retrieving a pointer to this
50 : // binding's property hooks only requires compile/link-time resolvable
51 : // address arithmetic. Declaring it as a pointer instead would require
52 : // doing a run-time load to fetch a pointer to this binding's property
53 : // hooks. And then structures which embedded a pointer to this structure
54 : // would require a run-time load for proper initialization, which would
55 : // then induce static constructors. Lots of static constructors.
56 : extern const NativePropertyHooks sNativePropertyHooks[];
57 :
58 : void
59 : CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
60 :
61 : JS::Handle<JSObject*>
62 : GetProtoObjectHandle(JSContext* aCx);
63 :
64 : JS::Handle<JSObject*>
65 : GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
66 :
67 : JSObject*
68 : GetConstructorObject(JSContext* aCx);
69 :
70 : } // namespace SVGNumberBinding
71 :
72 :
73 :
74 : } // namespace dom
75 : } // namespace mozilla
76 :
77 : #endif // mozilla_dom_SVGNumberBinding_h
|