1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/events/nsIDOMMessageEvent.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMMessageEvent_h__
6 : #define __gen_nsIDOMMessageEvent_h__
7 :
8 :
9 : #ifndef __gen_nsIDOMEvent_h__
10 : #include "nsIDOMEvent.h"
11 : #endif
12 :
13 : #include "jspubtd.h"
14 :
15 : /* For IDL files that don't want to include root IDL files. */
16 : #ifndef NS_NO_VTABLE
17 : #define NS_NO_VTABLE
18 : #endif
19 :
20 : /* starting interface: nsIDOMMessageEvent */
21 : #define NS_IDOMMESSAGEEVENT_IID_STR "3aca4a44-8e5f-4829-9d59-ce4adbba2b12"
22 :
23 : #define NS_IDOMMESSAGEEVENT_IID \
24 : {0x3aca4a44, 0x8e5f, 0x4829, \
25 : { 0x9d, 0x59, 0xce, 0x4a, 0xdb, 0xba, 0x2b, 0x12 }}
26 :
27 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMMessageEvent : public nsIDOMEvent {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMMESSAGEEVENT_IID)
31 :
32 : /* [implicit_jscontext] readonly attribute jsval data; */
33 : NS_SCRIPTABLE NS_IMETHOD GetData(JSContext* cx, JS::Value *aData) = 0;
34 :
35 : /* readonly attribute DOMString origin; */
36 : NS_SCRIPTABLE NS_IMETHOD GetOrigin(nsAString & aOrigin) = 0;
37 :
38 : /* readonly attribute DOMString lastEventId; */
39 : NS_SCRIPTABLE NS_IMETHOD GetLastEventId(nsAString & aLastEventId) = 0;
40 :
41 : /* readonly attribute nsIDOMWindow source; */
42 : NS_SCRIPTABLE NS_IMETHOD GetSource(nsIDOMWindow * *aSource) = 0;
43 :
44 : /* void initMessageEvent (in DOMString aType, in boolean aCanBubble, in boolean aCancelable, in jsval aData, in DOMString aOrigin, in DOMString aLastEventId, in nsIDOMWindow aSource); */
45 : NS_SCRIPTABLE NS_IMETHOD InitMessageEvent(const nsAString & aType, bool aCanBubble, bool aCancelable, const JS::Value & aData, const nsAString & aOrigin, const nsAString & aLastEventId, nsIDOMWindow *aSource) = 0;
46 :
47 : };
48 :
49 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMMessageEvent, NS_IDOMMESSAGEEVENT_IID)
50 :
51 : /* Use this macro when declaring classes that implement this interface. */
52 : #define NS_DECL_NSIDOMMESSAGEEVENT \
53 : NS_SCRIPTABLE NS_IMETHOD GetData(JSContext* cx, JS::Value *aData); \
54 : NS_SCRIPTABLE NS_IMETHOD GetOrigin(nsAString & aOrigin); \
55 : NS_SCRIPTABLE NS_IMETHOD GetLastEventId(nsAString & aLastEventId); \
56 : NS_SCRIPTABLE NS_IMETHOD GetSource(nsIDOMWindow * *aSource); \
57 : NS_SCRIPTABLE NS_IMETHOD InitMessageEvent(const nsAString & aType, bool aCanBubble, bool aCancelable, const JS::Value & aData, const nsAString & aOrigin, const nsAString & aLastEventId, nsIDOMWindow *aSource);
58 :
59 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
60 : #define NS_FORWARD_NSIDOMMESSAGEEVENT(_to) \
61 : NS_SCRIPTABLE NS_IMETHOD GetData(JSContext* cx, JS::Value *aData) { return _to GetData(cx, aData); } \
62 : NS_SCRIPTABLE NS_IMETHOD GetOrigin(nsAString & aOrigin) { return _to GetOrigin(aOrigin); } \
63 : NS_SCRIPTABLE NS_IMETHOD GetLastEventId(nsAString & aLastEventId) { return _to GetLastEventId(aLastEventId); } \
64 : NS_SCRIPTABLE NS_IMETHOD GetSource(nsIDOMWindow * *aSource) { return _to GetSource(aSource); } \
65 : NS_SCRIPTABLE NS_IMETHOD InitMessageEvent(const nsAString & aType, bool aCanBubble, bool aCancelable, const JS::Value & aData, const nsAString & aOrigin, const nsAString & aLastEventId, nsIDOMWindow *aSource) { return _to InitMessageEvent(aType, aCanBubble, aCancelable, aData, aOrigin, aLastEventId, aSource); }
66 :
67 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
68 : #define NS_FORWARD_SAFE_NSIDOMMESSAGEEVENT(_to) \
69 : NS_SCRIPTABLE NS_IMETHOD GetData(JSContext* cx, JS::Value *aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(cx, aData); } \
70 : NS_SCRIPTABLE NS_IMETHOD GetOrigin(nsAString & aOrigin) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOrigin(aOrigin); } \
71 : NS_SCRIPTABLE NS_IMETHOD GetLastEventId(nsAString & aLastEventId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastEventId(aLastEventId); } \
72 : NS_SCRIPTABLE NS_IMETHOD GetSource(nsIDOMWindow * *aSource) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSource(aSource); } \
73 : NS_SCRIPTABLE NS_IMETHOD InitMessageEvent(const nsAString & aType, bool aCanBubble, bool aCancelable, const JS::Value & aData, const nsAString & aOrigin, const nsAString & aLastEventId, nsIDOMWindow *aSource) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitMessageEvent(aType, aCanBubble, aCancelable, aData, aOrigin, aLastEventId, aSource); }
74 :
75 : #if 0
76 : /* Use the code below as a template for the implementation class for this interface. */
77 :
78 : /* Header file */
79 : class nsDOMMessageEvent : public nsIDOMMessageEvent
80 : {
81 : public:
82 : NS_DECL_ISUPPORTS
83 : NS_DECL_NSIDOMMESSAGEEVENT
84 :
85 : nsDOMMessageEvent();
86 :
87 : private:
88 : ~nsDOMMessageEvent();
89 :
90 : protected:
91 : /* additional members */
92 : };
93 :
94 : /* Implementation file */
95 : NS_IMPL_ISUPPORTS1(nsDOMMessageEvent, nsIDOMMessageEvent)
96 :
97 : nsDOMMessageEvent::nsDOMMessageEvent()
98 : {
99 : /* member initializers and constructor code */
100 : }
101 :
102 : nsDOMMessageEvent::~nsDOMMessageEvent()
103 : {
104 : /* destructor code */
105 : }
106 :
107 : /* [implicit_jscontext] readonly attribute jsval data; */
108 : NS_IMETHODIMP nsDOMMessageEvent::GetData(JSContext* cx, JS::Value *aData)
109 : {
110 : return NS_ERROR_NOT_IMPLEMENTED;
111 : }
112 :
113 : /* readonly attribute DOMString origin; */
114 : NS_IMETHODIMP nsDOMMessageEvent::GetOrigin(nsAString & aOrigin)
115 : {
116 : return NS_ERROR_NOT_IMPLEMENTED;
117 : }
118 :
119 : /* readonly attribute DOMString lastEventId; */
120 : NS_IMETHODIMP nsDOMMessageEvent::GetLastEventId(nsAString & aLastEventId)
121 : {
122 : return NS_ERROR_NOT_IMPLEMENTED;
123 : }
124 :
125 : /* readonly attribute nsIDOMWindow source; */
126 : NS_IMETHODIMP nsDOMMessageEvent::GetSource(nsIDOMWindow * *aSource)
127 : {
128 : return NS_ERROR_NOT_IMPLEMENTED;
129 : }
130 :
131 : /* void initMessageEvent (in DOMString aType, in boolean aCanBubble, in boolean aCancelable, in jsval aData, in DOMString aOrigin, in DOMString aLastEventId, in nsIDOMWindow aSource); */
132 : NS_IMETHODIMP nsDOMMessageEvent::InitMessageEvent(const nsAString & aType, bool aCanBubble, bool aCancelable, const JS::Value & aData, const nsAString & aOrigin, const nsAString & aLastEventId, nsIDOMWindow *aSource)
133 : {
134 : return NS_ERROR_NOT_IMPLEMENTED;
135 : }
136 :
137 : /* End of implementation class template. */
138 : #endif
139 :
140 :
141 : #endif /* __gen_nsIDOMMessageEvent_h__ */
|