1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/docshell/base/nsIDocShell.idl
3 : */
4 :
5 : #ifndef __gen_nsIDocShell_h__
6 : #define __gen_nsIDocShell_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_nsIAtom_h__
14 : #include "nsIAtom.h"
15 : #endif
16 :
17 : #include "jspubtd.h"
18 :
19 : /* For IDL files that don't want to include root IDL files. */
20 : #ifndef NS_NO_VTABLE
21 : #define NS_NO_VTABLE
22 : #endif
23 : class nsPresContext;
24 : class nsIPresShell;
25 : struct JSContext;
26 : class nsIURI; /* forward declaration */
27 :
28 : class nsIChannel; /* forward declaration */
29 :
30 : class nsIContentViewer; /* forward declaration */
31 :
32 : class nsIURIContentListener; /* forward declaration */
33 :
34 : class nsIDOMEventTarget; /* forward declaration */
35 :
36 : class nsIDocShellLoadInfo; /* forward declaration */
37 :
38 : class nsIWebNavigation; /* forward declaration */
39 :
40 : class nsISimpleEnumerator; /* forward declaration */
41 :
42 : class nsIInputStream; /* forward declaration */
43 :
44 : class nsIRequest; /* forward declaration */
45 :
46 : class nsISHEntry; /* forward declaration */
47 :
48 : class nsILayoutHistoryState; /* forward declaration */
49 :
50 : class nsISecureBrowserUI; /* forward declaration */
51 :
52 : class nsIDOMStorage; /* forward declaration */
53 :
54 : class nsIPrincipal; /* forward declaration */
55 :
56 : class nsIWebBrowserPrint; /* forward declaration */
57 :
58 : class nsIVariant; /* forward declaration */
59 :
60 :
61 : /* starting interface: nsIDocShell */
62 : #define NS_IDOCSHELL_IID_STR "dbd39c21-5788-4c68-9d97-0fcee289bce1"
63 :
64 : #define NS_IDOCSHELL_IID \
65 : {0xdbd39c21, 0x5788, 0x4c68, \
66 : { 0x9d, 0x97, 0x0f, 0xce, 0xe2, 0x89, 0xbc, 0xe1 }}
67 :
68 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDocShell : public nsISupports {
69 : public:
70 :
71 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOCSHELL_IID)
72 :
73 : /* [noscript] void loadURI (in nsIURI uri, in nsIDocShellLoadInfo loadInfo, in unsigned long aLoadFlags, in boolean firstParty); */
74 : NS_IMETHOD LoadURI(nsIURI *uri, nsIDocShellLoadInfo *loadInfo, PRUint32 aLoadFlags, bool firstParty) = 0;
75 :
76 : /* [noscript] void loadStream (in nsIInputStream aStream, in nsIURI aURI, in ACString aContentType, in ACString aContentCharset, in nsIDocShellLoadInfo aLoadInfo); */
77 : NS_IMETHOD LoadStream(nsIInputStream *aStream, nsIURI *aURI, const nsACString & aContentType, const nsACString & aContentCharset, nsIDocShellLoadInfo *aLoadInfo) = 0;
78 :
79 : enum {
80 : INTERNAL_LOAD_FLAGS_NONE = 0,
81 : INTERNAL_LOAD_FLAGS_INHERIT_OWNER = 1,
82 : INTERNAL_LOAD_FLAGS_DONT_SEND_REFERRER = 2,
83 : INTERNAL_LOAD_FLAGS_ALLOW_THIRD_PARTY_FIXUP = 4,
84 : INTERNAL_LOAD_FLAGS_FIRST_LOAD = 8,
85 : INTERNAL_LOAD_FLAGS_BYPASS_CLASSIFIER = 16,
86 : INTERNAL_LOAD_FLAGS_FORCE_ALLOW_COOKIES = 32
87 : };
88 :
89 : /* [noscript] void internalLoad (in nsIURI aURI, in nsIURI aReferrer, in nsISupports aOwner, in PRUint32 aFlags, in wstring aWindowTarget, in string aTypeHint, in nsIInputStream aPostDataStream, in nsIInputStream aHeadersStream, in unsigned long aLoadFlags, in nsISHEntry aSHEntry, in boolean firstParty, out nsIDocShell aDocShell, out nsIRequest aRequest); */
90 : NS_IMETHOD InternalLoad(nsIURI *aURI, nsIURI *aReferrer, nsISupports *aOwner, PRUint32 aFlags, const PRUnichar * aWindowTarget, const char * aTypeHint, nsIInputStream *aPostDataStream, nsIInputStream *aHeadersStream, PRUint32 aLoadFlags, nsISHEntry *aSHEntry, bool firstParty, nsIDocShell * *aDocShell NS_OUTPARAM, nsIRequest * *aRequest NS_OUTPARAM) = 0;
91 :
92 : /* [implicit_jscontext] void addState (in nsIVariant aData, in DOMString aTitle, in DOMString aURL, in boolean aReplace); */
93 : NS_SCRIPTABLE NS_IMETHOD AddState(nsIVariant *aData, const nsAString & aTitle, const nsAString & aURL, bool aReplace, JSContext* cx) = 0;
94 :
95 : /* void createLoadInfo (out nsIDocShellLoadInfo loadInfo); */
96 : NS_SCRIPTABLE NS_IMETHOD CreateLoadInfo(nsIDocShellLoadInfo * *loadInfo NS_OUTPARAM) = 0;
97 :
98 : /* void prepareForNewContentModel (); */
99 : NS_SCRIPTABLE NS_IMETHOD PrepareForNewContentModel(void) = 0;
100 :
101 : /* void setCurrentURI (in nsIURI aURI); */
102 : NS_SCRIPTABLE NS_IMETHOD SetCurrentURI(nsIURI *aURI) = 0;
103 :
104 : /* [noscript] void firePageHideNotification (in boolean isUnload); */
105 : NS_IMETHOD FirePageHideNotification(bool isUnload) = 0;
106 :
107 : /* [noscript] readonly attribute nsPresContext presContext; */
108 : NS_IMETHOD GetPresContext(nsPresContext **aPresContext) = 0;
109 :
110 : /* [noscript] readonly attribute nsIPresShell presShell; */
111 : NS_IMETHOD GetPresShell(nsIPresShell **aPresShell) = 0;
112 :
113 : /* [noscript] readonly attribute nsIPresShell eldestPresShell; */
114 : NS_IMETHOD GetEldestPresShell(nsIPresShell **aEldestPresShell) = 0;
115 :
116 : /* readonly attribute nsIContentViewer contentViewer; */
117 : NS_SCRIPTABLE NS_IMETHOD GetContentViewer(nsIContentViewer * *aContentViewer) = 0;
118 :
119 : /* attribute nsIDOMEventTarget chromeEventHandler; */
120 : NS_SCRIPTABLE NS_IMETHOD GetChromeEventHandler(nsIDOMEventTarget * *aChromeEventHandler) = 0;
121 : NS_SCRIPTABLE NS_IMETHOD SetChromeEventHandler(nsIDOMEventTarget *aChromeEventHandler) = 0;
122 :
123 : /* attribute boolean allowPlugins; */
124 : NS_SCRIPTABLE NS_IMETHOD GetAllowPlugins(bool *aAllowPlugins) = 0;
125 : NS_SCRIPTABLE NS_IMETHOD SetAllowPlugins(bool aAllowPlugins) = 0;
126 :
127 : /* attribute boolean allowJavascript; */
128 : NS_SCRIPTABLE NS_IMETHOD GetAllowJavascript(bool *aAllowJavascript) = 0;
129 : NS_SCRIPTABLE NS_IMETHOD SetAllowJavascript(bool aAllowJavascript) = 0;
130 :
131 : /* attribute boolean allowMetaRedirects; */
132 : NS_SCRIPTABLE NS_IMETHOD GetAllowMetaRedirects(bool *aAllowMetaRedirects) = 0;
133 : NS_SCRIPTABLE NS_IMETHOD SetAllowMetaRedirects(bool aAllowMetaRedirects) = 0;
134 :
135 : /* attribute boolean allowSubframes; */
136 : NS_SCRIPTABLE NS_IMETHOD GetAllowSubframes(bool *aAllowSubframes) = 0;
137 : NS_SCRIPTABLE NS_IMETHOD SetAllowSubframes(bool aAllowSubframes) = 0;
138 :
139 : /* attribute boolean allowImages; */
140 : NS_SCRIPTABLE NS_IMETHOD GetAllowImages(bool *aAllowImages) = 0;
141 : NS_SCRIPTABLE NS_IMETHOD SetAllowImages(bool aAllowImages) = 0;
142 :
143 : /* attribute boolean allowDNSPrefetch; */
144 : NS_SCRIPTABLE NS_IMETHOD GetAllowDNSPrefetch(bool *aAllowDNSPrefetch) = 0;
145 : NS_SCRIPTABLE NS_IMETHOD SetAllowDNSPrefetch(bool aAllowDNSPrefetch) = 0;
146 :
147 : /* attribute boolean allowWindowControl; */
148 : NS_SCRIPTABLE NS_IMETHOD GetAllowWindowControl(bool *aAllowWindowControl) = 0;
149 : NS_SCRIPTABLE NS_IMETHOD SetAllowWindowControl(bool aAllowWindowControl) = 0;
150 :
151 : enum {
152 : ENUMERATE_FORWARDS = 0,
153 : ENUMERATE_BACKWARDS = 1
154 : };
155 :
156 : /* nsISimpleEnumerator getDocShellEnumerator (in long aItemType, in long aDirection); */
157 : NS_SCRIPTABLE NS_IMETHOD GetDocShellEnumerator(PRInt32 aItemType, PRInt32 aDirection, nsISimpleEnumerator * *_retval NS_OUTPARAM) = 0;
158 :
159 : enum {
160 : APP_TYPE_UNKNOWN = 0U,
161 : APP_TYPE_MAIL = 1U,
162 : APP_TYPE_EDITOR = 2U
163 : };
164 :
165 : /* attribute unsigned long appType; */
166 : NS_SCRIPTABLE NS_IMETHOD GetAppType(PRUint32 *aAppType) = 0;
167 : NS_SCRIPTABLE NS_IMETHOD SetAppType(PRUint32 aAppType) = 0;
168 :
169 : /* attribute boolean allowAuth; */
170 : NS_SCRIPTABLE NS_IMETHOD GetAllowAuth(bool *aAllowAuth) = 0;
171 : NS_SCRIPTABLE NS_IMETHOD SetAllowAuth(bool aAllowAuth) = 0;
172 :
173 : /* attribute float zoom; */
174 : NS_SCRIPTABLE NS_IMETHOD GetZoom(float *aZoom) = 0;
175 : NS_SCRIPTABLE NS_IMETHOD SetZoom(float aZoom) = 0;
176 :
177 : /* attribute long marginWidth; */
178 : NS_SCRIPTABLE NS_IMETHOD GetMarginWidth(PRInt32 *aMarginWidth) = 0;
179 : NS_SCRIPTABLE NS_IMETHOD SetMarginWidth(PRInt32 aMarginWidth) = 0;
180 :
181 : /* attribute long marginHeight; */
182 : NS_SCRIPTABLE NS_IMETHOD GetMarginHeight(PRInt32 *aMarginHeight) = 0;
183 : NS_SCRIPTABLE NS_IMETHOD SetMarginHeight(PRInt32 aMarginHeight) = 0;
184 :
185 : /* void tabToTreeOwner (in boolean forward, out boolean tookFocus); */
186 : NS_SCRIPTABLE NS_IMETHOD TabToTreeOwner(bool forward, bool *tookFocus NS_OUTPARAM) = 0;
187 :
188 : enum {
189 : BUSY_FLAGS_NONE = 0U,
190 : BUSY_FLAGS_BUSY = 1U,
191 : BUSY_FLAGS_BEFORE_PAGE_LOAD = 2U,
192 : BUSY_FLAGS_PAGE_LOADING = 4U,
193 : LOAD_CMD_NORMAL = 1U,
194 : LOAD_CMD_RELOAD = 2U,
195 : LOAD_CMD_HISTORY = 4U,
196 : LOAD_CMD_PUSHSTATE = 8U
197 : };
198 :
199 : /* readonly attribute unsigned long busyFlags; */
200 : NS_SCRIPTABLE NS_IMETHOD GetBusyFlags(PRUint32 *aBusyFlags) = 0;
201 :
202 : /* attribute unsigned long loadType; */
203 : NS_SCRIPTABLE NS_IMETHOD GetLoadType(PRUint32 *aLoadType) = 0;
204 : NS_SCRIPTABLE NS_IMETHOD SetLoadType(PRUint32 aLoadType) = 0;
205 :
206 : /* boolean isBeingDestroyed (); */
207 : NS_SCRIPTABLE NS_IMETHOD IsBeingDestroyed(bool *_retval NS_OUTPARAM) = 0;
208 :
209 : /* readonly attribute boolean isExecutingOnLoadHandler; */
210 : NS_SCRIPTABLE NS_IMETHOD GetIsExecutingOnLoadHandler(bool *aIsExecutingOnLoadHandler) = 0;
211 :
212 : /* attribute nsILayoutHistoryState layoutHistoryState; */
213 : NS_SCRIPTABLE NS_IMETHOD GetLayoutHistoryState(nsILayoutHistoryState * *aLayoutHistoryState) = 0;
214 : NS_SCRIPTABLE NS_IMETHOD SetLayoutHistoryState(nsILayoutHistoryState *aLayoutHistoryState) = 0;
215 :
216 : /* readonly attribute boolean shouldSaveLayoutState; */
217 : NS_SCRIPTABLE NS_IMETHOD GetShouldSaveLayoutState(bool *aShouldSaveLayoutState) = 0;
218 :
219 : /* attribute nsISecureBrowserUI securityUI; */
220 : NS_SCRIPTABLE NS_IMETHOD GetSecurityUI(nsISecureBrowserUI * *aSecurityUI) = 0;
221 : NS_SCRIPTABLE NS_IMETHOD SetSecurityUI(nsISecureBrowserUI *aSecurityUI) = 0;
222 :
223 : /* void suspendRefreshURIs (); */
224 : NS_SCRIPTABLE NS_IMETHOD SuspendRefreshURIs(void) = 0;
225 :
226 : /* void resumeRefreshURIs (); */
227 : NS_SCRIPTABLE NS_IMETHOD ResumeRefreshURIs(void) = 0;
228 :
229 : /* void beginRestore (in nsIContentViewer viewer, in boolean top); */
230 : NS_SCRIPTABLE NS_IMETHOD BeginRestore(nsIContentViewer *viewer, bool top) = 0;
231 :
232 : /* void finishRestore (); */
233 : NS_SCRIPTABLE NS_IMETHOD FinishRestore(void) = 0;
234 :
235 : /* readonly attribute boolean restoringDocument; */
236 : NS_SCRIPTABLE NS_IMETHOD GetRestoringDocument(bool *aRestoringDocument) = 0;
237 :
238 : /* attribute boolean useErrorPages; */
239 : NS_SCRIPTABLE NS_IMETHOD GetUseErrorPages(bool *aUseErrorPages) = 0;
240 : NS_SCRIPTABLE NS_IMETHOD SetUseErrorPages(bool aUseErrorPages) = 0;
241 :
242 : /* readonly attribute long previousTransIndex; */
243 : NS_SCRIPTABLE NS_IMETHOD GetPreviousTransIndex(PRInt32 *aPreviousTransIndex) = 0;
244 :
245 : /* readonly attribute long loadedTransIndex; */
246 : NS_SCRIPTABLE NS_IMETHOD GetLoadedTransIndex(PRInt32 *aLoadedTransIndex) = 0;
247 :
248 : /* void historyPurged (in long numEntries); */
249 : NS_SCRIPTABLE NS_IMETHOD HistoryPurged(PRInt32 numEntries) = 0;
250 :
251 : /* nsIDOMStorage getSessionStorageForURI (in nsIURI uri, in DOMString documentURI); */
252 : NS_SCRIPTABLE NS_IMETHOD GetSessionStorageForURI(nsIURI *uri, const nsAString & documentURI, nsIDOMStorage * *_retval NS_OUTPARAM) = 0;
253 :
254 : /* nsIDOMStorage getSessionStorageForPrincipal (in nsIPrincipal principal, in DOMString documentURI, in boolean create); */
255 : NS_SCRIPTABLE NS_IMETHOD GetSessionStorageForPrincipal(nsIPrincipal *principal, const nsAString & documentURI, bool create, nsIDOMStorage * *_retval NS_OUTPARAM) = 0;
256 :
257 : /* void addSessionStorage (in nsIPrincipal principal, in nsIDOMStorage storage); */
258 : NS_SCRIPTABLE NS_IMETHOD AddSessionStorage(nsIPrincipal *principal, nsIDOMStorage *storage) = 0;
259 :
260 : /* readonly attribute nsIChannel currentDocumentChannel; */
261 : NS_SCRIPTABLE NS_IMETHOD GetCurrentDocumentChannel(nsIChannel * *aCurrentDocumentChannel) = 0;
262 :
263 : /* [noscript] void setChildOffset (in unsigned long offset); */
264 : NS_IMETHOD SetChildOffset(PRUint32 offset) = 0;
265 :
266 : /* readonly attribute boolean isInUnload; */
267 : NS_SCRIPTABLE NS_IMETHOD GetIsInUnload(bool *aIsInUnload) = 0;
268 :
269 : /* readonly attribute boolean channelIsUnsafe; */
270 : NS_SCRIPTABLE NS_IMETHOD GetChannelIsUnsafe(bool *aChannelIsUnsafe) = 0;
271 :
272 : /* [noscript,notxpcom] void DetachEditorFromWindow (); */
273 : NS_IMETHOD_(void) DetachEditorFromWindow(void) = 0;
274 :
275 : /* attribute boolean isOffScreenBrowser; */
276 : NS_SCRIPTABLE NS_IMETHOD GetIsOffScreenBrowser(bool *aIsOffScreenBrowser) = 0;
277 : NS_SCRIPTABLE NS_IMETHOD SetIsOffScreenBrowser(bool aIsOffScreenBrowser) = 0;
278 :
279 : /* readonly attribute nsIWebBrowserPrint printPreview; */
280 : NS_SCRIPTABLE NS_IMETHOD GetPrintPreview(nsIWebBrowserPrint * *aPrintPreview) = 0;
281 :
282 : /* readonly attribute boolean canExecuteScripts; */
283 : NS_SCRIPTABLE NS_IMETHOD GetCanExecuteScripts(bool *aCanExecuteScripts) = 0;
284 :
285 : /* attribute boolean isActive; */
286 : NS_SCRIPTABLE NS_IMETHOD GetIsActive(bool *aIsActive) = 0;
287 : NS_SCRIPTABLE NS_IMETHOD SetIsActive(bool aIsActive) = 0;
288 :
289 : /* readonly attribute unsigned long long historyID; */
290 : NS_SCRIPTABLE NS_IMETHOD GetHistoryID(PRUint64 *aHistoryID) = 0;
291 :
292 : /* attribute boolean isAppTab; */
293 : NS_SCRIPTABLE NS_IMETHOD GetIsAppTab(bool *aIsAppTab) = 0;
294 : NS_SCRIPTABLE NS_IMETHOD SetIsAppTab(bool aIsAppTab) = 0;
295 :
296 : /* void createAboutBlankContentViewer (in nsIPrincipal aPrincipal); */
297 : NS_SCRIPTABLE NS_IMETHOD CreateAboutBlankContentViewer(nsIPrincipal *aPrincipal) = 0;
298 :
299 : /* attribute string charset; */
300 : NS_SCRIPTABLE NS_IMETHOD GetCharset(char * *aCharset) = 0;
301 : NS_SCRIPTABLE NS_IMETHOD SetCharset(const char * aCharset) = 0;
302 :
303 : /* attribute nsIAtom forcedCharset; */
304 : NS_SCRIPTABLE NS_IMETHOD GetForcedCharset(nsIAtom * *aForcedCharset) = 0;
305 : NS_SCRIPTABLE NS_IMETHOD SetForcedCharset(nsIAtom *aForcedCharset) = 0;
306 :
307 : /* attribute nsIAtom parentCharset; */
308 : NS_SCRIPTABLE NS_IMETHOD GetParentCharset(nsIAtom * *aParentCharset) = 0;
309 : NS_SCRIPTABLE NS_IMETHOD SetParentCharset(nsIAtom *aParentCharset) = 0;
310 :
311 : /* attribute PRInt32 parentCharsetSource; */
312 : NS_SCRIPTABLE NS_IMETHOD GetParentCharsetSource(PRInt32 *aParentCharsetSource) = 0;
313 : NS_SCRIPTABLE NS_IMETHOD SetParentCharsetSource(PRInt32 aParentCharsetSource) = 0;
314 :
315 : /* attribute bool isBrowserFrame; */
316 : NS_SCRIPTABLE NS_IMETHOD GetIsBrowserFrame(bool *aIsBrowserFrame) = 0;
317 : NS_SCRIPTABLE NS_IMETHOD SetIsBrowserFrame(bool aIsBrowserFrame) = 0;
318 :
319 : };
320 :
321 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDocShell, NS_IDOCSHELL_IID)
322 :
323 : /* Use this macro when declaring classes that implement this interface. */
324 : #define NS_DECL_NSIDOCSHELL \
325 : NS_IMETHOD LoadURI(nsIURI *uri, nsIDocShellLoadInfo *loadInfo, PRUint32 aLoadFlags, bool firstParty); \
326 : NS_IMETHOD LoadStream(nsIInputStream *aStream, nsIURI *aURI, const nsACString & aContentType, const nsACString & aContentCharset, nsIDocShellLoadInfo *aLoadInfo); \
327 : NS_IMETHOD InternalLoad(nsIURI *aURI, nsIURI *aReferrer, nsISupports *aOwner, PRUint32 aFlags, const PRUnichar * aWindowTarget, const char * aTypeHint, nsIInputStream *aPostDataStream, nsIInputStream *aHeadersStream, PRUint32 aLoadFlags, nsISHEntry *aSHEntry, bool firstParty, nsIDocShell * *aDocShell NS_OUTPARAM, nsIRequest * *aRequest NS_OUTPARAM); \
328 : NS_SCRIPTABLE NS_IMETHOD AddState(nsIVariant *aData, const nsAString & aTitle, const nsAString & aURL, bool aReplace, JSContext* cx); \
329 : NS_SCRIPTABLE NS_IMETHOD CreateLoadInfo(nsIDocShellLoadInfo * *loadInfo NS_OUTPARAM); \
330 : NS_SCRIPTABLE NS_IMETHOD PrepareForNewContentModel(void); \
331 : NS_SCRIPTABLE NS_IMETHOD SetCurrentURI(nsIURI *aURI); \
332 : NS_IMETHOD FirePageHideNotification(bool isUnload); \
333 : NS_IMETHOD GetPresContext(nsPresContext **aPresContext); \
334 : NS_IMETHOD GetPresShell(nsIPresShell **aPresShell); \
335 : NS_IMETHOD GetEldestPresShell(nsIPresShell **aEldestPresShell); \
336 : NS_SCRIPTABLE NS_IMETHOD GetContentViewer(nsIContentViewer * *aContentViewer); \
337 : NS_SCRIPTABLE NS_IMETHOD GetChromeEventHandler(nsIDOMEventTarget * *aChromeEventHandler); \
338 : NS_SCRIPTABLE NS_IMETHOD SetChromeEventHandler(nsIDOMEventTarget *aChromeEventHandler); \
339 : NS_SCRIPTABLE NS_IMETHOD GetAllowPlugins(bool *aAllowPlugins); \
340 : NS_SCRIPTABLE NS_IMETHOD SetAllowPlugins(bool aAllowPlugins); \
341 : NS_SCRIPTABLE NS_IMETHOD GetAllowJavascript(bool *aAllowJavascript); \
342 : NS_SCRIPTABLE NS_IMETHOD SetAllowJavascript(bool aAllowJavascript); \
343 : NS_SCRIPTABLE NS_IMETHOD GetAllowMetaRedirects(bool *aAllowMetaRedirects); \
344 : NS_SCRIPTABLE NS_IMETHOD SetAllowMetaRedirects(bool aAllowMetaRedirects); \
345 : NS_SCRIPTABLE NS_IMETHOD GetAllowSubframes(bool *aAllowSubframes); \
346 : NS_SCRIPTABLE NS_IMETHOD SetAllowSubframes(bool aAllowSubframes); \
347 : NS_SCRIPTABLE NS_IMETHOD GetAllowImages(bool *aAllowImages); \
348 : NS_SCRIPTABLE NS_IMETHOD SetAllowImages(bool aAllowImages); \
349 : NS_SCRIPTABLE NS_IMETHOD GetAllowDNSPrefetch(bool *aAllowDNSPrefetch); \
350 : NS_SCRIPTABLE NS_IMETHOD SetAllowDNSPrefetch(bool aAllowDNSPrefetch); \
351 : NS_SCRIPTABLE NS_IMETHOD GetAllowWindowControl(bool *aAllowWindowControl); \
352 : NS_SCRIPTABLE NS_IMETHOD SetAllowWindowControl(bool aAllowWindowControl); \
353 : NS_SCRIPTABLE NS_IMETHOD GetDocShellEnumerator(PRInt32 aItemType, PRInt32 aDirection, nsISimpleEnumerator * *_retval NS_OUTPARAM); \
354 : NS_SCRIPTABLE NS_IMETHOD GetAppType(PRUint32 *aAppType); \
355 : NS_SCRIPTABLE NS_IMETHOD SetAppType(PRUint32 aAppType); \
356 : NS_SCRIPTABLE NS_IMETHOD GetAllowAuth(bool *aAllowAuth); \
357 : NS_SCRIPTABLE NS_IMETHOD SetAllowAuth(bool aAllowAuth); \
358 : NS_SCRIPTABLE NS_IMETHOD GetZoom(float *aZoom); \
359 : NS_SCRIPTABLE NS_IMETHOD SetZoom(float aZoom); \
360 : NS_SCRIPTABLE NS_IMETHOD GetMarginWidth(PRInt32 *aMarginWidth); \
361 : NS_SCRIPTABLE NS_IMETHOD SetMarginWidth(PRInt32 aMarginWidth); \
362 : NS_SCRIPTABLE NS_IMETHOD GetMarginHeight(PRInt32 *aMarginHeight); \
363 : NS_SCRIPTABLE NS_IMETHOD SetMarginHeight(PRInt32 aMarginHeight); \
364 : NS_SCRIPTABLE NS_IMETHOD TabToTreeOwner(bool forward, bool *tookFocus NS_OUTPARAM); \
365 : NS_SCRIPTABLE NS_IMETHOD GetBusyFlags(PRUint32 *aBusyFlags); \
366 : NS_SCRIPTABLE NS_IMETHOD GetLoadType(PRUint32 *aLoadType); \
367 : NS_SCRIPTABLE NS_IMETHOD SetLoadType(PRUint32 aLoadType); \
368 : NS_SCRIPTABLE NS_IMETHOD IsBeingDestroyed(bool *_retval NS_OUTPARAM); \
369 : NS_SCRIPTABLE NS_IMETHOD GetIsExecutingOnLoadHandler(bool *aIsExecutingOnLoadHandler); \
370 : NS_SCRIPTABLE NS_IMETHOD GetLayoutHistoryState(nsILayoutHistoryState * *aLayoutHistoryState); \
371 : NS_SCRIPTABLE NS_IMETHOD SetLayoutHistoryState(nsILayoutHistoryState *aLayoutHistoryState); \
372 : NS_SCRIPTABLE NS_IMETHOD GetShouldSaveLayoutState(bool *aShouldSaveLayoutState); \
373 : NS_SCRIPTABLE NS_IMETHOD GetSecurityUI(nsISecureBrowserUI * *aSecurityUI); \
374 : NS_SCRIPTABLE NS_IMETHOD SetSecurityUI(nsISecureBrowserUI *aSecurityUI); \
375 : NS_SCRIPTABLE NS_IMETHOD SuspendRefreshURIs(void); \
376 : NS_SCRIPTABLE NS_IMETHOD ResumeRefreshURIs(void); \
377 : NS_SCRIPTABLE NS_IMETHOD BeginRestore(nsIContentViewer *viewer, bool top); \
378 : NS_SCRIPTABLE NS_IMETHOD FinishRestore(void); \
379 : NS_SCRIPTABLE NS_IMETHOD GetRestoringDocument(bool *aRestoringDocument); \
380 : NS_SCRIPTABLE NS_IMETHOD GetUseErrorPages(bool *aUseErrorPages); \
381 : NS_SCRIPTABLE NS_IMETHOD SetUseErrorPages(bool aUseErrorPages); \
382 : NS_SCRIPTABLE NS_IMETHOD GetPreviousTransIndex(PRInt32 *aPreviousTransIndex); \
383 : NS_SCRIPTABLE NS_IMETHOD GetLoadedTransIndex(PRInt32 *aLoadedTransIndex); \
384 : NS_SCRIPTABLE NS_IMETHOD HistoryPurged(PRInt32 numEntries); \
385 : NS_SCRIPTABLE NS_IMETHOD GetSessionStorageForURI(nsIURI *uri, const nsAString & documentURI, nsIDOMStorage * *_retval NS_OUTPARAM); \
386 : NS_SCRIPTABLE NS_IMETHOD GetSessionStorageForPrincipal(nsIPrincipal *principal, const nsAString & documentURI, bool create, nsIDOMStorage * *_retval NS_OUTPARAM); \
387 : NS_SCRIPTABLE NS_IMETHOD AddSessionStorage(nsIPrincipal *principal, nsIDOMStorage *storage); \
388 : NS_SCRIPTABLE NS_IMETHOD GetCurrentDocumentChannel(nsIChannel * *aCurrentDocumentChannel); \
389 : NS_IMETHOD SetChildOffset(PRUint32 offset); \
390 : NS_SCRIPTABLE NS_IMETHOD GetIsInUnload(bool *aIsInUnload); \
391 : NS_SCRIPTABLE NS_IMETHOD GetChannelIsUnsafe(bool *aChannelIsUnsafe); \
392 : NS_IMETHOD_(void) DetachEditorFromWindow(void); \
393 : NS_SCRIPTABLE NS_IMETHOD GetIsOffScreenBrowser(bool *aIsOffScreenBrowser); \
394 : NS_SCRIPTABLE NS_IMETHOD SetIsOffScreenBrowser(bool aIsOffScreenBrowser); \
395 : NS_SCRIPTABLE NS_IMETHOD GetPrintPreview(nsIWebBrowserPrint * *aPrintPreview); \
396 : NS_SCRIPTABLE NS_IMETHOD GetCanExecuteScripts(bool *aCanExecuteScripts); \
397 : NS_SCRIPTABLE NS_IMETHOD GetIsActive(bool *aIsActive); \
398 : NS_SCRIPTABLE NS_IMETHOD SetIsActive(bool aIsActive); \
399 : NS_SCRIPTABLE NS_IMETHOD GetHistoryID(PRUint64 *aHistoryID); \
400 : NS_SCRIPTABLE NS_IMETHOD GetIsAppTab(bool *aIsAppTab); \
401 : NS_SCRIPTABLE NS_IMETHOD SetIsAppTab(bool aIsAppTab); \
402 : NS_SCRIPTABLE NS_IMETHOD CreateAboutBlankContentViewer(nsIPrincipal *aPrincipal); \
403 : NS_SCRIPTABLE NS_IMETHOD GetCharset(char * *aCharset); \
404 : NS_SCRIPTABLE NS_IMETHOD SetCharset(const char * aCharset); \
405 : NS_SCRIPTABLE NS_IMETHOD GetForcedCharset(nsIAtom * *aForcedCharset); \
406 : NS_SCRIPTABLE NS_IMETHOD SetForcedCharset(nsIAtom *aForcedCharset); \
407 : NS_SCRIPTABLE NS_IMETHOD GetParentCharset(nsIAtom * *aParentCharset); \
408 : NS_SCRIPTABLE NS_IMETHOD SetParentCharset(nsIAtom *aParentCharset); \
409 : NS_SCRIPTABLE NS_IMETHOD GetParentCharsetSource(PRInt32 *aParentCharsetSource); \
410 : NS_SCRIPTABLE NS_IMETHOD SetParentCharsetSource(PRInt32 aParentCharsetSource); \
411 : NS_SCRIPTABLE NS_IMETHOD GetIsBrowserFrame(bool *aIsBrowserFrame); \
412 : NS_SCRIPTABLE NS_IMETHOD SetIsBrowserFrame(bool aIsBrowserFrame);
413 :
414 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
415 : #define NS_FORWARD_NSIDOCSHELL(_to) \
416 : NS_IMETHOD LoadURI(nsIURI *uri, nsIDocShellLoadInfo *loadInfo, PRUint32 aLoadFlags, bool firstParty) { return _to LoadURI(uri, loadInfo, aLoadFlags, firstParty); } \
417 : NS_IMETHOD LoadStream(nsIInputStream *aStream, nsIURI *aURI, const nsACString & aContentType, const nsACString & aContentCharset, nsIDocShellLoadInfo *aLoadInfo) { return _to LoadStream(aStream, aURI, aContentType, aContentCharset, aLoadInfo); } \
418 : NS_IMETHOD InternalLoad(nsIURI *aURI, nsIURI *aReferrer, nsISupports *aOwner, PRUint32 aFlags, const PRUnichar * aWindowTarget, const char * aTypeHint, nsIInputStream *aPostDataStream, nsIInputStream *aHeadersStream, PRUint32 aLoadFlags, nsISHEntry *aSHEntry, bool firstParty, nsIDocShell * *aDocShell NS_OUTPARAM, nsIRequest * *aRequest NS_OUTPARAM) { return _to InternalLoad(aURI, aReferrer, aOwner, aFlags, aWindowTarget, aTypeHint, aPostDataStream, aHeadersStream, aLoadFlags, aSHEntry, firstParty, aDocShell, aRequest); } \
419 : NS_SCRIPTABLE NS_IMETHOD AddState(nsIVariant *aData, const nsAString & aTitle, const nsAString & aURL, bool aReplace, JSContext* cx) { return _to AddState(aData, aTitle, aURL, aReplace, cx); } \
420 : NS_SCRIPTABLE NS_IMETHOD CreateLoadInfo(nsIDocShellLoadInfo * *loadInfo NS_OUTPARAM) { return _to CreateLoadInfo(loadInfo); } \
421 : NS_SCRIPTABLE NS_IMETHOD PrepareForNewContentModel(void) { return _to PrepareForNewContentModel(); } \
422 : NS_SCRIPTABLE NS_IMETHOD SetCurrentURI(nsIURI *aURI) { return _to SetCurrentURI(aURI); } \
423 : NS_IMETHOD FirePageHideNotification(bool isUnload) { return _to FirePageHideNotification(isUnload); } \
424 : NS_IMETHOD GetPresContext(nsPresContext **aPresContext) { return _to GetPresContext(aPresContext); } \
425 : NS_IMETHOD GetPresShell(nsIPresShell **aPresShell) { return _to GetPresShell(aPresShell); } \
426 : NS_IMETHOD GetEldestPresShell(nsIPresShell **aEldestPresShell) { return _to GetEldestPresShell(aEldestPresShell); } \
427 : NS_SCRIPTABLE NS_IMETHOD GetContentViewer(nsIContentViewer * *aContentViewer) { return _to GetContentViewer(aContentViewer); } \
428 : NS_SCRIPTABLE NS_IMETHOD GetChromeEventHandler(nsIDOMEventTarget * *aChromeEventHandler) { return _to GetChromeEventHandler(aChromeEventHandler); } \
429 : NS_SCRIPTABLE NS_IMETHOD SetChromeEventHandler(nsIDOMEventTarget *aChromeEventHandler) { return _to SetChromeEventHandler(aChromeEventHandler); } \
430 : NS_SCRIPTABLE NS_IMETHOD GetAllowPlugins(bool *aAllowPlugins) { return _to GetAllowPlugins(aAllowPlugins); } \
431 : NS_SCRIPTABLE NS_IMETHOD SetAllowPlugins(bool aAllowPlugins) { return _to SetAllowPlugins(aAllowPlugins); } \
432 : NS_SCRIPTABLE NS_IMETHOD GetAllowJavascript(bool *aAllowJavascript) { return _to GetAllowJavascript(aAllowJavascript); } \
433 : NS_SCRIPTABLE NS_IMETHOD SetAllowJavascript(bool aAllowJavascript) { return _to SetAllowJavascript(aAllowJavascript); } \
434 : NS_SCRIPTABLE NS_IMETHOD GetAllowMetaRedirects(bool *aAllowMetaRedirects) { return _to GetAllowMetaRedirects(aAllowMetaRedirects); } \
435 : NS_SCRIPTABLE NS_IMETHOD SetAllowMetaRedirects(bool aAllowMetaRedirects) { return _to SetAllowMetaRedirects(aAllowMetaRedirects); } \
436 : NS_SCRIPTABLE NS_IMETHOD GetAllowSubframes(bool *aAllowSubframes) { return _to GetAllowSubframes(aAllowSubframes); } \
437 : NS_SCRIPTABLE NS_IMETHOD SetAllowSubframes(bool aAllowSubframes) { return _to SetAllowSubframes(aAllowSubframes); } \
438 : NS_SCRIPTABLE NS_IMETHOD GetAllowImages(bool *aAllowImages) { return _to GetAllowImages(aAllowImages); } \
439 : NS_SCRIPTABLE NS_IMETHOD SetAllowImages(bool aAllowImages) { return _to SetAllowImages(aAllowImages); } \
440 : NS_SCRIPTABLE NS_IMETHOD GetAllowDNSPrefetch(bool *aAllowDNSPrefetch) { return _to GetAllowDNSPrefetch(aAllowDNSPrefetch); } \
441 : NS_SCRIPTABLE NS_IMETHOD SetAllowDNSPrefetch(bool aAllowDNSPrefetch) { return _to SetAllowDNSPrefetch(aAllowDNSPrefetch); } \
442 : NS_SCRIPTABLE NS_IMETHOD GetAllowWindowControl(bool *aAllowWindowControl) { return _to GetAllowWindowControl(aAllowWindowControl); } \
443 : NS_SCRIPTABLE NS_IMETHOD SetAllowWindowControl(bool aAllowWindowControl) { return _to SetAllowWindowControl(aAllowWindowControl); } \
444 : NS_SCRIPTABLE NS_IMETHOD GetDocShellEnumerator(PRInt32 aItemType, PRInt32 aDirection, nsISimpleEnumerator * *_retval NS_OUTPARAM) { return _to GetDocShellEnumerator(aItemType, aDirection, _retval); } \
445 : NS_SCRIPTABLE NS_IMETHOD GetAppType(PRUint32 *aAppType) { return _to GetAppType(aAppType); } \
446 : NS_SCRIPTABLE NS_IMETHOD SetAppType(PRUint32 aAppType) { return _to SetAppType(aAppType); } \
447 : NS_SCRIPTABLE NS_IMETHOD GetAllowAuth(bool *aAllowAuth) { return _to GetAllowAuth(aAllowAuth); } \
448 : NS_SCRIPTABLE NS_IMETHOD SetAllowAuth(bool aAllowAuth) { return _to SetAllowAuth(aAllowAuth); } \
449 : NS_SCRIPTABLE NS_IMETHOD GetZoom(float *aZoom) { return _to GetZoom(aZoom); } \
450 : NS_SCRIPTABLE NS_IMETHOD SetZoom(float aZoom) { return _to SetZoom(aZoom); } \
451 : NS_SCRIPTABLE NS_IMETHOD GetMarginWidth(PRInt32 *aMarginWidth) { return _to GetMarginWidth(aMarginWidth); } \
452 : NS_SCRIPTABLE NS_IMETHOD SetMarginWidth(PRInt32 aMarginWidth) { return _to SetMarginWidth(aMarginWidth); } \
453 : NS_SCRIPTABLE NS_IMETHOD GetMarginHeight(PRInt32 *aMarginHeight) { return _to GetMarginHeight(aMarginHeight); } \
454 : NS_SCRIPTABLE NS_IMETHOD SetMarginHeight(PRInt32 aMarginHeight) { return _to SetMarginHeight(aMarginHeight); } \
455 : NS_SCRIPTABLE NS_IMETHOD TabToTreeOwner(bool forward, bool *tookFocus NS_OUTPARAM) { return _to TabToTreeOwner(forward, tookFocus); } \
456 : NS_SCRIPTABLE NS_IMETHOD GetBusyFlags(PRUint32 *aBusyFlags) { return _to GetBusyFlags(aBusyFlags); } \
457 : NS_SCRIPTABLE NS_IMETHOD GetLoadType(PRUint32 *aLoadType) { return _to GetLoadType(aLoadType); } \
458 : NS_SCRIPTABLE NS_IMETHOD SetLoadType(PRUint32 aLoadType) { return _to SetLoadType(aLoadType); } \
459 : NS_SCRIPTABLE NS_IMETHOD IsBeingDestroyed(bool *_retval NS_OUTPARAM) { return _to IsBeingDestroyed(_retval); } \
460 : NS_SCRIPTABLE NS_IMETHOD GetIsExecutingOnLoadHandler(bool *aIsExecutingOnLoadHandler) { return _to GetIsExecutingOnLoadHandler(aIsExecutingOnLoadHandler); } \
461 : NS_SCRIPTABLE NS_IMETHOD GetLayoutHistoryState(nsILayoutHistoryState * *aLayoutHistoryState) { return _to GetLayoutHistoryState(aLayoutHistoryState); } \
462 : NS_SCRIPTABLE NS_IMETHOD SetLayoutHistoryState(nsILayoutHistoryState *aLayoutHistoryState) { return _to SetLayoutHistoryState(aLayoutHistoryState); } \
463 : NS_SCRIPTABLE NS_IMETHOD GetShouldSaveLayoutState(bool *aShouldSaveLayoutState) { return _to GetShouldSaveLayoutState(aShouldSaveLayoutState); } \
464 : NS_SCRIPTABLE NS_IMETHOD GetSecurityUI(nsISecureBrowserUI * *aSecurityUI) { return _to GetSecurityUI(aSecurityUI); } \
465 : NS_SCRIPTABLE NS_IMETHOD SetSecurityUI(nsISecureBrowserUI *aSecurityUI) { return _to SetSecurityUI(aSecurityUI); } \
466 : NS_SCRIPTABLE NS_IMETHOD SuspendRefreshURIs(void) { return _to SuspendRefreshURIs(); } \
467 : NS_SCRIPTABLE NS_IMETHOD ResumeRefreshURIs(void) { return _to ResumeRefreshURIs(); } \
468 : NS_SCRIPTABLE NS_IMETHOD BeginRestore(nsIContentViewer *viewer, bool top) { return _to BeginRestore(viewer, top); } \
469 : NS_SCRIPTABLE NS_IMETHOD FinishRestore(void) { return _to FinishRestore(); } \
470 : NS_SCRIPTABLE NS_IMETHOD GetRestoringDocument(bool *aRestoringDocument) { return _to GetRestoringDocument(aRestoringDocument); } \
471 : NS_SCRIPTABLE NS_IMETHOD GetUseErrorPages(bool *aUseErrorPages) { return _to GetUseErrorPages(aUseErrorPages); } \
472 : NS_SCRIPTABLE NS_IMETHOD SetUseErrorPages(bool aUseErrorPages) { return _to SetUseErrorPages(aUseErrorPages); } \
473 : NS_SCRIPTABLE NS_IMETHOD GetPreviousTransIndex(PRInt32 *aPreviousTransIndex) { return _to GetPreviousTransIndex(aPreviousTransIndex); } \
474 : NS_SCRIPTABLE NS_IMETHOD GetLoadedTransIndex(PRInt32 *aLoadedTransIndex) { return _to GetLoadedTransIndex(aLoadedTransIndex); } \
475 : NS_SCRIPTABLE NS_IMETHOD HistoryPurged(PRInt32 numEntries) { return _to HistoryPurged(numEntries); } \
476 : NS_SCRIPTABLE NS_IMETHOD GetSessionStorageForURI(nsIURI *uri, const nsAString & documentURI, nsIDOMStorage * *_retval NS_OUTPARAM) { return _to GetSessionStorageForURI(uri, documentURI, _retval); } \
477 : NS_SCRIPTABLE NS_IMETHOD GetSessionStorageForPrincipal(nsIPrincipal *principal, const nsAString & documentURI, bool create, nsIDOMStorage * *_retval NS_OUTPARAM) { return _to GetSessionStorageForPrincipal(principal, documentURI, create, _retval); } \
478 : NS_SCRIPTABLE NS_IMETHOD AddSessionStorage(nsIPrincipal *principal, nsIDOMStorage *storage) { return _to AddSessionStorage(principal, storage); } \
479 : NS_SCRIPTABLE NS_IMETHOD GetCurrentDocumentChannel(nsIChannel * *aCurrentDocumentChannel) { return _to GetCurrentDocumentChannel(aCurrentDocumentChannel); } \
480 : NS_IMETHOD SetChildOffset(PRUint32 offset) { return _to SetChildOffset(offset); } \
481 : NS_SCRIPTABLE NS_IMETHOD GetIsInUnload(bool *aIsInUnload) { return _to GetIsInUnload(aIsInUnload); } \
482 : NS_SCRIPTABLE NS_IMETHOD GetChannelIsUnsafe(bool *aChannelIsUnsafe) { return _to GetChannelIsUnsafe(aChannelIsUnsafe); } \
483 : NS_IMETHOD_(void) DetachEditorFromWindow(void) { return _to DetachEditorFromWindow(); } \
484 : NS_SCRIPTABLE NS_IMETHOD GetIsOffScreenBrowser(bool *aIsOffScreenBrowser) { return _to GetIsOffScreenBrowser(aIsOffScreenBrowser); } \
485 : NS_SCRIPTABLE NS_IMETHOD SetIsOffScreenBrowser(bool aIsOffScreenBrowser) { return _to SetIsOffScreenBrowser(aIsOffScreenBrowser); } \
486 : NS_SCRIPTABLE NS_IMETHOD GetPrintPreview(nsIWebBrowserPrint * *aPrintPreview) { return _to GetPrintPreview(aPrintPreview); } \
487 : NS_SCRIPTABLE NS_IMETHOD GetCanExecuteScripts(bool *aCanExecuteScripts) { return _to GetCanExecuteScripts(aCanExecuteScripts); } \
488 : NS_SCRIPTABLE NS_IMETHOD GetIsActive(bool *aIsActive) { return _to GetIsActive(aIsActive); } \
489 : NS_SCRIPTABLE NS_IMETHOD SetIsActive(bool aIsActive) { return _to SetIsActive(aIsActive); } \
490 : NS_SCRIPTABLE NS_IMETHOD GetHistoryID(PRUint64 *aHistoryID) { return _to GetHistoryID(aHistoryID); } \
491 : NS_SCRIPTABLE NS_IMETHOD GetIsAppTab(bool *aIsAppTab) { return _to GetIsAppTab(aIsAppTab); } \
492 : NS_SCRIPTABLE NS_IMETHOD SetIsAppTab(bool aIsAppTab) { return _to SetIsAppTab(aIsAppTab); } \
493 : NS_SCRIPTABLE NS_IMETHOD CreateAboutBlankContentViewer(nsIPrincipal *aPrincipal) { return _to CreateAboutBlankContentViewer(aPrincipal); } \
494 : NS_SCRIPTABLE NS_IMETHOD GetCharset(char * *aCharset) { return _to GetCharset(aCharset); } \
495 : NS_SCRIPTABLE NS_IMETHOD SetCharset(const char * aCharset) { return _to SetCharset(aCharset); } \
496 : NS_SCRIPTABLE NS_IMETHOD GetForcedCharset(nsIAtom * *aForcedCharset) { return _to GetForcedCharset(aForcedCharset); } \
497 : NS_SCRIPTABLE NS_IMETHOD SetForcedCharset(nsIAtom *aForcedCharset) { return _to SetForcedCharset(aForcedCharset); } \
498 : NS_SCRIPTABLE NS_IMETHOD GetParentCharset(nsIAtom * *aParentCharset) { return _to GetParentCharset(aParentCharset); } \
499 : NS_SCRIPTABLE NS_IMETHOD SetParentCharset(nsIAtom *aParentCharset) { return _to SetParentCharset(aParentCharset); } \
500 : NS_SCRIPTABLE NS_IMETHOD GetParentCharsetSource(PRInt32 *aParentCharsetSource) { return _to GetParentCharsetSource(aParentCharsetSource); } \
501 : NS_SCRIPTABLE NS_IMETHOD SetParentCharsetSource(PRInt32 aParentCharsetSource) { return _to SetParentCharsetSource(aParentCharsetSource); } \
502 : NS_SCRIPTABLE NS_IMETHOD GetIsBrowserFrame(bool *aIsBrowserFrame) { return _to GetIsBrowserFrame(aIsBrowserFrame); } \
503 : NS_SCRIPTABLE NS_IMETHOD SetIsBrowserFrame(bool aIsBrowserFrame) { return _to SetIsBrowserFrame(aIsBrowserFrame); }
504 :
505 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
506 : #define NS_FORWARD_SAFE_NSIDOCSHELL(_to) \
507 : NS_IMETHOD LoadURI(nsIURI *uri, nsIDocShellLoadInfo *loadInfo, PRUint32 aLoadFlags, bool firstParty) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadURI(uri, loadInfo, aLoadFlags, firstParty); } \
508 : NS_IMETHOD LoadStream(nsIInputStream *aStream, nsIURI *aURI, const nsACString & aContentType, const nsACString & aContentCharset, nsIDocShellLoadInfo *aLoadInfo) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadStream(aStream, aURI, aContentType, aContentCharset, aLoadInfo); } \
509 : NS_IMETHOD InternalLoad(nsIURI *aURI, nsIURI *aReferrer, nsISupports *aOwner, PRUint32 aFlags, const PRUnichar * aWindowTarget, const char * aTypeHint, nsIInputStream *aPostDataStream, nsIInputStream *aHeadersStream, PRUint32 aLoadFlags, nsISHEntry *aSHEntry, bool firstParty, nsIDocShell * *aDocShell NS_OUTPARAM, nsIRequest * *aRequest NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->InternalLoad(aURI, aReferrer, aOwner, aFlags, aWindowTarget, aTypeHint, aPostDataStream, aHeadersStream, aLoadFlags, aSHEntry, firstParty, aDocShell, aRequest); } \
510 : NS_SCRIPTABLE NS_IMETHOD AddState(nsIVariant *aData, const nsAString & aTitle, const nsAString & aURL, bool aReplace, JSContext* cx) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddState(aData, aTitle, aURL, aReplace, cx); } \
511 : NS_SCRIPTABLE NS_IMETHOD CreateLoadInfo(nsIDocShellLoadInfo * *loadInfo NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateLoadInfo(loadInfo); } \
512 : NS_SCRIPTABLE NS_IMETHOD PrepareForNewContentModel(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->PrepareForNewContentModel(); } \
513 : NS_SCRIPTABLE NS_IMETHOD SetCurrentURI(nsIURI *aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCurrentURI(aURI); } \
514 : NS_IMETHOD FirePageHideNotification(bool isUnload) { return !_to ? NS_ERROR_NULL_POINTER : _to->FirePageHideNotification(isUnload); } \
515 : NS_IMETHOD GetPresContext(nsPresContext **aPresContext) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPresContext(aPresContext); } \
516 : NS_IMETHOD GetPresShell(nsIPresShell **aPresShell) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPresShell(aPresShell); } \
517 : NS_IMETHOD GetEldestPresShell(nsIPresShell **aEldestPresShell) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEldestPresShell(aEldestPresShell); } \
518 : NS_SCRIPTABLE NS_IMETHOD GetContentViewer(nsIContentViewer * *aContentViewer) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentViewer(aContentViewer); } \
519 : NS_SCRIPTABLE NS_IMETHOD GetChromeEventHandler(nsIDOMEventTarget * *aChromeEventHandler) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChromeEventHandler(aChromeEventHandler); } \
520 : NS_SCRIPTABLE NS_IMETHOD SetChromeEventHandler(nsIDOMEventTarget *aChromeEventHandler) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetChromeEventHandler(aChromeEventHandler); } \
521 : NS_SCRIPTABLE NS_IMETHOD GetAllowPlugins(bool *aAllowPlugins) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllowPlugins(aAllowPlugins); } \
522 : NS_SCRIPTABLE NS_IMETHOD SetAllowPlugins(bool aAllowPlugins) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAllowPlugins(aAllowPlugins); } \
523 : NS_SCRIPTABLE NS_IMETHOD GetAllowJavascript(bool *aAllowJavascript) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllowJavascript(aAllowJavascript); } \
524 : NS_SCRIPTABLE NS_IMETHOD SetAllowJavascript(bool aAllowJavascript) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAllowJavascript(aAllowJavascript); } \
525 : NS_SCRIPTABLE NS_IMETHOD GetAllowMetaRedirects(bool *aAllowMetaRedirects) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllowMetaRedirects(aAllowMetaRedirects); } \
526 : NS_SCRIPTABLE NS_IMETHOD SetAllowMetaRedirects(bool aAllowMetaRedirects) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAllowMetaRedirects(aAllowMetaRedirects); } \
527 : NS_SCRIPTABLE NS_IMETHOD GetAllowSubframes(bool *aAllowSubframes) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllowSubframes(aAllowSubframes); } \
528 : NS_SCRIPTABLE NS_IMETHOD SetAllowSubframes(bool aAllowSubframes) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAllowSubframes(aAllowSubframes); } \
529 : NS_SCRIPTABLE NS_IMETHOD GetAllowImages(bool *aAllowImages) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllowImages(aAllowImages); } \
530 : NS_SCRIPTABLE NS_IMETHOD SetAllowImages(bool aAllowImages) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAllowImages(aAllowImages); } \
531 : NS_SCRIPTABLE NS_IMETHOD GetAllowDNSPrefetch(bool *aAllowDNSPrefetch) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllowDNSPrefetch(aAllowDNSPrefetch); } \
532 : NS_SCRIPTABLE NS_IMETHOD SetAllowDNSPrefetch(bool aAllowDNSPrefetch) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAllowDNSPrefetch(aAllowDNSPrefetch); } \
533 : NS_SCRIPTABLE NS_IMETHOD GetAllowWindowControl(bool *aAllowWindowControl) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllowWindowControl(aAllowWindowControl); } \
534 : NS_SCRIPTABLE NS_IMETHOD SetAllowWindowControl(bool aAllowWindowControl) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAllowWindowControl(aAllowWindowControl); } \
535 : NS_SCRIPTABLE NS_IMETHOD GetDocShellEnumerator(PRInt32 aItemType, PRInt32 aDirection, nsISimpleEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocShellEnumerator(aItemType, aDirection, _retval); } \
536 : NS_SCRIPTABLE NS_IMETHOD GetAppType(PRUint32 *aAppType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAppType(aAppType); } \
537 : NS_SCRIPTABLE NS_IMETHOD SetAppType(PRUint32 aAppType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAppType(aAppType); } \
538 : NS_SCRIPTABLE NS_IMETHOD GetAllowAuth(bool *aAllowAuth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAllowAuth(aAllowAuth); } \
539 : NS_SCRIPTABLE NS_IMETHOD SetAllowAuth(bool aAllowAuth) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAllowAuth(aAllowAuth); } \
540 : NS_SCRIPTABLE NS_IMETHOD GetZoom(float *aZoom) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetZoom(aZoom); } \
541 : NS_SCRIPTABLE NS_IMETHOD SetZoom(float aZoom) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetZoom(aZoom); } \
542 : NS_SCRIPTABLE NS_IMETHOD GetMarginWidth(PRInt32 *aMarginWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMarginWidth(aMarginWidth); } \
543 : NS_SCRIPTABLE NS_IMETHOD SetMarginWidth(PRInt32 aMarginWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMarginWidth(aMarginWidth); } \
544 : NS_SCRIPTABLE NS_IMETHOD GetMarginHeight(PRInt32 *aMarginHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMarginHeight(aMarginHeight); } \
545 : NS_SCRIPTABLE NS_IMETHOD SetMarginHeight(PRInt32 aMarginHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMarginHeight(aMarginHeight); } \
546 : NS_SCRIPTABLE NS_IMETHOD TabToTreeOwner(bool forward, bool *tookFocus NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->TabToTreeOwner(forward, tookFocus); } \
547 : NS_SCRIPTABLE NS_IMETHOD GetBusyFlags(PRUint32 *aBusyFlags) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBusyFlags(aBusyFlags); } \
548 : NS_SCRIPTABLE NS_IMETHOD GetLoadType(PRUint32 *aLoadType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadType(aLoadType); } \
549 : NS_SCRIPTABLE NS_IMETHOD SetLoadType(PRUint32 aLoadType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLoadType(aLoadType); } \
550 : NS_SCRIPTABLE NS_IMETHOD IsBeingDestroyed(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsBeingDestroyed(_retval); } \
551 : NS_SCRIPTABLE NS_IMETHOD GetIsExecutingOnLoadHandler(bool *aIsExecutingOnLoadHandler) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsExecutingOnLoadHandler(aIsExecutingOnLoadHandler); } \
552 : NS_SCRIPTABLE NS_IMETHOD GetLayoutHistoryState(nsILayoutHistoryState * *aLayoutHistoryState) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLayoutHistoryState(aLayoutHistoryState); } \
553 : NS_SCRIPTABLE NS_IMETHOD SetLayoutHistoryState(nsILayoutHistoryState *aLayoutHistoryState) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLayoutHistoryState(aLayoutHistoryState); } \
554 : NS_SCRIPTABLE NS_IMETHOD GetShouldSaveLayoutState(bool *aShouldSaveLayoutState) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShouldSaveLayoutState(aShouldSaveLayoutState); } \
555 : NS_SCRIPTABLE NS_IMETHOD GetSecurityUI(nsISecureBrowserUI * *aSecurityUI) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSecurityUI(aSecurityUI); } \
556 : NS_SCRIPTABLE NS_IMETHOD SetSecurityUI(nsISecureBrowserUI *aSecurityUI) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSecurityUI(aSecurityUI); } \
557 : NS_SCRIPTABLE NS_IMETHOD SuspendRefreshURIs(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SuspendRefreshURIs(); } \
558 : NS_SCRIPTABLE NS_IMETHOD ResumeRefreshURIs(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ResumeRefreshURIs(); } \
559 : NS_SCRIPTABLE NS_IMETHOD BeginRestore(nsIContentViewer *viewer, bool top) { return !_to ? NS_ERROR_NULL_POINTER : _to->BeginRestore(viewer, top); } \
560 : NS_SCRIPTABLE NS_IMETHOD FinishRestore(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->FinishRestore(); } \
561 : NS_SCRIPTABLE NS_IMETHOD GetRestoringDocument(bool *aRestoringDocument) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRestoringDocument(aRestoringDocument); } \
562 : NS_SCRIPTABLE NS_IMETHOD GetUseErrorPages(bool *aUseErrorPages) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUseErrorPages(aUseErrorPages); } \
563 : NS_SCRIPTABLE NS_IMETHOD SetUseErrorPages(bool aUseErrorPages) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUseErrorPages(aUseErrorPages); } \
564 : NS_SCRIPTABLE NS_IMETHOD GetPreviousTransIndex(PRInt32 *aPreviousTransIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPreviousTransIndex(aPreviousTransIndex); } \
565 : NS_SCRIPTABLE NS_IMETHOD GetLoadedTransIndex(PRInt32 *aLoadedTransIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadedTransIndex(aLoadedTransIndex); } \
566 : NS_SCRIPTABLE NS_IMETHOD HistoryPurged(PRInt32 numEntries) { return !_to ? NS_ERROR_NULL_POINTER : _to->HistoryPurged(numEntries); } \
567 : NS_SCRIPTABLE NS_IMETHOD GetSessionStorageForURI(nsIURI *uri, const nsAString & documentURI, nsIDOMStorage * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSessionStorageForURI(uri, documentURI, _retval); } \
568 : NS_SCRIPTABLE NS_IMETHOD GetSessionStorageForPrincipal(nsIPrincipal *principal, const nsAString & documentURI, bool create, nsIDOMStorage * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSessionStorageForPrincipal(principal, documentURI, create, _retval); } \
569 : NS_SCRIPTABLE NS_IMETHOD AddSessionStorage(nsIPrincipal *principal, nsIDOMStorage *storage) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddSessionStorage(principal, storage); } \
570 : NS_SCRIPTABLE NS_IMETHOD GetCurrentDocumentChannel(nsIChannel * *aCurrentDocumentChannel) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentDocumentChannel(aCurrentDocumentChannel); } \
571 : NS_IMETHOD SetChildOffset(PRUint32 offset) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetChildOffset(offset); } \
572 : NS_SCRIPTABLE NS_IMETHOD GetIsInUnload(bool *aIsInUnload) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsInUnload(aIsInUnload); } \
573 : NS_SCRIPTABLE NS_IMETHOD GetChannelIsUnsafe(bool *aChannelIsUnsafe) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChannelIsUnsafe(aChannelIsUnsafe); } \
574 : NS_IMETHOD_(void) DetachEditorFromWindow(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->DetachEditorFromWindow(); } \
575 : NS_SCRIPTABLE NS_IMETHOD GetIsOffScreenBrowser(bool *aIsOffScreenBrowser) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsOffScreenBrowser(aIsOffScreenBrowser); } \
576 : NS_SCRIPTABLE NS_IMETHOD SetIsOffScreenBrowser(bool aIsOffScreenBrowser) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsOffScreenBrowser(aIsOffScreenBrowser); } \
577 : NS_SCRIPTABLE NS_IMETHOD GetPrintPreview(nsIWebBrowserPrint * *aPrintPreview) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrintPreview(aPrintPreview); } \
578 : NS_SCRIPTABLE NS_IMETHOD GetCanExecuteScripts(bool *aCanExecuteScripts) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCanExecuteScripts(aCanExecuteScripts); } \
579 : NS_SCRIPTABLE NS_IMETHOD GetIsActive(bool *aIsActive) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsActive(aIsActive); } \
580 : NS_SCRIPTABLE NS_IMETHOD SetIsActive(bool aIsActive) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsActive(aIsActive); } \
581 : NS_SCRIPTABLE NS_IMETHOD GetHistoryID(PRUint64 *aHistoryID) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHistoryID(aHistoryID); } \
582 : NS_SCRIPTABLE NS_IMETHOD GetIsAppTab(bool *aIsAppTab) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsAppTab(aIsAppTab); } \
583 : NS_SCRIPTABLE NS_IMETHOD SetIsAppTab(bool aIsAppTab) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsAppTab(aIsAppTab); } \
584 : NS_SCRIPTABLE NS_IMETHOD CreateAboutBlankContentViewer(nsIPrincipal *aPrincipal) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateAboutBlankContentViewer(aPrincipal); } \
585 : NS_SCRIPTABLE NS_IMETHOD GetCharset(char * *aCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharset(aCharset); } \
586 : NS_SCRIPTABLE NS_IMETHOD SetCharset(const char * aCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCharset(aCharset); } \
587 : NS_SCRIPTABLE NS_IMETHOD GetForcedCharset(nsIAtom * *aForcedCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetForcedCharset(aForcedCharset); } \
588 : NS_SCRIPTABLE NS_IMETHOD SetForcedCharset(nsIAtom *aForcedCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetForcedCharset(aForcedCharset); } \
589 : NS_SCRIPTABLE NS_IMETHOD GetParentCharset(nsIAtom * *aParentCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentCharset(aParentCharset); } \
590 : NS_SCRIPTABLE NS_IMETHOD SetParentCharset(nsIAtom *aParentCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetParentCharset(aParentCharset); } \
591 : NS_SCRIPTABLE NS_IMETHOD GetParentCharsetSource(PRInt32 *aParentCharsetSource) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentCharsetSource(aParentCharsetSource); } \
592 : NS_SCRIPTABLE NS_IMETHOD SetParentCharsetSource(PRInt32 aParentCharsetSource) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetParentCharsetSource(aParentCharsetSource); } \
593 : NS_SCRIPTABLE NS_IMETHOD GetIsBrowserFrame(bool *aIsBrowserFrame) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsBrowserFrame(aIsBrowserFrame); } \
594 : NS_SCRIPTABLE NS_IMETHOD SetIsBrowserFrame(bool aIsBrowserFrame) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsBrowserFrame(aIsBrowserFrame); }
595 :
596 : #if 0
597 : /* Use the code below as a template for the implementation class for this interface. */
598 :
599 : /* Header file */
600 : class nsDocShell : public nsIDocShell
601 : {
602 : public:
603 : NS_DECL_ISUPPORTS
604 : NS_DECL_NSIDOCSHELL
605 :
606 : nsDocShell();
607 :
608 : private:
609 : ~nsDocShell();
610 :
611 : protected:
612 : /* additional members */
613 : };
614 :
615 : /* Implementation file */
616 : NS_IMPL_ISUPPORTS1(nsDocShell, nsIDocShell)
617 :
618 : nsDocShell::nsDocShell()
619 : {
620 : /* member initializers and constructor code */
621 : }
622 :
623 : nsDocShell::~nsDocShell()
624 : {
625 : /* destructor code */
626 : }
627 :
628 : /* [noscript] void loadURI (in nsIURI uri, in nsIDocShellLoadInfo loadInfo, in unsigned long aLoadFlags, in boolean firstParty); */
629 : NS_IMETHODIMP nsDocShell::LoadURI(nsIURI *uri, nsIDocShellLoadInfo *loadInfo, PRUint32 aLoadFlags, bool firstParty)
630 : {
631 : return NS_ERROR_NOT_IMPLEMENTED;
632 : }
633 :
634 : /* [noscript] void loadStream (in nsIInputStream aStream, in nsIURI aURI, in ACString aContentType, in ACString aContentCharset, in nsIDocShellLoadInfo aLoadInfo); */
635 : NS_IMETHODIMP nsDocShell::LoadStream(nsIInputStream *aStream, nsIURI *aURI, const nsACString & aContentType, const nsACString & aContentCharset, nsIDocShellLoadInfo *aLoadInfo)
636 : {
637 : return NS_ERROR_NOT_IMPLEMENTED;
638 : }
639 :
640 : /* [noscript] void internalLoad (in nsIURI aURI, in nsIURI aReferrer, in nsISupports aOwner, in PRUint32 aFlags, in wstring aWindowTarget, in string aTypeHint, in nsIInputStream aPostDataStream, in nsIInputStream aHeadersStream, in unsigned long aLoadFlags, in nsISHEntry aSHEntry, in boolean firstParty, out nsIDocShell aDocShell, out nsIRequest aRequest); */
641 : NS_IMETHODIMP nsDocShell::InternalLoad(nsIURI *aURI, nsIURI *aReferrer, nsISupports *aOwner, PRUint32 aFlags, const PRUnichar * aWindowTarget, const char * aTypeHint, nsIInputStream *aPostDataStream, nsIInputStream *aHeadersStream, PRUint32 aLoadFlags, nsISHEntry *aSHEntry, bool firstParty, nsIDocShell * *aDocShell NS_OUTPARAM, nsIRequest * *aRequest NS_OUTPARAM)
642 : {
643 : return NS_ERROR_NOT_IMPLEMENTED;
644 : }
645 :
646 : /* [implicit_jscontext] void addState (in nsIVariant aData, in DOMString aTitle, in DOMString aURL, in boolean aReplace); */
647 : NS_IMETHODIMP nsDocShell::AddState(nsIVariant *aData, const nsAString & aTitle, const nsAString & aURL, bool aReplace, JSContext* cx)
648 : {
649 : return NS_ERROR_NOT_IMPLEMENTED;
650 : }
651 :
652 : /* void createLoadInfo (out nsIDocShellLoadInfo loadInfo); */
653 : NS_IMETHODIMP nsDocShell::CreateLoadInfo(nsIDocShellLoadInfo * *loadInfo NS_OUTPARAM)
654 : {
655 : return NS_ERROR_NOT_IMPLEMENTED;
656 : }
657 :
658 : /* void prepareForNewContentModel (); */
659 : NS_IMETHODIMP nsDocShell::PrepareForNewContentModel()
660 : {
661 : return NS_ERROR_NOT_IMPLEMENTED;
662 : }
663 :
664 : /* void setCurrentURI (in nsIURI aURI); */
665 : NS_IMETHODIMP nsDocShell::SetCurrentURI(nsIURI *aURI)
666 : {
667 : return NS_ERROR_NOT_IMPLEMENTED;
668 : }
669 :
670 : /* [noscript] void firePageHideNotification (in boolean isUnload); */
671 : NS_IMETHODIMP nsDocShell::FirePageHideNotification(bool isUnload)
672 : {
673 : return NS_ERROR_NOT_IMPLEMENTED;
674 : }
675 :
676 : /* [noscript] readonly attribute nsPresContext presContext; */
677 : NS_IMETHODIMP nsDocShell::GetPresContext(nsPresContext **aPresContext)
678 : {
679 : return NS_ERROR_NOT_IMPLEMENTED;
680 : }
681 :
682 : /* [noscript] readonly attribute nsIPresShell presShell; */
683 : NS_IMETHODIMP nsDocShell::GetPresShell(nsIPresShell **aPresShell)
684 : {
685 : return NS_ERROR_NOT_IMPLEMENTED;
686 : }
687 :
688 : /* [noscript] readonly attribute nsIPresShell eldestPresShell; */
689 : NS_IMETHODIMP nsDocShell::GetEldestPresShell(nsIPresShell **aEldestPresShell)
690 : {
691 : return NS_ERROR_NOT_IMPLEMENTED;
692 : }
693 :
694 : /* readonly attribute nsIContentViewer contentViewer; */
695 : NS_IMETHODIMP nsDocShell::GetContentViewer(nsIContentViewer * *aContentViewer)
696 : {
697 : return NS_ERROR_NOT_IMPLEMENTED;
698 : }
699 :
700 : /* attribute nsIDOMEventTarget chromeEventHandler; */
701 : NS_IMETHODIMP nsDocShell::GetChromeEventHandler(nsIDOMEventTarget * *aChromeEventHandler)
702 : {
703 : return NS_ERROR_NOT_IMPLEMENTED;
704 : }
705 : NS_IMETHODIMP nsDocShell::SetChromeEventHandler(nsIDOMEventTarget *aChromeEventHandler)
706 : {
707 : return NS_ERROR_NOT_IMPLEMENTED;
708 : }
709 :
710 : /* attribute boolean allowPlugins; */
711 : NS_IMETHODIMP nsDocShell::GetAllowPlugins(bool *aAllowPlugins)
712 : {
713 : return NS_ERROR_NOT_IMPLEMENTED;
714 : }
715 : NS_IMETHODIMP nsDocShell::SetAllowPlugins(bool aAllowPlugins)
716 : {
717 : return NS_ERROR_NOT_IMPLEMENTED;
718 : }
719 :
720 : /* attribute boolean allowJavascript; */
721 : NS_IMETHODIMP nsDocShell::GetAllowJavascript(bool *aAllowJavascript)
722 : {
723 : return NS_ERROR_NOT_IMPLEMENTED;
724 : }
725 : NS_IMETHODIMP nsDocShell::SetAllowJavascript(bool aAllowJavascript)
726 : {
727 : return NS_ERROR_NOT_IMPLEMENTED;
728 : }
729 :
730 : /* attribute boolean allowMetaRedirects; */
731 : NS_IMETHODIMP nsDocShell::GetAllowMetaRedirects(bool *aAllowMetaRedirects)
732 : {
733 : return NS_ERROR_NOT_IMPLEMENTED;
734 : }
735 : NS_IMETHODIMP nsDocShell::SetAllowMetaRedirects(bool aAllowMetaRedirects)
736 : {
737 : return NS_ERROR_NOT_IMPLEMENTED;
738 : }
739 :
740 : /* attribute boolean allowSubframes; */
741 : NS_IMETHODIMP nsDocShell::GetAllowSubframes(bool *aAllowSubframes)
742 : {
743 : return NS_ERROR_NOT_IMPLEMENTED;
744 : }
745 : NS_IMETHODIMP nsDocShell::SetAllowSubframes(bool aAllowSubframes)
746 : {
747 : return NS_ERROR_NOT_IMPLEMENTED;
748 : }
749 :
750 : /* attribute boolean allowImages; */
751 : NS_IMETHODIMP nsDocShell::GetAllowImages(bool *aAllowImages)
752 : {
753 : return NS_ERROR_NOT_IMPLEMENTED;
754 : }
755 : NS_IMETHODIMP nsDocShell::SetAllowImages(bool aAllowImages)
756 : {
757 : return NS_ERROR_NOT_IMPLEMENTED;
758 : }
759 :
760 : /* attribute boolean allowDNSPrefetch; */
761 : NS_IMETHODIMP nsDocShell::GetAllowDNSPrefetch(bool *aAllowDNSPrefetch)
762 : {
763 : return NS_ERROR_NOT_IMPLEMENTED;
764 : }
765 : NS_IMETHODIMP nsDocShell::SetAllowDNSPrefetch(bool aAllowDNSPrefetch)
766 : {
767 : return NS_ERROR_NOT_IMPLEMENTED;
768 : }
769 :
770 : /* attribute boolean allowWindowControl; */
771 : NS_IMETHODIMP nsDocShell::GetAllowWindowControl(bool *aAllowWindowControl)
772 : {
773 : return NS_ERROR_NOT_IMPLEMENTED;
774 : }
775 : NS_IMETHODIMP nsDocShell::SetAllowWindowControl(bool aAllowWindowControl)
776 : {
777 : return NS_ERROR_NOT_IMPLEMENTED;
778 : }
779 :
780 : /* nsISimpleEnumerator getDocShellEnumerator (in long aItemType, in long aDirection); */
781 : NS_IMETHODIMP nsDocShell::GetDocShellEnumerator(PRInt32 aItemType, PRInt32 aDirection, nsISimpleEnumerator * *_retval NS_OUTPARAM)
782 : {
783 : return NS_ERROR_NOT_IMPLEMENTED;
784 : }
785 :
786 : /* attribute unsigned long appType; */
787 : NS_IMETHODIMP nsDocShell::GetAppType(PRUint32 *aAppType)
788 : {
789 : return NS_ERROR_NOT_IMPLEMENTED;
790 : }
791 : NS_IMETHODIMP nsDocShell::SetAppType(PRUint32 aAppType)
792 : {
793 : return NS_ERROR_NOT_IMPLEMENTED;
794 : }
795 :
796 : /* attribute boolean allowAuth; */
797 : NS_IMETHODIMP nsDocShell::GetAllowAuth(bool *aAllowAuth)
798 : {
799 : return NS_ERROR_NOT_IMPLEMENTED;
800 : }
801 : NS_IMETHODIMP nsDocShell::SetAllowAuth(bool aAllowAuth)
802 : {
803 : return NS_ERROR_NOT_IMPLEMENTED;
804 : }
805 :
806 : /* attribute float zoom; */
807 : NS_IMETHODIMP nsDocShell::GetZoom(float *aZoom)
808 : {
809 : return NS_ERROR_NOT_IMPLEMENTED;
810 : }
811 : NS_IMETHODIMP nsDocShell::SetZoom(float aZoom)
812 : {
813 : return NS_ERROR_NOT_IMPLEMENTED;
814 : }
815 :
816 : /* attribute long marginWidth; */
817 : NS_IMETHODIMP nsDocShell::GetMarginWidth(PRInt32 *aMarginWidth)
818 : {
819 : return NS_ERROR_NOT_IMPLEMENTED;
820 : }
821 : NS_IMETHODIMP nsDocShell::SetMarginWidth(PRInt32 aMarginWidth)
822 : {
823 : return NS_ERROR_NOT_IMPLEMENTED;
824 : }
825 :
826 : /* attribute long marginHeight; */
827 : NS_IMETHODIMP nsDocShell::GetMarginHeight(PRInt32 *aMarginHeight)
828 : {
829 : return NS_ERROR_NOT_IMPLEMENTED;
830 : }
831 : NS_IMETHODIMP nsDocShell::SetMarginHeight(PRInt32 aMarginHeight)
832 : {
833 : return NS_ERROR_NOT_IMPLEMENTED;
834 : }
835 :
836 : /* void tabToTreeOwner (in boolean forward, out boolean tookFocus); */
837 : NS_IMETHODIMP nsDocShell::TabToTreeOwner(bool forward, bool *tookFocus NS_OUTPARAM)
838 : {
839 : return NS_ERROR_NOT_IMPLEMENTED;
840 : }
841 :
842 : /* readonly attribute unsigned long busyFlags; */
843 : NS_IMETHODIMP nsDocShell::GetBusyFlags(PRUint32 *aBusyFlags)
844 : {
845 : return NS_ERROR_NOT_IMPLEMENTED;
846 : }
847 :
848 : /* attribute unsigned long loadType; */
849 : NS_IMETHODIMP nsDocShell::GetLoadType(PRUint32 *aLoadType)
850 : {
851 : return NS_ERROR_NOT_IMPLEMENTED;
852 : }
853 : NS_IMETHODIMP nsDocShell::SetLoadType(PRUint32 aLoadType)
854 : {
855 : return NS_ERROR_NOT_IMPLEMENTED;
856 : }
857 :
858 : /* boolean isBeingDestroyed (); */
859 : NS_IMETHODIMP nsDocShell::IsBeingDestroyed(bool *_retval NS_OUTPARAM)
860 : {
861 : return NS_ERROR_NOT_IMPLEMENTED;
862 : }
863 :
864 : /* readonly attribute boolean isExecutingOnLoadHandler; */
865 : NS_IMETHODIMP nsDocShell::GetIsExecutingOnLoadHandler(bool *aIsExecutingOnLoadHandler)
866 : {
867 : return NS_ERROR_NOT_IMPLEMENTED;
868 : }
869 :
870 : /* attribute nsILayoutHistoryState layoutHistoryState; */
871 : NS_IMETHODIMP nsDocShell::GetLayoutHistoryState(nsILayoutHistoryState * *aLayoutHistoryState)
872 : {
873 : return NS_ERROR_NOT_IMPLEMENTED;
874 : }
875 : NS_IMETHODIMP nsDocShell::SetLayoutHistoryState(nsILayoutHistoryState *aLayoutHistoryState)
876 : {
877 : return NS_ERROR_NOT_IMPLEMENTED;
878 : }
879 :
880 : /* readonly attribute boolean shouldSaveLayoutState; */
881 : NS_IMETHODIMP nsDocShell::GetShouldSaveLayoutState(bool *aShouldSaveLayoutState)
882 : {
883 : return NS_ERROR_NOT_IMPLEMENTED;
884 : }
885 :
886 : /* attribute nsISecureBrowserUI securityUI; */
887 : NS_IMETHODIMP nsDocShell::GetSecurityUI(nsISecureBrowserUI * *aSecurityUI)
888 : {
889 : return NS_ERROR_NOT_IMPLEMENTED;
890 : }
891 : NS_IMETHODIMP nsDocShell::SetSecurityUI(nsISecureBrowserUI *aSecurityUI)
892 : {
893 : return NS_ERROR_NOT_IMPLEMENTED;
894 : }
895 :
896 : /* void suspendRefreshURIs (); */
897 : NS_IMETHODIMP nsDocShell::SuspendRefreshURIs()
898 : {
899 : return NS_ERROR_NOT_IMPLEMENTED;
900 : }
901 :
902 : /* void resumeRefreshURIs (); */
903 : NS_IMETHODIMP nsDocShell::ResumeRefreshURIs()
904 : {
905 : return NS_ERROR_NOT_IMPLEMENTED;
906 : }
907 :
908 : /* void beginRestore (in nsIContentViewer viewer, in boolean top); */
909 : NS_IMETHODIMP nsDocShell::BeginRestore(nsIContentViewer *viewer, bool top)
910 : {
911 : return NS_ERROR_NOT_IMPLEMENTED;
912 : }
913 :
914 : /* void finishRestore (); */
915 : NS_IMETHODIMP nsDocShell::FinishRestore()
916 : {
917 : return NS_ERROR_NOT_IMPLEMENTED;
918 : }
919 :
920 : /* readonly attribute boolean restoringDocument; */
921 : NS_IMETHODIMP nsDocShell::GetRestoringDocument(bool *aRestoringDocument)
922 : {
923 : return NS_ERROR_NOT_IMPLEMENTED;
924 : }
925 :
926 : /* attribute boolean useErrorPages; */
927 : NS_IMETHODIMP nsDocShell::GetUseErrorPages(bool *aUseErrorPages)
928 : {
929 : return NS_ERROR_NOT_IMPLEMENTED;
930 : }
931 : NS_IMETHODIMP nsDocShell::SetUseErrorPages(bool aUseErrorPages)
932 : {
933 : return NS_ERROR_NOT_IMPLEMENTED;
934 : }
935 :
936 : /* readonly attribute long previousTransIndex; */
937 : NS_IMETHODIMP nsDocShell::GetPreviousTransIndex(PRInt32 *aPreviousTransIndex)
938 : {
939 : return NS_ERROR_NOT_IMPLEMENTED;
940 : }
941 :
942 : /* readonly attribute long loadedTransIndex; */
943 : NS_IMETHODIMP nsDocShell::GetLoadedTransIndex(PRInt32 *aLoadedTransIndex)
944 : {
945 : return NS_ERROR_NOT_IMPLEMENTED;
946 : }
947 :
948 : /* void historyPurged (in long numEntries); */
949 : NS_IMETHODIMP nsDocShell::HistoryPurged(PRInt32 numEntries)
950 : {
951 : return NS_ERROR_NOT_IMPLEMENTED;
952 : }
953 :
954 : /* nsIDOMStorage getSessionStorageForURI (in nsIURI uri, in DOMString documentURI); */
955 : NS_IMETHODIMP nsDocShell::GetSessionStorageForURI(nsIURI *uri, const nsAString & documentURI, nsIDOMStorage * *_retval NS_OUTPARAM)
956 : {
957 : return NS_ERROR_NOT_IMPLEMENTED;
958 : }
959 :
960 : /* nsIDOMStorage getSessionStorageForPrincipal (in nsIPrincipal principal, in DOMString documentURI, in boolean create); */
961 : NS_IMETHODIMP nsDocShell::GetSessionStorageForPrincipal(nsIPrincipal *principal, const nsAString & documentURI, bool create, nsIDOMStorage * *_retval NS_OUTPARAM)
962 : {
963 : return NS_ERROR_NOT_IMPLEMENTED;
964 : }
965 :
966 : /* void addSessionStorage (in nsIPrincipal principal, in nsIDOMStorage storage); */
967 : NS_IMETHODIMP nsDocShell::AddSessionStorage(nsIPrincipal *principal, nsIDOMStorage *storage)
968 : {
969 : return NS_ERROR_NOT_IMPLEMENTED;
970 : }
971 :
972 : /* readonly attribute nsIChannel currentDocumentChannel; */
973 : NS_IMETHODIMP nsDocShell::GetCurrentDocumentChannel(nsIChannel * *aCurrentDocumentChannel)
974 : {
975 : return NS_ERROR_NOT_IMPLEMENTED;
976 : }
977 :
978 : /* [noscript] void setChildOffset (in unsigned long offset); */
979 : NS_IMETHODIMP nsDocShell::SetChildOffset(PRUint32 offset)
980 : {
981 : return NS_ERROR_NOT_IMPLEMENTED;
982 : }
983 :
984 : /* readonly attribute boolean isInUnload; */
985 : NS_IMETHODIMP nsDocShell::GetIsInUnload(bool *aIsInUnload)
986 : {
987 : return NS_ERROR_NOT_IMPLEMENTED;
988 : }
989 :
990 : /* readonly attribute boolean channelIsUnsafe; */
991 : NS_IMETHODIMP nsDocShell::GetChannelIsUnsafe(bool *aChannelIsUnsafe)
992 : {
993 : return NS_ERROR_NOT_IMPLEMENTED;
994 : }
995 :
996 : /* [noscript,notxpcom] void DetachEditorFromWindow (); */
997 : NS_IMETHODIMP_(void) nsDocShell::DetachEditorFromWindow()
998 : {
999 : return NS_ERROR_NOT_IMPLEMENTED;
1000 : }
1001 :
1002 : /* attribute boolean isOffScreenBrowser; */
1003 : NS_IMETHODIMP nsDocShell::GetIsOffScreenBrowser(bool *aIsOffScreenBrowser)
1004 : {
1005 : return NS_ERROR_NOT_IMPLEMENTED;
1006 : }
1007 : NS_IMETHODIMP nsDocShell::SetIsOffScreenBrowser(bool aIsOffScreenBrowser)
1008 : {
1009 : return NS_ERROR_NOT_IMPLEMENTED;
1010 : }
1011 :
1012 : /* readonly attribute nsIWebBrowserPrint printPreview; */
1013 : NS_IMETHODIMP nsDocShell::GetPrintPreview(nsIWebBrowserPrint * *aPrintPreview)
1014 : {
1015 : return NS_ERROR_NOT_IMPLEMENTED;
1016 : }
1017 :
1018 : /* readonly attribute boolean canExecuteScripts; */
1019 : NS_IMETHODIMP nsDocShell::GetCanExecuteScripts(bool *aCanExecuteScripts)
1020 : {
1021 : return NS_ERROR_NOT_IMPLEMENTED;
1022 : }
1023 :
1024 : /* attribute boolean isActive; */
1025 : NS_IMETHODIMP nsDocShell::GetIsActive(bool *aIsActive)
1026 : {
1027 : return NS_ERROR_NOT_IMPLEMENTED;
1028 : }
1029 : NS_IMETHODIMP nsDocShell::SetIsActive(bool aIsActive)
1030 : {
1031 : return NS_ERROR_NOT_IMPLEMENTED;
1032 : }
1033 :
1034 : /* readonly attribute unsigned long long historyID; */
1035 : NS_IMETHODIMP nsDocShell::GetHistoryID(PRUint64 *aHistoryID)
1036 : {
1037 : return NS_ERROR_NOT_IMPLEMENTED;
1038 : }
1039 :
1040 : /* attribute boolean isAppTab; */
1041 : NS_IMETHODIMP nsDocShell::GetIsAppTab(bool *aIsAppTab)
1042 : {
1043 : return NS_ERROR_NOT_IMPLEMENTED;
1044 : }
1045 : NS_IMETHODIMP nsDocShell::SetIsAppTab(bool aIsAppTab)
1046 : {
1047 : return NS_ERROR_NOT_IMPLEMENTED;
1048 : }
1049 :
1050 : /* void createAboutBlankContentViewer (in nsIPrincipal aPrincipal); */
1051 : NS_IMETHODIMP nsDocShell::CreateAboutBlankContentViewer(nsIPrincipal *aPrincipal)
1052 : {
1053 : return NS_ERROR_NOT_IMPLEMENTED;
1054 : }
1055 :
1056 : /* attribute string charset; */
1057 : NS_IMETHODIMP nsDocShell::GetCharset(char * *aCharset)
1058 : {
1059 : return NS_ERROR_NOT_IMPLEMENTED;
1060 : }
1061 : NS_IMETHODIMP nsDocShell::SetCharset(const char * aCharset)
1062 : {
1063 : return NS_ERROR_NOT_IMPLEMENTED;
1064 : }
1065 :
1066 : /* attribute nsIAtom forcedCharset; */
1067 : NS_IMETHODIMP nsDocShell::GetForcedCharset(nsIAtom * *aForcedCharset)
1068 : {
1069 : return NS_ERROR_NOT_IMPLEMENTED;
1070 : }
1071 : NS_IMETHODIMP nsDocShell::SetForcedCharset(nsIAtom *aForcedCharset)
1072 : {
1073 : return NS_ERROR_NOT_IMPLEMENTED;
1074 : }
1075 :
1076 : /* attribute nsIAtom parentCharset; */
1077 : NS_IMETHODIMP nsDocShell::GetParentCharset(nsIAtom * *aParentCharset)
1078 : {
1079 : return NS_ERROR_NOT_IMPLEMENTED;
1080 : }
1081 : NS_IMETHODIMP nsDocShell::SetParentCharset(nsIAtom *aParentCharset)
1082 : {
1083 : return NS_ERROR_NOT_IMPLEMENTED;
1084 : }
1085 :
1086 : /* attribute PRInt32 parentCharsetSource; */
1087 : NS_IMETHODIMP nsDocShell::GetParentCharsetSource(PRInt32 *aParentCharsetSource)
1088 : {
1089 : return NS_ERROR_NOT_IMPLEMENTED;
1090 : }
1091 : NS_IMETHODIMP nsDocShell::SetParentCharsetSource(PRInt32 aParentCharsetSource)
1092 : {
1093 : return NS_ERROR_NOT_IMPLEMENTED;
1094 : }
1095 :
1096 : /* attribute bool isBrowserFrame; */
1097 : NS_IMETHODIMP nsDocShell::GetIsBrowserFrame(bool *aIsBrowserFrame)
1098 : {
1099 : return NS_ERROR_NOT_IMPLEMENTED;
1100 : }
1101 : NS_IMETHODIMP nsDocShell::SetIsBrowserFrame(bool aIsBrowserFrame)
1102 : {
1103 : return NS_ERROR_NOT_IMPLEMENTED;
1104 : }
1105 :
1106 : /* End of implementation class template. */
1107 : #endif
1108 :
1109 :
1110 : #endif /* __gen_nsIDocShell_h__ */
|