Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsMenuPopupFrame.h File Reference
#include "prtypes.h"
#include "nsIAtom.h"
#include "nsCOMPtr.h"
#include "nsIDOMEventReceiver.h"
#include "nsMenuListener.h"
#include "nsBoxFrame.h"
#include "nsIMenuParent.h"
#include "nsIWidget.h"
#include "nsLayoutAtoms.h"
#include "nsITimer.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nsMenuPopupTimerMediator
 nsMenuPopupTimerMediator is a wrapper around an nsMenuPopupFrame which can be safely passed to timers. More...
class  nsMenuPopupFrame

Defines

#define INC_TYP_INTERVAL   1000

Functions

nsresult NS_NewMenuPopupFrame (nsIPresShell *aPresShell, nsIFrame **aResult)

Define Documentation

Definition at line 61 of file nsMenuPopupFrame.h.


Function Documentation

nsresult NS_NewMenuPopupFrame ( nsIPresShell aPresShell,
nsIFrame **  aResult 
)

Definition at line 123 of file nsMenuPopupFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsMenuPopupFrame* it = new (aPresShell) nsMenuPopupFrame (aPresShell);
  if ( !it )
    return NS_ERROR_OUT_OF_MEMORY;
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function: