1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/content/base/public/nsIFrameLoader.idl
3 : */
4 :
5 : #ifndef __gen_nsIFrameLoader_h__
6 : #define __gen_nsIFrameLoader_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : /* For IDL files that don't want to include root IDL files. */
14 : #ifndef NS_NO_VTABLE
15 : #define NS_NO_VTABLE
16 : #endif
17 : class nsIDocShell; /* forward declaration */
18 :
19 : class nsIURI; /* forward declaration */
20 :
21 : class nsIFrame; /* forward declaration */
22 :
23 : class nsIChromeFrameMessageManager; /* forward declaration */
24 :
25 : class nsIVariant; /* forward declaration */
26 :
27 : typedef PRUint64 nsContentViewId;
28 :
29 :
30 : /* starting interface: nsIContentView */
31 : #define NS_ICONTENTVIEW_IID_STR "c04c5c40-fa2a-4e9c-94f5-b362a10a86cb"
32 :
33 : #define NS_ICONTENTVIEW_IID \
34 : {0xc04c5c40, 0xfa2a, 0x4e9c, \
35 : { 0x94, 0xf5, 0xb3, 0x62, 0xa1, 0x0a, 0x86, 0xcb }}
36 :
37 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIContentView : public nsISupports {
38 : public:
39 :
40 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTVIEW_IID)
41 :
42 : /* void scrollTo (in float xPx, in float yPx); */
43 : NS_SCRIPTABLE NS_IMETHOD ScrollTo(float xPx, float yPx) = 0;
44 :
45 : /* void scrollBy (in float dxPx, in float dyPx); */
46 : NS_SCRIPTABLE NS_IMETHOD ScrollBy(float dxPx, float dyPx) = 0;
47 :
48 : /* void setScale (in float xScale, in float yScale); */
49 : NS_SCRIPTABLE NS_IMETHOD SetScale(float xScale, float yScale) = 0;
50 :
51 : /* readonly attribute float scrollX; */
52 : NS_SCRIPTABLE NS_IMETHOD GetScrollX(float *aScrollX) = 0;
53 :
54 : /* readonly attribute float scrollY; */
55 : NS_SCRIPTABLE NS_IMETHOD GetScrollY(float *aScrollY) = 0;
56 :
57 : /* readonly attribute float viewportWidth; */
58 : NS_SCRIPTABLE NS_IMETHOD GetViewportWidth(float *aViewportWidth) = 0;
59 :
60 : /* readonly attribute float viewportHeight; */
61 : NS_SCRIPTABLE NS_IMETHOD GetViewportHeight(float *aViewportHeight) = 0;
62 :
63 : /* readonly attribute float contentWidth; */
64 : NS_SCRIPTABLE NS_IMETHOD GetContentWidth(float *aContentWidth) = 0;
65 :
66 : /* readonly attribute float contentHeight; */
67 : NS_SCRIPTABLE NS_IMETHOD GetContentHeight(float *aContentHeight) = 0;
68 :
69 : /* readonly attribute nsContentViewId id; */
70 : NS_SCRIPTABLE NS_IMETHOD GetId(nsContentViewId *aId) = 0;
71 :
72 : };
73 :
74 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentView, NS_ICONTENTVIEW_IID)
75 :
76 : /* Use this macro when declaring classes that implement this interface. */
77 : #define NS_DECL_NSICONTENTVIEW \
78 : NS_SCRIPTABLE NS_IMETHOD ScrollTo(float xPx, float yPx); \
79 : NS_SCRIPTABLE NS_IMETHOD ScrollBy(float dxPx, float dyPx); \
80 : NS_SCRIPTABLE NS_IMETHOD SetScale(float xScale, float yScale); \
81 : NS_SCRIPTABLE NS_IMETHOD GetScrollX(float *aScrollX); \
82 : NS_SCRIPTABLE NS_IMETHOD GetScrollY(float *aScrollY); \
83 : NS_SCRIPTABLE NS_IMETHOD GetViewportWidth(float *aViewportWidth); \
84 : NS_SCRIPTABLE NS_IMETHOD GetViewportHeight(float *aViewportHeight); \
85 : NS_SCRIPTABLE NS_IMETHOD GetContentWidth(float *aContentWidth); \
86 : NS_SCRIPTABLE NS_IMETHOD GetContentHeight(float *aContentHeight); \
87 : NS_SCRIPTABLE NS_IMETHOD GetId(nsContentViewId *aId);
88 :
89 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
90 : #define NS_FORWARD_NSICONTENTVIEW(_to) \
91 : NS_SCRIPTABLE NS_IMETHOD ScrollTo(float xPx, float yPx) { return _to ScrollTo(xPx, yPx); } \
92 : NS_SCRIPTABLE NS_IMETHOD ScrollBy(float dxPx, float dyPx) { return _to ScrollBy(dxPx, dyPx); } \
93 : NS_SCRIPTABLE NS_IMETHOD SetScale(float xScale, float yScale) { return _to SetScale(xScale, yScale); } \
94 : NS_SCRIPTABLE NS_IMETHOD GetScrollX(float *aScrollX) { return _to GetScrollX(aScrollX); } \
95 : NS_SCRIPTABLE NS_IMETHOD GetScrollY(float *aScrollY) { return _to GetScrollY(aScrollY); } \
96 : NS_SCRIPTABLE NS_IMETHOD GetViewportWidth(float *aViewportWidth) { return _to GetViewportWidth(aViewportWidth); } \
97 : NS_SCRIPTABLE NS_IMETHOD GetViewportHeight(float *aViewportHeight) { return _to GetViewportHeight(aViewportHeight); } \
98 : NS_SCRIPTABLE NS_IMETHOD GetContentWidth(float *aContentWidth) { return _to GetContentWidth(aContentWidth); } \
99 : NS_SCRIPTABLE NS_IMETHOD GetContentHeight(float *aContentHeight) { return _to GetContentHeight(aContentHeight); } \
100 : NS_SCRIPTABLE NS_IMETHOD GetId(nsContentViewId *aId) { return _to GetId(aId); }
101 :
102 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
103 : #define NS_FORWARD_SAFE_NSICONTENTVIEW(_to) \
104 : NS_SCRIPTABLE NS_IMETHOD ScrollTo(float xPx, float yPx) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollTo(xPx, yPx); } \
105 : NS_SCRIPTABLE NS_IMETHOD ScrollBy(float dxPx, float dyPx) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollBy(dxPx, dyPx); } \
106 : NS_SCRIPTABLE NS_IMETHOD SetScale(float xScale, float yScale) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetScale(xScale, yScale); } \
107 : NS_SCRIPTABLE NS_IMETHOD GetScrollX(float *aScrollX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScrollX(aScrollX); } \
108 : NS_SCRIPTABLE NS_IMETHOD GetScrollY(float *aScrollY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScrollY(aScrollY); } \
109 : NS_SCRIPTABLE NS_IMETHOD GetViewportWidth(float *aViewportWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetViewportWidth(aViewportWidth); } \
110 : NS_SCRIPTABLE NS_IMETHOD GetViewportHeight(float *aViewportHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetViewportHeight(aViewportHeight); } \
111 : NS_SCRIPTABLE NS_IMETHOD GetContentWidth(float *aContentWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentWidth(aContentWidth); } \
112 : NS_SCRIPTABLE NS_IMETHOD GetContentHeight(float *aContentHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentHeight(aContentHeight); } \
113 : NS_SCRIPTABLE NS_IMETHOD GetId(nsContentViewId *aId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); }
114 :
115 : #if 0
116 : /* Use the code below as a template for the implementation class for this interface. */
117 :
118 : /* Header file */
119 : class nsContentView : public nsIContentView
120 : {
121 : public:
122 : NS_DECL_ISUPPORTS
123 : NS_DECL_NSICONTENTVIEW
124 :
125 : nsContentView();
126 :
127 : private:
128 : ~nsContentView();
129 :
130 : protected:
131 : /* additional members */
132 : };
133 :
134 : /* Implementation file */
135 : NS_IMPL_ISUPPORTS1(nsContentView, nsIContentView)
136 :
137 : nsContentView::nsContentView()
138 : {
139 : /* member initializers and constructor code */
140 : }
141 :
142 : nsContentView::~nsContentView()
143 : {
144 : /* destructor code */
145 : }
146 :
147 : /* void scrollTo (in float xPx, in float yPx); */
148 : NS_IMETHODIMP nsContentView::ScrollTo(float xPx, float yPx)
149 : {
150 : return NS_ERROR_NOT_IMPLEMENTED;
151 : }
152 :
153 : /* void scrollBy (in float dxPx, in float dyPx); */
154 : NS_IMETHODIMP nsContentView::ScrollBy(float dxPx, float dyPx)
155 : {
156 : return NS_ERROR_NOT_IMPLEMENTED;
157 : }
158 :
159 : /* void setScale (in float xScale, in float yScale); */
160 : NS_IMETHODIMP nsContentView::SetScale(float xScale, float yScale)
161 : {
162 : return NS_ERROR_NOT_IMPLEMENTED;
163 : }
164 :
165 : /* readonly attribute float scrollX; */
166 : NS_IMETHODIMP nsContentView::GetScrollX(float *aScrollX)
167 : {
168 : return NS_ERROR_NOT_IMPLEMENTED;
169 : }
170 :
171 : /* readonly attribute float scrollY; */
172 : NS_IMETHODIMP nsContentView::GetScrollY(float *aScrollY)
173 : {
174 : return NS_ERROR_NOT_IMPLEMENTED;
175 : }
176 :
177 : /* readonly attribute float viewportWidth; */
178 : NS_IMETHODIMP nsContentView::GetViewportWidth(float *aViewportWidth)
179 : {
180 : return NS_ERROR_NOT_IMPLEMENTED;
181 : }
182 :
183 : /* readonly attribute float viewportHeight; */
184 : NS_IMETHODIMP nsContentView::GetViewportHeight(float *aViewportHeight)
185 : {
186 : return NS_ERROR_NOT_IMPLEMENTED;
187 : }
188 :
189 : /* readonly attribute float contentWidth; */
190 : NS_IMETHODIMP nsContentView::GetContentWidth(float *aContentWidth)
191 : {
192 : return NS_ERROR_NOT_IMPLEMENTED;
193 : }
194 :
195 : /* readonly attribute float contentHeight; */
196 : NS_IMETHODIMP nsContentView::GetContentHeight(float *aContentHeight)
197 : {
198 : return NS_ERROR_NOT_IMPLEMENTED;
199 : }
200 :
201 : /* readonly attribute nsContentViewId id; */
202 : NS_IMETHODIMP nsContentView::GetId(nsContentViewId *aId)
203 : {
204 : return NS_ERROR_NOT_IMPLEMENTED;
205 : }
206 :
207 : /* End of implementation class template. */
208 : #endif
209 :
210 :
211 : /* starting interface: nsIContentViewManager */
212 : #define NS_ICONTENTVIEWMANAGER_IID_STR "ba5af90d-ece5-40b2-9a1d-a0154128db1c"
213 :
214 : #define NS_ICONTENTVIEWMANAGER_IID \
215 : {0xba5af90d, 0xece5, 0x40b2, \
216 : { 0x9a, 0x1d, 0xa0, 0x15, 0x41, 0x28, 0xdb, 0x1c }}
217 :
218 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIContentViewManager : public nsISupports {
219 : public:
220 :
221 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTVIEWMANAGER_IID)
222 :
223 : /* void getContentViewsIn (in float aXPx, in float aYPx, in float aTopSize, in float aRightSize, in float aBottomSize, in float aLeftSize, [optional] out unsigned long aLength, [array, size_is (aLength), retval] out nsIContentView aResult); */
224 : NS_SCRIPTABLE NS_IMETHOD GetContentViewsIn(float aXPx, float aYPx, float aTopSize, float aRightSize, float aBottomSize, float aLeftSize, PRUint32 *aLength NS_OUTPARAM, nsIContentView * **aResult NS_OUTPARAM) = 0;
225 :
226 : /* readonly attribute nsIContentView rootContentView; */
227 : NS_SCRIPTABLE NS_IMETHOD GetRootContentView(nsIContentView * *aRootContentView) = 0;
228 :
229 : };
230 :
231 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentViewManager, NS_ICONTENTVIEWMANAGER_IID)
232 :
233 : /* Use this macro when declaring classes that implement this interface. */
234 : #define NS_DECL_NSICONTENTVIEWMANAGER \
235 : NS_SCRIPTABLE NS_IMETHOD GetContentViewsIn(float aXPx, float aYPx, float aTopSize, float aRightSize, float aBottomSize, float aLeftSize, PRUint32 *aLength NS_OUTPARAM, nsIContentView * **aResult NS_OUTPARAM); \
236 : NS_SCRIPTABLE NS_IMETHOD GetRootContentView(nsIContentView * *aRootContentView);
237 :
238 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
239 : #define NS_FORWARD_NSICONTENTVIEWMANAGER(_to) \
240 : NS_SCRIPTABLE NS_IMETHOD GetContentViewsIn(float aXPx, float aYPx, float aTopSize, float aRightSize, float aBottomSize, float aLeftSize, PRUint32 *aLength NS_OUTPARAM, nsIContentView * **aResult NS_OUTPARAM) { return _to GetContentViewsIn(aXPx, aYPx, aTopSize, aRightSize, aBottomSize, aLeftSize, aLength, aResult); } \
241 : NS_SCRIPTABLE NS_IMETHOD GetRootContentView(nsIContentView * *aRootContentView) { return _to GetRootContentView(aRootContentView); }
242 :
243 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
244 : #define NS_FORWARD_SAFE_NSICONTENTVIEWMANAGER(_to) \
245 : NS_SCRIPTABLE NS_IMETHOD GetContentViewsIn(float aXPx, float aYPx, float aTopSize, float aRightSize, float aBottomSize, float aLeftSize, PRUint32 *aLength NS_OUTPARAM, nsIContentView * **aResult NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentViewsIn(aXPx, aYPx, aTopSize, aRightSize, aBottomSize, aLeftSize, aLength, aResult); } \
246 : NS_SCRIPTABLE NS_IMETHOD GetRootContentView(nsIContentView * *aRootContentView) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRootContentView(aRootContentView); }
247 :
248 : #if 0
249 : /* Use the code below as a template for the implementation class for this interface. */
250 :
251 : /* Header file */
252 : class nsContentViewManager : public nsIContentViewManager
253 : {
254 : public:
255 : NS_DECL_ISUPPORTS
256 : NS_DECL_NSICONTENTVIEWMANAGER
257 :
258 : nsContentViewManager();
259 :
260 : private:
261 : ~nsContentViewManager();
262 :
263 : protected:
264 : /* additional members */
265 : };
266 :
267 : /* Implementation file */
268 : NS_IMPL_ISUPPORTS1(nsContentViewManager, nsIContentViewManager)
269 :
270 : nsContentViewManager::nsContentViewManager()
271 : {
272 : /* member initializers and constructor code */
273 : }
274 :
275 : nsContentViewManager::~nsContentViewManager()
276 : {
277 : /* destructor code */
278 : }
279 :
280 : /* void getContentViewsIn (in float aXPx, in float aYPx, in float aTopSize, in float aRightSize, in float aBottomSize, in float aLeftSize, [optional] out unsigned long aLength, [array, size_is (aLength), retval] out nsIContentView aResult); */
281 : NS_IMETHODIMP nsContentViewManager::GetContentViewsIn(float aXPx, float aYPx, float aTopSize, float aRightSize, float aBottomSize, float aLeftSize, PRUint32 *aLength NS_OUTPARAM, nsIContentView * **aResult NS_OUTPARAM)
282 : {
283 : return NS_ERROR_NOT_IMPLEMENTED;
284 : }
285 :
286 : /* readonly attribute nsIContentView rootContentView; */
287 : NS_IMETHODIMP nsContentViewManager::GetRootContentView(nsIContentView * *aRootContentView)
288 : {
289 : return NS_ERROR_NOT_IMPLEMENTED;
290 : }
291 :
292 : /* End of implementation class template. */
293 : #endif
294 :
295 :
296 : /* starting interface: nsIFrameLoader */
297 : #define NS_IFRAMELOADER_IID_STR "efc0b731-45dc-4189-8ffa-d3eeeb850977"
298 :
299 : #define NS_IFRAMELOADER_IID \
300 : {0xefc0b731, 0x45dc, 0x4189, \
301 : { 0x8f, 0xfa, 0xd3, 0xee, 0xeb, 0x85, 0x09, 0x77 }}
302 :
303 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIFrameLoader : public nsISupports {
304 : public:
305 :
306 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IFRAMELOADER_IID)
307 :
308 : /* readonly attribute nsIDocShell docShell; */
309 : NS_SCRIPTABLE NS_IMETHOD GetDocShell(nsIDocShell * *aDocShell) = 0;
310 :
311 : /* void loadFrame (); */
312 : NS_SCRIPTABLE NS_IMETHOD LoadFrame(void) = 0;
313 :
314 : /* void loadURI (in nsIURI aURI); */
315 : NS_SCRIPTABLE NS_IMETHOD LoadURI(nsIURI *aURI) = 0;
316 :
317 : /* void destroy (); */
318 : NS_SCRIPTABLE NS_IMETHOD Destroy(void) = 0;
319 :
320 : /* readonly attribute boolean depthTooGreat; */
321 : NS_SCRIPTABLE NS_IMETHOD GetDepthTooGreat(bool *aDepthTooGreat) = 0;
322 :
323 : /* [noscript] void updatePositionAndSize (in nsIFrame aIFrame); */
324 : NS_IMETHOD UpdatePositionAndSize(nsIFrame *aIFrame) = 0;
325 :
326 : /* void activateRemoteFrame (); */
327 : NS_SCRIPTABLE NS_IMETHOD ActivateRemoteFrame(void) = 0;
328 :
329 : /* void deactivateRemoteFrame (); */
330 : NS_SCRIPTABLE NS_IMETHOD DeactivateRemoteFrame(void) = 0;
331 :
332 : /* void sendCrossProcessMouseEvent (in AString aType, in float aX, in float aY, in long aButton, in long aClickCount, in long aModifiers, [optional] in boolean aIgnoreRootScrollFrame); */
333 : NS_SCRIPTABLE NS_IMETHOD SendCrossProcessMouseEvent(const nsAString & aType, float aX, float aY, PRInt32 aButton, PRInt32 aClickCount, PRInt32 aModifiers, bool aIgnoreRootScrollFrame) = 0;
334 :
335 : /* void activateFrameEvent (in AString aType, in boolean capture); */
336 : NS_SCRIPTABLE NS_IMETHOD ActivateFrameEvent(const nsAString & aType, bool capture) = 0;
337 :
338 : /* readonly attribute nsIChromeFrameMessageManager messageManager; */
339 : NS_SCRIPTABLE NS_IMETHOD GetMessageManager(nsIChromeFrameMessageManager * *aMessageManager) = 0;
340 :
341 : /* void sendCrossProcessKeyEvent (in AString aType, in long aKeyCode, in long aCharCode, in long aModifiers, [optional] in boolean aPreventDefault); */
342 : NS_SCRIPTABLE NS_IMETHOD SendCrossProcessKeyEvent(const nsAString & aType, PRInt32 aKeyCode, PRInt32 aCharCode, PRInt32 aModifiers, bool aPreventDefault) = 0;
343 :
344 : /* attribute boolean delayRemoteDialogs; */
345 : NS_SCRIPTABLE NS_IMETHOD GetDelayRemoteDialogs(bool *aDelayRemoteDialogs) = 0;
346 : NS_SCRIPTABLE NS_IMETHOD SetDelayRemoteDialogs(bool aDelayRemoteDialogs) = 0;
347 :
348 : enum {
349 : RENDER_MODE_DEFAULT = 0U,
350 : RENDER_MODE_ASYNC_SCROLL = 1U
351 : };
352 :
353 : /* attribute unsigned long renderMode; */
354 : NS_SCRIPTABLE NS_IMETHOD GetRenderMode(PRUint32 *aRenderMode) = 0;
355 : NS_SCRIPTABLE NS_IMETHOD SetRenderMode(PRUint32 aRenderMode) = 0;
356 :
357 : enum {
358 : EVENT_MODE_NORMAL_DISPATCH = 0U,
359 : EVENT_MODE_DONT_FORWARD_TO_CHILD = 1U
360 : };
361 :
362 : /* attribute unsigned long eventMode; */
363 : NS_SCRIPTABLE NS_IMETHOD GetEventMode(PRUint32 *aEventMode) = 0;
364 : NS_SCRIPTABLE NS_IMETHOD SetEventMode(PRUint32 aEventMode) = 0;
365 :
366 : /* attribute boolean clipSubdocument; */
367 : NS_SCRIPTABLE NS_IMETHOD GetClipSubdocument(bool *aClipSubdocument) = 0;
368 : NS_SCRIPTABLE NS_IMETHOD SetClipSubdocument(bool aClipSubdocument) = 0;
369 :
370 : /* attribute boolean clampScrollPosition; */
371 : NS_SCRIPTABLE NS_IMETHOD GetClampScrollPosition(bool *aClampScrollPosition) = 0;
372 : NS_SCRIPTABLE NS_IMETHOD SetClampScrollPosition(bool aClampScrollPosition) = 0;
373 :
374 : };
375 :
376 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIFrameLoader, NS_IFRAMELOADER_IID)
377 :
378 : /* Use this macro when declaring classes that implement this interface. */
379 : #define NS_DECL_NSIFRAMELOADER \
380 : NS_SCRIPTABLE NS_IMETHOD GetDocShell(nsIDocShell * *aDocShell); \
381 : NS_SCRIPTABLE NS_IMETHOD LoadFrame(void); \
382 : NS_SCRIPTABLE NS_IMETHOD LoadURI(nsIURI *aURI); \
383 : NS_SCRIPTABLE NS_IMETHOD Destroy(void); \
384 : NS_SCRIPTABLE NS_IMETHOD GetDepthTooGreat(bool *aDepthTooGreat); \
385 : NS_IMETHOD UpdatePositionAndSize(nsIFrame *aIFrame); \
386 : NS_SCRIPTABLE NS_IMETHOD ActivateRemoteFrame(void); \
387 : NS_SCRIPTABLE NS_IMETHOD DeactivateRemoteFrame(void); \
388 : NS_SCRIPTABLE NS_IMETHOD SendCrossProcessMouseEvent(const nsAString & aType, float aX, float aY, PRInt32 aButton, PRInt32 aClickCount, PRInt32 aModifiers, bool aIgnoreRootScrollFrame); \
389 : NS_SCRIPTABLE NS_IMETHOD ActivateFrameEvent(const nsAString & aType, bool capture); \
390 : NS_SCRIPTABLE NS_IMETHOD GetMessageManager(nsIChromeFrameMessageManager * *aMessageManager); \
391 : NS_SCRIPTABLE NS_IMETHOD SendCrossProcessKeyEvent(const nsAString & aType, PRInt32 aKeyCode, PRInt32 aCharCode, PRInt32 aModifiers, bool aPreventDefault); \
392 : NS_SCRIPTABLE NS_IMETHOD GetDelayRemoteDialogs(bool *aDelayRemoteDialogs); \
393 : NS_SCRIPTABLE NS_IMETHOD SetDelayRemoteDialogs(bool aDelayRemoteDialogs); \
394 : NS_SCRIPTABLE NS_IMETHOD GetRenderMode(PRUint32 *aRenderMode); \
395 : NS_SCRIPTABLE NS_IMETHOD SetRenderMode(PRUint32 aRenderMode); \
396 : NS_SCRIPTABLE NS_IMETHOD GetEventMode(PRUint32 *aEventMode); \
397 : NS_SCRIPTABLE NS_IMETHOD SetEventMode(PRUint32 aEventMode); \
398 : NS_SCRIPTABLE NS_IMETHOD GetClipSubdocument(bool *aClipSubdocument); \
399 : NS_SCRIPTABLE NS_IMETHOD SetClipSubdocument(bool aClipSubdocument); \
400 : NS_SCRIPTABLE NS_IMETHOD GetClampScrollPosition(bool *aClampScrollPosition); \
401 : NS_SCRIPTABLE NS_IMETHOD SetClampScrollPosition(bool aClampScrollPosition);
402 :
403 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
404 : #define NS_FORWARD_NSIFRAMELOADER(_to) \
405 : NS_SCRIPTABLE NS_IMETHOD GetDocShell(nsIDocShell * *aDocShell) { return _to GetDocShell(aDocShell); } \
406 : NS_SCRIPTABLE NS_IMETHOD LoadFrame(void) { return _to LoadFrame(); } \
407 : NS_SCRIPTABLE NS_IMETHOD LoadURI(nsIURI *aURI) { return _to LoadURI(aURI); } \
408 : NS_SCRIPTABLE NS_IMETHOD Destroy(void) { return _to Destroy(); } \
409 : NS_SCRIPTABLE NS_IMETHOD GetDepthTooGreat(bool *aDepthTooGreat) { return _to GetDepthTooGreat(aDepthTooGreat); } \
410 : NS_IMETHOD UpdatePositionAndSize(nsIFrame *aIFrame) { return _to UpdatePositionAndSize(aIFrame); } \
411 : NS_SCRIPTABLE NS_IMETHOD ActivateRemoteFrame(void) { return _to ActivateRemoteFrame(); } \
412 : NS_SCRIPTABLE NS_IMETHOD DeactivateRemoteFrame(void) { return _to DeactivateRemoteFrame(); } \
413 : NS_SCRIPTABLE NS_IMETHOD SendCrossProcessMouseEvent(const nsAString & aType, float aX, float aY, PRInt32 aButton, PRInt32 aClickCount, PRInt32 aModifiers, bool aIgnoreRootScrollFrame) { return _to SendCrossProcessMouseEvent(aType, aX, aY, aButton, aClickCount, aModifiers, aIgnoreRootScrollFrame); } \
414 : NS_SCRIPTABLE NS_IMETHOD ActivateFrameEvent(const nsAString & aType, bool capture) { return _to ActivateFrameEvent(aType, capture); } \
415 : NS_SCRIPTABLE NS_IMETHOD GetMessageManager(nsIChromeFrameMessageManager * *aMessageManager) { return _to GetMessageManager(aMessageManager); } \
416 : NS_SCRIPTABLE NS_IMETHOD SendCrossProcessKeyEvent(const nsAString & aType, PRInt32 aKeyCode, PRInt32 aCharCode, PRInt32 aModifiers, bool aPreventDefault) { return _to SendCrossProcessKeyEvent(aType, aKeyCode, aCharCode, aModifiers, aPreventDefault); } \
417 : NS_SCRIPTABLE NS_IMETHOD GetDelayRemoteDialogs(bool *aDelayRemoteDialogs) { return _to GetDelayRemoteDialogs(aDelayRemoteDialogs); } \
418 : NS_SCRIPTABLE NS_IMETHOD SetDelayRemoteDialogs(bool aDelayRemoteDialogs) { return _to SetDelayRemoteDialogs(aDelayRemoteDialogs); } \
419 : NS_SCRIPTABLE NS_IMETHOD GetRenderMode(PRUint32 *aRenderMode) { return _to GetRenderMode(aRenderMode); } \
420 : NS_SCRIPTABLE NS_IMETHOD SetRenderMode(PRUint32 aRenderMode) { return _to SetRenderMode(aRenderMode); } \
421 : NS_SCRIPTABLE NS_IMETHOD GetEventMode(PRUint32 *aEventMode) { return _to GetEventMode(aEventMode); } \
422 : NS_SCRIPTABLE NS_IMETHOD SetEventMode(PRUint32 aEventMode) { return _to SetEventMode(aEventMode); } \
423 : NS_SCRIPTABLE NS_IMETHOD GetClipSubdocument(bool *aClipSubdocument) { return _to GetClipSubdocument(aClipSubdocument); } \
424 : NS_SCRIPTABLE NS_IMETHOD SetClipSubdocument(bool aClipSubdocument) { return _to SetClipSubdocument(aClipSubdocument); } \
425 : NS_SCRIPTABLE NS_IMETHOD GetClampScrollPosition(bool *aClampScrollPosition) { return _to GetClampScrollPosition(aClampScrollPosition); } \
426 : NS_SCRIPTABLE NS_IMETHOD SetClampScrollPosition(bool aClampScrollPosition) { return _to SetClampScrollPosition(aClampScrollPosition); }
427 :
428 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
429 : #define NS_FORWARD_SAFE_NSIFRAMELOADER(_to) \
430 : NS_SCRIPTABLE NS_IMETHOD GetDocShell(nsIDocShell * *aDocShell) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocShell(aDocShell); } \
431 : NS_SCRIPTABLE NS_IMETHOD LoadFrame(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadFrame(); } \
432 : NS_SCRIPTABLE NS_IMETHOD LoadURI(nsIURI *aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadURI(aURI); } \
433 : NS_SCRIPTABLE NS_IMETHOD Destroy(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Destroy(); } \
434 : NS_SCRIPTABLE NS_IMETHOD GetDepthTooGreat(bool *aDepthTooGreat) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDepthTooGreat(aDepthTooGreat); } \
435 : NS_IMETHOD UpdatePositionAndSize(nsIFrame *aIFrame) { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdatePositionAndSize(aIFrame); } \
436 : NS_SCRIPTABLE NS_IMETHOD ActivateRemoteFrame(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ActivateRemoteFrame(); } \
437 : NS_SCRIPTABLE NS_IMETHOD DeactivateRemoteFrame(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeactivateRemoteFrame(); } \
438 : NS_SCRIPTABLE NS_IMETHOD SendCrossProcessMouseEvent(const nsAString & aType, float aX, float aY, PRInt32 aButton, PRInt32 aClickCount, PRInt32 aModifiers, bool aIgnoreRootScrollFrame) { return !_to ? NS_ERROR_NULL_POINTER : _to->SendCrossProcessMouseEvent(aType, aX, aY, aButton, aClickCount, aModifiers, aIgnoreRootScrollFrame); } \
439 : NS_SCRIPTABLE NS_IMETHOD ActivateFrameEvent(const nsAString & aType, bool capture) { return !_to ? NS_ERROR_NULL_POINTER : _to->ActivateFrameEvent(aType, capture); } \
440 : NS_SCRIPTABLE NS_IMETHOD GetMessageManager(nsIChromeFrameMessageManager * *aMessageManager) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessageManager(aMessageManager); } \
441 : NS_SCRIPTABLE NS_IMETHOD SendCrossProcessKeyEvent(const nsAString & aType, PRInt32 aKeyCode, PRInt32 aCharCode, PRInt32 aModifiers, bool aPreventDefault) { return !_to ? NS_ERROR_NULL_POINTER : _to->SendCrossProcessKeyEvent(aType, aKeyCode, aCharCode, aModifiers, aPreventDefault); } \
442 : NS_SCRIPTABLE NS_IMETHOD GetDelayRemoteDialogs(bool *aDelayRemoteDialogs) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDelayRemoteDialogs(aDelayRemoteDialogs); } \
443 : NS_SCRIPTABLE NS_IMETHOD SetDelayRemoteDialogs(bool aDelayRemoteDialogs) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDelayRemoteDialogs(aDelayRemoteDialogs); } \
444 : NS_SCRIPTABLE NS_IMETHOD GetRenderMode(PRUint32 *aRenderMode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRenderMode(aRenderMode); } \
445 : NS_SCRIPTABLE NS_IMETHOD SetRenderMode(PRUint32 aRenderMode) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRenderMode(aRenderMode); } \
446 : NS_SCRIPTABLE NS_IMETHOD GetEventMode(PRUint32 *aEventMode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEventMode(aEventMode); } \
447 : NS_SCRIPTABLE NS_IMETHOD SetEventMode(PRUint32 aEventMode) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEventMode(aEventMode); } \
448 : NS_SCRIPTABLE NS_IMETHOD GetClipSubdocument(bool *aClipSubdocument) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClipSubdocument(aClipSubdocument); } \
449 : NS_SCRIPTABLE NS_IMETHOD SetClipSubdocument(bool aClipSubdocument) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetClipSubdocument(aClipSubdocument); } \
450 : NS_SCRIPTABLE NS_IMETHOD GetClampScrollPosition(bool *aClampScrollPosition) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClampScrollPosition(aClampScrollPosition); } \
451 : NS_SCRIPTABLE NS_IMETHOD SetClampScrollPosition(bool aClampScrollPosition) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetClampScrollPosition(aClampScrollPosition); }
452 :
453 : #if 0
454 : /* Use the code below as a template for the implementation class for this interface. */
455 :
456 : /* Header file */
457 : class nsFrameLoader : public nsIFrameLoader
458 : {
459 : public:
460 : NS_DECL_ISUPPORTS
461 : NS_DECL_NSIFRAMELOADER
462 :
463 : nsFrameLoader();
464 :
465 : private:
466 : ~nsFrameLoader();
467 :
468 : protected:
469 : /* additional members */
470 : };
471 :
472 : /* Implementation file */
473 : NS_IMPL_ISUPPORTS1(nsFrameLoader, nsIFrameLoader)
474 :
475 : nsFrameLoader::nsFrameLoader()
476 : {
477 : /* member initializers and constructor code */
478 : }
479 :
480 : nsFrameLoader::~nsFrameLoader()
481 : {
482 : /* destructor code */
483 : }
484 :
485 : /* readonly attribute nsIDocShell docShell; */
486 : NS_IMETHODIMP nsFrameLoader::GetDocShell(nsIDocShell * *aDocShell)
487 : {
488 : return NS_ERROR_NOT_IMPLEMENTED;
489 : }
490 :
491 : /* void loadFrame (); */
492 : NS_IMETHODIMP nsFrameLoader::LoadFrame()
493 : {
494 : return NS_ERROR_NOT_IMPLEMENTED;
495 : }
496 :
497 : /* void loadURI (in nsIURI aURI); */
498 : NS_IMETHODIMP nsFrameLoader::LoadURI(nsIURI *aURI)
499 : {
500 : return NS_ERROR_NOT_IMPLEMENTED;
501 : }
502 :
503 : /* void destroy (); */
504 : NS_IMETHODIMP nsFrameLoader::Destroy()
505 : {
506 : return NS_ERROR_NOT_IMPLEMENTED;
507 : }
508 :
509 : /* readonly attribute boolean depthTooGreat; */
510 : NS_IMETHODIMP nsFrameLoader::GetDepthTooGreat(bool *aDepthTooGreat)
511 : {
512 : return NS_ERROR_NOT_IMPLEMENTED;
513 : }
514 :
515 : /* [noscript] void updatePositionAndSize (in nsIFrame aIFrame); */
516 : NS_IMETHODIMP nsFrameLoader::UpdatePositionAndSize(nsIFrame *aIFrame)
517 : {
518 : return NS_ERROR_NOT_IMPLEMENTED;
519 : }
520 :
521 : /* void activateRemoteFrame (); */
522 : NS_IMETHODIMP nsFrameLoader::ActivateRemoteFrame()
523 : {
524 : return NS_ERROR_NOT_IMPLEMENTED;
525 : }
526 :
527 : /* void deactivateRemoteFrame (); */
528 : NS_IMETHODIMP nsFrameLoader::DeactivateRemoteFrame()
529 : {
530 : return NS_ERROR_NOT_IMPLEMENTED;
531 : }
532 :
533 : /* void sendCrossProcessMouseEvent (in AString aType, in float aX, in float aY, in long aButton, in long aClickCount, in long aModifiers, [optional] in boolean aIgnoreRootScrollFrame); */
534 : NS_IMETHODIMP nsFrameLoader::SendCrossProcessMouseEvent(const nsAString & aType, float aX, float aY, PRInt32 aButton, PRInt32 aClickCount, PRInt32 aModifiers, bool aIgnoreRootScrollFrame)
535 : {
536 : return NS_ERROR_NOT_IMPLEMENTED;
537 : }
538 :
539 : /* void activateFrameEvent (in AString aType, in boolean capture); */
540 : NS_IMETHODIMP nsFrameLoader::ActivateFrameEvent(const nsAString & aType, bool capture)
541 : {
542 : return NS_ERROR_NOT_IMPLEMENTED;
543 : }
544 :
545 : /* readonly attribute nsIChromeFrameMessageManager messageManager; */
546 : NS_IMETHODIMP nsFrameLoader::GetMessageManager(nsIChromeFrameMessageManager * *aMessageManager)
547 : {
548 : return NS_ERROR_NOT_IMPLEMENTED;
549 : }
550 :
551 : /* void sendCrossProcessKeyEvent (in AString aType, in long aKeyCode, in long aCharCode, in long aModifiers, [optional] in boolean aPreventDefault); */
552 : NS_IMETHODIMP nsFrameLoader::SendCrossProcessKeyEvent(const nsAString & aType, PRInt32 aKeyCode, PRInt32 aCharCode, PRInt32 aModifiers, bool aPreventDefault)
553 : {
554 : return NS_ERROR_NOT_IMPLEMENTED;
555 : }
556 :
557 : /* attribute boolean delayRemoteDialogs; */
558 : NS_IMETHODIMP nsFrameLoader::GetDelayRemoteDialogs(bool *aDelayRemoteDialogs)
559 : {
560 : return NS_ERROR_NOT_IMPLEMENTED;
561 : }
562 : NS_IMETHODIMP nsFrameLoader::SetDelayRemoteDialogs(bool aDelayRemoteDialogs)
563 : {
564 : return NS_ERROR_NOT_IMPLEMENTED;
565 : }
566 :
567 : /* attribute unsigned long renderMode; */
568 : NS_IMETHODIMP nsFrameLoader::GetRenderMode(PRUint32 *aRenderMode)
569 : {
570 : return NS_ERROR_NOT_IMPLEMENTED;
571 : }
572 : NS_IMETHODIMP nsFrameLoader::SetRenderMode(PRUint32 aRenderMode)
573 : {
574 : return NS_ERROR_NOT_IMPLEMENTED;
575 : }
576 :
577 : /* attribute unsigned long eventMode; */
578 : NS_IMETHODIMP nsFrameLoader::GetEventMode(PRUint32 *aEventMode)
579 : {
580 : return NS_ERROR_NOT_IMPLEMENTED;
581 : }
582 : NS_IMETHODIMP nsFrameLoader::SetEventMode(PRUint32 aEventMode)
583 : {
584 : return NS_ERROR_NOT_IMPLEMENTED;
585 : }
586 :
587 : /* attribute boolean clipSubdocument; */
588 : NS_IMETHODIMP nsFrameLoader::GetClipSubdocument(bool *aClipSubdocument)
589 : {
590 : return NS_ERROR_NOT_IMPLEMENTED;
591 : }
592 : NS_IMETHODIMP nsFrameLoader::SetClipSubdocument(bool aClipSubdocument)
593 : {
594 : return NS_ERROR_NOT_IMPLEMENTED;
595 : }
596 :
597 : /* attribute boolean clampScrollPosition; */
598 : NS_IMETHODIMP nsFrameLoader::GetClampScrollPosition(bool *aClampScrollPosition)
599 : {
600 : return NS_ERROR_NOT_IMPLEMENTED;
601 : }
602 : NS_IMETHODIMP nsFrameLoader::SetClampScrollPosition(bool aClampScrollPosition)
603 : {
604 : return NS_ERROR_NOT_IMPLEMENTED;
605 : }
606 :
607 : /* End of implementation class template. */
608 : #endif
609 :
610 :
611 : /* starting interface: nsIFrameLoaderOwner */
612 : #define NS_IFRAMELOADEROWNER_IID_STR "5879040e-83e9-40e3-b2bb-5ddf43b76e47"
613 :
614 : #define NS_IFRAMELOADEROWNER_IID \
615 : {0x5879040e, 0x83e9, 0x40e3, \
616 : { 0xb2, 0xbb, 0x5d, 0xdf, 0x43, 0xb7, 0x6e, 0x47 }}
617 :
618 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIFrameLoaderOwner : public nsISupports {
619 : public:
620 :
621 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IFRAMELOADEROWNER_IID)
622 :
623 : /* readonly attribute nsIFrameLoader frameLoader; */
624 : NS_SCRIPTABLE NS_IMETHOD GetFrameLoader(nsIFrameLoader * *aFrameLoader) = 0;
625 :
626 : /* [noscript,notxpcom] alreadyAddRefed_nsFrameLoader GetFrameLoader (); */
627 : NS_IMETHOD_(already_AddRefed<nsFrameLoader>) GetFrameLoader(void) = 0;
628 :
629 : /* void swapFrameLoaders (in nsIFrameLoaderOwner aOtherOwner); */
630 : NS_SCRIPTABLE NS_IMETHOD SwapFrameLoaders(nsIFrameLoaderOwner *aOtherOwner) = 0;
631 :
632 : };
633 :
634 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIFrameLoaderOwner, NS_IFRAMELOADEROWNER_IID)
635 :
636 : /* Use this macro when declaring classes that implement this interface. */
637 : #define NS_DECL_NSIFRAMELOADEROWNER \
638 : NS_SCRIPTABLE NS_IMETHOD GetFrameLoader(nsIFrameLoader * *aFrameLoader); \
639 : NS_IMETHOD_(already_AddRefed<nsFrameLoader>) GetFrameLoader(void); \
640 : NS_SCRIPTABLE NS_IMETHOD SwapFrameLoaders(nsIFrameLoaderOwner *aOtherOwner);
641 :
642 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
643 : #define NS_FORWARD_NSIFRAMELOADEROWNER(_to) \
644 : NS_SCRIPTABLE NS_IMETHOD GetFrameLoader(nsIFrameLoader * *aFrameLoader) { return _to GetFrameLoader(aFrameLoader); } \
645 : NS_IMETHOD_(already_AddRefed<nsFrameLoader>) GetFrameLoader(void) { return _to GetFrameLoader(); } \
646 : NS_SCRIPTABLE NS_IMETHOD SwapFrameLoaders(nsIFrameLoaderOwner *aOtherOwner) { return _to SwapFrameLoaders(aOtherOwner); }
647 :
648 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
649 : #define NS_FORWARD_SAFE_NSIFRAMELOADEROWNER(_to) \
650 : NS_SCRIPTABLE NS_IMETHOD GetFrameLoader(nsIFrameLoader * *aFrameLoader) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFrameLoader(aFrameLoader); } \
651 : NS_IMETHOD_(already_AddRefed<nsFrameLoader>) GetFrameLoader(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFrameLoader(); } \
652 : NS_SCRIPTABLE NS_IMETHOD SwapFrameLoaders(nsIFrameLoaderOwner *aOtherOwner) { return !_to ? NS_ERROR_NULL_POINTER : _to->SwapFrameLoaders(aOtherOwner); }
653 :
654 : #if 0
655 : /* Use the code below as a template for the implementation class for this interface. */
656 :
657 : /* Header file */
658 : class nsFrameLoaderOwner : public nsIFrameLoaderOwner
659 : {
660 : public:
661 : NS_DECL_ISUPPORTS
662 : NS_DECL_NSIFRAMELOADEROWNER
663 :
664 : nsFrameLoaderOwner();
665 :
666 : private:
667 : ~nsFrameLoaderOwner();
668 :
669 : protected:
670 : /* additional members */
671 : };
672 :
673 : /* Implementation file */
674 : NS_IMPL_ISUPPORTS1(nsFrameLoaderOwner, nsIFrameLoaderOwner)
675 :
676 : nsFrameLoaderOwner::nsFrameLoaderOwner()
677 : {
678 : /* member initializers and constructor code */
679 : }
680 :
681 : nsFrameLoaderOwner::~nsFrameLoaderOwner()
682 : {
683 : /* destructor code */
684 : }
685 :
686 : /* readonly attribute nsIFrameLoader frameLoader; */
687 : NS_IMETHODIMP nsFrameLoaderOwner::GetFrameLoader(nsIFrameLoader * *aFrameLoader)
688 : {
689 : return NS_ERROR_NOT_IMPLEMENTED;
690 : }
691 :
692 : /* [noscript,notxpcom] alreadyAddRefed_nsFrameLoader GetFrameLoader (); */
693 : NS_IMETHODIMP_(already_AddRefed<nsFrameLoader>) nsFrameLoaderOwner::GetFrameLoader()
694 : {
695 : return NS_ERROR_NOT_IMPLEMENTED;
696 : }
697 :
698 : /* void swapFrameLoaders (in nsIFrameLoaderOwner aOtherOwner); */
699 : NS_IMETHODIMP nsFrameLoaderOwner::SwapFrameLoaders(nsIFrameLoaderOwner *aOtherOwner)
700 : {
701 : return NS_ERROR_NOT_IMPLEMENTED;
702 : }
703 :
704 : /* End of implementation class template. */
705 : #endif
706 :
707 :
708 : #endif /* __gen_nsIFrameLoader_h__ */
|