mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Oops.
This commit is contained in:
parent
51f0d561ab
commit
c469eabd61
@ -126,5 +126,8 @@
|
||||
#define NS_RDFCONTAINER_CID \
|
||||
{ 0xd4214e93, 0xfb94, 0x11d2, { 0xbd, 0xd8, 0x0, 0x10, 0x4b, 0xde, 0x60, 0x48 } }
|
||||
|
||||
// {3986B301-097C-11d3-BF87-00105A1B0627}
|
||||
#define NS_XULPOPUPLISTENER_CID \
|
||||
{ 0x3986b301, 0x97c, 0x11d3, { 0xbf, 0x87, 0x0, 0x10, 0x5a, 0x1b, 0x6, 0x27 } }
|
||||
|
||||
#endif // nsRDFCID_h__
|
||||
|
@ -45,6 +45,7 @@
|
||||
#include "rdf.h"
|
||||
#include "nsIXULSortService.h"
|
||||
#include "nsIXULDocumentInfo.h"
|
||||
#include "nsIXULPopupListener.h"
|
||||
#include "nsIServiceManager.h"
|
||||
#include "nsCOMPtr.h"
|
||||
|
||||
@ -77,6 +78,7 @@ static NS_DEFINE_CID(kXULDataSourceCID, NS_XULDATASOURCE_CID);
|
||||
static NS_DEFINE_CID(kXULDocumentCID, NS_XULDOCUMENT_CID);
|
||||
static NS_DEFINE_CID(kXULSortServiceCID, NS_XULSORTSERVICE_CID);
|
||||
static NS_DEFINE_CID(kXULDocumentInfoCID, NS_XULDOCUMENTINFO_CID);
|
||||
static NS_DEFINE_CID(kXULPopupListenerCID, NS_XULPOPUPLISTENER_CID);
|
||||
|
||||
class RDFFactoryImpl : public nsIFactory
|
||||
{
|
||||
@ -168,6 +170,10 @@ RDFFactoryImpl::CreateInstance(nsISupports *aOuter,
|
||||
if (NS_FAILED(rv = NS_NewXULSortService((nsIXULSortService**) &inst)))
|
||||
return rv;
|
||||
}
|
||||
else if (mClassID.Equals(kXULPopupListenerCID)) {
|
||||
if (NS_FAILED(rv = NS_NewXULPopupListener((nsIXULPopupListener**) &inst)))
|
||||
return rv;
|
||||
}
|
||||
else if (mClassID.Equals(kRDFInMemoryDataSourceCID)) {
|
||||
|
||||
if (NS_FAILED(rv = NS_NewRDFInMemoryDataSource((nsIRDFDataSource**) &inst)))
|
||||
@ -456,6 +462,12 @@ NSRegisterSelf(nsISupports* aServMgr , const char* aPath)
|
||||
"XUL Document Info",
|
||||
NS_RDF_PROGID "/xul-document-info",
|
||||
aPath, PR_TRUE, PR_TRUE);
|
||||
|
||||
if (NS_FAILED(rv)) goto done;
|
||||
rv = compMgr->RegisterComponent(kXULPopupListenerCID,
|
||||
"XUL PopupListener",
|
||||
NS_RDF_PROGID "/xul-popup-listener",
|
||||
aPath, PR_TRUE, PR_TRUE);
|
||||
done:
|
||||
(void)servMgr->ReleaseService(kComponentManagerCID, compMgr);
|
||||
return rv;
|
||||
@ -523,6 +535,8 @@ NSUnregisterSelf(nsISupports* aServMgr, const char* aPath)
|
||||
rv = compMgr->UnregisterComponent(kXULDocumentCID, aPath);
|
||||
if (NS_FAILED(rv)) goto done;
|
||||
rv = compMgr->UnregisterComponent(kXULDocumentInfoCID, aPath);
|
||||
if (NS_FAILED(rv)) goto done;
|
||||
rv = compMgr->UnregisterComponent(kXULPopupListenerCID, aPath);
|
||||
|
||||
done:
|
||||
(void)servMgr->ReleaseService(kComponentManagerCID, compMgr);
|
||||
|
Loading…
Reference in New Issue
Block a user