1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/base/nsIDOMWindowUtils.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMWindowUtils_h__
6 : #define __gen_nsIDOMWindowUtils_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #include "jspubtd.h"
14 :
15 : /* For IDL files that don't want to include root IDL files. */
16 : #ifndef NS_NO_VTABLE
17 : #define NS_NO_VTABLE
18 : #endif
19 : #include "nsColor.h"
20 : #include "nsRect.h"
21 : #include "gfxContext.h"
22 : typedef PRUint64 nsViewID;
23 :
24 : class nsICycleCollectorListener; /* forward declaration */
25 :
26 : class nsIDOMNode; /* forward declaration */
27 :
28 : class nsIDOMNodeList; /* forward declaration */
29 :
30 : class nsIDOMElement; /* forward declaration */
31 :
32 : class nsIDOMHTMLCanvasElement; /* forward declaration */
33 :
34 : class nsIDOMEvent; /* forward declaration */
35 :
36 : class nsITransferable; /* forward declaration */
37 :
38 : class nsIQueryContentEventResult; /* forward declaration */
39 :
40 : class nsIDOMWindow; /* forward declaration */
41 :
42 : class nsIDOMBlob; /* forward declaration */
43 :
44 : class nsIDOMFile; /* forward declaration */
45 :
46 : class nsIFile; /* forward declaration */
47 :
48 : class nsIDOMTouch; /* forward declaration */
49 :
50 :
51 : /* starting interface: nsIDOMWindowUtils */
52 : #define NS_IDOMWINDOWUTILS_IID_STR "73b48170-55d5-11e1-b86c-0800200c9a66"
53 :
54 : #define NS_IDOMWINDOWUTILS_IID \
55 : {0x73b48170, 0x55d5, 0x11e1, \
56 : { 0xb8, 0x6c, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66 }}
57 :
58 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMWindowUtils : public nsISupports {
59 : public:
60 :
61 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMWINDOWUTILS_IID)
62 :
63 : /* attribute unsigned short imageAnimationMode; */
64 : NS_SCRIPTABLE NS_IMETHOD GetImageAnimationMode(PRUint16 *aImageAnimationMode) = 0;
65 : NS_SCRIPTABLE NS_IMETHOD SetImageAnimationMode(PRUint16 aImageAnimationMode) = 0;
66 :
67 : /* readonly attribute boolean docCharsetIsForced; */
68 : NS_SCRIPTABLE NS_IMETHOD GetDocCharsetIsForced(bool *aDocCharsetIsForced) = 0;
69 :
70 : /* short getCursorType (); */
71 : NS_SCRIPTABLE NS_IMETHOD GetCursorType(PRInt16 *_retval NS_OUTPARAM) = 0;
72 :
73 : /* AString getDocumentMetadata (in AString aName); */
74 : NS_SCRIPTABLE NS_IMETHOD GetDocumentMetadata(const nsAString & aName, nsAString & _retval NS_OUTPARAM) = 0;
75 :
76 : /* unsigned long redraw ([optional] in unsigned long aCount); */
77 : NS_SCRIPTABLE NS_IMETHOD Redraw(PRUint32 aCount, PRUint32 *_retval NS_OUTPARAM) = 0;
78 :
79 : /* void setCSSViewport (in float aWidthPx, in float aHeightPx); */
80 : NS_SCRIPTABLE NS_IMETHOD SetCSSViewport(float aWidthPx, float aHeightPx) = 0;
81 :
82 : /* void setDisplayPortForElement (in float aXPx, in float aYPx, in float aWidthPx, in float aHeightPx, in nsIDOMElement aElement); */
83 : NS_SCRIPTABLE NS_IMETHOD SetDisplayPortForElement(float aXPx, float aYPx, float aWidthPx, float aHeightPx, nsIDOMElement *aElement) = 0;
84 :
85 : /* void setResolution (in float aXResolution, in float aYResolution); */
86 : NS_SCRIPTABLE NS_IMETHOD SetResolution(float aXResolution, float aYResolution) = 0;
87 :
88 : /* void sendMouseEvent (in AString aType, in float aX, in float aY, in long aButton, in long aClickCount, in long aModifiers, [optional] in boolean aIgnoreRootScrollFrame); */
89 : NS_SCRIPTABLE NS_IMETHOD SendMouseEvent(const nsAString & aType, float aX, float aY, PRInt32 aButton, PRInt32 aClickCount, PRInt32 aModifiers, bool aIgnoreRootScrollFrame) = 0;
90 :
91 : /* boolean sendTouchEvent (in AString aType, [array, size_is (count)] in PRUint32 aIdentifiers, [array, size_is (count)] in PRInt32 aXs, [array, size_is (count)] in PRInt32 aYs, [array, size_is (count)] in PRUint32 aRxs, [array, size_is (count)] in PRUint32 aRys, [array, size_is (count)] in float aRotationAngles, [array, size_is (count)] in float aForces, in PRUint32 count, in long aModifiers, [optional] in boolean aIgnoreRootScrollFrame); */
92 : NS_SCRIPTABLE NS_IMETHOD SendTouchEvent(const nsAString & aType, PRUint32 *aIdentifiers, PRInt32 *aXs, PRInt32 *aYs, PRUint32 *aRxs, PRUint32 *aRys, float *aRotationAngles, float *aForces, PRUint32 count, PRInt32 aModifiers, bool aIgnoreRootScrollFrame, bool *_retval NS_OUTPARAM) = 0;
93 :
94 : /* void sendMouseEventToWindow (in AString aType, in float aX, in float aY, in long aButton, in long aClickCount, in long aModifiers, [optional] in boolean aIgnoreRootScrollFrame); */
95 : NS_SCRIPTABLE NS_IMETHOD SendMouseEventToWindow(const nsAString & aType, float aX, float aY, PRInt32 aButton, PRInt32 aClickCount, PRInt32 aModifiers, bool aIgnoreRootScrollFrame) = 0;
96 :
97 : /* void sendMouseScrollEvent (in AString aType, in float aX, in float aY, in long aButton, in long aScrollFlags, in long aDelta, in long aModifiers); */
98 : NS_SCRIPTABLE NS_IMETHOD SendMouseScrollEvent(const nsAString & aType, float aX, float aY, PRInt32 aButton, PRInt32 aScrollFlags, PRInt32 aDelta, PRInt32 aModifiers) = 0;
99 :
100 : /* boolean sendKeyEvent (in AString aType, in long aKeyCode, in long aCharCode, in long aModifiers, [optional] in boolean aPreventDefault); */
101 : NS_SCRIPTABLE NS_IMETHOD SendKeyEvent(const nsAString & aType, PRInt32 aKeyCode, PRInt32 aCharCode, PRInt32 aModifiers, bool aPreventDefault, bool *_retval NS_OUTPARAM) = 0;
102 :
103 : /* void sendNativeKeyEvent (in long aNativeKeyboardLayout, in long aNativeKeyCode, in long aModifierFlags, in AString aCharacters, in AString aUnmodifiedCharacters); */
104 : NS_SCRIPTABLE NS_IMETHOD SendNativeKeyEvent(PRInt32 aNativeKeyboardLayout, PRInt32 aNativeKeyCode, PRInt32 aModifierFlags, const nsAString & aCharacters, const nsAString & aUnmodifiedCharacters) = 0;
105 :
106 : /* void sendNativeMouseEvent (in long aScreenX, in long aScreenY, in long aNativeMessage, in long aModifierFlags, in nsIDOMElement aElement); */
107 : NS_SCRIPTABLE NS_IMETHOD SendNativeMouseEvent(PRInt32 aScreenX, PRInt32 aScreenY, PRInt32 aNativeMessage, PRInt32 aModifierFlags, nsIDOMElement *aElement) = 0;
108 :
109 : /* void activateNativeMenuItemAt (in AString indexString); */
110 : NS_SCRIPTABLE NS_IMETHOD ActivateNativeMenuItemAt(const nsAString & indexString) = 0;
111 :
112 : /* void forceUpdateNativeMenuAt (in AString indexString); */
113 : NS_SCRIPTABLE NS_IMETHOD ForceUpdateNativeMenuAt(const nsAString & indexString) = 0;
114 :
115 : /* void focus (in nsIDOMElement aElement); */
116 : NS_SCRIPTABLE NS_IMETHOD Focus(nsIDOMElement *aElement) = 0;
117 :
118 : /* void garbageCollect ([optional] in nsICycleCollectorListener aListener, [optional] in long aExtraForgetSkippableCalls); */
119 : NS_SCRIPTABLE NS_IMETHOD GarbageCollect(nsICycleCollectorListener *aListener, PRInt32 aExtraForgetSkippableCalls) = 0;
120 :
121 : /* void cycleCollect ([optional] in nsICycleCollectorListener aListener, [optional] in long aExtraForgetSkippableCalls); */
122 : NS_SCRIPTABLE NS_IMETHOD CycleCollect(nsICycleCollectorListener *aListener, PRInt32 aExtraForgetSkippableCalls) = 0;
123 :
124 : /* void sendSimpleGestureEvent (in AString aType, in float aX, in float aY, in unsigned long aDirection, in double aDelta, in long aModifiers); */
125 : NS_SCRIPTABLE NS_IMETHOD SendSimpleGestureEvent(const nsAString & aType, float aX, float aY, PRUint32 aDirection, double aDelta, PRInt32 aModifiers) = 0;
126 :
127 : /* nsIDOMElement elementFromPoint (in float aX, in float aY, in boolean aIgnoreRootScrollFrame, in boolean aFlushLayout); */
128 : NS_SCRIPTABLE NS_IMETHOD ElementFromPoint(float aX, float aY, bool aIgnoreRootScrollFrame, bool aFlushLayout, nsIDOMElement * *_retval NS_OUTPARAM) = 0;
129 :
130 : /* nsIDOMNodeList nodesFromRect (in float aX, in float aY, in float aTopSize, in float aRightSize, in float aBottomSize, in float aLeftSize, in boolean aIgnoreRootScrollFrame, in boolean aFlushLayout); */
131 : NS_SCRIPTABLE NS_IMETHOD NodesFromRect(float aX, float aY, float aTopSize, float aRightSize, float aBottomSize, float aLeftSize, bool aIgnoreRootScrollFrame, bool aFlushLayout, nsIDOMNodeList * *_retval NS_OUTPARAM) = 0;
132 :
133 : /* PRUint32 compareCanvases (in nsIDOMHTMLCanvasElement aCanvas1, in nsIDOMHTMLCanvasElement aCanvas2, out unsigned long aMaxDifference); */
134 : NS_SCRIPTABLE NS_IMETHOD CompareCanvases(nsIDOMHTMLCanvasElement *aCanvas1, nsIDOMHTMLCanvasElement *aCanvas2, PRUint32 *aMaxDifference NS_OUTPARAM, PRUint32 *_retval NS_OUTPARAM) = 0;
135 :
136 : /* readonly attribute boolean isMozAfterPaintPending; */
137 : NS_SCRIPTABLE NS_IMETHOD GetIsMozAfterPaintPending(bool *aIsMozAfterPaintPending) = 0;
138 :
139 : /* void suppressEventHandling (in boolean aSuppress); */
140 : NS_SCRIPTABLE NS_IMETHOD SuppressEventHandling(bool aSuppress) = 0;
141 :
142 : /* void clearMozAfterPaintEvents (); */
143 : NS_SCRIPTABLE NS_IMETHOD ClearMozAfterPaintEvents(void) = 0;
144 :
145 : /* void disableNonTestMouseEvents (in boolean aDisable); */
146 : NS_SCRIPTABLE NS_IMETHOD DisableNonTestMouseEvents(bool aDisable) = 0;
147 :
148 : /* void getScrollXY (in boolean aFlushLayout, out long aScrollX, out long aScrollY); */
149 : NS_SCRIPTABLE NS_IMETHOD GetScrollXY(bool aFlushLayout, PRInt32 *aScrollX NS_OUTPARAM, PRInt32 *aScrollY NS_OUTPARAM) = 0;
150 :
151 : /* readonly attribute boolean IMEIsOpen; */
152 : NS_SCRIPTABLE NS_IMETHOD GetIMEIsOpen(bool *aIMEIsOpen) = 0;
153 :
154 : enum {
155 : IME_STATUS_DISABLED = 0U,
156 : IME_STATUS_ENABLED = 1U,
157 : IME_STATUS_PASSWORD = 2U,
158 : IME_STATUS_PLUGIN = 3U
159 : };
160 :
161 : /* readonly attribute unsigned long IMEStatus; */
162 : NS_SCRIPTABLE NS_IMETHOD GetIMEStatus(PRUint32 *aIMEStatus) = 0;
163 :
164 : /* readonly attribute float screenPixelsPerCSSPixel; */
165 : NS_SCRIPTABLE NS_IMETHOD GetScreenPixelsPerCSSPixel(float *aScreenPixelsPerCSSPixel) = 0;
166 :
167 : /* boolean dispatchDOMEventViaPresShell (in nsIDOMNode aTarget, in nsIDOMEvent aEvent, in boolean aTrusted); */
168 : NS_SCRIPTABLE NS_IMETHOD DispatchDOMEventViaPresShell(nsIDOMNode *aTarget, nsIDOMEvent *aEvent, bool aTrusted, bool *_retval NS_OUTPARAM) = 0;
169 :
170 : /* [implicit_jscontext] string getClassName (in jsval aObject); */
171 : NS_SCRIPTABLE NS_IMETHOD GetClassName(const JS::Value & aObject, JSContext* cx, char * *_retval NS_OUTPARAM) = 0;
172 :
173 : /* void sendContentCommandEvent (in AString aType, [optional] in nsITransferable aTransferable); */
174 : NS_SCRIPTABLE NS_IMETHOD SendContentCommandEvent(const nsAString & aType, nsITransferable *aTransferable) = 0;
175 :
176 : /* void sendCompositionEvent (in AString aType, in AString aData, in AString aLocale); */
177 : NS_SCRIPTABLE NS_IMETHOD SendCompositionEvent(const nsAString & aType, const nsAString & aData, const nsAString & aLocale) = 0;
178 :
179 : enum {
180 : COMPOSITION_ATTR_RAWINPUT = 2U,
181 : COMPOSITION_ATTR_SELECTEDRAWTEXT = 3U,
182 : COMPOSITION_ATTR_CONVERTEDTEXT = 4U,
183 : COMPOSITION_ATTR_SELECTEDCONVERTEDTEXT = 5U
184 : };
185 :
186 : /* void sendTextEvent (in AString aCompositionString, in long aFirstClauseLength, in unsigned long aFirstClauseAttr, in long aSecondClauseLength, in unsigned long aSecondClauseAttr, in long aThirdClauseLength, in unsigned long aThirdClauseAttr, in long aCaretStart, in long aCaretLength); */
187 : NS_SCRIPTABLE NS_IMETHOD SendTextEvent(const nsAString & aCompositionString, PRInt32 aFirstClauseLength, PRUint32 aFirstClauseAttr, PRInt32 aSecondClauseLength, PRUint32 aSecondClauseAttr, PRInt32 aThirdClauseLength, PRUint32 aThirdClauseAttr, PRInt32 aCaretStart, PRInt32 aCaretLength) = 0;
188 :
189 : /* nsIQueryContentEventResult sendQueryContentEvent (in unsigned long aType, in unsigned long aOffset, in unsigned long aLength, in long aX, in long aY); */
190 : NS_SCRIPTABLE NS_IMETHOD SendQueryContentEvent(PRUint32 aType, PRUint32 aOffset, PRUint32 aLength, PRInt32 aX, PRInt32 aY, nsIQueryContentEventResult * *_retval NS_OUTPARAM) = 0;
191 :
192 : enum {
193 : QUERY_SELECTED_TEXT = 3200U,
194 : QUERY_TEXT_CONTENT = 3201U,
195 : QUERY_CARET_RECT = 3203U,
196 : QUERY_TEXT_RECT = 3204U,
197 : QUERY_EDITOR_RECT = 3205U,
198 : QUERY_CHARACTER_AT_POINT = 3208U
199 : };
200 :
201 : /* boolean sendSelectionSetEvent (in unsigned long aOffset, in unsigned long aLength, in boolean aReverse); */
202 : NS_SCRIPTABLE NS_IMETHOD SendSelectionSetEvent(PRUint32 aOffset, PRUint32 aLength, bool aReverse, bool *_retval NS_OUTPARAM) = 0;
203 :
204 : /* AString getVisitedDependentComputedStyle (in nsIDOMElement aElement, in AString aPseudoElement, in AString aPropertyName); */
205 : NS_SCRIPTABLE NS_IMETHOD GetVisitedDependentComputedStyle(nsIDOMElement *aElement, const nsAString & aPseudoElement, const nsAString & aPropertyName, nsAString & _retval NS_OUTPARAM) = 0;
206 :
207 : /* [implicit_jscontext] jsval getParent (in jsval obj); */
208 : NS_SCRIPTABLE NS_IMETHOD GetParent(const JS::Value & obj, JSContext* cx, JS::Value *_retval NS_OUTPARAM) = 0;
209 :
210 : /* readonly attribute unsigned long long outerWindowID; */
211 : NS_SCRIPTABLE NS_IMETHOD GetOuterWindowID(PRUint64 *aOuterWindowID) = 0;
212 :
213 : /* readonly attribute unsigned long long currentInnerWindowID; */
214 : NS_SCRIPTABLE NS_IMETHOD GetCurrentInnerWindowID(PRUint64 *aCurrentInnerWindowID) = 0;
215 :
216 : /* [noscript] void enterModalState (); */
217 : NS_IMETHOD EnterModalState(void) = 0;
218 :
219 : /* [noscript] void leaveModalState (); */
220 : NS_IMETHOD LeaveModalState(void) = 0;
221 :
222 : /* nsIDOMWindow enterModalStateWithWindow (); */
223 : NS_SCRIPTABLE NS_IMETHOD EnterModalStateWithWindow(nsIDOMWindow * *_retval NS_OUTPARAM) = 0;
224 :
225 : /* void leaveModalStateWithWindow (in nsIDOMWindow aWindow); */
226 : NS_SCRIPTABLE NS_IMETHOD LeaveModalStateWithWindow(nsIDOMWindow *aWindow) = 0;
227 :
228 : /* [noscript] boolean isInModalState (); */
229 : NS_IMETHOD IsInModalState(bool *_retval NS_OUTPARAM) = 0;
230 :
231 : /* void suspendTimeouts (); */
232 : NS_SCRIPTABLE NS_IMETHOD SuspendTimeouts(void) = 0;
233 :
234 : /* void resumeTimeouts (); */
235 : NS_SCRIPTABLE NS_IMETHOD ResumeTimeouts(void) = 0;
236 :
237 : /* void goOnline (); */
238 : NS_SCRIPTABLE NS_IMETHOD GoOnline(void) = 0;
239 :
240 : /* readonly attribute AString layerManagerType; */
241 : NS_SCRIPTABLE NS_IMETHOD GetLayerManagerType(nsAString & aLayerManagerType) = 0;
242 :
243 : /* void startFrameTimeRecording (); */
244 : NS_SCRIPTABLE NS_IMETHOD StartFrameTimeRecording(void) = 0;
245 :
246 : /* void stopFrameTimeRecording ([optional] out unsigned long frameCount, [array, size_is (frameCount), retval] out float frameTime); */
247 : NS_SCRIPTABLE NS_IMETHOD StopFrameTimeRecording(PRUint32 *frameCount NS_OUTPARAM, float **frameTime NS_OUTPARAM) = 0;
248 :
249 : /* readonly attribute float displayDPI; */
250 : NS_SCRIPTABLE NS_IMETHOD GetDisplayDPI(float *aDisplayDPI) = 0;
251 :
252 : /* nsIDOMWindow getOuterWindowWithId (in unsigned long long aOuterWindowID); */
253 : NS_SCRIPTABLE NS_IMETHOD GetOuterWindowWithId(PRUint64 aOuterWindowID, nsIDOMWindow * *_retval NS_OUTPARAM) = 0;
254 :
255 : /* [noscript] void RenderDocument (in nsConstRect aRect, in PRUint32 aFlags, in nscolor aBackgroundColor, in gfxContext aThebesContext); */
256 : NS_IMETHOD RenderDocument(const nsRect & aRect, PRUint32 aFlags, nscolor aBackgroundColor, gfxContext *aThebesContext) = 0;
257 :
258 : /* void advanceTimeAndRefresh (in long long aMilliseconds); */
259 : NS_SCRIPTABLE NS_IMETHOD AdvanceTimeAndRefresh(PRInt64 aMilliseconds) = 0;
260 :
261 : /* void restoreNormalRefresh (); */
262 : NS_SCRIPTABLE NS_IMETHOD RestoreNormalRefresh(void) = 0;
263 :
264 : /* double computeAnimationDistance (in nsIDOMElement element, in AString property, in AString value1, in AString value2); */
265 : NS_SCRIPTABLE NS_IMETHOD ComputeAnimationDistance(nsIDOMElement *element, const nsAString & property, const nsAString & value1, const nsAString & value2, double *_retval NS_OUTPARAM) = 0;
266 :
267 : /* nsIDOMFile wrapDOMFile (in nsIFile aFile); */
268 : NS_SCRIPTABLE NS_IMETHOD WrapDOMFile(nsIFile *aFile, nsIDOMFile * *_retval NS_OUTPARAM) = 0;
269 :
270 : /* readonly attribute string focusedInputType; */
271 : NS_SCRIPTABLE NS_IMETHOD GetFocusedInputType(char * *aFocusedInputType) = 0;
272 :
273 : /* nsIDOMElement findElementWithViewId (in nsViewID aId); */
274 : NS_SCRIPTABLE NS_IMETHOD FindElementWithViewId(nsViewID aId, nsIDOMElement * *_retval NS_OUTPARAM) = 0;
275 :
276 : /* boolean leafLayersPartitionWindow (); */
277 : NS_SCRIPTABLE NS_IMETHOD LeafLayersPartitionWindow(bool *_retval NS_OUTPARAM) = 0;
278 :
279 : /* readonly attribute boolean mayHaveTouchEventListeners; */
280 : NS_SCRIPTABLE NS_IMETHOD GetMayHaveTouchEventListeners(bool *aMayHaveTouchEventListeners) = 0;
281 :
282 : /* boolean checkAndClearPaintedState (in nsIDOMElement aElement); */
283 : NS_SCRIPTABLE NS_IMETHOD CheckAndClearPaintedState(nsIDOMElement *aElement, bool *_retval NS_OUTPARAM) = 0;
284 :
285 : /* long long getFileId (in nsIDOMBlob aBlob); */
286 : NS_SCRIPTABLE NS_IMETHOD GetFileId(nsIDOMBlob *aBlob, PRInt64 *_retval NS_OUTPARAM) = 0;
287 :
288 : /* boolean getFileReferences (in AString aDatabaseName, in long long aId, [optional] out long aRefCnt, [optional] out long aDBRefCnt, [optional] out long aSliceRefCnt); */
289 : NS_SCRIPTABLE NS_IMETHOD GetFileReferences(const nsAString & aDatabaseName, PRInt64 aId, PRInt32 *aRefCnt NS_OUTPARAM, PRInt32 *aDBRefCnt NS_OUTPARAM, PRInt32 *aSliceRefCnt NS_OUTPARAM, bool *_retval NS_OUTPARAM) = 0;
290 :
291 : /* [implicit_jscontext] boolean isIncrementalGCEnabled (); */
292 : NS_SCRIPTABLE NS_IMETHOD IsIncrementalGCEnabled(JSContext* cx, bool *_retval NS_OUTPARAM) = 0;
293 :
294 : /* [implicit_jscontext] void startPCCountProfiling (); */
295 : NS_SCRIPTABLE NS_IMETHOD StartPCCountProfiling(JSContext* cx) = 0;
296 :
297 : /* [implicit_jscontext] void stopPCCountProfiling (); */
298 : NS_SCRIPTABLE NS_IMETHOD StopPCCountProfiling(JSContext* cx) = 0;
299 :
300 : /* [implicit_jscontext] void purgePCCounts (); */
301 : NS_SCRIPTABLE NS_IMETHOD PurgePCCounts(JSContext* cx) = 0;
302 :
303 : /* [implicit_jscontext] long getPCCountScriptCount (); */
304 : NS_SCRIPTABLE NS_IMETHOD GetPCCountScriptCount(JSContext* cx, PRInt32 *_retval NS_OUTPARAM) = 0;
305 :
306 : /* [implicit_jscontext] AString getPCCountScriptSummary (in long script); */
307 : NS_SCRIPTABLE NS_IMETHOD GetPCCountScriptSummary(PRInt32 script, JSContext* cx, nsAString & _retval NS_OUTPARAM) = 0;
308 :
309 : /* [implicit_jscontext] AString getPCCountScriptContents (in long script); */
310 : NS_SCRIPTABLE NS_IMETHOD GetPCCountScriptContents(PRInt32 script, JSContext* cx, nsAString & _retval NS_OUTPARAM) = 0;
311 :
312 : /* readonly attribute boolean paintingSuppressed; */
313 : NS_SCRIPTABLE NS_IMETHOD GetPaintingSuppressed(bool *aPaintingSuppressed) = 0;
314 :
315 : };
316 :
317 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMWindowUtils, NS_IDOMWINDOWUTILS_IID)
318 :
319 : /* Use this macro when declaring classes that implement this interface. */
320 : #define NS_DECL_NSIDOMWINDOWUTILS \
321 : NS_SCRIPTABLE NS_IMETHOD GetImageAnimationMode(PRUint16 *aImageAnimationMode); \
322 : NS_SCRIPTABLE NS_IMETHOD SetImageAnimationMode(PRUint16 aImageAnimationMode); \
323 : NS_SCRIPTABLE NS_IMETHOD GetDocCharsetIsForced(bool *aDocCharsetIsForced); \
324 : NS_SCRIPTABLE NS_IMETHOD GetCursorType(PRInt16 *_retval NS_OUTPARAM); \
325 : NS_SCRIPTABLE NS_IMETHOD GetDocumentMetadata(const nsAString & aName, nsAString & _retval NS_OUTPARAM); \
326 : NS_SCRIPTABLE NS_IMETHOD Redraw(PRUint32 aCount, PRUint32 *_retval NS_OUTPARAM); \
327 : NS_SCRIPTABLE NS_IMETHOD SetCSSViewport(float aWidthPx, float aHeightPx); \
328 : NS_SCRIPTABLE NS_IMETHOD SetDisplayPortForElement(float aXPx, float aYPx, float aWidthPx, float aHeightPx, nsIDOMElement *aElement); \
329 : NS_SCRIPTABLE NS_IMETHOD SetResolution(float aXResolution, float aYResolution); \
330 : NS_SCRIPTABLE NS_IMETHOD SendMouseEvent(const nsAString & aType, float aX, float aY, PRInt32 aButton, PRInt32 aClickCount, PRInt32 aModifiers, bool aIgnoreRootScrollFrame); \
331 : NS_SCRIPTABLE NS_IMETHOD SendTouchEvent(const nsAString & aType, PRUint32 *aIdentifiers, PRInt32 *aXs, PRInt32 *aYs, PRUint32 *aRxs, PRUint32 *aRys, float *aRotationAngles, float *aForces, PRUint32 count, PRInt32 aModifiers, bool aIgnoreRootScrollFrame, bool *_retval NS_OUTPARAM); \
332 : NS_SCRIPTABLE NS_IMETHOD SendMouseEventToWindow(const nsAString & aType, float aX, float aY, PRInt32 aButton, PRInt32 aClickCount, PRInt32 aModifiers, bool aIgnoreRootScrollFrame); \
333 : NS_SCRIPTABLE NS_IMETHOD SendMouseScrollEvent(const nsAString & aType, float aX, float aY, PRInt32 aButton, PRInt32 aScrollFlags, PRInt32 aDelta, PRInt32 aModifiers); \
334 : NS_SCRIPTABLE NS_IMETHOD SendKeyEvent(const nsAString & aType, PRInt32 aKeyCode, PRInt32 aCharCode, PRInt32 aModifiers, bool aPreventDefault, bool *_retval NS_OUTPARAM); \
335 : NS_SCRIPTABLE NS_IMETHOD SendNativeKeyEvent(PRInt32 aNativeKeyboardLayout, PRInt32 aNativeKeyCode, PRInt32 aModifierFlags, const nsAString & aCharacters, const nsAString & aUnmodifiedCharacters); \
336 : NS_SCRIPTABLE NS_IMETHOD SendNativeMouseEvent(PRInt32 aScreenX, PRInt32 aScreenY, PRInt32 aNativeMessage, PRInt32 aModifierFlags, nsIDOMElement *aElement); \
337 : NS_SCRIPTABLE NS_IMETHOD ActivateNativeMenuItemAt(const nsAString & indexString); \
338 : NS_SCRIPTABLE NS_IMETHOD ForceUpdateNativeMenuAt(const nsAString & indexString); \
339 : NS_SCRIPTABLE NS_IMETHOD Focus(nsIDOMElement *aElement); \
340 : NS_SCRIPTABLE NS_IMETHOD GarbageCollect(nsICycleCollectorListener *aListener, PRInt32 aExtraForgetSkippableCalls); \
341 : NS_SCRIPTABLE NS_IMETHOD CycleCollect(nsICycleCollectorListener *aListener, PRInt32 aExtraForgetSkippableCalls); \
342 : NS_SCRIPTABLE NS_IMETHOD SendSimpleGestureEvent(const nsAString & aType, float aX, float aY, PRUint32 aDirection, double aDelta, PRInt32 aModifiers); \
343 : NS_SCRIPTABLE NS_IMETHOD ElementFromPoint(float aX, float aY, bool aIgnoreRootScrollFrame, bool aFlushLayout, nsIDOMElement * *_retval NS_OUTPARAM); \
344 : NS_SCRIPTABLE NS_IMETHOD NodesFromRect(float aX, float aY, float aTopSize, float aRightSize, float aBottomSize, float aLeftSize, bool aIgnoreRootScrollFrame, bool aFlushLayout, nsIDOMNodeList * *_retval NS_OUTPARAM); \
345 : NS_SCRIPTABLE NS_IMETHOD CompareCanvases(nsIDOMHTMLCanvasElement *aCanvas1, nsIDOMHTMLCanvasElement *aCanvas2, PRUint32 *aMaxDifference NS_OUTPARAM, PRUint32 *_retval NS_OUTPARAM); \
346 : NS_SCRIPTABLE NS_IMETHOD GetIsMozAfterPaintPending(bool *aIsMozAfterPaintPending); \
347 : NS_SCRIPTABLE NS_IMETHOD SuppressEventHandling(bool aSuppress); \
348 : NS_SCRIPTABLE NS_IMETHOD ClearMozAfterPaintEvents(void); \
349 : NS_SCRIPTABLE NS_IMETHOD DisableNonTestMouseEvents(bool aDisable); \
350 : NS_SCRIPTABLE NS_IMETHOD GetScrollXY(bool aFlushLayout, PRInt32 *aScrollX NS_OUTPARAM, PRInt32 *aScrollY NS_OUTPARAM); \
351 : NS_SCRIPTABLE NS_IMETHOD GetIMEIsOpen(bool *aIMEIsOpen); \
352 : NS_SCRIPTABLE NS_IMETHOD GetIMEStatus(PRUint32 *aIMEStatus); \
353 : NS_SCRIPTABLE NS_IMETHOD GetScreenPixelsPerCSSPixel(float *aScreenPixelsPerCSSPixel); \
354 : NS_SCRIPTABLE NS_IMETHOD DispatchDOMEventViaPresShell(nsIDOMNode *aTarget, nsIDOMEvent *aEvent, bool aTrusted, bool *_retval NS_OUTPARAM); \
355 : NS_SCRIPTABLE NS_IMETHOD GetClassName(const JS::Value & aObject, JSContext* cx, char * *_retval NS_OUTPARAM); \
356 : NS_SCRIPTABLE NS_IMETHOD SendContentCommandEvent(const nsAString & aType, nsITransferable *aTransferable); \
357 : NS_SCRIPTABLE NS_IMETHOD SendCompositionEvent(const nsAString & aType, const nsAString & aData, const nsAString & aLocale); \
358 : NS_SCRIPTABLE NS_IMETHOD SendTextEvent(const nsAString & aCompositionString, PRInt32 aFirstClauseLength, PRUint32 aFirstClauseAttr, PRInt32 aSecondClauseLength, PRUint32 aSecondClauseAttr, PRInt32 aThirdClauseLength, PRUint32 aThirdClauseAttr, PRInt32 aCaretStart, PRInt32 aCaretLength); \
359 : NS_SCRIPTABLE NS_IMETHOD SendQueryContentEvent(PRUint32 aType, PRUint32 aOffset, PRUint32 aLength, PRInt32 aX, PRInt32 aY, nsIQueryContentEventResult * *_retval NS_OUTPARAM); \
360 : NS_SCRIPTABLE NS_IMETHOD SendSelectionSetEvent(PRUint32 aOffset, PRUint32 aLength, bool aReverse, bool *_retval NS_OUTPARAM); \
361 : NS_SCRIPTABLE NS_IMETHOD GetVisitedDependentComputedStyle(nsIDOMElement *aElement, const nsAString & aPseudoElement, const nsAString & aPropertyName, nsAString & _retval NS_OUTPARAM); \
362 : NS_SCRIPTABLE NS_IMETHOD GetParent(const JS::Value & obj, JSContext* cx, JS::Value *_retval NS_OUTPARAM); \
363 : NS_SCRIPTABLE NS_IMETHOD GetOuterWindowID(PRUint64 *aOuterWindowID); \
364 : NS_SCRIPTABLE NS_IMETHOD GetCurrentInnerWindowID(PRUint64 *aCurrentInnerWindowID); \
365 : NS_IMETHOD EnterModalState(void); \
366 : NS_IMETHOD LeaveModalState(void); \
367 : NS_SCRIPTABLE NS_IMETHOD EnterModalStateWithWindow(nsIDOMWindow * *_retval NS_OUTPARAM); \
368 : NS_SCRIPTABLE NS_IMETHOD LeaveModalStateWithWindow(nsIDOMWindow *aWindow); \
369 : NS_IMETHOD IsInModalState(bool *_retval NS_OUTPARAM); \
370 : NS_SCRIPTABLE NS_IMETHOD SuspendTimeouts(void); \
371 : NS_SCRIPTABLE NS_IMETHOD ResumeTimeouts(void); \
372 : NS_SCRIPTABLE NS_IMETHOD GoOnline(void); \
373 : NS_SCRIPTABLE NS_IMETHOD GetLayerManagerType(nsAString & aLayerManagerType); \
374 : NS_SCRIPTABLE NS_IMETHOD StartFrameTimeRecording(void); \
375 : NS_SCRIPTABLE NS_IMETHOD StopFrameTimeRecording(PRUint32 *frameCount NS_OUTPARAM, float **frameTime NS_OUTPARAM); \
376 : NS_SCRIPTABLE NS_IMETHOD GetDisplayDPI(float *aDisplayDPI); \
377 : NS_SCRIPTABLE NS_IMETHOD GetOuterWindowWithId(PRUint64 aOuterWindowID, nsIDOMWindow * *_retval NS_OUTPARAM); \
378 : NS_IMETHOD RenderDocument(const nsRect & aRect, PRUint32 aFlags, nscolor aBackgroundColor, gfxContext *aThebesContext); \
379 : NS_SCRIPTABLE NS_IMETHOD AdvanceTimeAndRefresh(PRInt64 aMilliseconds); \
380 : NS_SCRIPTABLE NS_IMETHOD RestoreNormalRefresh(void); \
381 : NS_SCRIPTABLE NS_IMETHOD ComputeAnimationDistance(nsIDOMElement *element, const nsAString & property, const nsAString & value1, const nsAString & value2, double *_retval NS_OUTPARAM); \
382 : NS_SCRIPTABLE NS_IMETHOD WrapDOMFile(nsIFile *aFile, nsIDOMFile * *_retval NS_OUTPARAM); \
383 : NS_SCRIPTABLE NS_IMETHOD GetFocusedInputType(char * *aFocusedInputType); \
384 : NS_SCRIPTABLE NS_IMETHOD FindElementWithViewId(nsViewID aId, nsIDOMElement * *_retval NS_OUTPARAM); \
385 : NS_SCRIPTABLE NS_IMETHOD LeafLayersPartitionWindow(bool *_retval NS_OUTPARAM); \
386 : NS_SCRIPTABLE NS_IMETHOD GetMayHaveTouchEventListeners(bool *aMayHaveTouchEventListeners); \
387 : NS_SCRIPTABLE NS_IMETHOD CheckAndClearPaintedState(nsIDOMElement *aElement, bool *_retval NS_OUTPARAM); \
388 : NS_SCRIPTABLE NS_IMETHOD GetFileId(nsIDOMBlob *aBlob, PRInt64 *_retval NS_OUTPARAM); \
389 : NS_SCRIPTABLE NS_IMETHOD GetFileReferences(const nsAString & aDatabaseName, PRInt64 aId, PRInt32 *aRefCnt NS_OUTPARAM, PRInt32 *aDBRefCnt NS_OUTPARAM, PRInt32 *aSliceRefCnt NS_OUTPARAM, bool *_retval NS_OUTPARAM); \
390 : NS_SCRIPTABLE NS_IMETHOD IsIncrementalGCEnabled(JSContext* cx, bool *_retval NS_OUTPARAM); \
391 : NS_SCRIPTABLE NS_IMETHOD StartPCCountProfiling(JSContext* cx); \
392 : NS_SCRIPTABLE NS_IMETHOD StopPCCountProfiling(JSContext* cx); \
393 : NS_SCRIPTABLE NS_IMETHOD PurgePCCounts(JSContext* cx); \
394 : NS_SCRIPTABLE NS_IMETHOD GetPCCountScriptCount(JSContext* cx, PRInt32 *_retval NS_OUTPARAM); \
395 : NS_SCRIPTABLE NS_IMETHOD GetPCCountScriptSummary(PRInt32 script, JSContext* cx, nsAString & _retval NS_OUTPARAM); \
396 : NS_SCRIPTABLE NS_IMETHOD GetPCCountScriptContents(PRInt32 script, JSContext* cx, nsAString & _retval NS_OUTPARAM); \
397 : NS_SCRIPTABLE NS_IMETHOD GetPaintingSuppressed(bool *aPaintingSuppressed);
398 :
399 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
400 : #define NS_FORWARD_NSIDOMWINDOWUTILS(_to) \
401 : NS_SCRIPTABLE NS_IMETHOD GetImageAnimationMode(PRUint16 *aImageAnimationMode) { return _to GetImageAnimationMode(aImageAnimationMode); } \
402 : NS_SCRIPTABLE NS_IMETHOD SetImageAnimationMode(PRUint16 aImageAnimationMode) { return _to SetImageAnimationMode(aImageAnimationMode); } \
403 : NS_SCRIPTABLE NS_IMETHOD GetDocCharsetIsForced(bool *aDocCharsetIsForced) { return _to GetDocCharsetIsForced(aDocCharsetIsForced); } \
404 : NS_SCRIPTABLE NS_IMETHOD GetCursorType(PRInt16 *_retval NS_OUTPARAM) { return _to GetCursorType(_retval); } \
405 : NS_SCRIPTABLE NS_IMETHOD GetDocumentMetadata(const nsAString & aName, nsAString & _retval NS_OUTPARAM) { return _to GetDocumentMetadata(aName, _retval); } \
406 : NS_SCRIPTABLE NS_IMETHOD Redraw(PRUint32 aCount, PRUint32 *_retval NS_OUTPARAM) { return _to Redraw(aCount, _retval); } \
407 : NS_SCRIPTABLE NS_IMETHOD SetCSSViewport(float aWidthPx, float aHeightPx) { return _to SetCSSViewport(aWidthPx, aHeightPx); } \
408 : NS_SCRIPTABLE NS_IMETHOD SetDisplayPortForElement(float aXPx, float aYPx, float aWidthPx, float aHeightPx, nsIDOMElement *aElement) { return _to SetDisplayPortForElement(aXPx, aYPx, aWidthPx, aHeightPx, aElement); } \
409 : NS_SCRIPTABLE NS_IMETHOD SetResolution(float aXResolution, float aYResolution) { return _to SetResolution(aXResolution, aYResolution); } \
410 : NS_SCRIPTABLE NS_IMETHOD SendMouseEvent(const nsAString & aType, float aX, float aY, PRInt32 aButton, PRInt32 aClickCount, PRInt32 aModifiers, bool aIgnoreRootScrollFrame) { return _to SendMouseEvent(aType, aX, aY, aButton, aClickCount, aModifiers, aIgnoreRootScrollFrame); } \
411 : NS_SCRIPTABLE NS_IMETHOD SendTouchEvent(const nsAString & aType, PRUint32 *aIdentifiers, PRInt32 *aXs, PRInt32 *aYs, PRUint32 *aRxs, PRUint32 *aRys, float *aRotationAngles, float *aForces, PRUint32 count, PRInt32 aModifiers, bool aIgnoreRootScrollFrame, bool *_retval NS_OUTPARAM) { return _to SendTouchEvent(aType, aIdentifiers, aXs, aYs, aRxs, aRys, aRotationAngles, aForces, count, aModifiers, aIgnoreRootScrollFrame, _retval); } \
412 : NS_SCRIPTABLE NS_IMETHOD SendMouseEventToWindow(const nsAString & aType, float aX, float aY, PRInt32 aButton, PRInt32 aClickCount, PRInt32 aModifiers, bool aIgnoreRootScrollFrame) { return _to SendMouseEventToWindow(aType, aX, aY, aButton, aClickCount, aModifiers, aIgnoreRootScrollFrame); } \
413 : NS_SCRIPTABLE NS_IMETHOD SendMouseScrollEvent(const nsAString & aType, float aX, float aY, PRInt32 aButton, PRInt32 aScrollFlags, PRInt32 aDelta, PRInt32 aModifiers) { return _to SendMouseScrollEvent(aType, aX, aY, aButton, aScrollFlags, aDelta, aModifiers); } \
414 : NS_SCRIPTABLE NS_IMETHOD SendKeyEvent(const nsAString & aType, PRInt32 aKeyCode, PRInt32 aCharCode, PRInt32 aModifiers, bool aPreventDefault, bool *_retval NS_OUTPARAM) { return _to SendKeyEvent(aType, aKeyCode, aCharCode, aModifiers, aPreventDefault, _retval); } \
415 : NS_SCRIPTABLE NS_IMETHOD SendNativeKeyEvent(PRInt32 aNativeKeyboardLayout, PRInt32 aNativeKeyCode, PRInt32 aModifierFlags, const nsAString & aCharacters, const nsAString & aUnmodifiedCharacters) { return _to SendNativeKeyEvent(aNativeKeyboardLayout, aNativeKeyCode, aModifierFlags, aCharacters, aUnmodifiedCharacters); } \
416 : NS_SCRIPTABLE NS_IMETHOD SendNativeMouseEvent(PRInt32 aScreenX, PRInt32 aScreenY, PRInt32 aNativeMessage, PRInt32 aModifierFlags, nsIDOMElement *aElement) { return _to SendNativeMouseEvent(aScreenX, aScreenY, aNativeMessage, aModifierFlags, aElement); } \
417 : NS_SCRIPTABLE NS_IMETHOD ActivateNativeMenuItemAt(const nsAString & indexString) { return _to ActivateNativeMenuItemAt(indexString); } \
418 : NS_SCRIPTABLE NS_IMETHOD ForceUpdateNativeMenuAt(const nsAString & indexString) { return _to ForceUpdateNativeMenuAt(indexString); } \
419 : NS_SCRIPTABLE NS_IMETHOD Focus(nsIDOMElement *aElement) { return _to Focus(aElement); } \
420 : NS_SCRIPTABLE NS_IMETHOD GarbageCollect(nsICycleCollectorListener *aListener, PRInt32 aExtraForgetSkippableCalls) { return _to GarbageCollect(aListener, aExtraForgetSkippableCalls); } \
421 : NS_SCRIPTABLE NS_IMETHOD CycleCollect(nsICycleCollectorListener *aListener, PRInt32 aExtraForgetSkippableCalls) { return _to CycleCollect(aListener, aExtraForgetSkippableCalls); } \
422 : NS_SCRIPTABLE NS_IMETHOD SendSimpleGestureEvent(const nsAString & aType, float aX, float aY, PRUint32 aDirection, double aDelta, PRInt32 aModifiers) { return _to SendSimpleGestureEvent(aType, aX, aY, aDirection, aDelta, aModifiers); } \
423 : NS_SCRIPTABLE NS_IMETHOD ElementFromPoint(float aX, float aY, bool aIgnoreRootScrollFrame, bool aFlushLayout, nsIDOMElement * *_retval NS_OUTPARAM) { return _to ElementFromPoint(aX, aY, aIgnoreRootScrollFrame, aFlushLayout, _retval); } \
424 : NS_SCRIPTABLE NS_IMETHOD NodesFromRect(float aX, float aY, float aTopSize, float aRightSize, float aBottomSize, float aLeftSize, bool aIgnoreRootScrollFrame, bool aFlushLayout, nsIDOMNodeList * *_retval NS_OUTPARAM) { return _to NodesFromRect(aX, aY, aTopSize, aRightSize, aBottomSize, aLeftSize, aIgnoreRootScrollFrame, aFlushLayout, _retval); } \
425 : NS_SCRIPTABLE NS_IMETHOD CompareCanvases(nsIDOMHTMLCanvasElement *aCanvas1, nsIDOMHTMLCanvasElement *aCanvas2, PRUint32 *aMaxDifference NS_OUTPARAM, PRUint32 *_retval NS_OUTPARAM) { return _to CompareCanvases(aCanvas1, aCanvas2, aMaxDifference, _retval); } \
426 : NS_SCRIPTABLE NS_IMETHOD GetIsMozAfterPaintPending(bool *aIsMozAfterPaintPending) { return _to GetIsMozAfterPaintPending(aIsMozAfterPaintPending); } \
427 : NS_SCRIPTABLE NS_IMETHOD SuppressEventHandling(bool aSuppress) { return _to SuppressEventHandling(aSuppress); } \
428 : NS_SCRIPTABLE NS_IMETHOD ClearMozAfterPaintEvents(void) { return _to ClearMozAfterPaintEvents(); } \
429 : NS_SCRIPTABLE NS_IMETHOD DisableNonTestMouseEvents(bool aDisable) { return _to DisableNonTestMouseEvents(aDisable); } \
430 : NS_SCRIPTABLE NS_IMETHOD GetScrollXY(bool aFlushLayout, PRInt32 *aScrollX NS_OUTPARAM, PRInt32 *aScrollY NS_OUTPARAM) { return _to GetScrollXY(aFlushLayout, aScrollX, aScrollY); } \
431 : NS_SCRIPTABLE NS_IMETHOD GetIMEIsOpen(bool *aIMEIsOpen) { return _to GetIMEIsOpen(aIMEIsOpen); } \
432 : NS_SCRIPTABLE NS_IMETHOD GetIMEStatus(PRUint32 *aIMEStatus) { return _to GetIMEStatus(aIMEStatus); } \
433 : NS_SCRIPTABLE NS_IMETHOD GetScreenPixelsPerCSSPixel(float *aScreenPixelsPerCSSPixel) { return _to GetScreenPixelsPerCSSPixel(aScreenPixelsPerCSSPixel); } \
434 : NS_SCRIPTABLE NS_IMETHOD DispatchDOMEventViaPresShell(nsIDOMNode *aTarget, nsIDOMEvent *aEvent, bool aTrusted, bool *_retval NS_OUTPARAM) { return _to DispatchDOMEventViaPresShell(aTarget, aEvent, aTrusted, _retval); } \
435 : NS_SCRIPTABLE NS_IMETHOD GetClassName(const JS::Value & aObject, JSContext* cx, char * *_retval NS_OUTPARAM) { return _to GetClassName(aObject, cx, _retval); } \
436 : NS_SCRIPTABLE NS_IMETHOD SendContentCommandEvent(const nsAString & aType, nsITransferable *aTransferable) { return _to SendContentCommandEvent(aType, aTransferable); } \
437 : NS_SCRIPTABLE NS_IMETHOD SendCompositionEvent(const nsAString & aType, const nsAString & aData, const nsAString & aLocale) { return _to SendCompositionEvent(aType, aData, aLocale); } \
438 : NS_SCRIPTABLE NS_IMETHOD SendTextEvent(const nsAString & aCompositionString, PRInt32 aFirstClauseLength, PRUint32 aFirstClauseAttr, PRInt32 aSecondClauseLength, PRUint32 aSecondClauseAttr, PRInt32 aThirdClauseLength, PRUint32 aThirdClauseAttr, PRInt32 aCaretStart, PRInt32 aCaretLength) { return _to SendTextEvent(aCompositionString, aFirstClauseLength, aFirstClauseAttr, aSecondClauseLength, aSecondClauseAttr, aThirdClauseLength, aThirdClauseAttr, aCaretStart, aCaretLength); } \
439 : NS_SCRIPTABLE NS_IMETHOD SendQueryContentEvent(PRUint32 aType, PRUint32 aOffset, PRUint32 aLength, PRInt32 aX, PRInt32 aY, nsIQueryContentEventResult * *_retval NS_OUTPARAM) { return _to SendQueryContentEvent(aType, aOffset, aLength, aX, aY, _retval); } \
440 : NS_SCRIPTABLE NS_IMETHOD SendSelectionSetEvent(PRUint32 aOffset, PRUint32 aLength, bool aReverse, bool *_retval NS_OUTPARAM) { return _to SendSelectionSetEvent(aOffset, aLength, aReverse, _retval); } \
441 : NS_SCRIPTABLE NS_IMETHOD GetVisitedDependentComputedStyle(nsIDOMElement *aElement, const nsAString & aPseudoElement, const nsAString & aPropertyName, nsAString & _retval NS_OUTPARAM) { return _to GetVisitedDependentComputedStyle(aElement, aPseudoElement, aPropertyName, _retval); } \
442 : NS_SCRIPTABLE NS_IMETHOD GetParent(const JS::Value & obj, JSContext* cx, JS::Value *_retval NS_OUTPARAM) { return _to GetParent(obj, cx, _retval); } \
443 : NS_SCRIPTABLE NS_IMETHOD GetOuterWindowID(PRUint64 *aOuterWindowID) { return _to GetOuterWindowID(aOuterWindowID); } \
444 : NS_SCRIPTABLE NS_IMETHOD GetCurrentInnerWindowID(PRUint64 *aCurrentInnerWindowID) { return _to GetCurrentInnerWindowID(aCurrentInnerWindowID); } \
445 : NS_IMETHOD EnterModalState(void) { return _to EnterModalState(); } \
446 : NS_IMETHOD LeaveModalState(void) { return _to LeaveModalState(); } \
447 : NS_SCRIPTABLE NS_IMETHOD EnterModalStateWithWindow(nsIDOMWindow * *_retval NS_OUTPARAM) { return _to EnterModalStateWithWindow(_retval); } \
448 : NS_SCRIPTABLE NS_IMETHOD LeaveModalStateWithWindow(nsIDOMWindow *aWindow) { return _to LeaveModalStateWithWindow(aWindow); } \
449 : NS_IMETHOD IsInModalState(bool *_retval NS_OUTPARAM) { return _to IsInModalState(_retval); } \
450 : NS_SCRIPTABLE NS_IMETHOD SuspendTimeouts(void) { return _to SuspendTimeouts(); } \
451 : NS_SCRIPTABLE NS_IMETHOD ResumeTimeouts(void) { return _to ResumeTimeouts(); } \
452 : NS_SCRIPTABLE NS_IMETHOD GoOnline(void) { return _to GoOnline(); } \
453 : NS_SCRIPTABLE NS_IMETHOD GetLayerManagerType(nsAString & aLayerManagerType) { return _to GetLayerManagerType(aLayerManagerType); } \
454 : NS_SCRIPTABLE NS_IMETHOD StartFrameTimeRecording(void) { return _to StartFrameTimeRecording(); } \
455 : NS_SCRIPTABLE NS_IMETHOD StopFrameTimeRecording(PRUint32 *frameCount NS_OUTPARAM, float **frameTime NS_OUTPARAM) { return _to StopFrameTimeRecording(frameCount, frameTime); } \
456 : NS_SCRIPTABLE NS_IMETHOD GetDisplayDPI(float *aDisplayDPI) { return _to GetDisplayDPI(aDisplayDPI); } \
457 : NS_SCRIPTABLE NS_IMETHOD GetOuterWindowWithId(PRUint64 aOuterWindowID, nsIDOMWindow * *_retval NS_OUTPARAM) { return _to GetOuterWindowWithId(aOuterWindowID, _retval); } \
458 : NS_IMETHOD RenderDocument(const nsRect & aRect, PRUint32 aFlags, nscolor aBackgroundColor, gfxContext *aThebesContext) { return _to RenderDocument(aRect, aFlags, aBackgroundColor, aThebesContext); } \
459 : NS_SCRIPTABLE NS_IMETHOD AdvanceTimeAndRefresh(PRInt64 aMilliseconds) { return _to AdvanceTimeAndRefresh(aMilliseconds); } \
460 : NS_SCRIPTABLE NS_IMETHOD RestoreNormalRefresh(void) { return _to RestoreNormalRefresh(); } \
461 : NS_SCRIPTABLE NS_IMETHOD ComputeAnimationDistance(nsIDOMElement *element, const nsAString & property, const nsAString & value1, const nsAString & value2, double *_retval NS_OUTPARAM) { return _to ComputeAnimationDistance(element, property, value1, value2, _retval); } \
462 : NS_SCRIPTABLE NS_IMETHOD WrapDOMFile(nsIFile *aFile, nsIDOMFile * *_retval NS_OUTPARAM) { return _to WrapDOMFile(aFile, _retval); } \
463 : NS_SCRIPTABLE NS_IMETHOD GetFocusedInputType(char * *aFocusedInputType) { return _to GetFocusedInputType(aFocusedInputType); } \
464 : NS_SCRIPTABLE NS_IMETHOD FindElementWithViewId(nsViewID aId, nsIDOMElement * *_retval NS_OUTPARAM) { return _to FindElementWithViewId(aId, _retval); } \
465 : NS_SCRIPTABLE NS_IMETHOD LeafLayersPartitionWindow(bool *_retval NS_OUTPARAM) { return _to LeafLayersPartitionWindow(_retval); } \
466 : NS_SCRIPTABLE NS_IMETHOD GetMayHaveTouchEventListeners(bool *aMayHaveTouchEventListeners) { return _to GetMayHaveTouchEventListeners(aMayHaveTouchEventListeners); } \
467 : NS_SCRIPTABLE NS_IMETHOD CheckAndClearPaintedState(nsIDOMElement *aElement, bool *_retval NS_OUTPARAM) { return _to CheckAndClearPaintedState(aElement, _retval); } \
468 : NS_SCRIPTABLE NS_IMETHOD GetFileId(nsIDOMBlob *aBlob, PRInt64 *_retval NS_OUTPARAM) { return _to GetFileId(aBlob, _retval); } \
469 : NS_SCRIPTABLE NS_IMETHOD GetFileReferences(const nsAString & aDatabaseName, PRInt64 aId, PRInt32 *aRefCnt NS_OUTPARAM, PRInt32 *aDBRefCnt NS_OUTPARAM, PRInt32 *aSliceRefCnt NS_OUTPARAM, bool *_retval NS_OUTPARAM) { return _to GetFileReferences(aDatabaseName, aId, aRefCnt, aDBRefCnt, aSliceRefCnt, _retval); } \
470 : NS_SCRIPTABLE NS_IMETHOD IsIncrementalGCEnabled(JSContext* cx, bool *_retval NS_OUTPARAM) { return _to IsIncrementalGCEnabled(cx, _retval); } \
471 : NS_SCRIPTABLE NS_IMETHOD StartPCCountProfiling(JSContext* cx) { return _to StartPCCountProfiling(cx); } \
472 : NS_SCRIPTABLE NS_IMETHOD StopPCCountProfiling(JSContext* cx) { return _to StopPCCountProfiling(cx); } \
473 : NS_SCRIPTABLE NS_IMETHOD PurgePCCounts(JSContext* cx) { return _to PurgePCCounts(cx); } \
474 : NS_SCRIPTABLE NS_IMETHOD GetPCCountScriptCount(JSContext* cx, PRInt32 *_retval NS_OUTPARAM) { return _to GetPCCountScriptCount(cx, _retval); } \
475 : NS_SCRIPTABLE NS_IMETHOD GetPCCountScriptSummary(PRInt32 script, JSContext* cx, nsAString & _retval NS_OUTPARAM) { return _to GetPCCountScriptSummary(script, cx, _retval); } \
476 : NS_SCRIPTABLE NS_IMETHOD GetPCCountScriptContents(PRInt32 script, JSContext* cx, nsAString & _retval NS_OUTPARAM) { return _to GetPCCountScriptContents(script, cx, _retval); } \
477 : NS_SCRIPTABLE NS_IMETHOD GetPaintingSuppressed(bool *aPaintingSuppressed) { return _to GetPaintingSuppressed(aPaintingSuppressed); }
478 :
479 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
480 : #define NS_FORWARD_SAFE_NSIDOMWINDOWUTILS(_to) \
481 : NS_SCRIPTABLE NS_IMETHOD GetImageAnimationMode(PRUint16 *aImageAnimationMode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImageAnimationMode(aImageAnimationMode); } \
482 : NS_SCRIPTABLE NS_IMETHOD SetImageAnimationMode(PRUint16 aImageAnimationMode) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetImageAnimationMode(aImageAnimationMode); } \
483 : NS_SCRIPTABLE NS_IMETHOD GetDocCharsetIsForced(bool *aDocCharsetIsForced) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocCharsetIsForced(aDocCharsetIsForced); } \
484 : NS_SCRIPTABLE NS_IMETHOD GetCursorType(PRInt16 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCursorType(_retval); } \
485 : NS_SCRIPTABLE NS_IMETHOD GetDocumentMetadata(const nsAString & aName, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocumentMetadata(aName, _retval); } \
486 : NS_SCRIPTABLE NS_IMETHOD Redraw(PRUint32 aCount, PRUint32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Redraw(aCount, _retval); } \
487 : NS_SCRIPTABLE NS_IMETHOD SetCSSViewport(float aWidthPx, float aHeightPx) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCSSViewport(aWidthPx, aHeightPx); } \
488 : NS_SCRIPTABLE NS_IMETHOD SetDisplayPortForElement(float aXPx, float aYPx, float aWidthPx, float aHeightPx, nsIDOMElement *aElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisplayPortForElement(aXPx, aYPx, aWidthPx, aHeightPx, aElement); } \
489 : NS_SCRIPTABLE NS_IMETHOD SetResolution(float aXResolution, float aYResolution) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetResolution(aXResolution, aYResolution); } \
490 : NS_SCRIPTABLE NS_IMETHOD SendMouseEvent(const nsAString & aType, float aX, float aY, PRInt32 aButton, PRInt32 aClickCount, PRInt32 aModifiers, bool aIgnoreRootScrollFrame) { return !_to ? NS_ERROR_NULL_POINTER : _to->SendMouseEvent(aType, aX, aY, aButton, aClickCount, aModifiers, aIgnoreRootScrollFrame); } \
491 : NS_SCRIPTABLE NS_IMETHOD SendTouchEvent(const nsAString & aType, PRUint32 *aIdentifiers, PRInt32 *aXs, PRInt32 *aYs, PRUint32 *aRxs, PRUint32 *aRys, float *aRotationAngles, float *aForces, PRUint32 count, PRInt32 aModifiers, bool aIgnoreRootScrollFrame, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->SendTouchEvent(aType, aIdentifiers, aXs, aYs, aRxs, aRys, aRotationAngles, aForces, count, aModifiers, aIgnoreRootScrollFrame, _retval); } \
492 : NS_SCRIPTABLE NS_IMETHOD SendMouseEventToWindow(const nsAString & aType, float aX, float aY, PRInt32 aButton, PRInt32 aClickCount, PRInt32 aModifiers, bool aIgnoreRootScrollFrame) { return !_to ? NS_ERROR_NULL_POINTER : _to->SendMouseEventToWindow(aType, aX, aY, aButton, aClickCount, aModifiers, aIgnoreRootScrollFrame); } \
493 : NS_SCRIPTABLE NS_IMETHOD SendMouseScrollEvent(const nsAString & aType, float aX, float aY, PRInt32 aButton, PRInt32 aScrollFlags, PRInt32 aDelta, PRInt32 aModifiers) { return !_to ? NS_ERROR_NULL_POINTER : _to->SendMouseScrollEvent(aType, aX, aY, aButton, aScrollFlags, aDelta, aModifiers); } \
494 : NS_SCRIPTABLE NS_IMETHOD SendKeyEvent(const nsAString & aType, PRInt32 aKeyCode, PRInt32 aCharCode, PRInt32 aModifiers, bool aPreventDefault, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->SendKeyEvent(aType, aKeyCode, aCharCode, aModifiers, aPreventDefault, _retval); } \
495 : NS_SCRIPTABLE NS_IMETHOD SendNativeKeyEvent(PRInt32 aNativeKeyboardLayout, PRInt32 aNativeKeyCode, PRInt32 aModifierFlags, const nsAString & aCharacters, const nsAString & aUnmodifiedCharacters) { return !_to ? NS_ERROR_NULL_POINTER : _to->SendNativeKeyEvent(aNativeKeyboardLayout, aNativeKeyCode, aModifierFlags, aCharacters, aUnmodifiedCharacters); } \
496 : NS_SCRIPTABLE NS_IMETHOD SendNativeMouseEvent(PRInt32 aScreenX, PRInt32 aScreenY, PRInt32 aNativeMessage, PRInt32 aModifierFlags, nsIDOMElement *aElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->SendNativeMouseEvent(aScreenX, aScreenY, aNativeMessage, aModifierFlags, aElement); } \
497 : NS_SCRIPTABLE NS_IMETHOD ActivateNativeMenuItemAt(const nsAString & indexString) { return !_to ? NS_ERROR_NULL_POINTER : _to->ActivateNativeMenuItemAt(indexString); } \
498 : NS_SCRIPTABLE NS_IMETHOD ForceUpdateNativeMenuAt(const nsAString & indexString) { return !_to ? NS_ERROR_NULL_POINTER : _to->ForceUpdateNativeMenuAt(indexString); } \
499 : NS_SCRIPTABLE NS_IMETHOD Focus(nsIDOMElement *aElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->Focus(aElement); } \
500 : NS_SCRIPTABLE NS_IMETHOD GarbageCollect(nsICycleCollectorListener *aListener, PRInt32 aExtraForgetSkippableCalls) { return !_to ? NS_ERROR_NULL_POINTER : _to->GarbageCollect(aListener, aExtraForgetSkippableCalls); } \
501 : NS_SCRIPTABLE NS_IMETHOD CycleCollect(nsICycleCollectorListener *aListener, PRInt32 aExtraForgetSkippableCalls) { return !_to ? NS_ERROR_NULL_POINTER : _to->CycleCollect(aListener, aExtraForgetSkippableCalls); } \
502 : NS_SCRIPTABLE NS_IMETHOD SendSimpleGestureEvent(const nsAString & aType, float aX, float aY, PRUint32 aDirection, double aDelta, PRInt32 aModifiers) { return !_to ? NS_ERROR_NULL_POINTER : _to->SendSimpleGestureEvent(aType, aX, aY, aDirection, aDelta, aModifiers); } \
503 : NS_SCRIPTABLE NS_IMETHOD ElementFromPoint(float aX, float aY, bool aIgnoreRootScrollFrame, bool aFlushLayout, nsIDOMElement * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ElementFromPoint(aX, aY, aIgnoreRootScrollFrame, aFlushLayout, _retval); } \
504 : NS_SCRIPTABLE NS_IMETHOD NodesFromRect(float aX, float aY, float aTopSize, float aRightSize, float aBottomSize, float aLeftSize, bool aIgnoreRootScrollFrame, bool aFlushLayout, nsIDOMNodeList * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->NodesFromRect(aX, aY, aTopSize, aRightSize, aBottomSize, aLeftSize, aIgnoreRootScrollFrame, aFlushLayout, _retval); } \
505 : NS_SCRIPTABLE NS_IMETHOD CompareCanvases(nsIDOMHTMLCanvasElement *aCanvas1, nsIDOMHTMLCanvasElement *aCanvas2, PRUint32 *aMaxDifference NS_OUTPARAM, PRUint32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CompareCanvases(aCanvas1, aCanvas2, aMaxDifference, _retval); } \
506 : NS_SCRIPTABLE NS_IMETHOD GetIsMozAfterPaintPending(bool *aIsMozAfterPaintPending) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsMozAfterPaintPending(aIsMozAfterPaintPending); } \
507 : NS_SCRIPTABLE NS_IMETHOD SuppressEventHandling(bool aSuppress) { return !_to ? NS_ERROR_NULL_POINTER : _to->SuppressEventHandling(aSuppress); } \
508 : NS_SCRIPTABLE NS_IMETHOD ClearMozAfterPaintEvents(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearMozAfterPaintEvents(); } \
509 : NS_SCRIPTABLE NS_IMETHOD DisableNonTestMouseEvents(bool aDisable) { return !_to ? NS_ERROR_NULL_POINTER : _to->DisableNonTestMouseEvents(aDisable); } \
510 : NS_SCRIPTABLE NS_IMETHOD GetScrollXY(bool aFlushLayout, PRInt32 *aScrollX NS_OUTPARAM, PRInt32 *aScrollY NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScrollXY(aFlushLayout, aScrollX, aScrollY); } \
511 : NS_SCRIPTABLE NS_IMETHOD GetIMEIsOpen(bool *aIMEIsOpen) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIMEIsOpen(aIMEIsOpen); } \
512 : NS_SCRIPTABLE NS_IMETHOD GetIMEStatus(PRUint32 *aIMEStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIMEStatus(aIMEStatus); } \
513 : NS_SCRIPTABLE NS_IMETHOD GetScreenPixelsPerCSSPixel(float *aScreenPixelsPerCSSPixel) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScreenPixelsPerCSSPixel(aScreenPixelsPerCSSPixel); } \
514 : NS_SCRIPTABLE NS_IMETHOD DispatchDOMEventViaPresShell(nsIDOMNode *aTarget, nsIDOMEvent *aEvent, bool aTrusted, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->DispatchDOMEventViaPresShell(aTarget, aEvent, aTrusted, _retval); } \
515 : NS_SCRIPTABLE NS_IMETHOD GetClassName(const JS::Value & aObject, JSContext* cx, char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClassName(aObject, cx, _retval); } \
516 : NS_SCRIPTABLE NS_IMETHOD SendContentCommandEvent(const nsAString & aType, nsITransferable *aTransferable) { return !_to ? NS_ERROR_NULL_POINTER : _to->SendContentCommandEvent(aType, aTransferable); } \
517 : NS_SCRIPTABLE NS_IMETHOD SendCompositionEvent(const nsAString & aType, const nsAString & aData, const nsAString & aLocale) { return !_to ? NS_ERROR_NULL_POINTER : _to->SendCompositionEvent(aType, aData, aLocale); } \
518 : NS_SCRIPTABLE NS_IMETHOD SendTextEvent(const nsAString & aCompositionString, PRInt32 aFirstClauseLength, PRUint32 aFirstClauseAttr, PRInt32 aSecondClauseLength, PRUint32 aSecondClauseAttr, PRInt32 aThirdClauseLength, PRUint32 aThirdClauseAttr, PRInt32 aCaretStart, PRInt32 aCaretLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->SendTextEvent(aCompositionString, aFirstClauseLength, aFirstClauseAttr, aSecondClauseLength, aSecondClauseAttr, aThirdClauseLength, aThirdClauseAttr, aCaretStart, aCaretLength); } \
519 : NS_SCRIPTABLE NS_IMETHOD SendQueryContentEvent(PRUint32 aType, PRUint32 aOffset, PRUint32 aLength, PRInt32 aX, PRInt32 aY, nsIQueryContentEventResult * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->SendQueryContentEvent(aType, aOffset, aLength, aX, aY, _retval); } \
520 : NS_SCRIPTABLE NS_IMETHOD SendSelectionSetEvent(PRUint32 aOffset, PRUint32 aLength, bool aReverse, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->SendSelectionSetEvent(aOffset, aLength, aReverse, _retval); } \
521 : NS_SCRIPTABLE NS_IMETHOD GetVisitedDependentComputedStyle(nsIDOMElement *aElement, const nsAString & aPseudoElement, const nsAString & aPropertyName, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVisitedDependentComputedStyle(aElement, aPseudoElement, aPropertyName, _retval); } \
522 : NS_SCRIPTABLE NS_IMETHOD GetParent(const JS::Value & obj, JSContext* cx, JS::Value *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParent(obj, cx, _retval); } \
523 : NS_SCRIPTABLE NS_IMETHOD GetOuterWindowID(PRUint64 *aOuterWindowID) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOuterWindowID(aOuterWindowID); } \
524 : NS_SCRIPTABLE NS_IMETHOD GetCurrentInnerWindowID(PRUint64 *aCurrentInnerWindowID) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentInnerWindowID(aCurrentInnerWindowID); } \
525 : NS_IMETHOD EnterModalState(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnterModalState(); } \
526 : NS_IMETHOD LeaveModalState(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->LeaveModalState(); } \
527 : NS_SCRIPTABLE NS_IMETHOD EnterModalStateWithWindow(nsIDOMWindow * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnterModalStateWithWindow(_retval); } \
528 : NS_SCRIPTABLE NS_IMETHOD LeaveModalStateWithWindow(nsIDOMWindow *aWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->LeaveModalStateWithWindow(aWindow); } \
529 : NS_IMETHOD IsInModalState(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsInModalState(_retval); } \
530 : NS_SCRIPTABLE NS_IMETHOD SuspendTimeouts(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SuspendTimeouts(); } \
531 : NS_SCRIPTABLE NS_IMETHOD ResumeTimeouts(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ResumeTimeouts(); } \
532 : NS_SCRIPTABLE NS_IMETHOD GoOnline(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->GoOnline(); } \
533 : NS_SCRIPTABLE NS_IMETHOD GetLayerManagerType(nsAString & aLayerManagerType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLayerManagerType(aLayerManagerType); } \
534 : NS_SCRIPTABLE NS_IMETHOD StartFrameTimeRecording(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->StartFrameTimeRecording(); } \
535 : NS_SCRIPTABLE NS_IMETHOD StopFrameTimeRecording(PRUint32 *frameCount NS_OUTPARAM, float **frameTime NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->StopFrameTimeRecording(frameCount, frameTime); } \
536 : NS_SCRIPTABLE NS_IMETHOD GetDisplayDPI(float *aDisplayDPI) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisplayDPI(aDisplayDPI); } \
537 : NS_SCRIPTABLE NS_IMETHOD GetOuterWindowWithId(PRUint64 aOuterWindowID, nsIDOMWindow * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOuterWindowWithId(aOuterWindowID, _retval); } \
538 : NS_IMETHOD RenderDocument(const nsRect & aRect, PRUint32 aFlags, nscolor aBackgroundColor, gfxContext *aThebesContext) { return !_to ? NS_ERROR_NULL_POINTER : _to->RenderDocument(aRect, aFlags, aBackgroundColor, aThebesContext); } \
539 : NS_SCRIPTABLE NS_IMETHOD AdvanceTimeAndRefresh(PRInt64 aMilliseconds) { return !_to ? NS_ERROR_NULL_POINTER : _to->AdvanceTimeAndRefresh(aMilliseconds); } \
540 : NS_SCRIPTABLE NS_IMETHOD RestoreNormalRefresh(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->RestoreNormalRefresh(); } \
541 : NS_SCRIPTABLE NS_IMETHOD ComputeAnimationDistance(nsIDOMElement *element, const nsAString & property, const nsAString & value1, const nsAString & value2, double *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ComputeAnimationDistance(element, property, value1, value2, _retval); } \
542 : NS_SCRIPTABLE NS_IMETHOD WrapDOMFile(nsIFile *aFile, nsIDOMFile * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->WrapDOMFile(aFile, _retval); } \
543 : NS_SCRIPTABLE NS_IMETHOD GetFocusedInputType(char * *aFocusedInputType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFocusedInputType(aFocusedInputType); } \
544 : NS_SCRIPTABLE NS_IMETHOD FindElementWithViewId(nsViewID aId, nsIDOMElement * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->FindElementWithViewId(aId, _retval); } \
545 : NS_SCRIPTABLE NS_IMETHOD LeafLayersPartitionWindow(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->LeafLayersPartitionWindow(_retval); } \
546 : NS_SCRIPTABLE NS_IMETHOD GetMayHaveTouchEventListeners(bool *aMayHaveTouchEventListeners) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMayHaveTouchEventListeners(aMayHaveTouchEventListeners); } \
547 : NS_SCRIPTABLE NS_IMETHOD CheckAndClearPaintedState(nsIDOMElement *aElement, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckAndClearPaintedState(aElement, _retval); } \
548 : NS_SCRIPTABLE NS_IMETHOD GetFileId(nsIDOMBlob *aBlob, PRInt64 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFileId(aBlob, _retval); } \
549 : NS_SCRIPTABLE NS_IMETHOD GetFileReferences(const nsAString & aDatabaseName, PRInt64 aId, PRInt32 *aRefCnt NS_OUTPARAM, PRInt32 *aDBRefCnt NS_OUTPARAM, PRInt32 *aSliceRefCnt NS_OUTPARAM, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFileReferences(aDatabaseName, aId, aRefCnt, aDBRefCnt, aSliceRefCnt, _retval); } \
550 : NS_SCRIPTABLE NS_IMETHOD IsIncrementalGCEnabled(JSContext* cx, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsIncrementalGCEnabled(cx, _retval); } \
551 : NS_SCRIPTABLE NS_IMETHOD StartPCCountProfiling(JSContext* cx) { return !_to ? NS_ERROR_NULL_POINTER : _to->StartPCCountProfiling(cx); } \
552 : NS_SCRIPTABLE NS_IMETHOD StopPCCountProfiling(JSContext* cx) { return !_to ? NS_ERROR_NULL_POINTER : _to->StopPCCountProfiling(cx); } \
553 : NS_SCRIPTABLE NS_IMETHOD PurgePCCounts(JSContext* cx) { return !_to ? NS_ERROR_NULL_POINTER : _to->PurgePCCounts(cx); } \
554 : NS_SCRIPTABLE NS_IMETHOD GetPCCountScriptCount(JSContext* cx, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPCCountScriptCount(cx, _retval); } \
555 : NS_SCRIPTABLE NS_IMETHOD GetPCCountScriptSummary(PRInt32 script, JSContext* cx, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPCCountScriptSummary(script, cx, _retval); } \
556 : NS_SCRIPTABLE NS_IMETHOD GetPCCountScriptContents(PRInt32 script, JSContext* cx, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPCCountScriptContents(script, cx, _retval); } \
557 : NS_SCRIPTABLE NS_IMETHOD GetPaintingSuppressed(bool *aPaintingSuppressed) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPaintingSuppressed(aPaintingSuppressed); }
558 :
559 : #if 0
560 : /* Use the code below as a template for the implementation class for this interface. */
561 :
562 : /* Header file */
563 : class nsDOMWindowUtils : public nsIDOMWindowUtils
564 : {
565 : public:
566 : NS_DECL_ISUPPORTS
567 : NS_DECL_NSIDOMWINDOWUTILS
568 :
569 : nsDOMWindowUtils();
570 :
571 : private:
572 : ~nsDOMWindowUtils();
573 :
574 : protected:
575 : /* additional members */
576 : };
577 :
578 : /* Implementation file */
579 : NS_IMPL_ISUPPORTS1(nsDOMWindowUtils, nsIDOMWindowUtils)
580 :
581 : nsDOMWindowUtils::nsDOMWindowUtils()
582 : {
583 : /* member initializers and constructor code */
584 : }
585 :
586 : nsDOMWindowUtils::~nsDOMWindowUtils()
587 : {
588 : /* destructor code */
589 : }
590 :
591 : /* attribute unsigned short imageAnimationMode; */
592 : NS_IMETHODIMP nsDOMWindowUtils::GetImageAnimationMode(PRUint16 *aImageAnimationMode)
593 : {
594 : return NS_ERROR_NOT_IMPLEMENTED;
595 : }
596 : NS_IMETHODIMP nsDOMWindowUtils::SetImageAnimationMode(PRUint16 aImageAnimationMode)
597 : {
598 : return NS_ERROR_NOT_IMPLEMENTED;
599 : }
600 :
601 : /* readonly attribute boolean docCharsetIsForced; */
602 : NS_IMETHODIMP nsDOMWindowUtils::GetDocCharsetIsForced(bool *aDocCharsetIsForced)
603 : {
604 : return NS_ERROR_NOT_IMPLEMENTED;
605 : }
606 :
607 : /* short getCursorType (); */
608 : NS_IMETHODIMP nsDOMWindowUtils::GetCursorType(PRInt16 *_retval NS_OUTPARAM)
609 : {
610 : return NS_ERROR_NOT_IMPLEMENTED;
611 : }
612 :
613 : /* AString getDocumentMetadata (in AString aName); */
614 : NS_IMETHODIMP nsDOMWindowUtils::GetDocumentMetadata(const nsAString & aName, nsAString & _retval NS_OUTPARAM)
615 : {
616 : return NS_ERROR_NOT_IMPLEMENTED;
617 : }
618 :
619 : /* unsigned long redraw ([optional] in unsigned long aCount); */
620 : NS_IMETHODIMP nsDOMWindowUtils::Redraw(PRUint32 aCount, PRUint32 *_retval NS_OUTPARAM)
621 : {
622 : return NS_ERROR_NOT_IMPLEMENTED;
623 : }
624 :
625 : /* void setCSSViewport (in float aWidthPx, in float aHeightPx); */
626 : NS_IMETHODIMP nsDOMWindowUtils::SetCSSViewport(float aWidthPx, float aHeightPx)
627 : {
628 : return NS_ERROR_NOT_IMPLEMENTED;
629 : }
630 :
631 : /* void setDisplayPortForElement (in float aXPx, in float aYPx, in float aWidthPx, in float aHeightPx, in nsIDOMElement aElement); */
632 : NS_IMETHODIMP nsDOMWindowUtils::SetDisplayPortForElement(float aXPx, float aYPx, float aWidthPx, float aHeightPx, nsIDOMElement *aElement)
633 : {
634 : return NS_ERROR_NOT_IMPLEMENTED;
635 : }
636 :
637 : /* void setResolution (in float aXResolution, in float aYResolution); */
638 : NS_IMETHODIMP nsDOMWindowUtils::SetResolution(float aXResolution, float aYResolution)
639 : {
640 : return NS_ERROR_NOT_IMPLEMENTED;
641 : }
642 :
643 : /* void sendMouseEvent (in AString aType, in float aX, in float aY, in long aButton, in long aClickCount, in long aModifiers, [optional] in boolean aIgnoreRootScrollFrame); */
644 : NS_IMETHODIMP nsDOMWindowUtils::SendMouseEvent(const nsAString & aType, float aX, float aY, PRInt32 aButton, PRInt32 aClickCount, PRInt32 aModifiers, bool aIgnoreRootScrollFrame)
645 : {
646 : return NS_ERROR_NOT_IMPLEMENTED;
647 : }
648 :
649 : /* boolean sendTouchEvent (in AString aType, [array, size_is (count)] in PRUint32 aIdentifiers, [array, size_is (count)] in PRInt32 aXs, [array, size_is (count)] in PRInt32 aYs, [array, size_is (count)] in PRUint32 aRxs, [array, size_is (count)] in PRUint32 aRys, [array, size_is (count)] in float aRotationAngles, [array, size_is (count)] in float aForces, in PRUint32 count, in long aModifiers, [optional] in boolean aIgnoreRootScrollFrame); */
650 : NS_IMETHODIMP nsDOMWindowUtils::SendTouchEvent(const nsAString & aType, PRUint32 *aIdentifiers, PRInt32 *aXs, PRInt32 *aYs, PRUint32 *aRxs, PRUint32 *aRys, float *aRotationAngles, float *aForces, PRUint32 count, PRInt32 aModifiers, bool aIgnoreRootScrollFrame, bool *_retval NS_OUTPARAM)
651 : {
652 : return NS_ERROR_NOT_IMPLEMENTED;
653 : }
654 :
655 : /* void sendMouseEventToWindow (in AString aType, in float aX, in float aY, in long aButton, in long aClickCount, in long aModifiers, [optional] in boolean aIgnoreRootScrollFrame); */
656 : NS_IMETHODIMP nsDOMWindowUtils::SendMouseEventToWindow(const nsAString & aType, float aX, float aY, PRInt32 aButton, PRInt32 aClickCount, PRInt32 aModifiers, bool aIgnoreRootScrollFrame)
657 : {
658 : return NS_ERROR_NOT_IMPLEMENTED;
659 : }
660 :
661 : /* void sendMouseScrollEvent (in AString aType, in float aX, in float aY, in long aButton, in long aScrollFlags, in long aDelta, in long aModifiers); */
662 : NS_IMETHODIMP nsDOMWindowUtils::SendMouseScrollEvent(const nsAString & aType, float aX, float aY, PRInt32 aButton, PRInt32 aScrollFlags, PRInt32 aDelta, PRInt32 aModifiers)
663 : {
664 : return NS_ERROR_NOT_IMPLEMENTED;
665 : }
666 :
667 : /* boolean sendKeyEvent (in AString aType, in long aKeyCode, in long aCharCode, in long aModifiers, [optional] in boolean aPreventDefault); */
668 : NS_IMETHODIMP nsDOMWindowUtils::SendKeyEvent(const nsAString & aType, PRInt32 aKeyCode, PRInt32 aCharCode, PRInt32 aModifiers, bool aPreventDefault, bool *_retval NS_OUTPARAM)
669 : {
670 : return NS_ERROR_NOT_IMPLEMENTED;
671 : }
672 :
673 : /* void sendNativeKeyEvent (in long aNativeKeyboardLayout, in long aNativeKeyCode, in long aModifierFlags, in AString aCharacters, in AString aUnmodifiedCharacters); */
674 : NS_IMETHODIMP nsDOMWindowUtils::SendNativeKeyEvent(PRInt32 aNativeKeyboardLayout, PRInt32 aNativeKeyCode, PRInt32 aModifierFlags, const nsAString & aCharacters, const nsAString & aUnmodifiedCharacters)
675 : {
676 : return NS_ERROR_NOT_IMPLEMENTED;
677 : }
678 :
679 : /* void sendNativeMouseEvent (in long aScreenX, in long aScreenY, in long aNativeMessage, in long aModifierFlags, in nsIDOMElement aElement); */
680 : NS_IMETHODIMP nsDOMWindowUtils::SendNativeMouseEvent(PRInt32 aScreenX, PRInt32 aScreenY, PRInt32 aNativeMessage, PRInt32 aModifierFlags, nsIDOMElement *aElement)
681 : {
682 : return NS_ERROR_NOT_IMPLEMENTED;
683 : }
684 :
685 : /* void activateNativeMenuItemAt (in AString indexString); */
686 : NS_IMETHODIMP nsDOMWindowUtils::ActivateNativeMenuItemAt(const nsAString & indexString)
687 : {
688 : return NS_ERROR_NOT_IMPLEMENTED;
689 : }
690 :
691 : /* void forceUpdateNativeMenuAt (in AString indexString); */
692 : NS_IMETHODIMP nsDOMWindowUtils::ForceUpdateNativeMenuAt(const nsAString & indexString)
693 : {
694 : return NS_ERROR_NOT_IMPLEMENTED;
695 : }
696 :
697 : /* void focus (in nsIDOMElement aElement); */
698 : NS_IMETHODIMP nsDOMWindowUtils::Focus(nsIDOMElement *aElement)
699 : {
700 : return NS_ERROR_NOT_IMPLEMENTED;
701 : }
702 :
703 : /* void garbageCollect ([optional] in nsICycleCollectorListener aListener, [optional] in long aExtraForgetSkippableCalls); */
704 : NS_IMETHODIMP nsDOMWindowUtils::GarbageCollect(nsICycleCollectorListener *aListener, PRInt32 aExtraForgetSkippableCalls)
705 : {
706 : return NS_ERROR_NOT_IMPLEMENTED;
707 : }
708 :
709 : /* void cycleCollect ([optional] in nsICycleCollectorListener aListener, [optional] in long aExtraForgetSkippableCalls); */
710 : NS_IMETHODIMP nsDOMWindowUtils::CycleCollect(nsICycleCollectorListener *aListener, PRInt32 aExtraForgetSkippableCalls)
711 : {
712 : return NS_ERROR_NOT_IMPLEMENTED;
713 : }
714 :
715 : /* void sendSimpleGestureEvent (in AString aType, in float aX, in float aY, in unsigned long aDirection, in double aDelta, in long aModifiers); */
716 : NS_IMETHODIMP nsDOMWindowUtils::SendSimpleGestureEvent(const nsAString & aType, float aX, float aY, PRUint32 aDirection, double aDelta, PRInt32 aModifiers)
717 : {
718 : return NS_ERROR_NOT_IMPLEMENTED;
719 : }
720 :
721 : /* nsIDOMElement elementFromPoint (in float aX, in float aY, in boolean aIgnoreRootScrollFrame, in boolean aFlushLayout); */
722 : NS_IMETHODIMP nsDOMWindowUtils::ElementFromPoint(float aX, float aY, bool aIgnoreRootScrollFrame, bool aFlushLayout, nsIDOMElement * *_retval NS_OUTPARAM)
723 : {
724 : return NS_ERROR_NOT_IMPLEMENTED;
725 : }
726 :
727 : /* nsIDOMNodeList nodesFromRect (in float aX, in float aY, in float aTopSize, in float aRightSize, in float aBottomSize, in float aLeftSize, in boolean aIgnoreRootScrollFrame, in boolean aFlushLayout); */
728 : NS_IMETHODIMP nsDOMWindowUtils::NodesFromRect(float aX, float aY, float aTopSize, float aRightSize, float aBottomSize, float aLeftSize, bool aIgnoreRootScrollFrame, bool aFlushLayout, nsIDOMNodeList * *_retval NS_OUTPARAM)
729 : {
730 : return NS_ERROR_NOT_IMPLEMENTED;
731 : }
732 :
733 : /* PRUint32 compareCanvases (in nsIDOMHTMLCanvasElement aCanvas1, in nsIDOMHTMLCanvasElement aCanvas2, out unsigned long aMaxDifference); */
734 : NS_IMETHODIMP nsDOMWindowUtils::CompareCanvases(nsIDOMHTMLCanvasElement *aCanvas1, nsIDOMHTMLCanvasElement *aCanvas2, PRUint32 *aMaxDifference NS_OUTPARAM, PRUint32 *_retval NS_OUTPARAM)
735 : {
736 : return NS_ERROR_NOT_IMPLEMENTED;
737 : }
738 :
739 : /* readonly attribute boolean isMozAfterPaintPending; */
740 : NS_IMETHODIMP nsDOMWindowUtils::GetIsMozAfterPaintPending(bool *aIsMozAfterPaintPending)
741 : {
742 : return NS_ERROR_NOT_IMPLEMENTED;
743 : }
744 :
745 : /* void suppressEventHandling (in boolean aSuppress); */
746 : NS_IMETHODIMP nsDOMWindowUtils::SuppressEventHandling(bool aSuppress)
747 : {
748 : return NS_ERROR_NOT_IMPLEMENTED;
749 : }
750 :
751 : /* void clearMozAfterPaintEvents (); */
752 : NS_IMETHODIMP nsDOMWindowUtils::ClearMozAfterPaintEvents()
753 : {
754 : return NS_ERROR_NOT_IMPLEMENTED;
755 : }
756 :
757 : /* void disableNonTestMouseEvents (in boolean aDisable); */
758 : NS_IMETHODIMP nsDOMWindowUtils::DisableNonTestMouseEvents(bool aDisable)
759 : {
760 : return NS_ERROR_NOT_IMPLEMENTED;
761 : }
762 :
763 : /* void getScrollXY (in boolean aFlushLayout, out long aScrollX, out long aScrollY); */
764 : NS_IMETHODIMP nsDOMWindowUtils::GetScrollXY(bool aFlushLayout, PRInt32 *aScrollX NS_OUTPARAM, PRInt32 *aScrollY NS_OUTPARAM)
765 : {
766 : return NS_ERROR_NOT_IMPLEMENTED;
767 : }
768 :
769 : /* readonly attribute boolean IMEIsOpen; */
770 : NS_IMETHODIMP nsDOMWindowUtils::GetIMEIsOpen(bool *aIMEIsOpen)
771 : {
772 : return NS_ERROR_NOT_IMPLEMENTED;
773 : }
774 :
775 : /* readonly attribute unsigned long IMEStatus; */
776 : NS_IMETHODIMP nsDOMWindowUtils::GetIMEStatus(PRUint32 *aIMEStatus)
777 : {
778 : return NS_ERROR_NOT_IMPLEMENTED;
779 : }
780 :
781 : /* readonly attribute float screenPixelsPerCSSPixel; */
782 : NS_IMETHODIMP nsDOMWindowUtils::GetScreenPixelsPerCSSPixel(float *aScreenPixelsPerCSSPixel)
783 : {
784 : return NS_ERROR_NOT_IMPLEMENTED;
785 : }
786 :
787 : /* boolean dispatchDOMEventViaPresShell (in nsIDOMNode aTarget, in nsIDOMEvent aEvent, in boolean aTrusted); */
788 : NS_IMETHODIMP nsDOMWindowUtils::DispatchDOMEventViaPresShell(nsIDOMNode *aTarget, nsIDOMEvent *aEvent, bool aTrusted, bool *_retval NS_OUTPARAM)
789 : {
790 : return NS_ERROR_NOT_IMPLEMENTED;
791 : }
792 :
793 : /* [implicit_jscontext] string getClassName (in jsval aObject); */
794 : NS_IMETHODIMP nsDOMWindowUtils::GetClassName(const JS::Value & aObject, JSContext* cx, char * *_retval NS_OUTPARAM)
795 : {
796 : return NS_ERROR_NOT_IMPLEMENTED;
797 : }
798 :
799 : /* void sendContentCommandEvent (in AString aType, [optional] in nsITransferable aTransferable); */
800 : NS_IMETHODIMP nsDOMWindowUtils::SendContentCommandEvent(const nsAString & aType, nsITransferable *aTransferable)
801 : {
802 : return NS_ERROR_NOT_IMPLEMENTED;
803 : }
804 :
805 : /* void sendCompositionEvent (in AString aType, in AString aData, in AString aLocale); */
806 : NS_IMETHODIMP nsDOMWindowUtils::SendCompositionEvent(const nsAString & aType, const nsAString & aData, const nsAString & aLocale)
807 : {
808 : return NS_ERROR_NOT_IMPLEMENTED;
809 : }
810 :
811 : /* void sendTextEvent (in AString aCompositionString, in long aFirstClauseLength, in unsigned long aFirstClauseAttr, in long aSecondClauseLength, in unsigned long aSecondClauseAttr, in long aThirdClauseLength, in unsigned long aThirdClauseAttr, in long aCaretStart, in long aCaretLength); */
812 : NS_IMETHODIMP nsDOMWindowUtils::SendTextEvent(const nsAString & aCompositionString, PRInt32 aFirstClauseLength, PRUint32 aFirstClauseAttr, PRInt32 aSecondClauseLength, PRUint32 aSecondClauseAttr, PRInt32 aThirdClauseLength, PRUint32 aThirdClauseAttr, PRInt32 aCaretStart, PRInt32 aCaretLength)
813 : {
814 : return NS_ERROR_NOT_IMPLEMENTED;
815 : }
816 :
817 : /* nsIQueryContentEventResult sendQueryContentEvent (in unsigned long aType, in unsigned long aOffset, in unsigned long aLength, in long aX, in long aY); */
818 : NS_IMETHODIMP nsDOMWindowUtils::SendQueryContentEvent(PRUint32 aType, PRUint32 aOffset, PRUint32 aLength, PRInt32 aX, PRInt32 aY, nsIQueryContentEventResult * *_retval NS_OUTPARAM)
819 : {
820 : return NS_ERROR_NOT_IMPLEMENTED;
821 : }
822 :
823 : /* boolean sendSelectionSetEvent (in unsigned long aOffset, in unsigned long aLength, in boolean aReverse); */
824 : NS_IMETHODIMP nsDOMWindowUtils::SendSelectionSetEvent(PRUint32 aOffset, PRUint32 aLength, bool aReverse, bool *_retval NS_OUTPARAM)
825 : {
826 : return NS_ERROR_NOT_IMPLEMENTED;
827 : }
828 :
829 : /* AString getVisitedDependentComputedStyle (in nsIDOMElement aElement, in AString aPseudoElement, in AString aPropertyName); */
830 : NS_IMETHODIMP nsDOMWindowUtils::GetVisitedDependentComputedStyle(nsIDOMElement *aElement, const nsAString & aPseudoElement, const nsAString & aPropertyName, nsAString & _retval NS_OUTPARAM)
831 : {
832 : return NS_ERROR_NOT_IMPLEMENTED;
833 : }
834 :
835 : /* [implicit_jscontext] jsval getParent (in jsval obj); */
836 : NS_IMETHODIMP nsDOMWindowUtils::GetParent(const JS::Value & obj, JSContext* cx, JS::Value *_retval NS_OUTPARAM)
837 : {
838 : return NS_ERROR_NOT_IMPLEMENTED;
839 : }
840 :
841 : /* readonly attribute unsigned long long outerWindowID; */
842 : NS_IMETHODIMP nsDOMWindowUtils::GetOuterWindowID(PRUint64 *aOuterWindowID)
843 : {
844 : return NS_ERROR_NOT_IMPLEMENTED;
845 : }
846 :
847 : /* readonly attribute unsigned long long currentInnerWindowID; */
848 : NS_IMETHODIMP nsDOMWindowUtils::GetCurrentInnerWindowID(PRUint64 *aCurrentInnerWindowID)
849 : {
850 : return NS_ERROR_NOT_IMPLEMENTED;
851 : }
852 :
853 : /* [noscript] void enterModalState (); */
854 : NS_IMETHODIMP nsDOMWindowUtils::EnterModalState()
855 : {
856 : return NS_ERROR_NOT_IMPLEMENTED;
857 : }
858 :
859 : /* [noscript] void leaveModalState (); */
860 : NS_IMETHODIMP nsDOMWindowUtils::LeaveModalState()
861 : {
862 : return NS_ERROR_NOT_IMPLEMENTED;
863 : }
864 :
865 : /* nsIDOMWindow enterModalStateWithWindow (); */
866 : NS_IMETHODIMP nsDOMWindowUtils::EnterModalStateWithWindow(nsIDOMWindow * *_retval NS_OUTPARAM)
867 : {
868 : return NS_ERROR_NOT_IMPLEMENTED;
869 : }
870 :
871 : /* void leaveModalStateWithWindow (in nsIDOMWindow aWindow); */
872 : NS_IMETHODIMP nsDOMWindowUtils::LeaveModalStateWithWindow(nsIDOMWindow *aWindow)
873 : {
874 : return NS_ERROR_NOT_IMPLEMENTED;
875 : }
876 :
877 : /* [noscript] boolean isInModalState (); */
878 : NS_IMETHODIMP nsDOMWindowUtils::IsInModalState(bool *_retval NS_OUTPARAM)
879 : {
880 : return NS_ERROR_NOT_IMPLEMENTED;
881 : }
882 :
883 : /* void suspendTimeouts (); */
884 : NS_IMETHODIMP nsDOMWindowUtils::SuspendTimeouts()
885 : {
886 : return NS_ERROR_NOT_IMPLEMENTED;
887 : }
888 :
889 : /* void resumeTimeouts (); */
890 : NS_IMETHODIMP nsDOMWindowUtils::ResumeTimeouts()
891 : {
892 : return NS_ERROR_NOT_IMPLEMENTED;
893 : }
894 :
895 : /* void goOnline (); */
896 : NS_IMETHODIMP nsDOMWindowUtils::GoOnline()
897 : {
898 : return NS_ERROR_NOT_IMPLEMENTED;
899 : }
900 :
901 : /* readonly attribute AString layerManagerType; */
902 : NS_IMETHODIMP nsDOMWindowUtils::GetLayerManagerType(nsAString & aLayerManagerType)
903 : {
904 : return NS_ERROR_NOT_IMPLEMENTED;
905 : }
906 :
907 : /* void startFrameTimeRecording (); */
908 : NS_IMETHODIMP nsDOMWindowUtils::StartFrameTimeRecording()
909 : {
910 : return NS_ERROR_NOT_IMPLEMENTED;
911 : }
912 :
913 : /* void stopFrameTimeRecording ([optional] out unsigned long frameCount, [array, size_is (frameCount), retval] out float frameTime); */
914 : NS_IMETHODIMP nsDOMWindowUtils::StopFrameTimeRecording(PRUint32 *frameCount NS_OUTPARAM, float **frameTime NS_OUTPARAM)
915 : {
916 : return NS_ERROR_NOT_IMPLEMENTED;
917 : }
918 :
919 : /* readonly attribute float displayDPI; */
920 : NS_IMETHODIMP nsDOMWindowUtils::GetDisplayDPI(float *aDisplayDPI)
921 : {
922 : return NS_ERROR_NOT_IMPLEMENTED;
923 : }
924 :
925 : /* nsIDOMWindow getOuterWindowWithId (in unsigned long long aOuterWindowID); */
926 : NS_IMETHODIMP nsDOMWindowUtils::GetOuterWindowWithId(PRUint64 aOuterWindowID, nsIDOMWindow * *_retval NS_OUTPARAM)
927 : {
928 : return NS_ERROR_NOT_IMPLEMENTED;
929 : }
930 :
931 : /* [noscript] void RenderDocument (in nsConstRect aRect, in PRUint32 aFlags, in nscolor aBackgroundColor, in gfxContext aThebesContext); */
932 : NS_IMETHODIMP nsDOMWindowUtils::RenderDocument(const nsRect & aRect, PRUint32 aFlags, nscolor aBackgroundColor, gfxContext *aThebesContext)
933 : {
934 : return NS_ERROR_NOT_IMPLEMENTED;
935 : }
936 :
937 : /* void advanceTimeAndRefresh (in long long aMilliseconds); */
938 : NS_IMETHODIMP nsDOMWindowUtils::AdvanceTimeAndRefresh(PRInt64 aMilliseconds)
939 : {
940 : return NS_ERROR_NOT_IMPLEMENTED;
941 : }
942 :
943 : /* void restoreNormalRefresh (); */
944 : NS_IMETHODIMP nsDOMWindowUtils::RestoreNormalRefresh()
945 : {
946 : return NS_ERROR_NOT_IMPLEMENTED;
947 : }
948 :
949 : /* double computeAnimationDistance (in nsIDOMElement element, in AString property, in AString value1, in AString value2); */
950 : NS_IMETHODIMP nsDOMWindowUtils::ComputeAnimationDistance(nsIDOMElement *element, const nsAString & property, const nsAString & value1, const nsAString & value2, double *_retval NS_OUTPARAM)
951 : {
952 : return NS_ERROR_NOT_IMPLEMENTED;
953 : }
954 :
955 : /* nsIDOMFile wrapDOMFile (in nsIFile aFile); */
956 : NS_IMETHODIMP nsDOMWindowUtils::WrapDOMFile(nsIFile *aFile, nsIDOMFile * *_retval NS_OUTPARAM)
957 : {
958 : return NS_ERROR_NOT_IMPLEMENTED;
959 : }
960 :
961 : /* readonly attribute string focusedInputType; */
962 : NS_IMETHODIMP nsDOMWindowUtils::GetFocusedInputType(char * *aFocusedInputType)
963 : {
964 : return NS_ERROR_NOT_IMPLEMENTED;
965 : }
966 :
967 : /* nsIDOMElement findElementWithViewId (in nsViewID aId); */
968 : NS_IMETHODIMP nsDOMWindowUtils::FindElementWithViewId(nsViewID aId, nsIDOMElement * *_retval NS_OUTPARAM)
969 : {
970 : return NS_ERROR_NOT_IMPLEMENTED;
971 : }
972 :
973 : /* boolean leafLayersPartitionWindow (); */
974 : NS_IMETHODIMP nsDOMWindowUtils::LeafLayersPartitionWindow(bool *_retval NS_OUTPARAM)
975 : {
976 : return NS_ERROR_NOT_IMPLEMENTED;
977 : }
978 :
979 : /* readonly attribute boolean mayHaveTouchEventListeners; */
980 : NS_IMETHODIMP nsDOMWindowUtils::GetMayHaveTouchEventListeners(bool *aMayHaveTouchEventListeners)
981 : {
982 : return NS_ERROR_NOT_IMPLEMENTED;
983 : }
984 :
985 : /* boolean checkAndClearPaintedState (in nsIDOMElement aElement); */
986 : NS_IMETHODIMP nsDOMWindowUtils::CheckAndClearPaintedState(nsIDOMElement *aElement, bool *_retval NS_OUTPARAM)
987 : {
988 : return NS_ERROR_NOT_IMPLEMENTED;
989 : }
990 :
991 : /* long long getFileId (in nsIDOMBlob aBlob); */
992 : NS_IMETHODIMP nsDOMWindowUtils::GetFileId(nsIDOMBlob *aBlob, PRInt64 *_retval NS_OUTPARAM)
993 : {
994 : return NS_ERROR_NOT_IMPLEMENTED;
995 : }
996 :
997 : /* boolean getFileReferences (in AString aDatabaseName, in long long aId, [optional] out long aRefCnt, [optional] out long aDBRefCnt, [optional] out long aSliceRefCnt); */
998 : NS_IMETHODIMP nsDOMWindowUtils::GetFileReferences(const nsAString & aDatabaseName, PRInt64 aId, PRInt32 *aRefCnt NS_OUTPARAM, PRInt32 *aDBRefCnt NS_OUTPARAM, PRInt32 *aSliceRefCnt NS_OUTPARAM, bool *_retval NS_OUTPARAM)
999 : {
1000 : return NS_ERROR_NOT_IMPLEMENTED;
1001 : }
1002 :
1003 : /* [implicit_jscontext] boolean isIncrementalGCEnabled (); */
1004 : NS_IMETHODIMP nsDOMWindowUtils::IsIncrementalGCEnabled(JSContext* cx, bool *_retval NS_OUTPARAM)
1005 : {
1006 : return NS_ERROR_NOT_IMPLEMENTED;
1007 : }
1008 :
1009 : /* [implicit_jscontext] void startPCCountProfiling (); */
1010 : NS_IMETHODIMP nsDOMWindowUtils::StartPCCountProfiling(JSContext* cx)
1011 : {
1012 : return NS_ERROR_NOT_IMPLEMENTED;
1013 : }
1014 :
1015 : /* [implicit_jscontext] void stopPCCountProfiling (); */
1016 : NS_IMETHODIMP nsDOMWindowUtils::StopPCCountProfiling(JSContext* cx)
1017 : {
1018 : return NS_ERROR_NOT_IMPLEMENTED;
1019 : }
1020 :
1021 : /* [implicit_jscontext] void purgePCCounts (); */
1022 : NS_IMETHODIMP nsDOMWindowUtils::PurgePCCounts(JSContext* cx)
1023 : {
1024 : return NS_ERROR_NOT_IMPLEMENTED;
1025 : }
1026 :
1027 : /* [implicit_jscontext] long getPCCountScriptCount (); */
1028 : NS_IMETHODIMP nsDOMWindowUtils::GetPCCountScriptCount(JSContext* cx, PRInt32 *_retval NS_OUTPARAM)
1029 : {
1030 : return NS_ERROR_NOT_IMPLEMENTED;
1031 : }
1032 :
1033 : /* [implicit_jscontext] AString getPCCountScriptSummary (in long script); */
1034 : NS_IMETHODIMP nsDOMWindowUtils::GetPCCountScriptSummary(PRInt32 script, JSContext* cx, nsAString & _retval NS_OUTPARAM)
1035 : {
1036 : return NS_ERROR_NOT_IMPLEMENTED;
1037 : }
1038 :
1039 : /* [implicit_jscontext] AString getPCCountScriptContents (in long script); */
1040 : NS_IMETHODIMP nsDOMWindowUtils::GetPCCountScriptContents(PRInt32 script, JSContext* cx, nsAString & _retval NS_OUTPARAM)
1041 : {
1042 : return NS_ERROR_NOT_IMPLEMENTED;
1043 : }
1044 :
1045 : /* readonly attribute boolean paintingSuppressed; */
1046 : NS_IMETHODIMP nsDOMWindowUtils::GetPaintingSuppressed(bool *aPaintingSuppressed)
1047 : {
1048 : return NS_ERROR_NOT_IMPLEMENTED;
1049 : }
1050 :
1051 : /* End of implementation class template. */
1052 : #endif
1053 :
1054 :
1055 : #endif /* __gen_nsIDOMWindowUtils_h__ */
|