Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Attributes
nsLoadListenerProxy Class Reference

#include <nsLoadListenerProxy.h>

Inheritance diagram for nsLoadListenerProxy:
Inheritance graph
[legend]
Collaboration diagram for nsLoadListenerProxy:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsLoadListenerProxy (nsWeakPtr aParent)
virtual ~nsLoadListenerProxy ()
NS_DECL_ISUPPORTS NS_IMETHOD HandleEvent (nsIDOMEvent *aEvent)
NS_IMETHOD Load (nsIDOMEvent *aEvent)
 Processes a page or image load event.
NS_IMETHOD BeforeUnload (nsIDOMEvent *aEvent)
 Processes a page beforeUnload event.
NS_IMETHOD Unload (nsIDOMEvent *aEvent)
 Processes a page unload event.
NS_IMETHOD Abort (nsIDOMEvent *aEvent)
 Processes a load abort event.
NS_IMETHOD Error (nsIDOMEvent *aEvent)
 Processes an load error event.
void handleEvent (in nsIDOMEvent event)
 This method is called whenever an event occurs of the type for which the EventListener interface was registered.

Protected Attributes

nsWeakPtr mParent

Detailed Description

Definition at line 56 of file nsLoadListenerProxy.h.


Constructor & Destructor Documentation

Definition at line 41 of file nsLoadListenerProxy.cpp.

                                                          : mParent(aParent)
{
}

Definition at line 45 of file nsLoadListenerProxy.cpp.

{
}

Member Function Documentation

Processes a load abort event.

Parameters:
aMouseEvent
See also:
nsIDOMEvent.h
Returns:
whether the event was consumed or ignored.
See also:
nsresult

Implements nsIDOMLoadListener.

Definition at line 101 of file nsLoadListenerProxy.cpp.

{
  nsCOMPtr<nsIDOMLoadListener> listener(do_QueryReferent(mParent));

  if (listener) {
    return listener->Abort(aEvent);
  }
  
  return NS_OK;
}

Here is the call graph for this function:

Processes a page beforeUnload event.

Parameters:
aMouseEvent
See also:
nsIDOMEvent.h
Returns:
whether the event was consumed or ignored.
See also:
nsresult

Implements nsIDOMLoadListener.

Definition at line 77 of file nsLoadListenerProxy.cpp.

{
  nsCOMPtr<nsIDOMLoadListener> listener(do_QueryReferent(mParent));

  if (listener) {
    return listener->BeforeUnload(aEvent);
  }
  
  return NS_OK;
}

Here is the call graph for this function:

Processes an load error event.

Parameters:
aMouseEvent
See also:
nsIDOMEvent.h
Returns:
whether the event was consumed or ignored.
See also:
nsresult

Implements nsIDOMLoadListener.

Definition at line 113 of file nsLoadListenerProxy.cpp.

{
  nsCOMPtr<nsIDOMLoadListener> listener(do_QueryReferent(mParent));

  if (listener) {
    return listener->Error(aEvent);
  }
  
  return NS_OK;
}

Here is the call graph for this function:

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.

Processes a page or image load event.

Parameters:
aMouseEvent
See also:
nsIDOMEvent.h
Returns:
whether the event was consumed or ignored.
See also:
nsresult

Implements nsIDOMLoadListener.

Definition at line 65 of file nsLoadListenerProxy.cpp.

{
  nsCOMPtr<nsIDOMLoadListener> listener(do_QueryReferent(mParent));

  if (listener) {
    return listener->Load(aEvent);
  }

  return NS_OK;
}

Here is the call graph for this function:

Processes a page unload event.

Parameters:
aMouseEvent
See also:
nsIDOMEvent.h
Returns:
whether the event was consumed or ignored.
See also:
nsresult

Implements nsIDOMLoadListener.

Definition at line 89 of file nsLoadListenerProxy.cpp.

{
  nsCOMPtr<nsIDOMLoadListener> listener(do_QueryReferent(mParent));

  if (listener) {
    return listener->Unload(aEvent);
  }
  
  return NS_OK;
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 74 of file nsLoadListenerProxy.h.


The documentation for this class was generated from the following files: