Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsMenuFrame.h File Reference
#include "prtypes.h"
#include "nsIAtom.h"
#include "nsCOMPtr.h"
#include "nsBoxFrame.h"
#include "nsFrameList.h"
#include "nsIMenuParent.h"
#include "nsIMenuFrame.h"
#include "nsMenuDismissalListener.h"
#include "nsITimer.h"
#include "nsISupportsArray.h"
#include "nsIDOMText.h"
#include "nsIContent.h"
#include "nsIScrollableViewProvider.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nsMenuTimerMediator
 nsMenuTimerMediator is a wrapper around an nsMenuFrame which can be safely passed to timers. More...
class  nsMenuFrame

Defines

#define NS_STATE_ACCELTEXT_IS_DERIVED   NS_STATE_BOX_CHILD_RESERVED

Functions

nsresult NS_NewMenuFrame (nsIPresShell *aPresShell, nsIFrame **aResult, PRUint32 aFlags)

Define Documentation

Definition at line 67 of file nsMenuFrame.h.


Function Documentation

nsresult NS_NewMenuFrame ( nsIPresShell aPresShell,
nsIFrame **  aResult,
PRUint32  aFlags 
)

Definition at line 117 of file nsMenuFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsMenuFrame* it = new (aPresShell) nsMenuFrame (aPresShell);
  if ( !it )
    return NS_ERROR_OUT_OF_MEMORY;
  *aNewFrame = it;
  if (aFlags)
    it->SetIsMenu(PR_TRUE);
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function: