Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsAccessibilityFactory.cpp File Reference
#include "nsCOMPtr.h"
#include "nsIModule.h"
#include "nsIGenericFactory.h"
#include "nsIServiceManager.h"
#include "nsIComponentManager.h"
#include "nsIAccessibilityService.h"
#include "nsIAccessibleRetrieval.h"
#include "nscore.h"

Go to the source code of this file.

Functions

static NS_IMETHODIMP NS_ConstructAccessibilityService (nsISupports *aOuter, REFNSIID aIID, void **aResult)

Variables

static const nsModuleComponentInfo components []

Function Documentation

static NS_IMETHODIMP NS_ConstructAccessibilityService ( nsISupports *  aOuter,
REFNSIID  aIID,
void **  aResult 
) [static]

Definition at line 49 of file nsAccessibilityFactory.cpp.

{
    nsresult rv;
    NS_ASSERTION(aOuter == nsnull, "no aggregation");
    nsIAccessibilityService* accessibility;
    rv = NS_GetAccessibilityService(&accessibility);
    if (NS_FAILED(rv)) {
        NS_ERROR("Unable to construct accessibility service");
        return rv;
    }
    rv = accessibility->QueryInterface(aIID, aResult);
    NS_ASSERTION(NS_SUCCEEDED(rv), "unable to find correct interface");
    NS_RELEASE(accessibility);
    return rv;
}

Here is the call graph for this function:


Variable Documentation

Initial value:
 
{
    { "AccessibilityService", 
      NS_ACCESSIBILITY_SERVICE_CID,
      "@mozilla.org/accessibilityService;1", 
      NS_ConstructAccessibilityService
    },
    { "AccessibleRetrieval", 
      NS_ACCESSIBLE_RETRIEVAL_CID,
      "@mozilla.org/accessibleRetrieval;1", 
      NS_ConstructAccessibilityService
    },
}

Definition at line 66 of file nsAccessibilityFactory.cpp.