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 nsIWebNavigation extends nsISupports {
031:
032: static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 13;
033:
034: public static final String NS_IWEBNAVIGATION_IID_STR = "f5d9e7b0-d930-11d3-b057-00a024ffc08c";
035:
036: public static final nsID NS_IWEBNAVIGATION_IID = new nsID(
037: NS_IWEBNAVIGATION_IID_STR);
038:
039: public nsIWebNavigation(int /*long*/address) {
040: super (address);
041: }
042:
043: public int GetCanGoBack(boolean[] aCanGoBack) {
044: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1,
045: getAddress(), aCanGoBack);
046: }
047:
048: public int GetCanGoForward(boolean[] aCanGoForward) {
049: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2,
050: getAddress(), aCanGoForward);
051: }
052:
053: public int GoBack() {
054: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3,
055: getAddress());
056: }
057:
058: public int GoForward() {
059: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4,
060: getAddress());
061: }
062:
063: public int GotoIndex(int index) {
064: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5,
065: getAddress(), index);
066: }
067:
068: public static final int LOAD_FLAGS_MASK = 65535;
069:
070: public static final int LOAD_FLAGS_NONE = 0;
071:
072: public static final int LOAD_FLAGS_IS_REFRESH = 16;
073:
074: public static final int LOAD_FLAGS_IS_LINK = 32;
075:
076: public static final int LOAD_FLAGS_BYPASS_HISTORY = 64;
077:
078: public static final int LOAD_FLAGS_REPLACE_HISTORY = 128;
079:
080: public static final int LOAD_FLAGS_BYPASS_CACHE = 256;
081:
082: public static final int LOAD_FLAGS_BYPASS_PROXY = 512;
083:
084: public static final int LOAD_FLAGS_CHARSET_CHANGE = 1024;
085:
086: public int LoadURI(char[] uri, int loadFlags,
087: int /*long*/referrer, int /*long*/postData,
088: int /*long*/headers) {
089: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 6,
090: getAddress(), uri, loadFlags, referrer, postData,
091: headers);
092: }
093:
094: public int Reload(int reloadFlags) {
095: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 7,
096: getAddress(), reloadFlags);
097: }
098:
099: public static final int STOP_NETWORK = 1;
100:
101: public static final int STOP_CONTENT = 2;
102:
103: public static final int STOP_ALL = 3;
104:
105: public int Stop(int stopFlags) {
106: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 8,
107: getAddress(), stopFlags);
108: }
109:
110: public int GetDocument(int /*long*/[] aDocument) {
111: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 9,
112: getAddress(), aDocument);
113: }
114:
115: public int GetCurrentURI(int /*long*/[] aCurrentURI) {
116: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 10,
117: getAddress(), aCurrentURI);
118: }
119:
120: public int GetReferringURI(int /*long*/[] aReferringURI) {
121: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 11,
122: getAddress(), aReferringURI);
123: }
124:
125: public int GetSessionHistory(int /*long*/[] aSessionHistory) {
126: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 12,
127: getAddress(), aSessionHistory);
128: }
129:
130: public int SetSessionHistory(int /*long*/aSessionHistory) {
131: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 13,
132: getAddress(), aSessionHistory);
133: }
134: }
|