1 module org.eclipse.swt.internal.mozilla.nsIWindowWatcher;
2 
3 import java.lang.all;
4 
5 import org.eclipse.swt.internal.mozilla.Common;
6 import org.eclipse.swt.internal.mozilla.nsID;
7 import org.eclipse.swt.internal.mozilla.nsISupports;
8 
9 import org.eclipse.swt.internal.mozilla.nsIDOMWindow;
10 import org.eclipse.swt.internal.mozilla.nsIObserver; 
11 import org.eclipse.swt.internal.mozilla.nsIPrompt; 
12 import org.eclipse.swt.internal.mozilla.nsIAuthPrompt;
13 import org.eclipse.swt.internal.mozilla.nsISimpleEnumerator;
14 import org.eclipse.swt.internal.mozilla.nsIWebBrowserChrome;
15 import org.eclipse.swt.internal.mozilla.nsIWindowCreator; 
16 
17 const char[] NS_IWINDOWWATCHER_IID_STR = "002286a8-494b-43b3-8ddd-49e3fc50622b";
18 
19 const nsIID NS_IWINDOWWATCHER_IID= 
20   {0x002286a8, 0x494b, 0x43b3, 
21     [ 0x8d, 0xdd, 0x49, 0xe3, 0xfc, 0x50, 0x62, 0x2b ]};
22 
23 interface nsIWindowWatcher : nsISupports {
24 
25   static const char[] IID_STR = NS_IWINDOWWATCHER_IID_STR;
26   static const nsIID IID = NS_IWINDOWWATCHER_IID;
27 
28 extern(System):
29   nsresult OpenWindow(nsIDOMWindow aParent, char *aUrl, char *aName, char *aFeatures, nsISupports aArguments, nsIDOMWindow *_retval);
30   nsresult RegisterNotification(nsIObserver aObserver);
31   nsresult UnregisterNotification(nsIObserver aObserver);
32   nsresult GetWindowEnumerator(nsISimpleEnumerator *_retval);
33   nsresult GetNewPrompter(nsIDOMWindow aParent, nsIPrompt *_retval);
34   nsresult GetNewAuthPrompter(nsIDOMWindow aParent, nsIAuthPrompt *_retval);
35   nsresult SetWindowCreator(nsIWindowCreator creator);
36   nsresult GetChromeForWindow(nsIDOMWindow aWindow, nsIWebBrowserChrome *_retval);
37   nsresult GetWindowByName(PRUnichar *aTargetName, nsIDOMWindow aCurrentWindow, nsIDOMWindow *_retval);
38   nsresult GetActiveWindow(nsIDOMWindow  *aActiveWindow);
39   nsresult SetActiveWindow(nsIDOMWindow  aActiveWindow);
40 
41 }
42