Mercurial > projects > dwt-mac
comparison dwt/internal/mozilla/nsIDocShell.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 | 5583f8eeee6c |
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; | |
29 | |
30 import dwt.dwthelper.utils; | |
31 | |
32 public class nsIDocShell extends nsISupports { | |
33 | |
34 static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 51; | |
35 | |
36 public static final String NS_IDOCSHELL_IID_STR = | |
37 "69e5de00-7b8b-11d3-af61-00a024ffc08c"; | |
38 | |
39 public static final nsID NS_IDOCSHELL_IID = | |
40 new nsID(NS_IDOCSHELL_IID_STR); | |
41 | |
42 public nsIDocShell(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 int InternalLoad(int /*long*/ aURI, int /*long*/ aReferrer, int /*long*/ aOwner, int aInheritOwner, char[] aWindowTarget, int /*long*/ aPostDataStream, int /*long*/ aHeadersStream, int aLoadFlags, int /*long*/ aSHEntry, int firstParty, int /*long*/[] aDocShell, int /*long*/[] aRequest) { | |
55 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3, getAddress(), aURI, aReferrer, aOwner, aInheritOwner, aWindowTarget, aPostDataStream, aHeadersStream, aLoadFlags, aSHEntry, firstParty, aDocShell, aRequest); | |
56 } | |
57 | |
58 public int CreateLoadInfo(int /*long*/[] loadInfo) { | |
59 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4, getAddress(), loadInfo); | |
60 } | |
61 | |
62 public int PrepareForNewContentModel() { | |
63 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5, getAddress()); | |
64 } | |
65 | |
66 public int SetCurrentURI(int /*long*/ aURI) { | |
67 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 6, getAddress(), aURI); | |
68 } | |
69 | |
70 public int FireUnloadNotification() { | |
71 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 7, getAddress()); | |
72 } | |
73 | |
74 public int GetPresContext(int /*long*/[] aPresContext) { | |
75 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 8, getAddress(), aPresContext); | |
76 } | |
77 | |
78 public int GetPresShell(int /*long*/[] aPresShell) { | |
79 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 9, getAddress(), aPresShell); | |
80 } | |
81 | |
82 public int GetEldestPresShell(int /*long*/[] aEldestPresShell) { | |
83 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 10, getAddress(), aEldestPresShell); | |
84 } | |
85 | |
86 public int GetContentViewer(int /*long*/[] aContentViewer) { | |
87 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 11, getAddress(), aContentViewer); | |
88 } | |
89 | |
90 public int GetChromeEventHandler(int /*long*/[] aChromeEventHandler) { | |
91 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 12, getAddress(), aChromeEventHandler); | |
92 } | |
93 | |
94 public int SetChromeEventHandler(int /*long*/ aChromeEventHandler) { | |
95 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 13, getAddress(), aChromeEventHandler); | |
96 } | |
97 | |
98 public int GetParentURIContentListener(int /*long*/[] aParentURIContentListener) { | |
99 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 14, getAddress(), aParentURIContentListener); | |
100 } | |
101 | |
102 public int SetParentURIContentListener(int /*long*/ aParentURIContentListener) { | |
103 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 15, getAddress(), aParentURIContentListener); | |
104 } | |
105 | |
106 public int GetDocumentCharsetInfo(int /*long*/[] aDocumentCharsetInfo) { | |
107 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 16, getAddress(), aDocumentCharsetInfo); | |
108 } | |
109 | |
110 public int SetDocumentCharsetInfo(int /*long*/ aDocumentCharsetInfo) { | |
111 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 17, getAddress(), aDocumentCharsetInfo); | |
112 } | |
113 | |
114 public int GetAllowPlugins(int[] aAllowPlugins) { | |
115 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 18, getAddress(), aAllowPlugins); | |
116 } | |
117 | |
118 public int SetAllowPlugins(int aAllowPlugins) { | |
119 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 19, getAddress(), aAllowPlugins); | |
120 } | |
121 | |
122 public int GetAllowJavascript(int[] aAllowJavascript) { | |
123 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 20, getAddress(), aAllowJavascript); | |
124 } | |
125 | |
126 public int SetAllowJavascript(int aAllowJavascript) { | |
127 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 21, getAddress(), aAllowJavascript); | |
128 } | |
129 | |
130 public int GetAllowMetaRedirects(int[] aAllowMetaRedirects) { | |
131 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 22, getAddress(), aAllowMetaRedirects); | |
132 } | |
133 | |
134 public int SetAllowMetaRedirects(int aAllowMetaRedirects) { | |
135 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 23, getAddress(), aAllowMetaRedirects); | |
136 } | |
137 | |
138 public int GetAllowSubframes(int[] aAllowSubframes) { | |
139 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 24, getAddress(), aAllowSubframes); | |
140 } | |
141 | |
142 public int SetAllowSubframes(int aAllowSubframes) { | |
143 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 25, getAddress(), aAllowSubframes); | |
144 } | |
145 | |
146 public int GetAllowImages(int[] aAllowImages) { | |
147 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 26, getAddress(), aAllowImages); | |
148 } | |
149 | |
150 public int SetAllowImages(int aAllowImages) { | |
151 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 27, getAddress(), aAllowImages); | |
152 } | |
153 | |
154 public static final int ENUMERATE_FORWARDS = 0; | |
155 | |
156 public static final int ENUMERATE_BACKWARDS = 1; | |
157 | |
158 public int GetDocShellEnumerator(int aItemType, int aDirection, int /*long*/[] _retval) { | |
159 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 28, getAddress(), aItemType, aDirection, _retval); | |
160 } | |
161 | |
162 public static final int APP_TYPE_UNKNOWN = 0; | |
163 | |
164 public static final int APP_TYPE_MAIL = 1; | |
165 | |
166 public int GetAppType(int[] aAppType) { | |
167 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 29, getAddress(), aAppType); | |
168 } | |
169 | |
170 public int SetAppType(int aAppType) { | |
171 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 30, getAddress(), aAppType); | |
172 } | |
173 | |
174 public int GetAllowAuth(int[] aAllowAuth) { | |
175 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 31, getAddress(), aAllowAuth); | |
176 } | |
177 | |
178 public int SetAllowAuth(int aAllowAuth) { | |
179 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 32, getAddress(), aAllowAuth); | |
180 } | |
181 | |
182 public int GetZoom(float[] aZoom) { | |
183 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 33, getAddress(), aZoom); | |
184 } | |
185 | |
186 public int SetZoom(float aZoom) { | |
187 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 34, getAddress(), aZoom); | |
188 } | |
189 | |
190 public int GetMarginWidth(int[] aMarginWidth) { | |
191 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 35, getAddress(), aMarginWidth); | |
192 } | |
193 | |
194 public int SetMarginWidth(int aMarginWidth) { | |
195 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 36, getAddress(), aMarginWidth); | |
196 } | |
197 | |
198 public int GetMarginHeight(int[] aMarginHeight) { | |
199 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 37, getAddress(), aMarginHeight); | |
200 } | |
201 | |
202 public int SetMarginHeight(int aMarginHeight) { | |
203 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 38, getAddress(), aMarginHeight); | |
204 } | |
205 | |
206 public int GetHasFocus(int[] aHasFocus) { | |
207 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 39, getAddress(), aHasFocus); | |
208 } | |
209 | |
210 public int SetHasFocus(int aHasFocus) { | |
211 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 40, getAddress(), aHasFocus); | |
212 } | |
213 | |
214 public int GetCanvasHasFocus(int[] aCanvasHasFocus) { | |
215 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 41, getAddress(), aCanvasHasFocus); | |
216 } | |
217 | |
218 public int SetCanvasHasFocus(int aCanvasHasFocus) { | |
219 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 42, getAddress(), aCanvasHasFocus); | |
220 } | |
221 | |
222 public int TabToTreeOwner(int forward, int[] tookFocus) { | |
223 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 43, 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 + 44, getAddress(), aBusyFlags); | |
242 } | |
243 | |
244 public int GetLoadType(int[] aLoadType) { | |
245 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 45, getAddress(), aLoadType); | |
246 } | |
247 | |
248 public int SetLoadType(int aLoadType) { | |
249 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 46, getAddress(), aLoadType); | |
250 } | |
251 | |
252 public int IsBeingDestroyed(int[] _retval) { | |
253 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 47, getAddress(), _retval); | |
254 } | |
255 | |
256 public int GetIsExecutingOnLoadHandler(int[] aIsExecutingOnLoadHandler) { | |
257 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 48, getAddress(), aIsExecutingOnLoadHandler); | |
258 } | |
259 | |
260 public int GetLayoutHistoryState(int /*long*/[] aLayoutHistoryState) { | |
261 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 49, getAddress(), aLayoutHistoryState); | |
262 } | |
263 | |
264 public int SetLayoutHistoryState(int /*long*/ aLayoutHistoryState) { | |
265 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 50, getAddress(), aLayoutHistoryState); | |
266 } | |
267 | |
268 public int GetShouldSaveLayoutState(int[] aShouldSaveLayoutState) { | |
269 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 51, getAddress(), aShouldSaveLayoutState); | |
270 } | |
271 } |