Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsBaseWidget.cpp File Reference
#include "nsBaseWidget.h"
#include "nsIDeviceContext.h"
#include "nsCOMPtr.h"
#include "nsIMenuListener.h"
#include "nsIEnumerator.h"
#include "nsGfxCIID.h"
#include "nsWidgetsCID.h"
#include "nsIFullScreen.h"
#include "nsServiceManagerUtils.h"
#include "nsIScreenManager.h"
#include "nsAppDirectoryServiceDefs.h"

Go to the source code of this file.

Functions

static PRBool ResolveIconNameHelper (nsILocalFile *aFile, const nsAString &aIconName, const nsAString &aIconSuffix)
 Modifies aFile to point at an icon file with the given name and suffix.

Function Documentation

static PRBool ResolveIconNameHelper ( nsILocalFile aFile,
const nsAString &  aIconName,
const nsAString &  aIconSuffix 
) [static]

Modifies aFile to point at an icon file with the given name and suffix.

The suffix may correspond to a file extension with leading '.' if appropriate. Returns true if the icon file exists and can be read.

Definition at line 955 of file nsBaseWidget.cpp.

{
  aFile->Append(NS_LITERAL_STRING("icons"));
  aFile->Append(NS_LITERAL_STRING("default"));
  aFile->Append(aIconName + aIconSuffix);

  PRBool readable;
  return NS_SUCCEEDED(aFile->IsReadable(&readable)) && readable;
}

Here is the caller graph for this function: