1 module org.eclipse.swt.internal.mozilla.nsIWebProgressListener;
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.nsIWebProgress;
10 import org.eclipse.swt.internal.mozilla.nsIRequest; 
11 import org.eclipse.swt.internal.mozilla.nsIURI; 
12 
13 const char[] NS_IWEBPROGRESSLISTENER_IID_STR = "570f39d1-efd0-11d3-b093-00a024ffc08c";
14 
15 const nsIID NS_IWEBPROGRESSLISTENER_IID= 
16   {0x570f39d1, 0xefd0, 0x11d3, 
17     [ 0xb0, 0x93, 0x00, 0xa0, 0x24, 0xff, 0xc0, 0x8c ]};
18 
19 interface nsIWebProgressListener : nsISupports {
20 
21   static const char[] IID_STR = NS_IWEBPROGRESSLISTENER_IID_STR;
22   static const nsIID IID = NS_IWEBPROGRESSLISTENER_IID;
23 
24 extern(System):
25   enum { STATE_START = 1U };
26   enum { STATE_REDIRECTING = 2U };
27   enum { STATE_TRANSFERRING = 4U };
28   enum { STATE_NEGOTIATING = 8U };
29   enum { STATE_STOP = 16U };
30   enum { STATE_IS_REQUEST = 65536U };
31   enum { STATE_IS_DOCUMENT = 131072U };
32   enum { STATE_IS_NETWORK = 262144U };
33   enum { STATE_IS_WINDOW = 524288U };
34   enum { STATE_RESTORING = 16777216U };
35   enum { STATE_IS_INSECURE = 4U };
36   enum { STATE_IS_BROKEN = 1U };
37   enum { STATE_IS_SECURE = 2U };
38   enum { STATE_SECURE_HIGH = 262144U };
39   enum { STATE_SECURE_MED = 65536U };
40   enum { STATE_SECURE_LOW = 131072U };
41 
42   nsresult OnStateChange(nsIWebProgress aWebProgress, nsIRequest aRequest, PRUint32 aStateFlags, nsresult aStatus);
43   nsresult OnProgressChange(nsIWebProgress aWebProgress, nsIRequest aRequest, PRInt32 aCurSelfProgress, PRInt32 aMaxSelfProgress, PRInt32 aCurTotalProgress, PRInt32 aMaxTotalProgress);
44   nsresult OnLocationChange(nsIWebProgress aWebProgress, nsIRequest aRequest, nsIURI aLocation);
45   nsresult OnStatusChange(nsIWebProgress aWebProgress, nsIRequest aRequest, nsresult aStatus, PRUnichar *aMessage);
46   nsresult OnSecurityChange(nsIWebProgress aWebProgress, nsIRequest aRequest, PRUint32 aState);
47 
48 }
49