Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsQABrowserModule.cpp File Reference
#include "nsIModule.h"
#include "nsIGenericFactory.h"
#include "nsIComponentManager.h"
#include "nsIServiceManager.h"
#include "nsIComponentRegistrar.h"
#include "nsQABrowserCID.h"
#include "nsQABrowserView.h"
#include "nsQABrowserUIGlue.h"
#include "nsQABrowserChrome.h"

Go to the source code of this file.

Functions

static NS_DEFINE_CID (kBrowserViewCID, NS_QABROWSERVIEW_CID)
static NS_DEFINE_CID (kBrowserUIGlueCID, NS_QABROWSERUIGLUE_CID)
static NS_DEFINE_CID (kBrowserChromeCID, NS_QABROWSERCHROME_CID)
nsresult RegisterComponents ()

Variables

static const nsModuleComponentInfo gQAEmbeddingModuleViewInfo []
static const nsModuleComponentInfo gQAEmbeddingModuleUIInfo []
static const nsModuleComponentInfo gQAEmbeddingModuleChromeInfo []

Function Documentation

static NS_DEFINE_CID ( kBrowserViewCID  ,
NS_QABROWSERVIEW_CID   
) [static]
static NS_DEFINE_CID ( kBrowserUIGlueCID  ,
NS_QABROWSERUIGLUE_CID   
) [static]
static NS_DEFINE_CID ( kBrowserChromeCID  ,
NS_QABROWSERCHROME_CID   
) [static]

Definition at line 83 of file nsQABrowserModule.cpp.

{

  nsresult rv=NS_OK;
  nsIGenericFactory* fact;

  // Register the factory for all supporting interfaces. 
  nsCOMPtr<nsIComponentRegistrar> registrar;
  rv = NS_GetComponentRegistrar(getter_AddRefs(registrar));
  if (NS_FAILED(rv))
    return rv;

  // Register nsQABrowserView
  rv = NS_NewGenericFactory(&fact, gQAEmbeddingModuleViewInfo);
  rv = registrar->RegisterFactory(kBrowserViewCID,
                                  "QA Embedding BrowserView",
                                  NS_QABROWSERVIEW_CONTRACTID,
                                  fact);
  NS_RELEASE(fact);

  //Register nsQABrowserUIGlue
  rv = NS_NewGenericFactory(&fact, gQAEmbeddingModuleUIInfo);

  rv = registrar->RegisterFactory(kBrowserUIGlueCID,
                                  "QA Embedding BrowserUIGlue",
                                  NS_QABROWSERUIGLUE_CONTRACTID,
                                  fact);
  NS_RELEASE(fact);

  //Register nsQABrowserChrome
  rv = NS_NewGenericFactory(&fact, gQAEmbeddingModuleChromeInfo);

  rv = registrar->RegisterFactory(kBrowserChromeCID,
                                  "QA Embedding BrowserChrome",
                                  NS_QABROWSERCHROME_CONTRACTID,
                                  fact);
  NS_RELEASE(fact);
  return rv;

}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Initial value:
{
   { "QA_BrowserChrome Component", NS_QABROWSERCHROME_CID,
     NS_QABROWSERCHROME_CONTRACTID, nsQABrowserChromeConstructor }
}

Definition at line 76 of file nsQABrowserModule.cpp.

Initial value:
{
   { "QA_BrowserUIGlue Component", NS_QABROWSERUIGLUE_CID,
     NS_QABROWSERUIGLUE_CONTRACTID, nsQABrowserUIGlueConstructor }
}

Definition at line 70 of file nsQABrowserModule.cpp.

Initial value:
{
   { "QA_BrowserView Component", NS_QABROWSERVIEW_CID, 
     NS_QABROWSERVIEW_CONTRACTID, nsQABrowserViewConstructor }
}

Definition at line 64 of file nsQABrowserModule.cpp.