Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions | Variables
nsMenuFrame.cpp File Reference
#include "nsXULAtoms.h"
#include "nsHTMLAtoms.h"
#include "nsHTMLParts.h"
#include "nsMenuFrame.h"
#include "nsBoxFrame.h"
#include "nsIContent.h"
#include "prtypes.h"
#include "nsIAtom.h"
#include "nsPresContext.h"
#include "nsIPresShell.h"
#include "nsStyleContext.h"
#include "nsCSSRendering.h"
#include "nsINameSpaceManager.h"
#include "nsLayoutAtoms.h"
#include "nsMenuPopupFrame.h"
#include "nsMenuBarFrame.h"
#include "nsIView.h"
#include "nsIWidget.h"
#include "nsIDocument.h"
#include "nsIDOMNSDocument.h"
#include "nsIDOMDocument.h"
#include "nsIDOMElement.h"
#include "nsISupportsArray.h"
#include "nsIDOMText.h"
#include "nsILookAndFeel.h"
#include "nsIComponentManager.h"
#include "nsWidgetsCID.h"
#include "nsBoxLayoutState.h"
#include "nsIScrollableFrame.h"
#include "nsIViewManager.h"
#include "nsIBindingManager.h"
#include "nsIServiceManager.h"
#include "nsIXBLService.h"
#include "nsCSSFrameConstructor.h"
#include "nsIDOMKeyEvent.h"
#include "nsIScrollableView.h"
#include "nsXPIDLString.h"
#include "nsReadableUtils.h"
#include "nsUnicharUtils.h"
#include "nsIStringBundle.h"
#include "nsGUIEvent.h"
#include "nsIEventStateManager.h"
#include "nsITimerInternal.h"
#include "nsContentUtils.h"
#include "nsIEventQueueService.h"
#include "nsIReflowCallback.h"

Go to the source code of this file.

Classes

class  nsASyncMenuInitialization
struct  nsASyncUngenerate
class  nsASyncMenuGeneration

Defines

#define NS_MENU_POPUP_LIST_INDEX   0

Functions

static NS_DEFINE_CID (kEventQueueServiceCID, NS_EVENTQUEUESERVICE_CID)
static NS_DEFINE_IID (kLookAndFeelCID, NS_LOOKANDFEEL_CID)
nsresult NS_NewMenuFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame, PRUint32 aFlags)
static void *PR_CALLBACK HandleASyncUngenerate (PLEvent *aEvent)
static void PR_CALLBACK DestroyASyncUngenerate (PLEvent *aEvent)

Variables

static PRInt32 gEatMouseMove = PR_FALSE

Define Documentation

Definition at line 90 of file nsMenuFrame.cpp.


Function Documentation

static void PR_CALLBACK DestroyASyncUngenerate ( PLEvent aEvent) [static]

Definition at line 748 of file nsMenuFrame.cpp.

{
  delete NS_STATIC_CAST(nsASyncUngenerate*, aEvent);
}

Here is the caller graph for this function:

static void* PR_CALLBACK HandleASyncUngenerate ( PLEvent aEvent) [static]

Definition at line 742 of file nsMenuFrame.cpp.

{
  NS_STATIC_CAST(nsASyncUngenerate*, aEvent)->HandleEvent();
  return nsnull;
}

Here is the caller graph for this function:

static NS_DEFINE_IID ( kLookAndFeelCID  ,
NS_LOOKANDFEEL_CID   
) [static]
nsresult NS_NewMenuFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame,
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:


Variable Documentation

Definition at line 98 of file nsMenuFrame.cpp.