Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsDOMBeforeUnloadEvent.cpp File Reference
#include "nsDOMBeforeUnloadEvent.h"
#include "nsContentUtils.h"

Go to the source code of this file.

Functions

nsresult NS_NewDOMBeforeUnloadEvent (nsIDOMEvent **aInstancePtrResult, nsPresContext *aPresContext, nsBeforePageUnloadEvent *aEvent)

Function Documentation

nsresult NS_NewDOMBeforeUnloadEvent ( nsIDOMEvent **  aInstancePtrResult,
nsPresContext aPresContext,
nsBeforePageUnloadEvent aEvent 
)

Definition at line 88 of file nsDOMBeforeUnloadEvent.cpp.

{
  nsDOMBeforeUnloadEvent* it =
    new nsDOMBeforeUnloadEvent(aPresContext, aEvent);
  if (!it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }

  return CallQueryInterface(it, aInstancePtrResult);
}

Here is the call graph for this function:

Here is the caller graph for this function: