Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDOMBeforeUnloadEvent.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMBeforeUnloadEvent_h__
6 : #define __gen_nsIDOMBeforeUnloadEvent_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : /* For IDL files that don't want to include root IDL files. */
14 : #ifndef NS_NO_VTABLE
15 : #define NS_NO_VTABLE
16 : #endif
17 :
18 : /* starting interface: nsIDOMBeforeUnloadEvent */
19 : #define NS_IDOMBEFOREUNLOADEVENT_IID_STR "26c83933-a5a4-455e-8c46-69fa24dfa991"
20 :
21 : #define NS_IDOMBEFOREUNLOADEVENT_IID \
22 : {0x26c83933, 0xa5a4, 0x455e, \
23 : { 0x8c, 0x46, 0x69, 0xfa, 0x24, 0xdf, 0xa9, 0x91 }}
24 :
25 5 : class NS_NO_VTABLE nsIDOMBeforeUnloadEvent : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMBEFOREUNLOADEVENT_IID)
29 :
30 : /* attribute DOMString returnValue; */
31 : NS_IMETHOD GetReturnValue(nsAString & aReturnValue) = 0;
32 : NS_IMETHOD SetReturnValue(const nsAString & aReturnValue) = 0;
33 :
34 : };
35 :
36 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMBeforeUnloadEvent, NS_IDOMBEFOREUNLOADEVENT_IID)
37 :
38 : /* Use this macro when declaring classes that implement this interface. */
39 : #define NS_DECL_NSIDOMBEFOREUNLOADEVENT \
40 : NS_IMETHOD GetReturnValue(nsAString & aReturnValue) override; \
41 : NS_IMETHOD SetReturnValue(const nsAString & aReturnValue) override;
42 :
43 : /* Use this macro when declaring the members of this interface when the
44 : class doesn't implement the interface. This is useful for forwarding. */
45 : #define NS_DECL_NON_VIRTUAL_NSIDOMBEFOREUNLOADEVENT \
46 : nsresult GetReturnValue(nsAString & aReturnValue); \
47 : nsresult SetReturnValue(const nsAString & aReturnValue);
48 :
49 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
50 : #define NS_FORWARD_NSIDOMBEFOREUNLOADEVENT(_to) \
51 : NS_IMETHOD GetReturnValue(nsAString & aReturnValue) override { return _to GetReturnValue(aReturnValue); } \
52 : NS_IMETHOD SetReturnValue(const nsAString & aReturnValue) override { return _to SetReturnValue(aReturnValue); }
53 :
54 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
55 : #define NS_FORWARD_SAFE_NSIDOMBEFOREUNLOADEVENT(_to) \
56 : NS_IMETHOD GetReturnValue(nsAString & aReturnValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReturnValue(aReturnValue); } \
57 : NS_IMETHOD SetReturnValue(const nsAString & aReturnValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetReturnValue(aReturnValue); }
58 :
59 : #if 0
60 : /* Use the code below as a template for the implementation class for this interface. */
61 :
62 : /* Header file */
63 : class nsDOMBeforeUnloadEvent : public nsIDOMBeforeUnloadEvent
64 : {
65 : public:
66 : NS_DECL_ISUPPORTS
67 : NS_DECL_NSIDOMBEFOREUNLOADEVENT
68 :
69 : nsDOMBeforeUnloadEvent();
70 :
71 : private:
72 : ~nsDOMBeforeUnloadEvent();
73 :
74 : protected:
75 : /* additional members */
76 : };
77 :
78 : /* Implementation file */
79 : NS_IMPL_ISUPPORTS(nsDOMBeforeUnloadEvent, nsIDOMBeforeUnloadEvent)
80 :
81 : nsDOMBeforeUnloadEvent::nsDOMBeforeUnloadEvent()
82 : {
83 : /* member initializers and constructor code */
84 : }
85 :
86 : nsDOMBeforeUnloadEvent::~nsDOMBeforeUnloadEvent()
87 : {
88 : /* destructor code */
89 : }
90 :
91 : /* attribute DOMString returnValue; */
92 : NS_IMETHODIMP nsDOMBeforeUnloadEvent::GetReturnValue(nsAString & aReturnValue)
93 : {
94 : return NS_ERROR_NOT_IMPLEMENTED;
95 : }
96 : NS_IMETHODIMP nsDOMBeforeUnloadEvent::SetReturnValue(const nsAString & aReturnValue)
97 : {
98 : return NS_ERROR_NOT_IMPLEMENTED;
99 : }
100 :
101 : /* End of implementation class template. */
102 : #endif
103 :
104 :
105 : #endif /* __gen_nsIDOMBeforeUnloadEvent_h__ */
|