Mercurial > projects > dwt-win
comparison dwt/internal/mozilla/nsIWebProgressListener.d @ 327:b0d7eb5bd76c
Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
author | John Reimer <terminal.node@gmail.com> |
---|---|
date | Fri, 02 Jan 2009 17:45:10 -0800 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
326:e4d29367b1fa | 327:b0d7eb5bd76c |
---|---|
1 module dwt.internal.mozilla.nsIWebProgressListener; | |
2 | |
3 import dwt.internal.mozilla.Common; | |
4 import dwt.internal.mozilla.nsID; | |
5 import dwt.internal.mozilla.nsISupports; | |
6 | |
7 import dwt.internal.mozilla.nsIWebProgress; | |
8 import dwt.internal.mozilla.nsIRequest; | |
9 import dwt.internal.mozilla.nsIURI; | |
10 | |
11 const char[] NS_IWEBPROGRESSLISTENER_IID_STR = "570f39d1-efd0-11d3-b093-00a024ffc08c"; | |
12 | |
13 const nsIID NS_IWEBPROGRESSLISTENER_IID= | |
14 {0x570f39d1, 0xefd0, 0x11d3, | |
15 [ 0xb0, 0x93, 0x00, 0xa0, 0x24, 0xff, 0xc0, 0x8c ]}; | |
16 | |
17 interface nsIWebProgressListener : nsISupports { | |
18 | |
19 static const char[] IID_STR = NS_IWEBPROGRESSLISTENER_IID_STR; | |
20 static const nsIID IID = NS_IWEBPROGRESSLISTENER_IID; | |
21 | |
22 extern(System): | |
23 enum { STATE_START = 1U }; | |
24 enum { STATE_REDIRECTING = 2U }; | |
25 enum { STATE_TRANSFERRING = 4U }; | |
26 enum { STATE_NEGOTIATING = 8U }; | |
27 enum { STATE_STOP = 16U }; | |
28 enum { STATE_IS_REQUEST = 65536U }; | |
29 enum { STATE_IS_DOCUMENT = 131072U }; | |
30 enum { STATE_IS_NETWORK = 262144U }; | |
31 enum { STATE_IS_WINDOW = 524288U }; | |
32 enum { STATE_RESTORING = 16777216U }; | |
33 enum { STATE_IS_INSECURE = 4U }; | |
34 enum { STATE_IS_BROKEN = 1U }; | |
35 enum { STATE_IS_SECURE = 2U }; | |
36 enum { STATE_SECURE_HIGH = 262144U }; | |
37 enum { STATE_SECURE_MED = 65536U }; | |
38 enum { STATE_SECURE_LOW = 131072U }; | |
39 | |
40 nsresult OnStateChange(nsIWebProgress aWebProgress, nsIRequest aRequest, PRUint32 aStateFlags, nsresult aStatus); | |
41 nsresult OnProgressChange(nsIWebProgress aWebProgress, nsIRequest aRequest, PRInt32 aCurSelfProgress, PRInt32 aMaxSelfProgress, PRInt32 aCurTotalProgress, PRInt32 aMaxTotalProgress); | |
42 nsresult OnLocationChange(nsIWebProgress aWebProgress, nsIRequest aRequest, nsIURI aLocation); | |
43 nsresult OnStatusChange(nsIWebProgress aWebProgress, nsIRequest aRequest, nsresult aStatus, PRUnichar *aMessage); | |
44 nsresult OnSecurityChange(nsIWebProgress aWebProgress, nsIRequest aRequest, PRUint32 aState); | |
45 | |
46 } | |
47 |