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