Line data Source code
1 : /* THIS FILE IS AUTOGENERATED FROM PushMessageData.webidl BY Codegen.py - DO NOT EDIT */
2 :
3 : #ifndef mozilla_dom_PushMessageDataBinding_h
4 : #define mozilla_dom_PushMessageDataBinding_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 :
18 : namespace workers {
19 :
20 : class PushMessageData;
21 : struct PushMessageDataAtoms;
22 :
23 : } // namespace workers
24 :
25 : } // namespace dom
26 : } // namespace mozilla
27 :
28 : namespace mozilla {
29 : namespace dom {
30 :
31 : namespace PushMessageDataBinding {
32 :
33 : typedef mozilla::dom::workers::PushMessageData NativeType;
34 :
35 : bool
36 : ConstructorEnabled(JSContext* aCx, JS::Handle<JSObject*> aObj);
37 :
38 : const JSClass*
39 : GetJSClass();
40 :
41 : bool
42 : Wrap(JSContext* aCx, mozilla::dom::workers::PushMessageData* aObject, nsWrapperCache* aCache, JS::Handle<JSObject*> aGivenProto, JS::MutableHandle<JSObject*> aReflector);
43 :
44 : template <class T>
45 0 : inline JSObject* Wrap(JSContext* aCx, T* aObject, JS::Handle<JSObject*> aGivenProto)
46 : {
47 0 : JS::Rooted<JSObject*> reflector(aCx);
48 0 : return Wrap(aCx, aObject, aObject, aGivenProto, &reflector) ? reflector.get() : nullptr;
49 : }
50 :
51 : void
52 : CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal);
53 :
54 : JS::Handle<JSObject*>
55 : GetProtoObjectHandle(JSContext* aCx);
56 :
57 : JS::Handle<JSObject*>
58 : GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true);
59 :
60 : JSObject*
61 : GetConstructorObject(JSContext* aCx);
62 :
63 : } // namespace PushMessageDataBinding
64 :
65 :
66 :
67 : } // namespace dom
68 : } // namespace mozilla
69 :
70 : #endif // mozilla_dom_PushMessageDataBinding_h
|