Back to index

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

Go to the source code of this file.

Classes

class  nsMenuBarFrame

Functions

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

Function Documentation

nsresult NS_NewMenuBarFrame ( nsIPresShell aPresShell,
nsIFrame **  aResult 
)

Definition at line 79 of file nsMenuBarFrame.cpp.

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

Here is the caller graph for this function: