Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsGfxFactoryQt.cpp File Reference
#include "nsIGenericFactory.h"
#include "nsIModule.h"
#include "nsCOMPtr.h"
#include "nsGfxCIID.h"
#include "nsBlender.h"
#include "nsFontMetricsQt.h"
#include "nsRenderingContextQt.h"
#include "nsDeviceContextSpecQt.h"
#include "nsDeviceContextSpecFactoryQt.h"
#include "nsScreenManagerQt.h"
#include "nsScriptableRegion.h"
#include "nsDeviceContextQt.h"
#include "nsImageQt.h"
#include "nsFontList.h"
#include "nsPrintSession.h"
#include "nsNativeThemeQt.h"
#include "gfxImageFrame.h"
#include "qtlog.h"

Go to the source code of this file.

Functions

static nsresult nsScriptableRegionConstructor (nsISupports *aOuter, REFNSIID aIID, void **aResult)

Variables

PRLogModuleInfogQtLogModule = PR_NewLogModule("QtGfx")
static const nsModuleComponentInfo components []

Function Documentation

static nsresult nsScriptableRegionConstructor ( nsISupports *  aOuter,
REFNSIID  aIID,
void **  aResult 
) [static]

Definition at line 82 of file nsGfxFactoryQt.cpp.

{
    nsresult rv;

    nsIScriptableRegion *inst = 0;

    if (NULL == aResult) {
        rv = NS_ERROR_NULL_POINTER;
        return rv;
    }
    *aResult = NULL;
    if (NULL != aOuter) {
        rv = NS_ERROR_NO_AGGREGATION;
        return rv;
    }
    // create an nsRegionQt and get the scriptable region from it
    nsCOMPtr <nsIRegion> rgn;
    NS_NEWXPCOM(rgn, nsRegionQt);
    if (rgn != nsnull) {
        nsCOMPtr<nsIScriptableRegion> scriptableRgn = new nsScriptableRegion(rgn);
        inst = scriptableRgn;
    }
    if (NULL == inst) {
        rv = NS_ERROR_OUT_OF_MEMORY;
        return rv;
    }
    NS_ADDREF(inst);
    rv = inst->QueryInterface(aIID, aResult);
    NS_RELEASE(inst);

    return rv;
}

Here is the call graph for this function:


Variable Documentation

Definition at line 115 of file nsGfxFactoryQt.cpp.

PRLogModuleInfo* gQtLogModule = PR_NewLogModule("QtGfx")

Definition at line 62 of file nsGfxFactoryQt.cpp.