зеркало из https://github.com/mozilla/pjs.git
and now it compiles on Unix. Whoo hoo!
This commit is contained in:
Родитель
b9ca7b2251
Коммит
b1878f29ea
|
@ -22,6 +22,12 @@ srcdir = @srcdir@
|
||||||
|
|
||||||
include $(DEPTH)/config/autoconf.mk
|
include $(DEPTH)/config/autoconf.mk
|
||||||
|
|
||||||
|
LIBRARY_NAME=messenger
|
||||||
|
|
||||||
|
CPPSRCS = \
|
||||||
|
nsJSMsgAppCore.cpp \
|
||||||
|
nsMsgAppCore.cpp \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
include $(topsrcdir)/config/config.mk
|
include $(topsrcdir)/config/config.mk
|
||||||
|
|
||||||
|
|
|
@ -133,7 +133,8 @@ ResolveMsgAppCore(JSContext *cx, JSObject *obj, jsval id)
|
||||||
return nsJSUtils::nsGenericResolve(cx, obj, id);
|
return nsJSUtils::nsGenericResolve(cx, obj, id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// this was in the old MailCore
|
||||||
|
#if 0
|
||||||
//
|
//
|
||||||
// Native method SendMail
|
// Native method SendMail
|
||||||
//
|
//
|
||||||
|
@ -252,7 +253,7 @@ MsgAppCoreSetWindow(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval
|
||||||
|
|
||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/***********************************************************************/
|
/***********************************************************************/
|
||||||
//
|
//
|
||||||
|
@ -286,9 +287,12 @@ static JSPropertySpec MsgAppCoreProperties[] =
|
||||||
//
|
//
|
||||||
static JSFunctionSpec MsgAppCoreMethods[] =
|
static JSFunctionSpec MsgAppCoreMethods[] =
|
||||||
{
|
{
|
||||||
|
// don't have old MailCore methods
|
||||||
|
#if 0
|
||||||
{"SendMail", MsgAppCoreSendMail, 3},
|
{"SendMail", MsgAppCoreSendMail, 3},
|
||||||
{"MailCompleteCallback", MsgAppCoreMailCompleteCallback, 1},
|
{"MailCompleteCallback", MsgAppCoreMailCompleteCallback, 1},
|
||||||
{"SetWindow", MsgAppCoreSetWindow, 1},
|
{"SetWindow", MsgAppCoreSetWindow, 1},
|
||||||
|
#endif
|
||||||
{0}
|
{0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -16,9 +16,18 @@
|
||||||
* Reserved.
|
* Reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static NS_DEFINE_IID(kIMsgAppCoreIID, NS_IMSGAPPCORE_IID);
|
#include "nsIDOMMsgAppCore.h"
|
||||||
|
#include "nsMsgAppCore.h"
|
||||||
|
#include "nsIScriptObjectOwner.h"
|
||||||
|
#include "nsIDOMBaseAppCore.h"
|
||||||
|
|
||||||
class nsMsgAppCore : public nsIMsgAppCore,
|
|
||||||
|
static NS_DEFINE_IID(kIMsgAppCoreIID, NS_IDOMMSGAPPCORE_IID);
|
||||||
|
static NS_DEFINE_IID(kIScriptObjectOwnerIID, NS_ISCRIPTOBJECTOWNER_IID);
|
||||||
|
static NS_DEFINE_IID(kIDOMBaseAppCoreIID, NS_IDOMBASEAPPCORE_IID);
|
||||||
|
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
|
||||||
|
|
||||||
|
class nsMsgAppCore : public nsIDOMMsgAppCore,
|
||||||
public nsIScriptObjectOwner
|
public nsIScriptObjectOwner
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
@ -20,11 +20,12 @@
|
||||||
#define __nsMsgAppCore_h
|
#define __nsMsgAppCore_h
|
||||||
|
|
||||||
#include "nsCom.h"
|
#include "nsCom.h"
|
||||||
|
#include "nsIDOMMsgAppCore.h"
|
||||||
|
|
||||||
NS_BEGIN_EXTERN_C
|
NS_BEGIN_EXTERN_C
|
||||||
|
|
||||||
nsresult
|
nsresult
|
||||||
NS_NewMsgAppCore(nsIMsgAppCore **);
|
NS_NewMsgAppCore(nsIDOMMsgAppCore **);
|
||||||
|
|
||||||
NS_END_EXTERN_C
|
NS_END_EXTERN_C
|
||||||
#endif
|
#endif
|
||||||
|
|
Загрузка…
Ссылка в новой задаче