21259
PlugletManager.getValue removed git-svn-id: svn://10.0.0.236/trunk@55884 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
0c869fbdc6
commit
63871c1621
@ -22,15 +22,6 @@ package org.mozilla.pluglet.mozilla;
|
||||
import org.mozilla.pluglet.*;
|
||||
import java.net.URL;
|
||||
public interface PlugletManager {
|
||||
public static final int APPCONTEXT = 2;
|
||||
public static final int DISPLAY = 1;
|
||||
/**
|
||||
* Returns the value of a variable associated with the pluglet manager.
|
||||
*
|
||||
* @param variable the pluglet manager variable to get
|
||||
*/
|
||||
public String getValue(int variable);
|
||||
|
||||
/**
|
||||
* Causes the pluglets directory to be searched again for new pluglet
|
||||
* libraries.
|
||||
|
||||
@ -27,13 +27,6 @@ public class PlugletManagerImpl implements PlugletManager {
|
||||
peer = _peer;
|
||||
nativeInitialize();
|
||||
}
|
||||
/**
|
||||
* Returns the value of a variable associated with the pluglet manager.
|
||||
*
|
||||
* @param variable the pluglet manager variable to get
|
||||
*/
|
||||
public native String getValue(int variable);
|
||||
|
||||
/**
|
||||
* Causes the pluglets directory to be searched again for new pluglet
|
||||
* libraries.
|
||||
|
||||
@ -22,23 +22,6 @@
|
||||
#include "org_mozilla_pluglet_mozilla_PlugletManagerImpl.h"
|
||||
|
||||
static jfieldID peerFID = NULL;
|
||||
/*
|
||||
* Class: org_mozilla_pluglet_mozilla_PlugletManagerImpl
|
||||
* Method: getValue
|
||||
* Signature: (I)Ljava/lang/String;
|
||||
*/
|
||||
JNIEXPORT jstring JNICALL Java_org_mozilla_pluglet_mozilla_PlugletManagerImpl_getValue
|
||||
(JNIEnv *env, jobject jthis, jint param) {
|
||||
nsIPluginManager * manager = (nsIPluginManager*)env->GetLongField(jthis, peerFID);
|
||||
char *res = NULL;
|
||||
if (NS_FAILED(manager->GetValue((nsPluginManagerVariable)param,&res))
|
||||
|| !res) {
|
||||
return NULL;
|
||||
} else {
|
||||
return env->NewStringUTF(res);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_mozilla_pluglet_mozilla_PlugletManagerImpl
|
||||
* Method: reloadPluglets
|
||||
|
||||
@ -27,14 +27,6 @@
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
/*
|
||||
* Class: org_mozilla_pluglet_mozilla_PlugletManagerImpl
|
||||
* Method: getValue
|
||||
* Signature: (I)Ljava/lang/String;
|
||||
*/
|
||||
JNIEXPORT jstring JNICALL Java_org_mozilla_pluglet_mozilla_PlugletManagerImpl_getValue
|
||||
(JNIEnv *, jobject, jint);
|
||||
|
||||
/*
|
||||
* Class: org_mozilla_pluglet_mozilla_PlugletManagerImpl
|
||||
* Method: reloadPluglets
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user