sbWindowWatcher.cpp File Reference

Songbird Window Watcher Source. More...

#include "sbWindowWatcher.h"
#include <sbThreadUtils.h>
#include <nsAutoLock.h>
#include <nsIDOMDocument.h>
#include <nsIDOMElement.h>
#include <nsIDOMEvent.h>
#include <nsIProxyObjectManager.h>
#include <nsMemory.h>
#include <nsServiceManagerUtils.h>
#include <prlog.h>
Include dependency graph for sbWindowWatcher.cpp:

Go to the source code of this file.

Macros

#define TRACE(args)   /* nothing */
 
#define LOG(args)   /* nothing */
 

Functions

 NS_IMPL_THREADSAFE_ISUPPORTS3 (sbWindowWatcher, sbIWindowWatcher, nsIObserver, nsISupportsWeakReference) NS_IMETHODIMP sbWindowWatcher
 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. More...
 
 NS_IMPL_THREADSAFE_ISUPPORTS1 (sbWindowWatcherEventListener, nsIDOMEventListener) NS_IMETHODIMP sbWindowWatcherEventListener
 
 NS_IMPL_THREADSAFE_ISUPPORTS1 (sbWindowWatcherWaitForWindow, sbICallWithWindowCallback) NS_IMETHODIMP sbWindowWatcherWaitForWindow
 Handle the callback with the window specified by aWindow. More...
 

Detailed Description

Songbird Window Watcher Source.

Definition in file sbWindowWatcher.cpp.

Macro Definition Documentation

#define LOG (   args)    /* nothing */

Definition at line 72 of file sbWindowWatcher.cpp.

#define TRACE (   args)    /* nothing */

To log this module, set the following environment variable: NSPR_LOG_MODULES=sbWindowWatcher:5

Definition at line 71 of file sbWindowWatcher.cpp.

Function Documentation

NS_IMPL_THREADSAFE_ISUPPORTS1 ( sbWindowWatcherEventListener  ,
nsIDOMEventListener   
)

This method is called whenever an event occurs of the type for which the EventListener interface was registered.

Parameters
evtThe Event contains contextual information about the event. It also contains the stopPropagation and preventDefault methods which are used in determining the event's flow and default action.

Definition at line 913 of file sbWindowWatcher.cpp.

NS_IMPL_THREADSAFE_ISUPPORTS1 ( sbWindowWatcherWaitForWindow  ,
sbICallWithWindowCallback   
)

Handle the callback with the window specified by aWindow.

Parameters
aWindowCallback window.

Definition at line 1142 of file sbWindowWatcher.cpp.

NS_IMPL_THREADSAFE_ISUPPORTS3 ( sbWindowWatcher  ,
sbIWindowWatcher  ,
nsIObserver  ,
nsISupportsWeakReference   
)

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.

Parameters
aWindowTypeType of window with which to call.
aCallbackCallback to call with window.
aWaitIf true, wait until calback is called.

When called on the main-thread with aWait set to true, return NS_ERROR_NOT_AVAILABLE if window of specified type is not available. In all other error cases, return NS_ERROR_FAILURE.

Definition at line 87 of file sbWindowWatcher.cpp.

Here is the call graph for this function: