Mercurial > projects > dwt-mac
comparison dwt/internal/mozilla/nsIDocShell_1_8.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_8; | |
29 | |
30 import dwt.dwthelper.utils; | |
31 | |
32 public class nsIDocShell_1_8 extends nsISupports { | |
33 | |
34 static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 61; | |
35 | |
36 public static final String NS_IDOCSHELL_IID_STR = | |
37 "9f0c7461-b9a4-47f6-b88c-421dce1bce66"; | |
38 | |
39 public static final nsID NS_IDOCSHELL_IID = | |
40 new nsID(NS_IDOCSHELL_IID_STR); | |
41 | |
42 public nsIDocShell_1_8(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 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) { | |
61 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3, getAddress(), aURI, aReferrer, aOwner, aFlags, aWindowTarget, aTypeHint, aPostDataStream, aHeadersStream, aLoadFlags, aSHEntry, firstParty, aDocShell, aRequest); | |
62 } | |
63 | |
64 public int CreateLoadInfo(int /*long*/[] loadInfo) { | |
65 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4, getAddress(), loadInfo); | |
66 } | |
67 | |
68 public int PrepareForNewContentModel() { | |
69 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5, getAddress()); | |
70 } | |
71 | |
72 public int SetCurrentURI(int /*long*/ aURI) { | |
73 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 6, getAddress(), aURI); | |
74 } | |
75 | |
76 public int FirePageHideNotification(int isUnload) { | |
77 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 7, getAddress(), isUnload); | |
78 } | |
79 | |
80 public int GetPresContext(int /*long*/[] aPresContext) { | |
81 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 8, getAddress(), aPresContext); | |
82 } | |
83 | |
84 public int GetPresShell(int /*long*/[] aPresShell) { | |
85 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 9, getAddress(), aPresShell); | |
86 } | |
87 | |
88 public int GetEldestPresShell(int /*long*/[] aEldestPresShell) { | |
89 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 10, getAddress(), aEldestPresShell); | |
90 } | |
91 | |
92 public int GetContentViewer(int /*long*/[] aContentViewer) { | |
93 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 11, getAddress(), aContentViewer); | |
94 } | |
95 | |
96 public int GetChromeEventHandler(int /*long*/[] aChromeEventHandler) { | |
97 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 12, getAddress(), aChromeEventHandler); | |
98 } | |
99 | |
100 public int SetChromeEventHandler(int /*long*/ aChromeEventHandler) { | |
101 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 13, getAddress(), aChromeEventHandler); | |
102 } | |
103 | |
104 public int GetDocumentCharsetInfo(int /*long*/[] aDocumentCharsetInfo) { | |
105 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 14, getAddress(), aDocumentCharsetInfo); | |
106 } | |
107 | |
108 public int SetDocumentCharsetInfo(int /*long*/ aDocumentCharsetInfo) { | |
109 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 15, getAddress(), aDocumentCharsetInfo); | |
110 } | |
111 | |
112 public int GetAllowPlugins(int[] aAllowPlugins) { | |
113 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 16, getAddress(), aAllowPlugins); | |
114 } | |
115 | |
116 public int SetAllowPlugins(int aAllowPlugins) { | |
117 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 17, getAddress(), aAllowPlugins); | |
118 } | |
119 | |
120 public int GetAllowJavascript(int[] aAllowJavascript) { | |
121 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 18, getAddress(), aAllowJavascript); | |
122 } | |
123 | |
124 public int SetAllowJavascript(int aAllowJavascript) { | |
125 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 19, getAddress(), aAllowJavascript); | |
126 } | |
127 | |
128 public int GetAllowMetaRedirects(int[] aAllowMetaRedirects) { | |
129 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 20, getAddress(), aAllowMetaRedirects); | |
130 } | |
131 | |
132 public int SetAllowMetaRedirects(int aAllowMetaRedirects) { | |
133 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 21, getAddress(), aAllowMetaRedirects); | |
134 } | |
135 | |
136 public int GetAllowSubframes(int[] aAllowSubframes) { | |
137 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 22, getAddress(), aAllowSubframes); | |
138 } | |
139 | |
140 public int SetAllowSubframes(int aAllowSubframes) { | |
141 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 23, getAddress(), aAllowSubframes); | |
142 } | |
143 | |
144 public int GetAllowImages(int[] aAllowImages) { | |
145 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 24, getAddress(), aAllowImages); | |
146 } | |
147 | |
148 public int SetAllowImages(int aAllowImages) { | |
149 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 25, getAddress(), aAllowImages); | |
150 } | |
151 | |
152 public static final int ENUMERATE_FORWARDS = 0; | |
153 | |
154 public static final int ENUMERATE_BACKWARDS = 1; | |
155 | |
156 public int GetDocShellEnumerator(int aItemType, int aDirection, int /*long*/[] _retval) { | |
157 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 26, getAddress(), aItemType, aDirection, _retval); | |
158 } | |
159 | |
160 public static final int APP_TYPE_UNKNOWN = 0; | |
161 | |
162 public static final int APP_TYPE_MAIL = 1; | |
163 | |
164 public static final int APP_TYPE_EDITOR = 2; | |
165 | |
166 public int GetAppType(int[] aAppType) { | |
167 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 27, getAddress(), aAppType); | |
168 } | |
169 | |
170 public int SetAppType(int aAppType) { | |
171 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 28, getAddress(), aAppType); | |
172 } | |
173 | |
174 public int GetAllowAuth(int[] aAllowAuth) { | |
175 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 29, getAddress(), aAllowAuth); | |
176 } | |
177 | |
178 public int SetAllowAuth(int aAllowAuth) { | |
179 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 30, getAddress(), aAllowAuth); | |
180 } | |
181 | |
182 public int GetZoom(float[] aZoom) { | |
183 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 31, getAddress(), aZoom); | |
184 } | |
185 | |
186 public int SetZoom(float aZoom) { | |
187 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 32, getAddress(), aZoom); | |
188 } | |
189 | |
190 public int GetMarginWidth(int[] aMarginWidth) { | |
191 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 33, getAddress(), aMarginWidth); | |
192 } | |
193 | |
194 public int SetMarginWidth(int aMarginWidth) { | |
195 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 34, getAddress(), aMarginWidth); | |
196 } | |
197 | |
198 public int GetMarginHeight(int[] aMarginHeight) { | |
199 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 35, getAddress(), aMarginHeight); | |
200 } | |
201 | |
202 public int SetMarginHeight(int aMarginHeight) { | |
203 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 36, getAddress(), aMarginHeight); | |
204 } | |
205 | |
206 public int GetHasFocus(int[] aHasFocus) { | |
207 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 37, getAddress(), aHasFocus); | |
208 } | |
209 | |
210 public int SetHasFocus(int aHasFocus) { | |
211 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 38, getAddress(), aHasFocus); | |
212 } | |
213 | |
214 public int GetCanvasHasFocus(int[] aCanvasHasFocus) { | |
215 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 39, getAddress(), aCanvasHasFocus); | |
216 } | |
217 | |
218 public int SetCanvasHasFocus(int aCanvasHasFocus) { | |
219 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 40, getAddress(), aCanvasHasFocus); | |
220 } | |
221 | |
222 public int TabToTreeOwner(int forward, int[] tookFocus) { | |
223 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 41, getAddress(), forward, tookFocus); | |
224 } | |
225 | |
226 public static final int BUSY_FLAGS_NONE = 0; | |
227 | |
228 public static final int BUSY_FLAGS_BUSY = 1; | |
229 | |
230 public static final int BUSY_FLAGS_BEFORE_PAGE_LOAD = 2; | |
231 | |
232 public static final int BUSY_FLAGS_PAGE_LOADING = 4; | |
233 | |
234 public static final int LOAD_CMD_NORMAL = 1; | |
235 | |
236 public static final int LOAD_CMD_RELOAD = 2; | |
237 | |
238 public static final int LOAD_CMD_HISTORY = 4; | |
239 | |
240 public int GetBusyFlags(int[] aBusyFlags) { | |
241 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 42, getAddress(), aBusyFlags); | |
242 } | |
243 | |
244 public int GetLoadType(int[] aLoadType) { | |
245 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 43, getAddress(), aLoadType); | |
246 } | |
247 | |
248 public int SetLoadType(int aLoadType) { | |
249 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 44, getAddress(), aLoadType); | |
250 } | |
251 | |
252 public int IsBeingDestroyed(int[] _retval) { | |
253 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 45, getAddress(), _retval); | |
254 } | |
255 | |
256 public int GetIsExecutingOnLoadHandler(int[] aIsExecutingOnLoadHandler) { | |
257 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 46, getAddress(), aIsExecutingOnLoadHandler); | |
258 } | |
259 | |
260 public int GetLayoutHistoryState(int /*long*/[] aLayoutHistoryState) { | |
261 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 47, getAddress(), aLayoutHistoryState); | |
262 } | |
263 | |
264 public int SetLayoutHistoryState(int /*long*/ aLayoutHistoryState) { | |
265 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 48, getAddress(), aLayoutHistoryState); | |
266 } | |
267 | |
268 public int GetShouldSaveLayoutState(int[] aShouldSaveLayoutState) { | |
269 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 49, getAddress(), aShouldSaveLayoutState); | |
270 } | |
271 | |
272 public int GetSecurityUI(int /*long*/[] aSecurityUI) { | |
273 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 50, getAddress(), aSecurityUI); | |
274 } | |
275 | |
276 public int SetSecurityUI(int /*long*/ aSecurityUI) { | |
277 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 51, getAddress(), aSecurityUI); | |
278 } | |
279 | |
280 public int SuspendRefreshURIs() { | |
281 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 52, getAddress()); | |
282 } | |
283 | |
284 public int ResumeRefreshURIs() { | |
285 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 53, getAddress()); | |
286 } | |
287 | |
288 public int BeginRestore(int /*long*/ viewer, int top) { | |
289 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 54, getAddress(), viewer, top); | |
290 } | |
291 | |
292 public int FinishRestore() { | |
293 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 55, getAddress()); | |
294 } | |
295 | |
296 public int GetRestoringDocument(int[] aRestoringDocument) { | |
297 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 56, getAddress(), aRestoringDocument); | |
298 } | |
299 | |
300 public int GetUseErrorPages(int[] aUseErrorPages) { | |
301 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 57, getAddress(), aUseErrorPages); | |
302 } | |
303 | |
304 public int SetUseErrorPages(int aUseErrorPages) { | |
305 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 58, getAddress(), aUseErrorPages); | |
306 } | |
307 | |
308 public int GetPreviousTransIndex(int[] aPreviousTransIndex) { | |
309 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 59, getAddress(), aPreviousTransIndex); | |
310 } | |
311 | |
312 public int GetLoadedTransIndex(int[] aLoadedTransIndex) { | |
313 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 60, getAddress(), aLoadedTransIndex); | |
314 } | |
315 | |
316 public int HistoryPurged(int numEntries) { | |
317 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 61, getAddress(), numEntries); | |
318 } | |
319 } |