1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/events/nsIDOMCloseEvent.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMCloseEvent_h__
6 : #define __gen_nsIDOMCloseEvent_h__
7 :
8 :
9 : #ifndef __gen_nsIDOMEvent_h__
10 : #include "nsIDOMEvent.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: nsIDOMCloseEvent */
19 : #define NS_IDOMCLOSEEVENT_IID_STR "07fb24d2-a102-41a2-bdaa-eb5e0d399eba"
20 :
21 : #define NS_IDOMCLOSEEVENT_IID \
22 : {0x07fb24d2, 0xa102, 0x41a2, \
23 : { 0xbd, 0xaa, 0xeb, 0x5e, 0x0d, 0x39, 0x9e, 0xba }}
24 :
25 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMCloseEvent : public nsIDOMEvent {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMCLOSEEVENT_IID)
29 :
30 : /* readonly attribute boolean wasClean; */
31 : NS_SCRIPTABLE NS_IMETHOD GetWasClean(bool *aWasClean) = 0;
32 :
33 : /* readonly attribute unsigned short code; */
34 : NS_SCRIPTABLE NS_IMETHOD GetCode(PRUint16 *aCode) = 0;
35 :
36 : /* readonly attribute DOMString reason; */
37 : NS_SCRIPTABLE NS_IMETHOD GetReason(nsAString & aReason) = 0;
38 :
39 : /* void initCloseEvent (in DOMString aType, in boolean aCanBubble, in boolean aCancelable, in boolean aWasClean, in unsigned short aReasonCode, in DOMString aReason); */
40 : NS_SCRIPTABLE NS_IMETHOD InitCloseEvent(const nsAString & aType, bool aCanBubble, bool aCancelable, bool aWasClean, PRUint16 aReasonCode, const nsAString & aReason) = 0;
41 :
42 : };
43 :
44 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMCloseEvent, NS_IDOMCLOSEEVENT_IID)
45 :
46 : /* Use this macro when declaring classes that implement this interface. */
47 : #define NS_DECL_NSIDOMCLOSEEVENT \
48 : NS_SCRIPTABLE NS_IMETHOD GetWasClean(bool *aWasClean); \
49 : NS_SCRIPTABLE NS_IMETHOD GetCode(PRUint16 *aCode); \
50 : NS_SCRIPTABLE NS_IMETHOD GetReason(nsAString & aReason); \
51 : NS_SCRIPTABLE NS_IMETHOD InitCloseEvent(const nsAString & aType, bool aCanBubble, bool aCancelable, bool aWasClean, PRUint16 aReasonCode, const nsAString & aReason);
52 :
53 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
54 : #define NS_FORWARD_NSIDOMCLOSEEVENT(_to) \
55 : NS_SCRIPTABLE NS_IMETHOD GetWasClean(bool *aWasClean) { return _to GetWasClean(aWasClean); } \
56 : NS_SCRIPTABLE NS_IMETHOD GetCode(PRUint16 *aCode) { return _to GetCode(aCode); } \
57 : NS_SCRIPTABLE NS_IMETHOD GetReason(nsAString & aReason) { return _to GetReason(aReason); } \
58 : NS_SCRIPTABLE NS_IMETHOD InitCloseEvent(const nsAString & aType, bool aCanBubble, bool aCancelable, bool aWasClean, PRUint16 aReasonCode, const nsAString & aReason) { return _to InitCloseEvent(aType, aCanBubble, aCancelable, aWasClean, aReasonCode, aReason); }
59 :
60 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
61 : #define NS_FORWARD_SAFE_NSIDOMCLOSEEVENT(_to) \
62 : NS_SCRIPTABLE NS_IMETHOD GetWasClean(bool *aWasClean) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWasClean(aWasClean); } \
63 : NS_SCRIPTABLE NS_IMETHOD GetCode(PRUint16 *aCode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCode(aCode); } \
64 : NS_SCRIPTABLE NS_IMETHOD GetReason(nsAString & aReason) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReason(aReason); } \
65 : NS_SCRIPTABLE NS_IMETHOD InitCloseEvent(const nsAString & aType, bool aCanBubble, bool aCancelable, bool aWasClean, PRUint16 aReasonCode, const nsAString & aReason) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitCloseEvent(aType, aCanBubble, aCancelable, aWasClean, aReasonCode, aReason); }
66 :
67 : #if 0
68 : /* Use the code below as a template for the implementation class for this interface. */
69 :
70 : /* Header file */
71 : class nsDOMCloseEvent : public nsIDOMCloseEvent
72 : {
73 : public:
74 : NS_DECL_ISUPPORTS
75 : NS_DECL_NSIDOMCLOSEEVENT
76 :
77 : nsDOMCloseEvent();
78 :
79 : private:
80 : ~nsDOMCloseEvent();
81 :
82 : protected:
83 : /* additional members */
84 : };
85 :
86 : /* Implementation file */
87 : NS_IMPL_ISUPPORTS1(nsDOMCloseEvent, nsIDOMCloseEvent)
88 :
89 : nsDOMCloseEvent::nsDOMCloseEvent()
90 : {
91 : /* member initializers and constructor code */
92 : }
93 :
94 : nsDOMCloseEvent::~nsDOMCloseEvent()
95 : {
96 : /* destructor code */
97 : }
98 :
99 : /* readonly attribute boolean wasClean; */
100 : NS_IMETHODIMP nsDOMCloseEvent::GetWasClean(bool *aWasClean)
101 : {
102 : return NS_ERROR_NOT_IMPLEMENTED;
103 : }
104 :
105 : /* readonly attribute unsigned short code; */
106 : NS_IMETHODIMP nsDOMCloseEvent::GetCode(PRUint16 *aCode)
107 : {
108 : return NS_ERROR_NOT_IMPLEMENTED;
109 : }
110 :
111 : /* readonly attribute DOMString reason; */
112 : NS_IMETHODIMP nsDOMCloseEvent::GetReason(nsAString & aReason)
113 : {
114 : return NS_ERROR_NOT_IMPLEMENTED;
115 : }
116 :
117 : /* void initCloseEvent (in DOMString aType, in boolean aCanBubble, in boolean aCancelable, in boolean aWasClean, in unsigned short aReasonCode, in DOMString aReason); */
118 : NS_IMETHODIMP nsDOMCloseEvent::InitCloseEvent(const nsAString & aType, bool aCanBubble, bool aCancelable, bool aWasClean, PRUint16 aReasonCode, const nsAString & aReason)
119 : {
120 : return NS_ERROR_NOT_IMPLEMENTED;
121 : }
122 :
123 : /* End of implementation class template. */
124 : #endif
125 :
126 :
127 : #endif /* __gen_nsIDOMCloseEvent_h__ */
|