Bug 398152 - Remove activex support for OJI, r=mfinkle

This commit is contained in:
benjamin@smedbergs.us 2007-10-27 00:35:39 -04:00
Родитель fbf7b5f850
Коммит 0a4915ceb4
1 изменённых файлов: 1 добавлений и 38 удалений

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

@ -22,25 +22,6 @@
//\\// GLOBAL DATA
NPNetscapeFuncs* g_pNavigatorFuncs = 0;
JRIGlobalRef Private_GetJavaClass(void);
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\.
////\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//.
// Private_GetJavaClass (global function)
//
// Given a Java class reference (thru NPP_GetJavaClass) inform JRT
// of this class existence
//
JRIGlobalRef
Private_GetJavaClass(void)
{
jref clazz = NPP_GetJavaClass();
if (clazz) {
JRIEnv* env = NPN_GetJavaEnv();
return JRI_NewGlobalRef(env, clazz);
}
return NULL;
}
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\.
////\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//.
@ -121,14 +102,6 @@ NP_Initialize(NPNetscapeFuncs* pFuncs)
g_pluginFuncs->urlnotify = NPP_URLNotify;
}
#ifdef WIN32 // An ugly hack, because Win16 lags behind in Java
if( navMinorVers >= NPVERS_HAS_LIVECONNECT ) {
#else
if( navMinorVers >= NPVERS_WIN16_HAS_LIVECONNECT )
#endif // WIN32
g_pluginFuncs->javaClass = Private_GetJavaClass();
}
// NPP_Initialize is a standard (cross-platform) initialize function.
return NPP_Initialize();
}
@ -313,17 +286,7 @@ void NPN_ReloadPlugins(NPBool reloadPages)
g_pNavigatorFuncs->reloadplugins(reloadPages);
}
JRIEnv* NPN_GetJavaEnv(void)
{
return g_pNavigatorFuncs->getJavaEnv();
}
jref NPN_GetJavaPeer(NPP instance)
{
return g_pNavigatorFuncs->getJavaPeer(instance);
}
NPError NPN_GetValue(NPP instance, NPNVariable variable, void *result)
{
return g_pNavigatorFuncs->getvalue(instance, variable, result);
}
}