29 #include "nsISupports.idl"
51 [scriptable,
uuid(93cf33df-770f-49ec-afb7-20db242dd366)]
77 [optional] in
boolean aWait);
117 [scriptable,
function,
uuid(4052eb5e-fe52-4e31-abca-1263c2cfd009)]
135 #define SB_WINDOWWATCHER_CONTRACTID \
136 "@songbirdnest.com/Songbird/window-watcher;1"
A callback interface that is called with a window.
void waitForWindow(in AString aWindowType)
Wait until a window of the type specified by aWindowType is available or until shutdown. This method may not be called on the main thread. Since the available window can only be used on the main thread, the available window may become unavailable after waitForWindow returns but before processing continues on the main thread.
nsIDOMWindow getWindow(in AString aWindowType)
Get the top-most available window of the type specified by aWindowType. Return null if no matching wi...
void callWithWindow(in AString aWindowType, in sbICallWithWindowCallback aCallback, [optional] in boolean aWait)
Call callback specified by aCallback with a window of the type specified by aWindowType. Wait until a window of the specified type is available or until shutdown. Call callback with null window on shutdown. Call callback on main thread. If aWait is true, don't return until callback is called.
readonly attribute boolean isShuttingDown
True if the window watcher is shutting down and no more windows will become available.
void handleWindowCallback(in nsIDOMWindow aWindow)
Handle the callback with the window specified by aWindow.