comparison dwt/internal/mozilla/nsIWebProgressListener.d @ 272:dd63eb078d7a

xpcom interfaces necessary for browser code -- source adapted from dxpcom project; these modules still need to be tested and then integrated into dwt browser.
author John Reimer<terminal.node@gmail.com>
date Fri, 18 Jul 2008 05:32:53 -0700
parents
children 942da4b6558a
comparison
equal deleted inserted replaced
271:d472fae79005 272:dd63eb078d7a
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 extern(System)
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 enum { STATE_START = 1U };
25 enum { STATE_REDIRECTING = 2U };
26 enum { STATE_TRANSFERRING = 4U };
27 enum { STATE_NEGOTIATING = 8U };
28 enum { STATE_STOP = 16U };
29 enum { STATE_IS_REQUEST = 65536U };
30 enum { STATE_IS_DOCUMENT = 131072U };
31 enum { STATE_IS_NETWORK = 262144U };
32 enum { STATE_IS_WINDOW = 524288U };
33 enum { STATE_RESTORING = 16777216U };
34 enum { STATE_IS_INSECURE = 4U };
35 enum { STATE_IS_BROKEN = 1U };
36 enum { STATE_IS_SECURE = 2U };
37 enum { STATE_SECURE_HIGH = 262144U };
38 enum { STATE_SECURE_MED = 65536U };
39 enum { STATE_SECURE_LOW = 131072U };
40
41 nsresult OnStateChange(nsIWebProgress aWebProgress, nsIRequest aRequest, PRUint32 aStateFlags, nsresult aStatus);
42 nsresult OnProgressChange(nsIWebProgress aWebProgress, nsIRequest aRequest, PRInt32 aCurSelfProgress, PRInt32 aMaxSelfProgress, PRInt32 aCurTotalProgress, PRInt32 aMaxTotalProgress);
43 nsresult OnLocationChange(nsIWebProgress aWebProgress, nsIRequest aRequest, nsIURI aLocation);
44 nsresult OnStatusChange(nsIWebProgress aWebProgress, nsIRequest aRequest, nsresult aStatus, PRUnichar *aMessage);
45 nsresult OnSecurityChange(nsIWebProgress aWebProgress, nsIRequest aRequest, PRUint32 aState);
46
47 }
48