Line data Source code
1 : /* THIS FILE IS AUTOGENERATED FROM WorkerLocation.webidl BY Codegen.py - DO NOT EDIT */
2 :
3 : #ifndef mozilla_dom_WorkerLocationBinding_h
4 : #define mozilla_dom_WorkerLocationBinding_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 WorkerLocation;
18 : struct WorkerLocationAtoms;
19 :
20 : } // namespace dom
21 : } // namespace mozilla
22 :
23 : namespace mozilla {
24 : namespace dom {
25 :
26 : namespace WorkerLocationBinding {
27 :
28 : typedef mozilla::dom::WorkerLocation NativeType;
29 :
30 : const JSClass*
31 : GetJSClass();
32 :
33 : bool
34 : Wrap(JSContext* aCx, mozilla::dom::WorkerLocation* 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 : void
44 : CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
45 :
46 : JS::Handle<JSObject*>
47 : GetProtoObjectHandle(JSContext* aCx);
48 :
49 : JS::Handle<JSObject*>
50 : GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
51 :
52 : JSObject*
53 : GetConstructorObject(JSContext* aCx);
54 :
55 : } // namespace WorkerLocationBinding
56 :
57 :
58 :
59 : } // namespace dom
60 : } // namespace mozilla
61 :
62 : #endif // mozilla_dom_WorkerLocationBinding_h
|