1
/* ***** BEGIN LICENSE BLOCK *****
4
* The contents of this file are subject to the Mozilla Public License Version
5
* 1.1 (the "License"); you may not use this file except in compliance with
6
* the License. You may obtain a copy of the License at
7
* http://www.mozilla.org/MPL/
9
* Software distributed under the License is distributed on an "AS IS" basis,
10
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11
* for the specific language governing rights and limitations under the
14
* The Original Code is Mozilla Communicator client code, released March 31, 1998.
16
* The Initial Developer of the Original Code is
17
* Netscape Communications Corporation.
18
* Portions created by Netscape are Copyright (C) 1998-1999
19
* Netscape Communications Corporation. All Rights Reserved.
24
* - Binding to permit interfacing between Mozilla and SWT
25
* - Copyright (C) 2003, 2008 IBM Corp. All Rights Reserved.
27
* ***** END LICENSE BLOCK ***** */
28
package org.eclipse.swt.internal.mozilla;
30
public class nsIDocShell_1_9 extends nsISupports {
32
static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 67;
34
public static final String NS_IDOCSHELL_IID_STR =
35
"7d1cf6b9-daa3-476d-8f9f-9eb2a971a95c";
37
public static final nsID NS_IDOCSHELL_IID =
38
new nsID(NS_IDOCSHELL_IID_STR);
40
public nsIDocShell_1_9(int /*long*/ address) {
44
public int LoadURI(int /*long*/ uri, int /*long*/ loadInfo, int aLoadFlags, int firstParty) {
45
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1, getAddress(), uri, loadInfo, aLoadFlags, firstParty);
48
public int LoadStream(int /*long*/ aStream, int /*long*/ aURI, int /*long*/ aContentType, int /*long*/ aContentCharset, int /*long*/ aLoadInfo) {
49
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2, getAddress(), aStream, aURI, aContentType, aContentCharset, aLoadInfo);
52
public static final int INTERNAL_LOAD_FLAGS_NONE = 0;
54
public static final int INTERNAL_LOAD_FLAGS_INHERIT_OWNER = 1;
56
public static final int INTERNAL_LOAD_FLAGS_DONT_SEND_REFERRER = 2;
58
public static final int INTERNAL_LOAD_FLAGS_ALLOW_THIRD_PARTY_FIXUP = 4;
60
public static final int INTERNAL_LOAD_FLAGS_FIRST_LOAD = 8;
62
public static final int INTERNAL_LOAD_FLAGS_BYPASS_CLASSIFIER = 16;
64
public int InternalLoad(int /*long*/ aURI, int /*long*/ aReferrer, int /*long*/ aOwner, int aFlags, char[] aWindowTarget, byte[] aTypeHint, int /*long*/ aPostDataStream, int /*long*/ aHeadersStream, int aLoadFlags, int /*long*/ aSHEntry, int firstParty, int /*long*/[] aDocShell, int /*long*/[] aRequest) {
65
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3, getAddress(), aURI, aReferrer, aOwner, aFlags, aWindowTarget, aTypeHint, aPostDataStream, aHeadersStream, aLoadFlags, aSHEntry, firstParty, aDocShell, aRequest);
68
public int CreateLoadInfo(int /*long*/[] loadInfo) {
69
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4, getAddress(), loadInfo);
72
public int PrepareForNewContentModel() {
73
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5, getAddress());
76
public int SetCurrentURI(int /*long*/ aURI) {
77
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 6, getAddress(), aURI);
80
public int FirePageHideNotification(int isUnload) {
81
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 7, getAddress(), isUnload);
84
public int GetPresContext(int /*long*/[] aPresContext) {
85
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 8, getAddress(), aPresContext);
88
public int GetPresShell(int /*long*/[] aPresShell) {
89
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 9, getAddress(), aPresShell);
92
public int GetEldestPresShell(int /*long*/[] aEldestPresShell) {
93
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 10, getAddress(), aEldestPresShell);
96
public int GetContentViewer(int /*long*/[] aContentViewer) {
97
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 11, getAddress(), aContentViewer);
100
public int GetChromeEventHandler(int /*long*/[] aChromeEventHandler) {
101
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 12, getAddress(), aChromeEventHandler);
104
public int SetChromeEventHandler(int /*long*/ aChromeEventHandler) {
105
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 13, getAddress(), aChromeEventHandler);
108
public int GetDocumentCharsetInfo(int /*long*/[] aDocumentCharsetInfo) {
109
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 14, getAddress(), aDocumentCharsetInfo);
112
public int SetDocumentCharsetInfo(int /*long*/ aDocumentCharsetInfo) {
113
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 15, getAddress(), aDocumentCharsetInfo);
116
public int GetAllowPlugins(int[] aAllowPlugins) {
117
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 16, getAddress(), aAllowPlugins);
120
public int SetAllowPlugins(int aAllowPlugins) {
121
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 17, getAddress(), aAllowPlugins);
124
public int GetAllowJavascript(int[] aAllowJavascript) {
125
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 18, getAddress(), aAllowJavascript);
128
public int SetAllowJavascript(int aAllowJavascript) {
129
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 19, getAddress(), aAllowJavascript);
132
public int GetAllowMetaRedirects(int[] aAllowMetaRedirects) {
133
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 20, getAddress(), aAllowMetaRedirects);
136
public int SetAllowMetaRedirects(int aAllowMetaRedirects) {
137
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 21, getAddress(), aAllowMetaRedirects);
140
public int GetAllowSubframes(int[] aAllowSubframes) {
141
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 22, getAddress(), aAllowSubframes);
144
public int SetAllowSubframes(int aAllowSubframes) {
145
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 23, getAddress(), aAllowSubframes);
148
public int GetAllowImages(int[] aAllowImages) {
149
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 24, getAddress(), aAllowImages);
152
public int SetAllowImages(int aAllowImages) {
153
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 25, getAddress(), aAllowImages);
156
public static final int ENUMERATE_FORWARDS = 0;
158
public static final int ENUMERATE_BACKWARDS = 1;
160
public int GetDocShellEnumerator(int aItemType, int aDirection, int /*long*/[] _retval) {
161
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 26, getAddress(), aItemType, aDirection, _retval);
164
public static final int APP_TYPE_UNKNOWN = 0;
166
public static final int APP_TYPE_MAIL = 1;
168
public static final int APP_TYPE_EDITOR = 2;
170
public int GetAppType(int[] aAppType) {
171
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 27, getAddress(), aAppType);
174
public int SetAppType(int aAppType) {
175
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 28, getAddress(), aAppType);
178
public int GetAllowAuth(int[] aAllowAuth) {
179
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 29, getAddress(), aAllowAuth);
182
public int SetAllowAuth(int aAllowAuth) {
183
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 30, getAddress(), aAllowAuth);
186
public int GetZoom(float[] aZoom) {
187
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 31, getAddress(), aZoom);
190
public int SetZoom(float aZoom) {
191
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 32, getAddress(), aZoom);
194
public int GetMarginWidth(int[] aMarginWidth) {
195
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 33, getAddress(), aMarginWidth);
198
public int SetMarginWidth(int aMarginWidth) {
199
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 34, getAddress(), aMarginWidth);
202
public int GetMarginHeight(int[] aMarginHeight) {
203
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 35, getAddress(), aMarginHeight);
206
public int SetMarginHeight(int aMarginHeight) {
207
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 36, getAddress(), aMarginHeight);
210
public int GetHasFocus(int[] aHasFocus) {
211
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 37, getAddress(), aHasFocus);
214
public int SetHasFocus(int aHasFocus) {
215
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 38, getAddress(), aHasFocus);
218
public int GetCanvasHasFocus(int[] aCanvasHasFocus) {
219
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 39, getAddress(), aCanvasHasFocus);
222
public int SetCanvasHasFocus(int aCanvasHasFocus) {
223
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 40, getAddress(), aCanvasHasFocus);
226
public int TabToTreeOwner(int forward, int[] tookFocus) {
227
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 41, getAddress(), forward, tookFocus);
230
public static final int BUSY_FLAGS_NONE = 0;
232
public static final int BUSY_FLAGS_BUSY = 1;
234
public static final int BUSY_FLAGS_BEFORE_PAGE_LOAD = 2;
236
public static final int BUSY_FLAGS_PAGE_LOADING = 4;
238
public static final int LOAD_CMD_NORMAL = 1;
240
public static final int LOAD_CMD_RELOAD = 2;
242
public static final int LOAD_CMD_HISTORY = 4;
244
public int GetBusyFlags(int[] aBusyFlags) {
245
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 42, getAddress(), aBusyFlags);
248
public int GetLoadType(int[] aLoadType) {
249
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 43, getAddress(), aLoadType);
252
public int SetLoadType(int aLoadType) {
253
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 44, getAddress(), aLoadType);
256
public int IsBeingDestroyed(int[] _retval) {
257
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 45, getAddress(), _retval);
260
public int GetIsExecutingOnLoadHandler(int[] aIsExecutingOnLoadHandler) {
261
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 46, getAddress(), aIsExecutingOnLoadHandler);
264
public int GetLayoutHistoryState(int /*long*/[] aLayoutHistoryState) {
265
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 47, getAddress(), aLayoutHistoryState);
268
public int SetLayoutHistoryState(int /*long*/ aLayoutHistoryState) {
269
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 48, getAddress(), aLayoutHistoryState);
272
public int GetShouldSaveLayoutState(int[] aShouldSaveLayoutState) {
273
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 49, getAddress(), aShouldSaveLayoutState);
276
public int GetSecurityUI(int /*long*/[] aSecurityUI) {
277
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 50, getAddress(), aSecurityUI);
280
public int SetSecurityUI(int /*long*/ aSecurityUI) {
281
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 51, getAddress(), aSecurityUI);
284
public int SuspendRefreshURIs() {
285
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 52, getAddress());
288
public int ResumeRefreshURIs() {
289
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 53, getAddress());
292
public int BeginRestore(int /*long*/ viewer, int top) {
293
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 54, getAddress(), viewer, top);
296
public int FinishRestore() {
297
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 55, getAddress());
300
public int GetRestoringDocument(int[] aRestoringDocument) {
301
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 56, getAddress(), aRestoringDocument);
304
public int GetUseErrorPages(int[] aUseErrorPages) {
305
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 57, getAddress(), aUseErrorPages);
308
public int SetUseErrorPages(int aUseErrorPages) {
309
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 58, getAddress(), aUseErrorPages);
312
public int GetPreviousTransIndex(int[] aPreviousTransIndex) {
313
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 59, getAddress(), aPreviousTransIndex);
316
public int GetLoadedTransIndex(int[] aLoadedTransIndex) {
317
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 60, getAddress(), aLoadedTransIndex);
320
public int HistoryPurged(int numEntries) {
321
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 61, getAddress(), numEntries);
324
public int GetSessionStorageForURI(int /*long*/ uri, int /*long*/[] _retval) {
325
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 62, getAddress(), uri, _retval);
328
public int AddSessionStorage(int /*long*/ aDomain, int /*long*/ storage) {
329
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 63, getAddress(), aDomain, storage);
332
public int GetCurrentDocumentChannel(int /*long*/[] aCurrentDocumentChannel) {
333
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 64, getAddress(), aCurrentDocumentChannel);
336
public int SetChildOffset(int offset) {
337
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 65, getAddress(), offset);
340
public int GetIsInUnload(int[] aIsInUnload) {
341
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 66, getAddress(), aIsInUnload);
344
public int GetChannelIsUnsafe(int[] aChannelIsUnsafe) {
345
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 67, getAddress(), aChannelIsUnsafe);
b'\\ No newline at end of file'