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