1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/widget/nsIBaseWindow.idl
3 : */
4 :
5 : #ifndef __gen_nsIBaseWindow_h__
6 : #define __gen_nsIBaseWindow_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_nsrootidl_h__
14 : #include "nsrootidl.h"
15 : #endif
16 :
17 : /* For IDL files that don't want to include root IDL files. */
18 : #ifndef NS_NO_VTABLE
19 : #define NS_NO_VTABLE
20 : #endif
21 : class nsIWidget;
22 : typedef void * nativeWindow;
23 :
24 :
25 : /* starting interface: nsIBaseWindow */
26 : #define NS_IBASEWINDOW_IID_STR "7144ac8b-6702-4a4b-a73d-d1d4e9717e46"
27 :
28 : #define NS_IBASEWINDOW_IID \
29 : {0x7144ac8b, 0x6702, 0x4a4b, \
30 : { 0xa7, 0x3d, 0xd1, 0xd4, 0xe9, 0x71, 0x7e, 0x46 }}
31 :
32 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIBaseWindow : public nsISupports {
33 : public:
34 :
35 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IBASEWINDOW_IID)
36 :
37 : /* [noscript] void initWindow (in nativeWindow parentNativeWindow, in nsIWidget parentWidget, in long x, in long y, in long cx, in long cy); */
38 : NS_IMETHOD InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy) = 0;
39 :
40 : /* void create (); */
41 : NS_SCRIPTABLE NS_IMETHOD Create(void) = 0;
42 :
43 : /* void destroy (); */
44 : NS_SCRIPTABLE NS_IMETHOD Destroy(void) = 0;
45 :
46 : /* void setPosition (in long x, in long y); */
47 : NS_SCRIPTABLE NS_IMETHOD SetPosition(PRInt32 x, PRInt32 y) = 0;
48 :
49 : /* void getPosition (out long x, out long y); */
50 : NS_SCRIPTABLE NS_IMETHOD GetPosition(PRInt32 *x NS_OUTPARAM, PRInt32 *y NS_OUTPARAM) = 0;
51 :
52 : /* void setSize (in long cx, in long cy, in boolean fRepaint); */
53 : NS_SCRIPTABLE NS_IMETHOD SetSize(PRInt32 cx, PRInt32 cy, bool fRepaint) = 0;
54 :
55 : /* void getSize (out long cx, out long cy); */
56 : NS_SCRIPTABLE NS_IMETHOD GetSize(PRInt32 *cx NS_OUTPARAM, PRInt32 *cy NS_OUTPARAM) = 0;
57 :
58 : /* void setPositionAndSize (in long x, in long y, in long cx, in long cy, in boolean fRepaint); */
59 : NS_SCRIPTABLE NS_IMETHOD SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, bool fRepaint) = 0;
60 :
61 : /* void getPositionAndSize (out long x, out long y, out long cx, out long cy); */
62 : NS_SCRIPTABLE NS_IMETHOD GetPositionAndSize(PRInt32 *x NS_OUTPARAM, PRInt32 *y NS_OUTPARAM, PRInt32 *cx NS_OUTPARAM, PRInt32 *cy NS_OUTPARAM) = 0;
63 :
64 : /* void repaint (in boolean force); */
65 : NS_SCRIPTABLE NS_IMETHOD Repaint(bool force) = 0;
66 :
67 : /* [noscript] attribute nsIWidget parentWidget; */
68 : NS_IMETHOD GetParentWidget(nsIWidget **aParentWidget) = 0;
69 : NS_IMETHOD SetParentWidget(nsIWidget *aParentWidget) = 0;
70 :
71 : /* attribute nativeWindow parentNativeWindow; */
72 : NS_SCRIPTABLE NS_IMETHOD GetParentNativeWindow(nativeWindow *aParentNativeWindow) = 0;
73 : NS_SCRIPTABLE NS_IMETHOD SetParentNativeWindow(nativeWindow aParentNativeWindow) = 0;
74 :
75 : /* attribute boolean visibility; */
76 : NS_SCRIPTABLE NS_IMETHOD GetVisibility(bool *aVisibility) = 0;
77 : NS_SCRIPTABLE NS_IMETHOD SetVisibility(bool aVisibility) = 0;
78 :
79 : /* attribute boolean enabled; */
80 : NS_SCRIPTABLE NS_IMETHOD GetEnabled(bool *aEnabled) = 0;
81 : NS_SCRIPTABLE NS_IMETHOD SetEnabled(bool aEnabled) = 0;
82 :
83 : /* [noscript] readonly attribute nsIWidget mainWidget; */
84 : NS_IMETHOD GetMainWidget(nsIWidget **aMainWidget) = 0;
85 :
86 : /* void setFocus (); */
87 : NS_SCRIPTABLE NS_IMETHOD SetFocus(void) = 0;
88 :
89 : /* attribute wstring title; */
90 : NS_SCRIPTABLE NS_IMETHOD GetTitle(PRUnichar * *aTitle) = 0;
91 : NS_SCRIPTABLE NS_IMETHOD SetTitle(const PRUnichar * aTitle) = 0;
92 :
93 : };
94 :
95 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIBaseWindow, NS_IBASEWINDOW_IID)
96 :
97 : /* Use this macro when declaring classes that implement this interface. */
98 : #define NS_DECL_NSIBASEWINDOW \
99 : NS_IMETHOD InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy); \
100 : NS_SCRIPTABLE NS_IMETHOD Create(void); \
101 : NS_SCRIPTABLE NS_IMETHOD Destroy(void); \
102 : NS_SCRIPTABLE NS_IMETHOD SetPosition(PRInt32 x, PRInt32 y); \
103 : NS_SCRIPTABLE NS_IMETHOD GetPosition(PRInt32 *x NS_OUTPARAM, PRInt32 *y NS_OUTPARAM); \
104 : NS_SCRIPTABLE NS_IMETHOD SetSize(PRInt32 cx, PRInt32 cy, bool fRepaint); \
105 : NS_SCRIPTABLE NS_IMETHOD GetSize(PRInt32 *cx NS_OUTPARAM, PRInt32 *cy NS_OUTPARAM); \
106 : NS_SCRIPTABLE NS_IMETHOD SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, bool fRepaint); \
107 : NS_SCRIPTABLE NS_IMETHOD GetPositionAndSize(PRInt32 *x NS_OUTPARAM, PRInt32 *y NS_OUTPARAM, PRInt32 *cx NS_OUTPARAM, PRInt32 *cy NS_OUTPARAM); \
108 : NS_SCRIPTABLE NS_IMETHOD Repaint(bool force); \
109 : NS_IMETHOD GetParentWidget(nsIWidget **aParentWidget); \
110 : NS_IMETHOD SetParentWidget(nsIWidget *aParentWidget); \
111 : NS_SCRIPTABLE NS_IMETHOD GetParentNativeWindow(nativeWindow *aParentNativeWindow); \
112 : NS_SCRIPTABLE NS_IMETHOD SetParentNativeWindow(nativeWindow aParentNativeWindow); \
113 : NS_SCRIPTABLE NS_IMETHOD GetVisibility(bool *aVisibility); \
114 : NS_SCRIPTABLE NS_IMETHOD SetVisibility(bool aVisibility); \
115 : NS_SCRIPTABLE NS_IMETHOD GetEnabled(bool *aEnabled); \
116 : NS_SCRIPTABLE NS_IMETHOD SetEnabled(bool aEnabled); \
117 : NS_IMETHOD GetMainWidget(nsIWidget **aMainWidget); \
118 : NS_SCRIPTABLE NS_IMETHOD SetFocus(void); \
119 : NS_SCRIPTABLE NS_IMETHOD GetTitle(PRUnichar * *aTitle); \
120 : NS_SCRIPTABLE NS_IMETHOD SetTitle(const PRUnichar * aTitle);
121 :
122 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
123 : #define NS_FORWARD_NSIBASEWINDOW(_to) \
124 : NS_IMETHOD InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy) { return _to InitWindow(parentNativeWindow, parentWidget, x, y, cx, cy); } \
125 : NS_SCRIPTABLE NS_IMETHOD Create(void) { return _to Create(); } \
126 : NS_SCRIPTABLE NS_IMETHOD Destroy(void) { return _to Destroy(); } \
127 : NS_SCRIPTABLE NS_IMETHOD SetPosition(PRInt32 x, PRInt32 y) { return _to SetPosition(x, y); } \
128 : NS_SCRIPTABLE NS_IMETHOD GetPosition(PRInt32 *x NS_OUTPARAM, PRInt32 *y NS_OUTPARAM) { return _to GetPosition(x, y); } \
129 : NS_SCRIPTABLE NS_IMETHOD SetSize(PRInt32 cx, PRInt32 cy, bool fRepaint) { return _to SetSize(cx, cy, fRepaint); } \
130 : NS_SCRIPTABLE NS_IMETHOD GetSize(PRInt32 *cx NS_OUTPARAM, PRInt32 *cy NS_OUTPARAM) { return _to GetSize(cx, cy); } \
131 : NS_SCRIPTABLE NS_IMETHOD SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, bool fRepaint) { return _to SetPositionAndSize(x, y, cx, cy, fRepaint); } \
132 : NS_SCRIPTABLE NS_IMETHOD GetPositionAndSize(PRInt32 *x NS_OUTPARAM, PRInt32 *y NS_OUTPARAM, PRInt32 *cx NS_OUTPARAM, PRInt32 *cy NS_OUTPARAM) { return _to GetPositionAndSize(x, y, cx, cy); } \
133 : NS_SCRIPTABLE NS_IMETHOD Repaint(bool force) { return _to Repaint(force); } \
134 : NS_IMETHOD GetParentWidget(nsIWidget **aParentWidget) { return _to GetParentWidget(aParentWidget); } \
135 : NS_IMETHOD SetParentWidget(nsIWidget *aParentWidget) { return _to SetParentWidget(aParentWidget); } \
136 : NS_SCRIPTABLE NS_IMETHOD GetParentNativeWindow(nativeWindow *aParentNativeWindow) { return _to GetParentNativeWindow(aParentNativeWindow); } \
137 : NS_SCRIPTABLE NS_IMETHOD SetParentNativeWindow(nativeWindow aParentNativeWindow) { return _to SetParentNativeWindow(aParentNativeWindow); } \
138 : NS_SCRIPTABLE NS_IMETHOD GetVisibility(bool *aVisibility) { return _to GetVisibility(aVisibility); } \
139 : NS_SCRIPTABLE NS_IMETHOD SetVisibility(bool aVisibility) { return _to SetVisibility(aVisibility); } \
140 : NS_SCRIPTABLE NS_IMETHOD GetEnabled(bool *aEnabled) { return _to GetEnabled(aEnabled); } \
141 : NS_SCRIPTABLE NS_IMETHOD SetEnabled(bool aEnabled) { return _to SetEnabled(aEnabled); } \
142 : NS_IMETHOD GetMainWidget(nsIWidget **aMainWidget) { return _to GetMainWidget(aMainWidget); } \
143 : NS_SCRIPTABLE NS_IMETHOD SetFocus(void) { return _to SetFocus(); } \
144 : NS_SCRIPTABLE NS_IMETHOD GetTitle(PRUnichar * *aTitle) { return _to GetTitle(aTitle); } \
145 : NS_SCRIPTABLE NS_IMETHOD SetTitle(const PRUnichar * aTitle) { return _to SetTitle(aTitle); }
146 :
147 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
148 : #define NS_FORWARD_SAFE_NSIBASEWINDOW(_to) \
149 : NS_IMETHOD InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitWindow(parentNativeWindow, parentWidget, x, y, cx, cy); } \
150 : NS_SCRIPTABLE NS_IMETHOD Create(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Create(); } \
151 : NS_SCRIPTABLE NS_IMETHOD Destroy(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Destroy(); } \
152 : NS_SCRIPTABLE NS_IMETHOD SetPosition(PRInt32 x, PRInt32 y) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPosition(x, y); } \
153 : NS_SCRIPTABLE NS_IMETHOD GetPosition(PRInt32 *x NS_OUTPARAM, PRInt32 *y NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPosition(x, y); } \
154 : NS_SCRIPTABLE NS_IMETHOD SetSize(PRInt32 cx, PRInt32 cy, bool fRepaint) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSize(cx, cy, fRepaint); } \
155 : NS_SCRIPTABLE NS_IMETHOD GetSize(PRInt32 *cx NS_OUTPARAM, PRInt32 *cy NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSize(cx, cy); } \
156 : NS_SCRIPTABLE NS_IMETHOD SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, bool fRepaint) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPositionAndSize(x, y, cx, cy, fRepaint); } \
157 : NS_SCRIPTABLE NS_IMETHOD GetPositionAndSize(PRInt32 *x NS_OUTPARAM, PRInt32 *y NS_OUTPARAM, PRInt32 *cx NS_OUTPARAM, PRInt32 *cy NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPositionAndSize(x, y, cx, cy); } \
158 : NS_SCRIPTABLE NS_IMETHOD Repaint(bool force) { return !_to ? NS_ERROR_NULL_POINTER : _to->Repaint(force); } \
159 : NS_IMETHOD GetParentWidget(nsIWidget **aParentWidget) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentWidget(aParentWidget); } \
160 : NS_IMETHOD SetParentWidget(nsIWidget *aParentWidget) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetParentWidget(aParentWidget); } \
161 : NS_SCRIPTABLE NS_IMETHOD GetParentNativeWindow(nativeWindow *aParentNativeWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentNativeWindow(aParentNativeWindow); } \
162 : NS_SCRIPTABLE NS_IMETHOD SetParentNativeWindow(nativeWindow aParentNativeWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetParentNativeWindow(aParentNativeWindow); } \
163 : NS_SCRIPTABLE NS_IMETHOD GetVisibility(bool *aVisibility) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVisibility(aVisibility); } \
164 : NS_SCRIPTABLE NS_IMETHOD SetVisibility(bool aVisibility) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetVisibility(aVisibility); } \
165 : NS_SCRIPTABLE NS_IMETHOD GetEnabled(bool *aEnabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEnabled(aEnabled); } \
166 : NS_SCRIPTABLE NS_IMETHOD SetEnabled(bool aEnabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEnabled(aEnabled); } \
167 : NS_IMETHOD GetMainWidget(nsIWidget **aMainWidget) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMainWidget(aMainWidget); } \
168 : NS_SCRIPTABLE NS_IMETHOD SetFocus(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFocus(); } \
169 : NS_SCRIPTABLE NS_IMETHOD GetTitle(PRUnichar * *aTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTitle(aTitle); } \
170 : NS_SCRIPTABLE NS_IMETHOD SetTitle(const PRUnichar * aTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTitle(aTitle); }
171 :
172 : #if 0
173 : /* Use the code below as a template for the implementation class for this interface. */
174 :
175 : /* Header file */
176 : class nsBaseWindow : public nsIBaseWindow
177 : {
178 : public:
179 : NS_DECL_ISUPPORTS
180 : NS_DECL_NSIBASEWINDOW
181 :
182 : nsBaseWindow();
183 :
184 : private:
185 : ~nsBaseWindow();
186 :
187 : protected:
188 : /* additional members */
189 : };
190 :
191 : /* Implementation file */
192 : NS_IMPL_ISUPPORTS1(nsBaseWindow, nsIBaseWindow)
193 :
194 : nsBaseWindow::nsBaseWindow()
195 : {
196 : /* member initializers and constructor code */
197 : }
198 :
199 : nsBaseWindow::~nsBaseWindow()
200 : {
201 : /* destructor code */
202 : }
203 :
204 : /* [noscript] void initWindow (in nativeWindow parentNativeWindow, in nsIWidget parentWidget, in long x, in long y, in long cx, in long cy); */
205 : NS_IMETHODIMP nsBaseWindow::InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy)
206 : {
207 : return NS_ERROR_NOT_IMPLEMENTED;
208 : }
209 :
210 : /* void create (); */
211 : NS_IMETHODIMP nsBaseWindow::Create()
212 : {
213 : return NS_ERROR_NOT_IMPLEMENTED;
214 : }
215 :
216 : /* void destroy (); */
217 : NS_IMETHODIMP nsBaseWindow::Destroy()
218 : {
219 : return NS_ERROR_NOT_IMPLEMENTED;
220 : }
221 :
222 : /* void setPosition (in long x, in long y); */
223 : NS_IMETHODIMP nsBaseWindow::SetPosition(PRInt32 x, PRInt32 y)
224 : {
225 : return NS_ERROR_NOT_IMPLEMENTED;
226 : }
227 :
228 : /* void getPosition (out long x, out long y); */
229 : NS_IMETHODIMP nsBaseWindow::GetPosition(PRInt32 *x NS_OUTPARAM, PRInt32 *y NS_OUTPARAM)
230 : {
231 : return NS_ERROR_NOT_IMPLEMENTED;
232 : }
233 :
234 : /* void setSize (in long cx, in long cy, in boolean fRepaint); */
235 : NS_IMETHODIMP nsBaseWindow::SetSize(PRInt32 cx, PRInt32 cy, bool fRepaint)
236 : {
237 : return NS_ERROR_NOT_IMPLEMENTED;
238 : }
239 :
240 : /* void getSize (out long cx, out long cy); */
241 : NS_IMETHODIMP nsBaseWindow::GetSize(PRInt32 *cx NS_OUTPARAM, PRInt32 *cy NS_OUTPARAM)
242 : {
243 : return NS_ERROR_NOT_IMPLEMENTED;
244 : }
245 :
246 : /* void setPositionAndSize (in long x, in long y, in long cx, in long cy, in boolean fRepaint); */
247 : NS_IMETHODIMP nsBaseWindow::SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, bool fRepaint)
248 : {
249 : return NS_ERROR_NOT_IMPLEMENTED;
250 : }
251 :
252 : /* void getPositionAndSize (out long x, out long y, out long cx, out long cy); */
253 : NS_IMETHODIMP nsBaseWindow::GetPositionAndSize(PRInt32 *x NS_OUTPARAM, PRInt32 *y NS_OUTPARAM, PRInt32 *cx NS_OUTPARAM, PRInt32 *cy NS_OUTPARAM)
254 : {
255 : return NS_ERROR_NOT_IMPLEMENTED;
256 : }
257 :
258 : /* void repaint (in boolean force); */
259 : NS_IMETHODIMP nsBaseWindow::Repaint(bool force)
260 : {
261 : return NS_ERROR_NOT_IMPLEMENTED;
262 : }
263 :
264 : /* [noscript] attribute nsIWidget parentWidget; */
265 : NS_IMETHODIMP nsBaseWindow::GetParentWidget(nsIWidget **aParentWidget)
266 : {
267 : return NS_ERROR_NOT_IMPLEMENTED;
268 : }
269 : NS_IMETHODIMP nsBaseWindow::SetParentWidget(nsIWidget *aParentWidget)
270 : {
271 : return NS_ERROR_NOT_IMPLEMENTED;
272 : }
273 :
274 : /* attribute nativeWindow parentNativeWindow; */
275 : NS_IMETHODIMP nsBaseWindow::GetParentNativeWindow(nativeWindow *aParentNativeWindow)
276 : {
277 : return NS_ERROR_NOT_IMPLEMENTED;
278 : }
279 : NS_IMETHODIMP nsBaseWindow::SetParentNativeWindow(nativeWindow aParentNativeWindow)
280 : {
281 : return NS_ERROR_NOT_IMPLEMENTED;
282 : }
283 :
284 : /* attribute boolean visibility; */
285 : NS_IMETHODIMP nsBaseWindow::GetVisibility(bool *aVisibility)
286 : {
287 : return NS_ERROR_NOT_IMPLEMENTED;
288 : }
289 : NS_IMETHODIMP nsBaseWindow::SetVisibility(bool aVisibility)
290 : {
291 : return NS_ERROR_NOT_IMPLEMENTED;
292 : }
293 :
294 : /* attribute boolean enabled; */
295 : NS_IMETHODIMP nsBaseWindow::GetEnabled(bool *aEnabled)
296 : {
297 : return NS_ERROR_NOT_IMPLEMENTED;
298 : }
299 : NS_IMETHODIMP nsBaseWindow::SetEnabled(bool aEnabled)
300 : {
301 : return NS_ERROR_NOT_IMPLEMENTED;
302 : }
303 :
304 : /* [noscript] readonly attribute nsIWidget mainWidget; */
305 : NS_IMETHODIMP nsBaseWindow::GetMainWidget(nsIWidget **aMainWidget)
306 : {
307 : return NS_ERROR_NOT_IMPLEMENTED;
308 : }
309 :
310 : /* void setFocus (); */
311 : NS_IMETHODIMP nsBaseWindow::SetFocus()
312 : {
313 : return NS_ERROR_NOT_IMPLEMENTED;
314 : }
315 :
316 : /* attribute wstring title; */
317 : NS_IMETHODIMP nsBaseWindow::GetTitle(PRUnichar * *aTitle)
318 : {
319 : return NS_ERROR_NOT_IMPLEMENTED;
320 : }
321 : NS_IMETHODIMP nsBaseWindow::SetTitle(const PRUnichar * aTitle)
322 : {
323 : return NS_ERROR_NOT_IMPLEMENTED;
324 : }
325 :
326 : /* End of implementation class template. */
327 : #endif
328 :
329 :
330 : #endif /* __gen_nsIBaseWindow_h__ */
|