Line data Source code
1 : /* THIS FILE IS AUTOGENERATED FROM WorkerNavigator.webidl BY Codegen.py - DO NOT EDIT */
2 :
3 : #ifndef mozilla_dom_WorkerNavigatorBinding_h
4 : #define mozilla_dom_WorkerNavigatorBinding_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 WorkerNavigator;
18 : struct WorkerNavigatorAtoms;
19 :
20 : } // namespace dom
21 : } // namespace mozilla
22 :
23 : namespace mozilla {
24 : namespace dom {
25 :
26 : namespace WorkerNavigatorBinding {
27 :
28 : typedef mozilla::dom::WorkerNavigator NativeType;
29 :
30 : const JSClass*
31 : GetJSClass();
32 :
33 : bool
34 : Wrap(JSContext* aCx, mozilla::dom::WorkerNavigator* 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 : ClearCachedUserAgentValue(mozilla::dom::WorkerNavigator* aObject);
45 :
46 : void
47 : ClearCachedLanguageValue(mozilla::dom::WorkerNavigator* aObject);
48 :
49 : void
50 : ClearCachedLanguagesValue(mozilla::dom::WorkerNavigator* aObject);
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 : JS::Handle<JSObject*>
59 : GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
60 :
61 : JSObject*
62 : GetConstructorObject(JSContext* aCx);
63 :
64 : } // namespace WorkerNavigatorBinding
65 :
66 :
67 :
68 : } // namespace dom
69 : } // namespace mozilla
70 :
71 : #endif // mozilla_dom_WorkerNavigatorBinding_h
|