Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIWindowWatcher.idl
3 : */
4 :
5 : #ifndef __gen_nsIWindowWatcher_h__
6 : #define __gen_nsIWindowWatcher_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 : class mozIDOMWindowProxy; /* forward declaration */
18 :
19 : class nsIObserver; /* forward declaration */
20 :
21 : class nsIPrompt; /* forward declaration */
22 :
23 : class nsIAuthPrompt; /* forward declaration */
24 :
25 : class nsISimpleEnumerator; /* forward declaration */
26 :
27 : class nsIWebBrowserChrome; /* forward declaration */
28 :
29 : class nsIWindowCreator; /* forward declaration */
30 :
31 :
32 : /* starting interface: nsIWindowWatcher */
33 : #define NS_IWINDOWWATCHER_IID_STR "641fe945-6902-4b3f-87c2-0daef32499b3"
34 :
35 : #define NS_IWINDOWWATCHER_IID \
36 : {0x641fe945, 0x6902, 0x4b3f, \
37 : { 0x87, 0xc2, 0x0d, 0xae, 0xf3, 0x24, 0x99, 0xb3 }}
38 :
39 2 : class NS_NO_VTABLE nsIWindowWatcher : public nsISupports {
40 : public:
41 :
42 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWINDOWWATCHER_IID)
43 :
44 : /* mozIDOMWindowProxy openWindow (in mozIDOMWindowProxy aParent, in string aUrl, in string aName, in string aFeatures, in nsISupports aArguments); */
45 : NS_IMETHOD OpenWindow(mozIDOMWindowProxy *aParent, const char * aUrl, const char * aName, const char * aFeatures, nsISupports *aArguments, mozIDOMWindowProxy * *_retval) = 0;
46 :
47 : /* void registerNotification (in nsIObserver aObserver); */
48 : NS_IMETHOD RegisterNotification(nsIObserver *aObserver) = 0;
49 :
50 : /* void unregisterNotification (in nsIObserver aObserver); */
51 : NS_IMETHOD UnregisterNotification(nsIObserver *aObserver) = 0;
52 :
53 : /* nsISimpleEnumerator getWindowEnumerator (); */
54 : NS_IMETHOD GetWindowEnumerator(nsISimpleEnumerator * *_retval) = 0;
55 :
56 : /* nsIPrompt getNewPrompter (in mozIDOMWindowProxy aParent); */
57 : NS_IMETHOD GetNewPrompter(mozIDOMWindowProxy *aParent, nsIPrompt * *_retval) = 0;
58 :
59 : /* nsIAuthPrompt getNewAuthPrompter (in mozIDOMWindowProxy aParent); */
60 : NS_IMETHOD GetNewAuthPrompter(mozIDOMWindowProxy *aParent, nsIAuthPrompt * *_retval) = 0;
61 :
62 : /* void setWindowCreator (in nsIWindowCreator creator); */
63 : NS_IMETHOD SetWindowCreator(nsIWindowCreator *creator) = 0;
64 :
65 : /* boolean hasWindowCreator (); */
66 : NS_IMETHOD HasWindowCreator(bool *_retval) = 0;
67 :
68 : /* nsIWebBrowserChrome getChromeForWindow (in mozIDOMWindowProxy aWindow); */
69 : NS_IMETHOD GetChromeForWindow(mozIDOMWindowProxy *aWindow, nsIWebBrowserChrome * *_retval) = 0;
70 :
71 : /* mozIDOMWindowProxy getWindowByName (in AString aTargetName, in mozIDOMWindowProxy aCurrentWindow); */
72 : NS_IMETHOD GetWindowByName(const nsAString & aTargetName, mozIDOMWindowProxy *aCurrentWindow, mozIDOMWindowProxy * *_retval) = 0;
73 :
74 : /* attribute mozIDOMWindowProxy activeWindow; */
75 : NS_IMETHOD GetActiveWindow(mozIDOMWindowProxy * *aActiveWindow) = 0;
76 : NS_IMETHOD SetActiveWindow(mozIDOMWindowProxy *aActiveWindow) = 0;
77 :
78 : };
79 :
80 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIWindowWatcher, NS_IWINDOWWATCHER_IID)
81 :
82 : /* Use this macro when declaring classes that implement this interface. */
83 : #define NS_DECL_NSIWINDOWWATCHER \
84 : NS_IMETHOD OpenWindow(mozIDOMWindowProxy *aParent, const char * aUrl, const char * aName, const char * aFeatures, nsISupports *aArguments, mozIDOMWindowProxy * *_retval) override; \
85 : NS_IMETHOD RegisterNotification(nsIObserver *aObserver) override; \
86 : NS_IMETHOD UnregisterNotification(nsIObserver *aObserver) override; \
87 : NS_IMETHOD GetWindowEnumerator(nsISimpleEnumerator * *_retval) override; \
88 : NS_IMETHOD GetNewPrompter(mozIDOMWindowProxy *aParent, nsIPrompt * *_retval) override; \
89 : NS_IMETHOD GetNewAuthPrompter(mozIDOMWindowProxy *aParent, nsIAuthPrompt * *_retval) override; \
90 : NS_IMETHOD SetWindowCreator(nsIWindowCreator *creator) override; \
91 : NS_IMETHOD HasWindowCreator(bool *_retval) override; \
92 : NS_IMETHOD GetChromeForWindow(mozIDOMWindowProxy *aWindow, nsIWebBrowserChrome * *_retval) override; \
93 : NS_IMETHOD GetWindowByName(const nsAString & aTargetName, mozIDOMWindowProxy *aCurrentWindow, mozIDOMWindowProxy * *_retval) override; \
94 : NS_IMETHOD GetActiveWindow(mozIDOMWindowProxy * *aActiveWindow) override; \
95 : NS_IMETHOD SetActiveWindow(mozIDOMWindowProxy *aActiveWindow) override;
96 :
97 : /* Use this macro when declaring the members of this interface when the
98 : class doesn't implement the interface. This is useful for forwarding. */
99 : #define NS_DECL_NON_VIRTUAL_NSIWINDOWWATCHER \
100 : nsresult OpenWindow(mozIDOMWindowProxy *aParent, const char * aUrl, const char * aName, const char * aFeatures, nsISupports *aArguments, mozIDOMWindowProxy * *_retval); \
101 : nsresult RegisterNotification(nsIObserver *aObserver); \
102 : nsresult UnregisterNotification(nsIObserver *aObserver); \
103 : nsresult GetWindowEnumerator(nsISimpleEnumerator * *_retval); \
104 : nsresult GetNewPrompter(mozIDOMWindowProxy *aParent, nsIPrompt * *_retval); \
105 : nsresult GetNewAuthPrompter(mozIDOMWindowProxy *aParent, nsIAuthPrompt * *_retval); \
106 : nsresult SetWindowCreator(nsIWindowCreator *creator); \
107 : nsresult HasWindowCreator(bool *_retval); \
108 : nsresult GetChromeForWindow(mozIDOMWindowProxy *aWindow, nsIWebBrowserChrome * *_retval); \
109 : nsresult GetWindowByName(const nsAString & aTargetName, mozIDOMWindowProxy *aCurrentWindow, mozIDOMWindowProxy * *_retval); \
110 : nsresult GetActiveWindow(mozIDOMWindowProxy * *aActiveWindow); \
111 : nsresult SetActiveWindow(mozIDOMWindowProxy *aActiveWindow);
112 :
113 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
114 : #define NS_FORWARD_NSIWINDOWWATCHER(_to) \
115 : NS_IMETHOD OpenWindow(mozIDOMWindowProxy *aParent, const char * aUrl, const char * aName, const char * aFeatures, nsISupports *aArguments, mozIDOMWindowProxy * *_retval) override { return _to OpenWindow(aParent, aUrl, aName, aFeatures, aArguments, _retval); } \
116 : NS_IMETHOD RegisterNotification(nsIObserver *aObserver) override { return _to RegisterNotification(aObserver); } \
117 : NS_IMETHOD UnregisterNotification(nsIObserver *aObserver) override { return _to UnregisterNotification(aObserver); } \
118 : NS_IMETHOD GetWindowEnumerator(nsISimpleEnumerator * *_retval) override { return _to GetWindowEnumerator(_retval); } \
119 : NS_IMETHOD GetNewPrompter(mozIDOMWindowProxy *aParent, nsIPrompt * *_retval) override { return _to GetNewPrompter(aParent, _retval); } \
120 : NS_IMETHOD GetNewAuthPrompter(mozIDOMWindowProxy *aParent, nsIAuthPrompt * *_retval) override { return _to GetNewAuthPrompter(aParent, _retval); } \
121 : NS_IMETHOD SetWindowCreator(nsIWindowCreator *creator) override { return _to SetWindowCreator(creator); } \
122 : NS_IMETHOD HasWindowCreator(bool *_retval) override { return _to HasWindowCreator(_retval); } \
123 : NS_IMETHOD GetChromeForWindow(mozIDOMWindowProxy *aWindow, nsIWebBrowserChrome * *_retval) override { return _to GetChromeForWindow(aWindow, _retval); } \
124 : NS_IMETHOD GetWindowByName(const nsAString & aTargetName, mozIDOMWindowProxy *aCurrentWindow, mozIDOMWindowProxy * *_retval) override { return _to GetWindowByName(aTargetName, aCurrentWindow, _retval); } \
125 : NS_IMETHOD GetActiveWindow(mozIDOMWindowProxy * *aActiveWindow) override { return _to GetActiveWindow(aActiveWindow); } \
126 : NS_IMETHOD SetActiveWindow(mozIDOMWindowProxy *aActiveWindow) override { return _to SetActiveWindow(aActiveWindow); }
127 :
128 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
129 : #define NS_FORWARD_SAFE_NSIWINDOWWATCHER(_to) \
130 : NS_IMETHOD OpenWindow(mozIDOMWindowProxy *aParent, const char * aUrl, const char * aName, const char * aFeatures, nsISupports *aArguments, mozIDOMWindowProxy * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenWindow(aParent, aUrl, aName, aFeatures, aArguments, _retval); } \
131 : NS_IMETHOD RegisterNotification(nsIObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterNotification(aObserver); } \
132 : NS_IMETHOD UnregisterNotification(nsIObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterNotification(aObserver); } \
133 : NS_IMETHOD GetWindowEnumerator(nsISimpleEnumerator * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWindowEnumerator(_retval); } \
134 : NS_IMETHOD GetNewPrompter(mozIDOMWindowProxy *aParent, nsIPrompt * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNewPrompter(aParent, _retval); } \
135 : NS_IMETHOD GetNewAuthPrompter(mozIDOMWindowProxy *aParent, nsIAuthPrompt * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNewAuthPrompter(aParent, _retval); } \
136 : NS_IMETHOD SetWindowCreator(nsIWindowCreator *creator) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWindowCreator(creator); } \
137 : NS_IMETHOD HasWindowCreator(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HasWindowCreator(_retval); } \
138 : NS_IMETHOD GetChromeForWindow(mozIDOMWindowProxy *aWindow, nsIWebBrowserChrome * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChromeForWindow(aWindow, _retval); } \
139 : NS_IMETHOD GetWindowByName(const nsAString & aTargetName, mozIDOMWindowProxy *aCurrentWindow, mozIDOMWindowProxy * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWindowByName(aTargetName, aCurrentWindow, _retval); } \
140 : NS_IMETHOD GetActiveWindow(mozIDOMWindowProxy * *aActiveWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActiveWindow(aActiveWindow); } \
141 : NS_IMETHOD SetActiveWindow(mozIDOMWindowProxy *aActiveWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetActiveWindow(aActiveWindow); }
142 :
143 : #if 0
144 : /* Use the code below as a template for the implementation class for this interface. */
145 :
146 : /* Header file */
147 : class nsWindowWatcher : public nsIWindowWatcher
148 : {
149 : public:
150 : NS_DECL_ISUPPORTS
151 : NS_DECL_NSIWINDOWWATCHER
152 :
153 : nsWindowWatcher();
154 :
155 : private:
156 : ~nsWindowWatcher();
157 :
158 : protected:
159 : /* additional members */
160 : };
161 :
162 : /* Implementation file */
163 : NS_IMPL_ISUPPORTS(nsWindowWatcher, nsIWindowWatcher)
164 :
165 : nsWindowWatcher::nsWindowWatcher()
166 : {
167 : /* member initializers and constructor code */
168 : }
169 :
170 : nsWindowWatcher::~nsWindowWatcher()
171 : {
172 : /* destructor code */
173 : }
174 :
175 : /* mozIDOMWindowProxy openWindow (in mozIDOMWindowProxy aParent, in string aUrl, in string aName, in string aFeatures, in nsISupports aArguments); */
176 : NS_IMETHODIMP nsWindowWatcher::OpenWindow(mozIDOMWindowProxy *aParent, const char * aUrl, const char * aName, const char * aFeatures, nsISupports *aArguments, mozIDOMWindowProxy * *_retval)
177 : {
178 : return NS_ERROR_NOT_IMPLEMENTED;
179 : }
180 :
181 : /* void registerNotification (in nsIObserver aObserver); */
182 : NS_IMETHODIMP nsWindowWatcher::RegisterNotification(nsIObserver *aObserver)
183 : {
184 : return NS_ERROR_NOT_IMPLEMENTED;
185 : }
186 :
187 : /* void unregisterNotification (in nsIObserver aObserver); */
188 : NS_IMETHODIMP nsWindowWatcher::UnregisterNotification(nsIObserver *aObserver)
189 : {
190 : return NS_ERROR_NOT_IMPLEMENTED;
191 : }
192 :
193 : /* nsISimpleEnumerator getWindowEnumerator (); */
194 : NS_IMETHODIMP nsWindowWatcher::GetWindowEnumerator(nsISimpleEnumerator * *_retval)
195 : {
196 : return NS_ERROR_NOT_IMPLEMENTED;
197 : }
198 :
199 : /* nsIPrompt getNewPrompter (in mozIDOMWindowProxy aParent); */
200 : NS_IMETHODIMP nsWindowWatcher::GetNewPrompter(mozIDOMWindowProxy *aParent, nsIPrompt * *_retval)
201 : {
202 : return NS_ERROR_NOT_IMPLEMENTED;
203 : }
204 :
205 : /* nsIAuthPrompt getNewAuthPrompter (in mozIDOMWindowProxy aParent); */
206 : NS_IMETHODIMP nsWindowWatcher::GetNewAuthPrompter(mozIDOMWindowProxy *aParent, nsIAuthPrompt * *_retval)
207 : {
208 : return NS_ERROR_NOT_IMPLEMENTED;
209 : }
210 :
211 : /* void setWindowCreator (in nsIWindowCreator creator); */
212 : NS_IMETHODIMP nsWindowWatcher::SetWindowCreator(nsIWindowCreator *creator)
213 : {
214 : return NS_ERROR_NOT_IMPLEMENTED;
215 : }
216 :
217 : /* boolean hasWindowCreator (); */
218 : NS_IMETHODIMP nsWindowWatcher::HasWindowCreator(bool *_retval)
219 : {
220 : return NS_ERROR_NOT_IMPLEMENTED;
221 : }
222 :
223 : /* nsIWebBrowserChrome getChromeForWindow (in mozIDOMWindowProxy aWindow); */
224 : NS_IMETHODIMP nsWindowWatcher::GetChromeForWindow(mozIDOMWindowProxy *aWindow, nsIWebBrowserChrome * *_retval)
225 : {
226 : return NS_ERROR_NOT_IMPLEMENTED;
227 : }
228 :
229 : /* mozIDOMWindowProxy getWindowByName (in AString aTargetName, in mozIDOMWindowProxy aCurrentWindow); */
230 : NS_IMETHODIMP nsWindowWatcher::GetWindowByName(const nsAString & aTargetName, mozIDOMWindowProxy *aCurrentWindow, mozIDOMWindowProxy * *_retval)
231 : {
232 : return NS_ERROR_NOT_IMPLEMENTED;
233 : }
234 :
235 : /* attribute mozIDOMWindowProxy activeWindow; */
236 : NS_IMETHODIMP nsWindowWatcher::GetActiveWindow(mozIDOMWindowProxy * *aActiveWindow)
237 : {
238 : return NS_ERROR_NOT_IMPLEMENTED;
239 : }
240 : NS_IMETHODIMP nsWindowWatcher::SetActiveWindow(mozIDOMWindowProxy *aActiveWindow)
241 : {
242 : return NS_ERROR_NOT_IMPLEMENTED;
243 : }
244 :
245 : /* End of implementation class template. */
246 : #endif
247 :
248 : #define NS_WINDOWWATCHER_CONTRACTID "@mozilla.org/embedcomp/window-watcher;1"
249 :
250 : #endif /* __gen_nsIWindowWatcher_h__ */
|