Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsILiveconnect Class Reference

#include <nsILiveconnect.h>

Inheritance diagram for nsILiveconnect:
Inheritance graph
[legend]
Collaboration diagram for nsILiveconnect:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_IMETHOD GetMember (JNIEnv *jEnv, lcjsobject jsobj, const jchar *name, jsize length, void *principalsArray[], int numPrincipals, nsISupports *securitySupports, jobject *pjobj)=0
 get member of a Native JSObject for a given name.
NS_IMETHOD GetSlot (JNIEnv *jEnv, lcjsobject jsobj, jint slot, void *principalsArray[], int numPrincipals, nsISupports *securitySupports, jobject *pjobj)=0
 get member of a Native JSObject for a given index.
NS_IMETHOD SetMember (JNIEnv *jEnv, lcjsobject jsobj, const jchar *name, jsize length, jobject jobj, void *principalsArray[], int numPrincipals, nsISupports *securitySupports)=0
 set member of a Native JSObject for a given name.
NS_IMETHOD SetSlot (JNIEnv *jEnv, lcjsobject jsobj, jint slot, jobject jobj, void *principalsArray[], int numPrincipals, nsISupports *securitySupports)=0
 set member of a Native JSObject for a given index.
NS_IMETHOD RemoveMember (JNIEnv *jEnv, lcjsobject jsobj, const jchar *name, jsize length, void *principalsArray[], int numPrincipals, nsISupports *securitySupports)=0
 remove member of a Native JSObject for a given name.
NS_IMETHOD Call (JNIEnv *jEnv, lcjsobject jsobj, const jchar *name, jsize length, jobjectArray jobjArr, void *principalsArray[], int numPrincipals, nsISupports *securitySupports, jobject *pjobj)=0
 call a method of Native JSObject.
NS_IMETHOD Eval (JNIEnv *jEnv, lcjsobject obj, const jchar *script, jsize length, void *principalsArray[], int numPrincipals, nsISupports *securitySupports, jobject *pjobj)=0
 Evaluate a script with a Native JS Object representing scope.
NS_IMETHOD GetWindow (JNIEnv *jEnv, void *pJavaObject, void *principalsArray[], int numPrincipals, nsISupports *securitySupports, lcjsobject *pobj)=0
 Get the window object for a plugin instance.
NS_IMETHOD FinalizeJSObject (JNIEnv *jEnv, lcjsobject jsobj)=0
 Get the window object for a plugin instance.
NS_IMETHOD ToString (JNIEnv *jEnv, lcjsobject obj, jstring *pjstring)=0
 Get the window object for a plugin instance.

Detailed Description

Definition at line 70 of file nsILiveconnect.h.


Member Function Documentation

NS_IMETHOD nsILiveconnect::Call ( JNIEnv jEnv,
lcjsobject  jsobj,
const jchar name,
jsize  length,
jobjectArray  jobjArr,
void principalsArray[],
int  numPrincipals,
nsISupports *  securitySupports,
jobject pjobj 
) [pure virtual]

call a method of Native JSObject.

Parameters:
obj- A Native JS Object.
name- Name of a method.
jobjArr- Array of jobjects representing parameters of method being caled.
pjobj- return value.

Implemented in nsCLiveconnect.

Here is the caller graph for this function:

NS_IMETHOD nsILiveconnect::Eval ( JNIEnv jEnv,
lcjsobject  obj,
const jchar script,
jsize  length,
void principalsArray[],
int  numPrincipals,
nsISupports *  securitySupports,
jobject pjobj 
) [pure virtual]

Evaluate a script with a Native JS Object representing scope.

Parameters:
obj- A Native JS Object.
principalsArray- Array of principals to be used to compare privileges.
numPrincipals- Number of principals being passed.
script- Script to be executed.
pjobj- return value.

Implemented in nsCLiveconnect.

Here is the caller graph for this function:

NS_IMETHOD nsILiveconnect::FinalizeJSObject ( JNIEnv jEnv,
lcjsobject  jsobj 
) [pure virtual]

Get the window object for a plugin instance.

