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) 2007 IBM Corp. All Rights Reserved.
026: *
027: * ***** END LICENSE BLOCK ***** */
028: package org.eclipse.swt.internal.mozilla;
029:
030: public class nsIDocShell_1_8 extends nsISupports {
031:
032: static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 61;
033:
034: public static final String NS_IDOCSHELL_IID_STR = "9f0c7461-b9a4-47f6-b88c-421dce1bce66";
035:
036: public static final nsID NS_IDOCSHELL_IID = new nsID(
037: NS_IDOCSHELL_IID_STR);
038:
039: public nsIDocShell_1_8(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 static final int INTERNAL_LOAD_FLAGS_NONE = 0;
058:
059: public static final int INTERNAL_LOAD_FLAGS_INHERIT_OWNER = 1;
060:
061: public static final int INTERNAL_LOAD_FLAGS_DONT_SEND_REFERRER = 2;
062:
063: public int InternalLoad(int /*long*/aURI, int /*long*/aReferrer,
064: int /*long*/aOwner, int aFlags, char[] aWindowTarget,
065: byte[] aTypeHint, int /*long*/aPostDataStream,
066: int /*long*/aHeadersStream, int aLoadFlags,
067: int /*long*/aSHEntry, boolean firstParty,
068: int /*long*/[] aDocShell, int /*long*/[] aRequest) {
069: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3,
070: getAddress(), aURI, aReferrer, aOwner, aFlags,
071: aWindowTarget, aTypeHint, aPostDataStream,
072: aHeadersStream, aLoadFlags, aSHEntry, firstParty,
073: aDocShell, aRequest);
074: }
075:
076: public int CreateLoadInfo(int /*long*/[] loadInfo) {
077: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4,
078: getAddress(), loadInfo);
079: }
080:
081: public int PrepareForNewContentModel() {
082: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5,
083: getAddress());
084: }
085:
086: public int SetCurrentURI(int /*long*/aURI) {
087: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 6,
088: getAddress(), aURI);
089: }
090:
091: public int FirePageHideNotification(boolean isUnload) {
092: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 7,
093: getAddress(), isUnload);
094: }
095:
096: public int GetPresContext(int /*long*/[] aPresContext) {
097: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 8,
098: getAddress(), aPresContext);
099: }
100:
101: public int GetPresShell(int /*long*/[] aPresShell) {
102: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 9,
103: getAddress(), aPresShell);
104: }
105:
106: public int GetEldestPresShell(int /*long*/[] aEldestPresShell) {
107: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 10,
108: getAddress(), aEldestPresShell);
109: }
110:
111: public int GetContentViewer(int /*long*/[] aContentViewer) {
112: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 11,
113: getAddress(), aContentViewer);
114: }
115:
116: public int GetChromeEventHandler(int /*long*/[] aChromeEventHandler) {
117: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 12,
118: getAddress(), aChromeEventHandler);
119: }
120:
121: public int SetChromeEventHandler(int /*long*/aChromeEventHandler) {
122: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 13,
123: getAddress(), aChromeEventHandler);
124: }
125:
126: public int GetDocumentCharsetInfo(
127: int /*long*/[] aDocumentCharsetInfo) {
128: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 14,
129: getAddress(), aDocumentCharsetInfo);
130: }
131:
132: public int SetDocumentCharsetInfo(int /*long*/aDocumentCharsetInfo) {
133: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 15,
134: getAddress(), aDocumentCharsetInfo);
135: }
136:
137: public int GetAllowPlugins(boolean[] aAllowPlugins) {
138: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 16,
139: getAddress(), aAllowPlugins);
140: }
141:
142: public int SetAllowPlugins(boolean aAllowPlugins) {
143: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 17,
144: getAddress(), aAllowPlugins);
145: }
146:
147: public int GetAllowJavascript(boolean[] aAllowJavascript) {
148: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 18,
149: getAddress(), aAllowJavascript);
150: }
151:
152: public int SetAllowJavascript(boolean aAllowJavascript) {
153: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 19,
154: getAddress(), aAllowJavascript);
155: }
156:
157: public int GetAllowMetaRedirects(boolean[] aAllowMetaRedirects) {
158: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 20,
159: getAddress(), aAllowMetaRedirects);
160: }
161:
162: public int SetAllowMetaRedirects(boolean aAllowMetaRedirects) {
163: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 21,
164: getAddress(), aAllowMetaRedirects);
165: }
166:
167: public int GetAllowSubframes(boolean[] aAllowSubframes) {
168: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 22,
169: getAddress(), aAllowSubframes);
170: }
171:
172: public int SetAllowSubframes(boolean aAllowSubframes) {
173: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 23,
174: getAddress(), aAllowSubframes);
175: }
176:
177: public int GetAllowImages(boolean[] aAllowImages) {
178: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 24,
179: getAddress(), aAllowImages);
180: }
181:
182: public int SetAllowImages(boolean aAllowImages) {
183: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 25,
184: getAddress(), aAllowImages);
185: }
186:
187: public static final int ENUMERATE_FORWARDS = 0;
188:
189: public static final int ENUMERATE_BACKWARDS = 1;
190:
191: public int GetDocShellEnumerator(int aItemType, int aDirection,
192: int /*long*/[] _retval) {
193: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 26,
194: getAddress(), aItemType, aDirection, _retval);
195: }
196:
197: public static final int APP_TYPE_UNKNOWN = 0;
198:
199: public static final int APP_TYPE_MAIL = 1;
200:
201: public static final int APP_TYPE_EDITOR = 2;
202:
203: public int GetAppType(int[] aAppType) {
204: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 27,
205: getAddress(), aAppType);
206: }
207:
208: public int SetAppType(int aAppType) {
209: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 28,
210: getAddress(), aAppType);
211: }
212:
213: public int GetAllowAuth(boolean[] aAllowAuth) {
214: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 29,
215: getAddress(), aAllowAuth);
216: }
217:
218: public int SetAllowAuth(boolean aAllowAuth) {
219: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 30,
220: getAddress(), aAllowAuth);
221: }
222:
223: public int GetZoom(float[] aZoom) {
224: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 31,
225: getAddress(), aZoom);
226: }
227:
228: public int SetZoom(float aZoom) {
229: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 32,
230: getAddress(), aZoom);
231: }
232:
233: public int GetMarginWidth(int[] aMarginWidth) {
234: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 33,
235: getAddress(), aMarginWidth);
236: }
237:
238: public int SetMarginWidth(int aMarginWidth) {
239: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 34,
240: getAddress(), aMarginWidth);
241: }
242:
243: public int GetMarginHeight(int[] aMarginHeight) {
244: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 35,
245: getAddress(), aMarginHeight);
246: }
247:
248: public int SetMarginHeight(int aMarginHeight) {
249: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 36,
250: getAddress(), aMarginHeight);
251: }
252:
253: public int GetHasFocus(boolean[] aHasFocus) {
254: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 37,
255: getAddress(), aHasFocus);
256: }
257:
258: public int SetHasFocus(boolean aHasFocus) {
259: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 38,
260: getAddress(), aHasFocus);
261: }
262:
263: public int GetCanvasHasFocus(boolean[] aCanvasHasFocus) {
264: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 39,
265: getAddress(), aCanvasHasFocus);
266: }
267:
268: public int SetCanvasHasFocus(boolean aCanvasHasFocus) {
269: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 40,
270: getAddress(), aCanvasHasFocus);
271: }
272:
273: public int TabToTreeOwner(boolean forward, boolean[] tookFocus) {
274: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 41,
275: getAddress(), forward, tookFocus);
276: }
277:
278: public static final int BUSY_FLAGS_NONE = 0;
279:
280: public static final int BUSY_FLAGS_BUSY = 1;
281:
282: public static final int BUSY_FLAGS_BEFORE_PAGE_LOAD = 2;
283:
284: public static final int BUSY_FLAGS_PAGE_LOADING = 4;
285:
286: public static final int LOAD_CMD_NORMAL = 1;
287:
288: public static final int LOAD_CMD_RELOAD = 2;
289:
290: public static final int LOAD_CMD_HISTORY = 4;
291:
292: public int GetBusyFlags(int[] aBusyFlags) {
293: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 42,
294: getAddress(), aBusyFlags);
295: }
296:
297: public int GetLoadType(int[] aLoadType) {
298: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 43,
299: getAddress(), aLoadType);
300: }
301:
302: public int SetLoadType(int aLoadType) {
303: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 44,
304: getAddress(), aLoadType);
305: }
306:
307: public int IsBeingDestroyed(boolean[] _retval) {
308: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 45,
309: getAddress(), _retval);
310: }
311:
312: public int GetIsExecutingOnLoadHandler(
313: boolean[] aIsExecutingOnLoadHandler) {
314: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 46,
315: getAddress(), aIsExecutingOnLoadHandler);
316: }
317:
318: public int GetLayoutHistoryState(int /*long*/[] aLayoutHistoryState) {
319: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 47,
320: getAddress(), aLayoutHistoryState);
321: }
322:
323: public int SetLayoutHistoryState(int /*long*/aLayoutHistoryState) {
324: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 48,
325: getAddress(), aLayoutHistoryState);
326: }
327:
328: public int GetShouldSaveLayoutState(boolean[] aShouldSaveLayoutState) {
329: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 49,
330: getAddress(), aShouldSaveLayoutState);
331: }
332:
333: public int GetSecurityUI(int /*long*/[] aSecurityUI) {
334: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 50,
335: getAddress(), aSecurityUI);
336: }
337:
338: public int SetSecurityUI(int /*long*/aSecurityUI) {
339: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 51,
340: getAddress(), aSecurityUI);
341: }
342:
343: public int SuspendRefreshURIs() {
344: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 52,
345: getAddress());
346: }
347:
348: public int ResumeRefreshURIs() {
349: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 53,
350: getAddress());
351: }
352:
353: public int BeginRestore(int /*long*/viewer, boolean top) {
354: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 54,
355: getAddress(), viewer, top);
356: }
357:
358: public int FinishRestore() {
359: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 55,
360: getAddress());
361: }
362:
363: public int GetRestoringDocument(boolean[] aRestoringDocument) {
364: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 56,
365: getAddress(), aRestoringDocument);
366: }
367:
368: public int GetUseErrorPages(boolean[] aUseErrorPages) {
369: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 57,
370: getAddress(), aUseErrorPages);
371: }
372:
373: public int SetUseErrorPages(boolean aUseErrorPages) {
374: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 58,
375: getAddress(), aUseErrorPages);
376: }
377:
378: public int GetPreviousTransIndex(int[] aPreviousTransIndex) {
379: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 59,
380: getAddress(), aPreviousTransIndex);
381: }
382:
383: public int GetLoadedTransIndex(int[] aLoadedTransIndex) {
384: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 60,
385: getAddress(), aLoadedTransIndex);
386: }
387:
388: public int HistoryPurged(int numEntries) {
389: return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 61,
390: getAddress(), numEntries);
391: }
392: }
|