зеркало из https://github.com/mozilla/gecko-dev.git
Added JVM_SpendTime.
This commit is contained in:
Родитель
8d597d5371
Коммит
3d96f6a571
|
@ -1387,6 +1387,20 @@ JVM_ReleaseJNIEnv(JNIEnv* env)
|
|||
}
|
||||
}
|
||||
|
||||
PR_IMPLEMENT(nsresult)
|
||||
JVM_SpendTime(PRUint32 timeMillis)
|
||||
{
|
||||
#ifdef XP_MAC
|
||||
nsresult result = NS_ERROR_NOT_INITIALIZED;
|
||||
nsIJVMPlugin* jvm = GetRunningJVM();
|
||||
if (jvm != NULL)
|
||||
result = jvm->SpendTime(timeMillis);
|
||||
return result;
|
||||
#else
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
#endif
|
||||
}
|
||||
|
||||
PR_IMPLEMENT(PRBool)
|
||||
JVM_MaybeStartupLiveConnect()
|
||||
{
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include "xp_core.h" /* include first because of Bool problem */
|
||||
#include "prtypes.h"
|
||||
#include "nsCom.h"
|
||||
#include "nsError.h" /* for nsresult */
|
||||
#include "jni.h"
|
||||
|
||||
struct nsJVMMgr;
|
||||
|
@ -217,6 +218,9 @@ JVM_GetJNIEnv(void);
|
|||
PR_IMPLEMENT(void)
|
||||
JVM_ReleaseJNIEnv(JNIEnv *pJNIEnv);
|
||||
|
||||
PR_EXTERN(nsresult)
|
||||
JVM_SpendTime(PRUint32 timeMillis);
|
||||
|
||||
PR_EXTERN(PRBool)
|
||||
JVM_MaybeStartupLiveConnect(void);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче