Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsMenuItemIcon.cpp File Reference
#include "nsMenuItemIcon.h"
#include "prmem.h"
#include "nsIMenu.h"
#include "nsIMenuItem.h"
#include "nsIContent.h"
#include "nsIDocument.h"
#include "nsINameSpaceManager.h"
#include "nsWidgetAtoms.h"
#include "nsIDOMDocumentView.h"
#include "nsIDOMViewCSS.h"
#include "nsIDOMElement.h"
#include "nsIDOMCSSStyleDeclaration.h"
#include "nsIDOMCSSValue.h"
#include "nsIDOMCSSPrimitiveValue.h"
#include "nsIEventQueueService.h"
#include "nsToolkit.h"
#include "nsNetUtil.h"
#include "imgILoader.h"
#include "imgIRequest.h"
#include "gfxIImageFrame.h"
#include "nsIImage.h"
#include "nsIImageMac.h"
#include <Carbon/Carbon.h>

Go to the source code of this file.

Functions

static void PRAllocCGFree (void *aInfo, const void *aData, size_t aSize)
 NS_IMPL_ISUPPORTS3 (nsMenuItemIcon, imgIContainerObserver, imgIDecoderObserver, imgIDecoderObserver_MOZILLA_1_8_BRANCH) nsMenuItemIcon

Variables

static const PRUint32 kIconWidth = 16
static const PRUint32 kIconHeight = 16
static const PRUint32 kIconBitsPerComponent = 8
static const PRUint32 kIconComponents = 4
static const PRUint32 kIconBitsPerPixel
static const PRUint32 kIconBytesPerRow = kIconWidth * kIconBitsPerPixel / 8
static const PRUint32 kIconBytes = kIconBytesPerRow * kIconHeight

Function Documentation

Definition at line 86 of file nsMenuItemIcon.cpp.

: mContent(aContent)
, mMenuItem(aMenuItem)
, mMenu(aMenu)
, mMenuRef(NULL)
, mMenuItemIndex(0)
, mLoadedIcon(PR_FALSE)
, mSetIcon(PR_FALSE)
{
}
static void PRAllocCGFree ( void aInfo,
const void aData,
size_t  aSize 
) [static]

Definition at line 81 of file nsMenuItemIcon.cpp.

                                                            {
  PR_Free((void*)aData);
}

Here is the caller graph for this function:


Variable Documentation

Definition at line 72 of file nsMenuItemIcon.cpp.

Initial value:

Definition at line 74 of file nsMenuItemIcon.cpp.

Definition at line 77 of file nsMenuItemIcon.cpp.

Definition at line 76 of file nsMenuItemIcon.cpp.

Definition at line 73 of file nsMenuItemIcon.cpp.

const PRUint32 kIconHeight = 16 [static]

Definition at line 71 of file nsMenuItemIcon.cpp.

const PRUint32 kIconWidth = 16 [static]

Definition at line 70 of file nsMenuItemIcon.cpp.