Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
A window wants to be moved in z-order. Calculate whether and how it should be constrained. Note this method is advisory only: it changes nothing either in WindowMediator's internal state or with the window. Note it compares the nsIAppWindow to nsIWidgets. A pure interface would use all nsIAppWindows. But we expect this to be called from callbacks originating in native window code. They are expected to hand us comparison values which are pulled from general storage in the native widget, and may not correspond to an nsIWidget at all. For that reason this interface requires only objects one step removed from the native window (nsIWidgets), and its implementation must be very understanding of what may be completely invalid pointers in those parameters.
PR_TRUE if the position returned is different from the position given.
the window in question
requested position values: zLevelTop: topmost window. zLevelBottom: bottom. zLevelBelow: below ioBelow. (the value of ioBelow will be ignored for zLevelTop and Bottom.)
if inPosition==zLevelBelow, the window below which inWindow wants to be placed. Otherwise this variable is ignored.
constrained position, values like inPosition.
if outPosition==zLevelBelow, the window below which inWindow should be placed. Otherwise this this value will be null.
Return an enumerator which iterates over all windows of type aWindowType from the oldest window to the youngest.
an enumerator of nsIDOMWindows. Note that windows close asynchronously in many cases, so windows returned from this enumerator can have .closed set to true. Caveat enumerator!
the returned enumerator will enumerate only
windows of this type. ("type" is the
|windowtype| attribute of the XML
This is a shortcut for simply fetching the first window in front to back order.
the topmost window
return the topmost window of this type.
("type" is the |windowtype| attribute of
the XML
Return an enumerator which iterates over all windows of type aWindowType in their z (front-to-back) order. Note this interface makes no requirement that a window couldn't be revisited if windows are re-ordered while z-order enumerators are active.
an enumerator of nsIAppWindows
the returned enumerator will enumerate only
windows of this type. ("type" is the
|windowtype| attribute of the XML
if true, the enumerator enumerates windows in order from front to back. back to front if false.
Set the window's Z level (as defined in nsIAppWindow). The implementation will reposition the window as necessary to match its new Z level. The implementation will assume a window's Z level to be nsIAppWindow::normalZ until it has been informed of a different level.
the window in question
the window's new Z level
A window has been positioned behind another. Inform WindowMediator
the window in question
new position. values: zLevelTop: topmost window. zLevelBottom: bottom. zLevelBelow: below inBelow. (inBelow is ignored for other values of inPosition.)
the window inWindow is behind, if zLevelBelow
Generated using TypeDoc
Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.
Returns
The resulting reference count.