001: /* ***** BEGIN LICENSE BLOCK *****
002: * Version: MPL 1.1
003: *
004: * The contents of this file are subject to the Mozilla Public License Version
005: * 1.1 (the "License"); you may not use this file except in compliance with
006: * the License. You may obtain a copy of the License at
007: * http://www.mozilla.org/MPL/
008: *
009: * Software distributed under the License is distributed on an "AS IS" basis,
010: * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
011: * for the specific language governing rights and limitations under the
012: * License.
013: *
014: * The Original Code is Mozilla Communicator client code, released March 31, 1998.
015: *
016: * The Initial Developer of the Original Code is
017: * Netscape Communications Corporation.
018: * Portions created by Netscape are Copyright (C) 1998-1999
019: * Netscape Communications Corporation. All Rights Reserved.
020: *
021: * Contributor(s):
022: *
023: * IBM
024: * - Binding to permit interfacing between Mozilla and SWT
025: * - Copyright (C) 2003, 2005 IBM Corp. All Rights Reserved.
026: *
027: * ***** END LICENSE BLOCK ***** */
028: package org.eclipse.swt.internal.mozilla;
029:
030: public class nsIWebProgressListener extends nsISupports {
031:
032: static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 5;
033:
034: public static final String NS_IWEBPROGRESSLISTENER_IID_STR = "570f39d1-efd0-11d3-b093-00a024ffc08c";
035:
036: public static final nsID NS_IWEBPROGRESSLISTENER_IID = new nsID(
037: NS_IWEBPROGRESSLISTENER_IID_STR);
038:
039: public nsIWebProgressListener(int /*long*/address) {
040: super (address);
041: }
042:
043: public static final int STATE_START = 1;
044:
045: public static final int STATE_REDIRECTING = 2;
046:
047: public static final int STATE_TRANSFERRING = 4;
048:
049: public static final int STATE_NEGOTIATING = 8;
050:
051: public static final int STATE_STOP = 16;
052:
053: public static final int STATE_IS_REQUEST = 65536;
054:
055: public static final int STATE_IS_DOCUMENT = 131072;
056:
057: public static final int STATE_IS_NETWORK = 262144;
058:
059: public static final int STATE_IS_WINDOW = 524288;
060:
061: public static final int STATE_IS_INSECURE = 4;
062:
063: public static final int STATE_IS_BROKEN = 1;
064:
065: public static final int STATE_IS_SECURE = 2;
066:
067: public static final int STATE_SECURE_HIGH = 262144;
068:
069: public static final int STATE_SECURE_MED = 65536;
070:
071: public static final int STATE_SECURE_LOW = 131072;
072:
073: public int OnStateChange(int /*long*/aWebProgress,
074: int /*long*/aRequest, int aStateFlags, int aStatus) {
075: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1,
076: getAddress(), aWebProgress, aRequest, aStateFlags,
077: aStatus);
078: }
079:
080: public int OnProgressChange(int /*long*/aWebProgress,
081: int /*long*/aRequest, int aCurSelfProgress,
082: int aMaxSelfProgress, int aCurTotalProgress,
083: int aMaxTotalProgress) {
084: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2,
085: getAddress(), aWebProgress, aRequest, aCurSelfProgress,
086: aMaxSelfProgress, aCurTotalProgress, aMaxTotalProgress);
087: }
088:
089: public int OnLocationChange(int /*long*/aWebProgress,
090: int /*long*/aRequest, int /*long*/location) {
091: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3,
092: getAddress(), aWebProgress, aRequest, location);
093: }
094:
095: public int OnStatusChange(int /*long*/aWebProgress,
096: int /*long*/aRequest, int aStatus, char[] aMessage) {
097: return XPCOM
098: .VtblCall(nsISupports.LAST_METHOD_ID + 4, getAddress(),
099: aWebProgress, aRequest, aStatus, aMessage);
100: }
101:
102: public int OnSecurityChange(int /*long*/aWebProgress,
103: int /*long*/aRequest, int state) {
104: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5,
105: getAddress(), aWebProgress, aRequest, state);
106: }
107: }
|