Parameters:
jEnv- JNIEnv on which the call is being made.
obj- A Native JS Object.

Implemented in nsCLiveconnect.

Here is the caller graph for this function:

NS_IMETHOD nsILiveconnect::GetMember ( JNIEnv jEnv,
lcjsobject  jsobj,
const jchar name,
jsize  length,
void principalsArray[],
int  numPrincipals,
nsISupports *  securitySupports,
jobject pjobj 
) [pure virtual]

get member of a Native JSObject for a given name.

Parameters:
obj- A Native JS Object.
name- Name of a member.
pjobj- return parameter as a java object representing the member. If it is a basic data type it is converted to a corresponding java type. If it is a NJSObject, then it is wrapped up as java wrapper netscape.javascript.JSObject.

Implemented in nsCLiveconnect.

Here is the caller graph for this function:

NS_IMETHOD nsILiveconnect::GetSlot ( JNIEnv jEnv,
lcjsobject  jsobj,
jint  slot,
void principalsArray[],
int  numPrincipals,
nsISupports *  securitySupports,
jobject pjobj 
) [pure virtual]

get member of a Native JSObject for a given index.

Parameters:
obj- A Native JS Object.
slot- Index of a member.
pjobj- return parameter as a java object representing the member.

Implemented in nsCLiveconnect.

Here is the caller graph for this function:

NS_IMETHOD nsILiveconnect::GetWindow ( JNIEnv jEnv,
void pJavaObject,
void principalsArray[],
int  numPrincipals,
nsISupports *  securitySupports,
lcjsobject pobj 
) [pure virtual]

Get the window object for a plugin instance.

Parameters:
pJavaObject- Either a jobject or a pointer to a plugin instance representing the java object.
pjobj- return value. This is a native js object representing the window object of a frame in which a applet/bean resides.

Implemented in nsCLiveconnect.

Here is the caller graph for this function:

NS_IMETHOD nsILiveconnect::RemoveMember ( JNIEnv jEnv,
lcjsobject  jsobj,
const jchar name,
jsize  length,
void principalsArray[],
int  numPrincipals,
nsISupports *  securitySupports 
) [pure virtual]

remove member of a Native JSObject for a given name.

Parameters:
obj- A Native JS Object.
name- Name of a member.

Implemented in nsCLiveconnect.

Here is the caller graph for this function:

NS_IMETHOD nsILiveconnect::SetMember ( JNIEnv jEnv,
lcjsobject  jsobj,
const jchar name,
jsize  length,
jobject  jobj,
void principalsArray[],
int  numPrincipals,
nsISupports *  securitySupports 
) [pure virtual]

set member of a Native JSObject for a given name.

Parameters:
obj- A Native JS Object.
name- Name of a member.
jobj- Value to set. If this is a basic data type, it is converted using standard JNI calls but if it is a wrapper to a JSObject then a internal mapping is consulted to convert to a NJSObject.

Implemented in nsCLiveconnect.

Here is the caller graph for this function:

NS_IMETHOD nsILiveconnect::SetSlot ( JNIEnv jEnv,
lcjsobject  jsobj,
jint  slot,
jobject  jobj,
void principalsArray[],
int  numPrincipals,
nsISupports *  securitySupports 
) [pure virtual]

set member of a Native JSObject for a given index.

Parameters:
obj- A Native JS Object.
index- Index of a member.
jobj- Value to set. If this is a basic data type, it is converted using standard JNI calls but if it is a wrapper to a JSObject then a internal mapping is consulted to convert to a NJSObject.

Implemented in nsCLiveconnect.

Here is the caller graph for this function:

NS_IMETHOD nsILiveconnect::ToString ( JNIEnv jEnv,
lcjsobject  obj,
jstring pjstring 
) [pure virtual]

Get the window object for a plugin instance.

Parameters:
jEnv- JNIEnv on which the call is being made.
obj- A Native JS Object.
jstring- Return value as a jstring representing a JS object.

Implemented in nsCLiveconnect.

Here is the caller graph for this function:


The documentation for this class was generated from the following file: