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