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 nsIDocShell extends nsISupports {
031:
032: static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 51;
033:
034: public static final String NS_IDOCSHELL_IID_STR = "69e5de00-7b8b-11d3-af61-00a024ffc08c";
035:
036: public static final nsID NS_IDOCSHELL_IID = new nsID(
037: NS_IDOCSHELL_IID_STR);
038:
039: public nsIDocShell(int /*long*/address) {
040: super (address);
041: }
042:
043: public int LoadURI(int /*long*/uri, int /*long*/loadInfo,
044: int aLoadFlags, boolean firstParty) {
045: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1,
046: getAddress(), uri, loadInfo, aLoadFlags, firstParty);
047: }
048:
049: public int LoadStream(int /*long*/aStream, int /*long*/aURI,
050: int /*long*/aContentType, int /*long*/aContentCharset,
051: int /*long*/aLoadInfo) {
052: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2,
053: getAddress(), aStream, aURI, aContentType,
054: aContentCharset, aLoadInfo);
055: }
056:
057: public int InternalLoad(int /*long*/aURI, int /*long*/aReferrer,
058: int /*long*/aOwner, boolean aInheritOwner,
059: char[] aWindowTarget, int /*long*/aPostDataStream,
060: int /*long*/aHeadersStream, int aLoadFlags,
061: int /*long*/aSHEntry, boolean firstParty,
062: int /*long*/[] aDocShell, int /*long*/[] aRequest) {
063: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3,
064: getAddress(), aURI, aReferrer, aOwner, aInheritOwner,
065: aWindowTarget, aPostDataStream, aHeadersStream,
066: aLoadFlags, aSHEntry, firstParty, aDocShell, aRequest);
067: }
068:
069: public int CreateLoadInfo(int /*long*/[] loadInfo) {
070: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4,
071: getAddress(), loadInfo);
072: }
073:
074: public int PrepareForNewContentModel() {
075: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5,
076: getAddress());
077: }
078:
079: public int SetCurrentURI(int /*long*/aURI) {
080: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 6,
081: getAddress(), aURI);
082: }
083:
084: public int FireUnloadNotification() {
085: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 7,
086: getAddress());
087: }
088:
089: public int GetPresContext(int /*long*/[] aPresContext) {
090: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 8,
091: getAddress(), aPresContext);
092: }
093:
094: public int GetPresShell(int /*long*/[] aPresShell) {
095: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 9,
096: getAddress(), aPresShell);
097: }
098:
099: public int GetEldestPresShell(int /*long*/[] aEldestPresShell) {
100: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 10,
101: getAddress(), aEldestPresShell);
102: }
103:
104: public int GetContentViewer(int /*long*/[] aContentViewer) {
105: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 11,
106: getAddress(), aContentViewer);
107: }
108:
109: public int GetChromeEventHandler(int /*long*/[] aChromeEventHandler) {
110: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 12,
111: getAddress(), aChromeEventHandler);
112: }
113:
114: public int SetChromeEventHandler(int /*long*/aChromeEventHandler) {
115: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 13,
116: getAddress(), aChromeEventHandler);
117: }
118:
119: public int GetParentURIContentListener(
120: int /*long*/[] aParentURIContentListener) {
121: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 14,
122: getAddress(), aParentURIContentListener);
123: }
124:
125: public int SetParentURIContentListener(
126: int /*long*/aParentURIContentListener) {
127: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 15,
128: getAddress(), aParentURIContentListener);
129: }
130:
131: public int GetDocumentCharsetInfo(
132: int /*long*/[] aDocumentCharsetInfo) {
133: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 16,
134: getAddress(), aDocumentCharsetInfo);
135: }
136:
137: public int SetDocumentCharsetInfo(int /*long*/aDocumentCharsetInfo) {
138: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 17,
139: getAddress(), aDocumentCharsetInfo);
140: }
141:
142: public int GetAllowPlugins(boolean[] aAllowPlugins) {
143: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 18,
144: getAddress(), aAllowPlugins);
145: }
146:
147: public int SetAllowPlugins(boolean aAllowPlugins) {
148: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 19,
149: getAddress(), aAllowPlugins);
150: }
151:
152: public int GetAllowJavascript(boolean[] aAllowJavascript) {
153: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 20,
154: getAddress(), aAllowJavascript);
155: }
156:
157: public int SetAllowJavascript(boolean aAllowJavascript) {
158: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 21,
159: getAddress(), aAllowJavascript);
160: }
161:
162: public int GetAllowMetaRedirects(boolean[] aAllowMetaRedirects) {
163: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 22,
164: getAddress(), aAllowMetaRedirects);
165: }
166:
167: public int SetAllowMetaRedirects(boolean aAllowMetaRedirects) {
168: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 23,
169: getAddress(), aAllowMetaRedirects);
170: }
171:
172: public int GetAllowSubframes(boolean[] aAllowSubframes) {
173: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 24,
174: getAddress(), aAllowSubframes);
175: }
176:
177: public int SetAllowSubframes(boolean aAllowSubframes) {
178: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 25,
179: getAddress(), aAllowSubframes);
180: }
181:
182: public int GetAllowImages(boolean[] aAllowImages) {
183: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 26,
184: getAddress(), aAllowImages);
185: }
186:
187: public int SetAllowImages(boolean aAllowImages) {
188: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 27,
189: getAddress(), aAllowImages);
190: }
191:
192: public static final int ENUMERATE_FORWARDS = 0;
193:
194: public static final int ENUMERATE_BACKWARDS = 1;
195:
196: public int GetDocShellEnumerator(int aItemType, int aDirection,
197: int /*long*/[] _retval) {
198: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 28,
199: getAddress(), aItemType, aDirection, _retval);
200: }
201:
202: public static final int APP_TYPE_UNKNOWN = 0;
203:
204: public static final int APP_TYPE_MAIL = 1;
205:
206: public int GetAppType(int[] aAppType) {
207: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 29,
208: getAddress(), aAppType);
209: }
210:
211: public int SetAppType(int aAppType) {
212: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 30,
213: getAddress(), aAppType);
214: }
215:
216: public int GetAllowAuth(boolean[] aAllowAuth) {
217: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 31,
218: getAddress(), aAllowAuth);
219: }
220:
221: public int SetAllowAuth(boolean aAllowAuth) {
222: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 32,
223: getAddress(), aAllowAuth);
224: }
225:
226: public int GetZoom(float[] aZoom) {
227: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 33,
228: getAddress(), aZoom);
229: }
230:
231: public int SetZoom(float aZoom) {
232: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 34,
233: getAddress(), aZoom);
234: }
235:
236: public int GetMarginWidth(int[] aMarginWidth) {
237: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 35,
238: getAddress(), aMarginWidth);
239: }
240:
241: public int SetMarginWidth(int aMarginWidth) {
242: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 36,
243: getAddress(), aMarginWidth);
244: }
245:
246: public int GetMarginHeight(int[] aMarginHeight) {
247: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 37,
248: getAddress(), aMarginHeight);
249: }
250:
251: public int SetMarginHeight(int aMarginHeight) {
252: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 38,
253: getAddress(), aMarginHeight);
254: }
255:
256: public int GetHasFocus(boolean[] aHasFocus) {
257: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 39,
258: getAddress(), aHasFocus);
259: }
260:
261: public int SetHasFocus(boolean aHasFocus) {
262: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 40,
263: getAddress(), aHasFocus);
264: }
265:
266: public int GetCanvasHasFocus(boolean[] aCanvasHasFocus) {
267: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 41,
268: getAddress(), aCanvasHasFocus);
269: }
270:
271: public int SetCanvasHasFocus(boolean aCanvasHasFocus) {
272: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 42,
273: getAddress(), aCanvasHasFocus);
274: }
275:
276: public int TabToTreeOwner(boolean forward, boolean[] tookFocus) {
277: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 43,
278: getAddress(), forward, tookFocus);
279: }
280:
281: public static final int BUSY_FLAGS_NONE = 0;
282:
283: public static final int BUSY_FLAGS_BUSY = 1;
284:
285: public static final int BUSY_FLAGS_BEFORE_PAGE_LOAD = 2;
286:
287: public static final int BUSY_FLAGS_PAGE_LOADING = 4;
288:
289: public static final int LOAD_CMD_NORMAL = 1;
290:
291: public static final int LOAD_CMD_RELOAD = 2;
292:
293: public static final int LOAD_CMD_HISTORY = 4;
294:
295: public int GetBusyFlags(int[] aBusyFlags) {
296: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 44,
297: getAddress(), aBusyFlags);
298: }
299:
300: public int GetLoadType(int[] aLoadType) {
301: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 45,
302: getAddress(), aLoadType);
303: }
304:
305: public int SetLoadType(int aLoadType) {
306: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 46,
307: getAddress(), aLoadType);
308: }
309:
310: public int IsBeingDestroyed(boolean[] _retval) {
311: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 47,
312: getAddress(), _retval);
313: }
314:
315: public int GetIsExecutingOnLoadHandler(
316: boolean[] aIsExecutingOnLoadHandler) {
317: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 48,
318: getAddress(), aIsExecutingOnLoadHandler);
319: }
320:
321: public int GetLayoutHistoryState(int /*long*/[] aLayoutHistoryState) {
322: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 49,
323: getAddress(), aLayoutHistoryState);
324: }
325:
326: public int SetLayoutHistoryState(int /*long*/aLayoutHistoryState) {
327: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 50,
328: getAddress(), aLayoutHistoryState);
329: }
330:
331: public int GetShouldSaveLayoutState(boolean[] aShouldSaveLayoutState) {
332: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 51,
333: getAddress(), aShouldSaveLayoutState);
334: }
335: }
|