This commit is contained in:
mcmullen%netscape.com 1999-03-27 00:06:45 +00:00
Родитель 5677de8439
Коммит a65c3410ea
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -27,6 +27,7 @@
#include "nsIDOMAppCoresManager.h" #include "nsIDOMAppCoresManager.h"
#include "nsIDOMToolkitCore.h" #include "nsIDOMToolkitCore.h"
#include "nsIDOMMailCore.h" #include "nsIDOMMailCore.h"
#include "nsIDOMPrefsCore.h"
#include "nsIDOMRDFCore.h" #include "nsIDOMRDFCore.h"
#include "nsIDOMToolbarCore.h" #include "nsIDOMToolbarCore.h"
#include "nsIDOMBrowserAppCore.h" #include "nsIDOMBrowserAppCore.h"
@ -38,6 +39,7 @@ static NS_DEFINE_IID(kIScriptExternalNameSetIID, NS_ISCRIPTEXTERNALNAMESET_IID);
static NS_DEFINE_IID(kAppCoresCID, NS_APPCORESMANAGER_CID); static NS_DEFINE_IID(kAppCoresCID, NS_APPCORESMANAGER_CID);
static NS_DEFINE_IID(kToolkitCoreCID, NS_TOOLKITCORE_CID); static NS_DEFINE_IID(kToolkitCoreCID, NS_TOOLKITCORE_CID);
static NS_DEFINE_IID(kMailCoreCID, NS_MAILCORE_CID); static NS_DEFINE_IID(kMailCoreCID, NS_MAILCORE_CID);
static NS_DEFINE_IID(kPrefsCoreCID, NS_PREFSCORE_CID);
static NS_DEFINE_IID(kRDFCoreCID, NS_RDFCORE_CID); static NS_DEFINE_IID(kRDFCoreCID, NS_RDFCORE_CID);
static NS_DEFINE_IID(kToolbarCoreCID, NS_TOOLBARCORE_CID); static NS_DEFINE_IID(kToolbarCoreCID, NS_TOOLBARCORE_CID);
static NS_DEFINE_IID(kBrowserAppCoreCID, NS_BROWSERAPPCORE_CID); static NS_DEFINE_IID(kBrowserAppCoreCID, NS_BROWSERAPPCORE_CID);
@ -66,6 +68,7 @@ nsAppCoresNameSet::InitializeClasses(nsIScriptContext* aScriptContext)
if (NS_OK != result) return result; if (NS_OK != result) return result;
result = NS_InitMailCoreClass(aScriptContext, nsnull); result = NS_InitMailCoreClass(aScriptContext, nsnull);
result = NS_InitPrefsCoreClass(aScriptContext, nsnull);
result = NS_InitToolbarCoreClass(aScriptContext, nsnull); result = NS_InitToolbarCoreClass(aScriptContext, nsnull);
result = NS_InitBrowserAppCoreClass(aScriptContext, nsnull); result = NS_InitBrowserAppCoreClass(aScriptContext, nsnull);
result = NS_InitEditorAppCoreClass(aScriptContext, nsnull); result = NS_InitEditorAppCoreClass(aScriptContext, nsnull);
@ -93,6 +96,12 @@ nsAppCoresNameSet::AddNameSet(nsIScriptContext* aScriptContext)
if (NS_OK != result) return result; if (NS_OK != result) return result;
result = manager->RegisterGlobalName("PrefsCore",
kPrefsCoreCID,
PR_TRUE);
if (NS_OK != result) return result;
result = manager->RegisterGlobalName("RDFCore", result = manager->RegisterGlobalName("RDFCore",
kRDFCoreCID, kRDFCoreCID,
PR_TRUE); PR_TRUE);