comparison dwt/internal/mozilla/nsIDocShell_1_9.d @ 45:d8635bb48c7c

Merge with SWT 3.5
author Jacob Carlborg <doob@me.com>
date Mon, 01 Dec 2008 17:07:00 +0100
parents
children
comparison
equal deleted inserted replaced
44:ca5e494f2bbf 45:d8635bb48c7c
1 /* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1
3 *
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/
8 *
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
12 * License.
13 *
14 * The Original Code is Mozilla Communicator client code, released March 31, 1998.
15 *
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.
20 *
21 * Contributor(s):
22 *
23 * IBM
24 * - Binding to permit interfacing between Mozilla and DWT
25 * - Copyright (C) 2003, 2008 IBM Corp. All Rights Reserved.
26 *
27 * ***** END LICENSE BLOCK ***** */
28 module dwt.internal.mozilla.nsIDocShell_1_9;
29
30 import dwt.dwthelper.utils;
31
32 public class nsIDocShell_1_9 extends nsISupports {
33
34 static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 67;
35
36 public static final String NS_IDOCSHELL_IID_STR =
37 "7d1cf6b9-daa3-476d-8f9f-9eb2a971a95c";
38
39 public static final nsID NS_IDOCSHELL_IID =
40 new nsID(NS_IDOCSHELL_IID_STR);
41
42 public nsIDocShell_1_9(int /*long*/ address) {
43 super(address);
44 }
45
46 public int LoadURI(int /*long*/ uri, int /*long*/ loadInfo, int aLoadFlags, int firstParty) {
47 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1, getAddress(), uri, loadInfo, aLoadFlags, firstParty);
48 }
49
50 public int LoadStream(int /*long*/ aStream, int /*long*/ aURI, int /*long*/ aContentType, int /*long*/ aContentCharset, int /*long*/ aLoadInfo) {
51 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2, getAddress(), aStream, aURI, aContentType, aContentCharset, aLoadInfo);
52 }
53
54 public static final int INTERNAL_LOAD_FLAGS_NONE = 0;
55
56 public static final int INTERNAL_LOAD_FLAGS_INHERIT_OWNER = 1;
57
58 public static final int INTERNAL_LOAD_FLAGS_DONT_SEND_REFERRER = 2;
59
60 public static final int INTERNAL_LOAD_FLAGS_ALLOW_THIRD_PARTY_FIXUP = 4;
61
62 public static final int INTERNAL_LOAD_FLAGS_FIRST_LOAD = 8;
63
64 public static final int INTERNAL_LOAD_FLAGS_BYPASS_CLASSIFIER = 16;
65
66 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) {
67 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3, getAddress(), aURI, aReferrer, aOwner, aFlags, aWindowTarget, aTypeHint, aPostDataStream, aHeadersStream, aLoadFlags, aSHEntry, firstParty, aDocShell, aRequest);
68 }
69
70 public int CreateLoadInfo(int /*long*/[] loadInfo) {
71 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4, getAddress(), loadInfo);
72 }
73
74 public int PrepareForNewContentModel() {
75 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5, getAddress());
76 }
77
78 public int SetCurrentURI(int /*long*/ aURI) {
79 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 6, getAddress(), aURI);
80 }
81
82 public int FirePageHideNotification(int isUnload) {
83 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 7, getAddress(), isUnload);
84 }
85
86 public int GetPresContext(int /*long*/[] aPresContext) {
87 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 8, getAddress(), aPresContext);
88 }
89
90 public int GetPresShell(int /*long*/[] aPresShell) {
91 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 9, getAddress(), aPresShell);
92 }
93
94 public int GetEldestPresShell(int /*long*/[] aEldestPresShell) {
95 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 10, getAddress(), aEldestPresShell);
96 }
97
98 public int GetContentViewer(int /*long*/[] aContentViewer) {
99 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 11, getAddress(), aContentViewer);
100 }
101
102 public int GetChromeEventHandler(int /*long*/[] aChromeEventHandler) {
103 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 12, getAddress(), aChromeEventHandler);
104 }
105
106 public int SetChromeEventHandler(int /*long*/ aChromeEventHandler) {
107 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 13, getAddress(), aChromeEventHandler);
108 }
109
110 public int GetDocumentCharsetInfo(int /*long*/[] aDocumentCharsetInfo) {
111 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 14, getAddress(), aDocumentCharsetInfo);
112 }
113
114 public int SetDocumentCharsetInfo(int /*long*/ aDocumentCharsetInfo) {
115 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 15, getAddress(), aDocumentCharsetInfo);
116 }
117
118 public int GetAllowPlugins(int[] aAllowPlugins) {
119 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 16, getAddress(), aAllowPlugins);
120 }
121
122 public int SetAllowPlugins(int aAllowPlugins) {
123 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 17, getAddress(), aAllowPlugins);
124 }
125
126 public int GetAllowJavascript(int[] aAllowJavascript) {
127 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 18, getAddress(), aAllowJavascript);
128 }
129
130 public int SetAllowJavascript(int aAllowJavascript) {
131 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 19, getAddress(), aAllowJavascript);
132 }
133
134 public int GetAllowMetaRedirects(int[] aAllowMetaRedirects) {
135 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 20, getAddress(), aAllowMetaRedirects);
136 }
137
138 public int SetAllowMetaRedirects(int aAllowMetaRedirects) {
139 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 21, getAddress(), aAllowMetaRedirects);
140 }
141
142 public int GetAllowSubframes(int[] aAllowSubframes) {
143 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 22, getAddress(), aAllowSubframes);
144 }
145
146 public int SetAllowSubframes(int aAllowSubframes) {
147 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 23, getAddress(), aAllowSubframes);
148 }
149
150 public int GetAllowImages(int[] aAllowImages) {
151 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 24, getAddress(), aAllowImages);
152 }
153
154 public int SetAllowImages(int aAllowImages) {
155 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 25, getAddress(), aAllowImages);
156 }
157
158 public static final int ENUMERATE_FORWARDS = 0;
159
160 public static final int ENUMERATE_BACKWARDS = 1;
161
162 public int GetDocShellEnumerator(int aItemType, int aDirection, int /*long*/[] _retval) {
163 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 26, getAddress(), aItemType, aDirection, _retval);
164 }
165
166 public static final int APP_TYPE_UNKNOWN = 0;
167
168 public static final int APP_TYPE_MAIL = 1;
169
170 public static final int APP_TYPE_EDITOR = 2;
171
172 public int GetAppType(int[] aAppType) {
173 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 27, getAddress(), aAppType);
174 }
175
176 public int SetAppType(int aAppType) {
177 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 28, getAddress(), aAppType);
178 }
179
180 public int GetAllowAuth(int[] aAllowAuth) {
181 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 29, getAddress(), aAllowAuth);
182 }
183
184 public int SetAllowAuth(int aAllowAuth) {
185 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 30, getAddress(), aAllowAuth);
186 }
187
188 public int GetZoom(float[] aZoom) {
189 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 31, getAddress(), aZoom);
190 }
191
192 public int SetZoom(float aZoom) {
193 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 32, getAddress(), aZoom);
194 }
195
196 public int GetMarginWidth(int[] aMarginWidth) {
197 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 33, getAddress(), aMarginWidth);
198 }
199
200 public int SetMarginWidth(int aMarginWidth) {
201 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 34, getAddress(), aMarginWidth);
202 }
203
204 public int GetMarginHeight(int[] aMarginHeight) {
205 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 35, getAddress(), aMarginHeight);
206 }
207
208 public int SetMarginHeight(int aMarginHeight) {
209 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 36, getAddress(), aMarginHeight);
210 }
211
212 public int GetHasFocus(int[] aHasFocus) {
213 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 37, getAddress(), aHasFocus);
214 }
215
216 public int SetHasFocus(int aHasFocus) {
217 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 38, getAddress(), aHasFocus);
218 }
219
220 public int GetCanvasHasFocus(int[] aCanvasHasFocus) {
221 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 39, getAddress(), aCanvasHasFocus);
222 }
223
224 public int SetCanvasHasFocus(int aCanvasHasFocus) {
225 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 40, getAddress(), aCanvasHasFocus);
226 }
227
228 public int TabToTreeOwner(int forward, int[] tookFocus) {
229 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 41, getAddress(), forward, tookFocus);
230 }
231
232 public static final int BUSY_FLAGS_NONE = 0;
233
234 public static final int BUSY_FLAGS_BUSY = 1;
235
236 public static final int BUSY_FLAGS_BEFORE_PAGE_LOAD = 2;
237
238 public static final int BUSY_FLAGS_PAGE_LOADING = 4;
239
240 public static final int LOAD_CMD_NORMAL = 1;
241
242 public static final int LOAD_CMD_RELOAD = 2;
243
244 public static final int LOAD_CMD_HISTORY = 4;
245
246 public int GetBusyFlags(int[] aBusyFlags) {
247 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 42, getAddress(), aBusyFlags);
248 }
249
250 public int GetLoadType(int[] aLoadType) {
251 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 43, getAddress(), aLoadType);
252 }
253
254 public int SetLoadType(int aLoadType) {
255 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 44, getAddress(), aLoadType);
256 }
257
258 public int IsBeingDestroyed(int[] _retval) {
259 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 45, getAddress(), _retval);
260 }
261
262 public int GetIsExecutingOnLoadHandler(int[] aIsExecutingOnLoadHandler) {
263 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 46, getAddress(), aIsExecutingOnLoadHandler);
264 }
265
266 public int GetLayoutHistoryState(int /*long*/[] aLayoutHistoryState) {
267 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 47, getAddress(), aLayoutHistoryState);
268 }
269
270 public int SetLayoutHistoryState(int /*long*/ aLayoutHistoryState) {
271 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 48, getAddress(), aLayoutHistoryState);
272 }
273
274 public int GetShouldSaveLayoutState(int[] aShouldSaveLayoutState) {
275 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 49, getAddress(), aShouldSaveLayoutState);
276 }
277
278 public int GetSecurityUI(int /*long*/[] aSecurityUI) {
279 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 50, getAddress(), aSecurityUI);
280 }
281
282 public int SetSecurityUI(int /*long*/ aSecurityUI) {
283 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 51, getAddress(), aSecurityUI);
284 }
285
286 public int SuspendRefreshURIs() {
287 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 52, getAddress());
288 }
289
290 public int ResumeRefreshURIs() {
291 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 53, getAddress());
292 }
293
294 public int BeginRestore(int /*long*/ viewer, int top) {
295 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 54, getAddress(), viewer, top);
296 }
297
298 public int FinishRestore() {
299 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 55, getAddress());
300 }
301
302 public int GetRestoringDocument(int[] aRestoringDocument) {
303 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 56, getAddress(), aRestoringDocument);
304 }
305
306 public int GetUseErrorPages(int[] aUseErrorPages) {
307 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 57, getAddress(), aUseErrorPages);
308 }
309
310 public int SetUseErrorPages(int aUseErrorPages) {
311 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 58, getAddress(), aUseErrorPages);
312 }
313
314 public int GetPreviousTransIndex(int[] aPreviousTransIndex) {
315 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 59, getAddress(), aPreviousTransIndex);
316 }
317
318 public int GetLoadedTransIndex(int[] aLoadedTransIndex) {
319 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 60, getAddress(), aLoadedTransIndex);
320 }
321
322 public int HistoryPurged(int numEntries) {
323 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 61, getAddress(), numEntries);
324 }
325
326 public int GetSessionStorageForURI(int /*long*/ uri, int /*long*/[] _retval) {
327 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 62, getAddress(), uri, _retval);
328 }
329
330 public int AddSessionStorage(int /*long*/ aDomain, int /*long*/ storage) {
331 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 63, getAddress(), aDomain, storage);
332 }
333
334 public int GetCurrentDocumentChannel(int /*long*/[] aCurrentDocumentChannel) {
335 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 64, getAddress(), aCurrentDocumentChannel);
336 }
337
338 public int SetChildOffset(int offset) {
339 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 65, getAddress(), offset);
340 }
341
342 public int GetIsInUnload(int[] aIsInUnload) {
343 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 66, getAddress(), aIsInUnload);
344 }
345
346 public int GetChannelIsUnsafe(int[] aChannelIsUnsafe) {
347 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 67, getAddress(), aChannelIsUnsafe);
348 }
349 }