Line data Source code
1 : /* THIS FILE IS AUTOGENERATED FROM CommandEvent.webidl BY Codegen.py - DO NOT EDIT */
2 :
3 : #ifndef mozilla_dom_CommandEventBinding_h
4 : #define mozilla_dom_CommandEventBinding_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 : class CommandEvent;
16 : struct CommandEventAtoms;
17 : struct NativePropertyHooks;
18 : class ProtoAndIfaceCache;
19 :
20 : } // namespace dom
21 : } // namespace mozilla
22 :
23 : namespace mozilla {
24 : namespace dom {
25 :
26 : namespace CommandEventBinding {
27 :
28 : typedef mozilla::dom::CommandEvent NativeType;
29 :
30 : bool
31 : ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj);
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::dom::CommandEvent* 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 CommandEventBinding
71 :
72 :
73 :
74 : } // namespace dom
75 : } // namespace mozilla
76 :
77 : #endif // mozilla_dom_CommandEventBinding_h
|