Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsTitleBarFrame.cpp File Reference
#include "nsCOMPtr.h"
#include "nsTitleBarFrame.h"
#include "nsIContent.h"
#include "nsIDocument.h"
#include "nsIDOMXULDocument.h"
#include "nsIDOMNodeList.h"
#include "nsHTMLAtoms.h"
#include "nsIWidget.h"
#include "nsPresContext.h"
#include "nsIDOMWindowInternal.h"
#include "nsIScriptGlobalObject.h"
#include "nsIViewManager.h"
#include "nsGUIEvent.h"

Go to the source code of this file.

Functions

nsresult NS_NewTitleBarFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame)

Function Documentation

nsresult NS_NewTitleBarFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)

Definition at line 59 of file nsTitleBarFrame.cpp.

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

  // it->SetFlags(aFlags);
  *aNewFrame = it;
  return NS_OK;
  
} // NS_NewTitleBarFrame

Here is the caller graph for this function: