Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsMenuBarFrame.cpp File Reference
#include "nsMenuListener.h"
#include "nsMenuBarFrame.h"
#include "nsIServiceManager.h"
#include "nsIContent.h"
#include "prtypes.h"
#include "nsIAtom.h"
#include "nsPresContext.h"
#include "nsStyleContext.h"
#include "nsCSSRendering.h"
#include "nsINameSpaceManager.h"
#include "nsIDocument.h"
#include "nsIDOMEventReceiver.h"
#include "nsXULAtoms.h"
#include "nsHTMLAtoms.h"
#include "nsMenuFrame.h"
#include "nsIView.h"
#include "nsIViewManager.h"
#include "nsMenuPopupFrame.h"
#include "nsGUIEvent.h"
#include "nsUnicharUtils.h"
#include "nsICaret.h"
#include "nsIFocusController.h"
#include "nsIDOMWindowInternal.h"
#include "nsIDOMDocument.h"
#include "nsPIDOMWindow.h"
#include "nsIInterfaceRequestorUtils.h"
#include "nsCSSFrameConstructor.h"

Go to the source code of this file.

Functions

nsresult NS_NewMenuBarFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame)
static void GetInsertionPoint (nsIPresShell *aShell, nsIFrame *aFrame, nsIFrame *aChild, nsIFrame **aResult)

Function Documentation

static void GetInsertionPoint ( nsIPresShell aShell,
nsIFrame aFrame,
nsIFrame aChild,
nsIFrame **  aResult 
) [static]

Definition at line 293 of file nsMenuBarFrame.cpp.

{
  nsIContent* child = nsnull;
  if (aChild)
    child = aChild->GetContent();
  aShell->FrameConstructor()->GetInsertionPoint(aFrame, child, aResult);
}

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewMenuBarFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)

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: