Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions | Variables
nsMenuPopupFrame.cpp File Reference
#include "nsMenuPopupFrame.h"
#include "nsXULAtoms.h"
#include "nsHTMLAtoms.h"
#include "nsIContent.h"
#include "prtypes.h"
#include "nsIAtom.h"
#include "nsPresContext.h"
#include "nsStyleContext.h"
#include "nsCSSRendering.h"
#include "nsINameSpaceManager.h"
#include "nsIViewManager.h"
#include "nsWidgetsCID.h"
#include "nsMenuFrame.h"
#include "nsIPopupSetFrame.h"
#include "nsIDOMWindowInternal.h"
#include "nsIDOMScreen.h"
#include "nsIScriptGlobalObject.h"
#include "nsIPresShell.h"
#include "nsFrameManager.h"
#include "nsIDocument.h"
#include "nsIDeviceContext.h"
#include "nsRect.h"
#include "nsIDOMXULDocument.h"
#include "nsILookAndFeel.h"
#include "nsIComponentManager.h"
#include "nsBoxLayoutState.h"
#include "nsIScrollableView.h"
#include "nsIScrollableFrame.h"
#include "nsGUIEvent.h"
#include "nsIRootBox.h"
#include "nsIDocShellTreeItem.h"
#include "nsITimerInternal.h"
#include "nsReadableUtils.h"
#include "nsUnicharUtils.h"
#include "nsCSSFrameConstructor.h"
#include "nsIBoxLayout.h"
#include "nsIEventQueueService.h"
#include "nsIServiceManager.h"
#include "nsIReflowCallback.h"

Go to the source code of this file.

Classes

class  nsASyncMenuActivation

Functions

static NS_DEFINE_CID (kEventQueueServiceCID, NS_EVENTQUEUESERVICE_CID)
static nsIPopupSetFrameGetPopupSetFrame (nsPresContext *aPresContext)
nsresult NS_NewMenuPopupFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame)
static void GetInsertionPoint (nsIPresShell *aShell, nsIFrame *aFrame, nsIFrame *aChild, nsIFrame **aResult)
static nsIScrollableViewGetScrollableViewForFrame (nsIFrame *aFrame)

Variables

const PRInt32 kMaxZ = 0x7fffffff

Function Documentation

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

Definition at line 1197 of file nsMenuPopupFrame.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:

static nsIPopupSetFrame* GetPopupSetFrame ( nsPresContext aPresContext) [static]

Definition at line 93 of file nsMenuPopupFrame.cpp.

{
  nsIFrame* rootFrame =
    aPresContext->PresShell()->FrameManager()->GetRootFrame();
  if (!rootFrame)
    return nsnull;

  if (rootFrame)
    rootFrame = rootFrame->GetFirstChild(nsnull);
 
  nsCOMPtr<nsIRootBox> rootBox(do_QueryInterface(rootFrame));
  if (!rootBox)
    return nsnull;

  nsIFrame* popupSetFrame;
  rootBox->GetPopupSetFrame(&popupSetFrame);
  if (!popupSetFrame)
    return nsnull;

  nsIPopupSetFrame* popupSet = nsnull;
  CallQueryInterface(popupSetFrame, &popupSet);
  return popupSet;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static nsIScrollableView* GetScrollableViewForFrame ( nsIFrame aFrame) [static]

Definition at line 1359 of file nsMenuPopupFrame.cpp.

{
  nsIScrollableFrame* sf;
  nsresult rv = CallQueryInterface(aFrame, &sf);
  if (NS_FAILED(rv))
    return nsnull;
  return sf->GetScrollableView();
}

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewMenuPopupFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)

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:


Variable Documentation

const PRInt32 kMaxZ = 0x7fffffff

Definition at line 89 of file nsMenuPopupFrame.cpp.