зеркало из https://github.com/mozilla/gecko-dev.git
bsmedberg missed a file when relanding bug 216382 - put the spellcheck dictionaries in appdir/dictionaries and extensiondir/dictionaries, r=enndeakin
This commit is contained in:
Родитель
1beba92cde
Коммит
116fd8ccac
|
@ -39,13 +39,21 @@
|
|||
|
||||
#include "mozMySpell.h"
|
||||
|
||||
#ifdef MOZ_XUL_APP
|
||||
#include "mozMySpellDirProvider.h"
|
||||
#endif
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
// Define the contructor function for the objects
|
||||
//
|
||||
// NOTE: This creates an instance of objects by using the default constructor
|
||||
//
|
||||
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(mozMySpell)
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(mozMySpell, Init)
|
||||
|
||||
#ifdef MOZ_XUL_APP
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(mozMySpellDirProvider)
|
||||
#endif
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
// Define a table of CIDs implemented by this module along with other
|
||||
|
@ -53,7 +61,22 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(mozMySpell)
|
|||
// class name.
|
||||
//
|
||||
static nsModuleComponentInfo components[] = {
|
||||
{ NULL, MOZ_MYSPELL_CID, MOZ_MYSPELL_CONTRACTID, mozMySpellConstructor }
|
||||
{
|
||||
"mozMySpell",
|
||||
MOZ_MYSPELL_CID,
|
||||
MOZ_MYSPELL_CONTRACTID,
|
||||
mozMySpellConstructor
|
||||
}
|
||||
#ifdef MOZ_XUL_APP
|
||||
, {
|
||||
"mozMySpellDirProvider",
|
||||
MYSPELLDIRPROVIDER_CID,
|
||||
mozMySpellDirProvider::kContractID,
|
||||
mozMySpellDirProviderConstructor,
|
||||
mozMySpellDirProvider::Register,
|
||||
mozMySpellDirProvider::Unregister
|
||||
}
|
||||
#endif
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
|
Загрузка…
Ссылка в новой задаче