Switch from nsIScriptErrorLogger approach - having the Console Service support multiple factory interfaces for different kinds of console methods - to having a separate script error class. Per discussion with jband.
Add a few #ifndef __nsidefineforthisfile__ guards to .h files. git-svn-id: svn://10.0.0.236/trunk@64592 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -23,8 +23,10 @@
|
||||
#include "nsIGenericFactory.h"
|
||||
|
||||
#include "nsConsoleService.h"
|
||||
#include "nsScriptError.h"
|
||||
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsConsoleService)
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsScriptError)
|
||||
|
||||
static nsModuleComponentInfo components[] =
|
||||
{
|
||||
@@ -32,6 +34,11 @@ static nsModuleComponentInfo components[] =
|
||||
nsConsoleServiceConstructor,
|
||||
nsnull, // RegisterConsoleService
|
||||
nsnull, // UnregisterConsoleService
|
||||
},
|
||||
{ "Script Error", NS_SCRIPTERROR_CID, NS_SCRIPTERROR_PROGID,
|
||||
nsScriptErrorConstructor,
|
||||
nsnull,
|
||||
nsnull,
|
||||
}
|
||||
};
|
||||
|
||||
@@ -51,3 +58,6 @@ static nsModuleComponentInfo components[] =
|
||||
NS_IMPL_NSGETMODULE("nsConsoleServiceModule", components)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user