1 module org.eclipse.swt.internal.mozilla.nsIWebProgress;
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.nsIWebProgressListener; 
11 
12 const char[] NS_IWEBPROGRESS_IID_STR = "570f39d0-efd0-11d3-b093-00a024ffc08c";
13 
14 const nsIID NS_IWEBPROGRESS_IID= 
15   {0x570f39d0, 0xefd0, 0x11d3, 
16     [ 0xb0, 0x93, 0x00, 0xa0, 0x24, 0xff, 0xc0, 0x8c ]};
17 
18 interface nsIWebProgress : nsISupports {
19 
20   static const char[] IID_STR = NS_IWEBPROGRESS_IID_STR;
21   static const nsIID IID = NS_IWEBPROGRESS_IID;
22 
23 extern(System):
24   enum { NOTIFY_STATE_REQUEST = 1U };
25   enum { NOTIFY_STATE_DOCUMENT = 2U };
26   enum { NOTIFY_STATE_NETWORK = 4U };
27   enum { NOTIFY_STATE_WINDOW = 8U };
28   enum { NOTIFY_STATE_ALL = 15U };
29   enum { NOTIFY_PROGRESS = 16U };
30   enum { NOTIFY_STATUS = 32U };
31   enum { NOTIFY_SECURITY = 64U };
32   enum { NOTIFY_LOCATION = 128U };
33   enum { NOTIFY_ALL = 255U };
34 
35   nsresult AddProgressListener(nsIWebProgressListener aListener, PRUint32 aNotifyMask);
36   nsresult RemoveProgressListener(nsIWebProgressListener aListener);
37   nsresult GetDOMWindow(nsIDOMWindow  *aDOMWindow);
38   nsresult GetIsLoadingDocument(PRBool *aIsLoadingDocument);
39 
40 }
41