Added Mark Goddard from OMTP's changes to add "Refresh" to API and implementation.
Also added Refresh button to EmbeddedMozilla. git-svn-id: svn://10.0.0.236/trunk@45913 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1788,6 +1788,41 @@ Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellGetURL (
|
||||
return urlString;
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellGetURL()
|
||||
|
||||
// added my Mark Goddard OTMP 9/2/1999
|
||||
/*
|
||||
* Class: org_mozilla_webclient_BrowserControlMozillaShim
|
||||
* Method: nativeWebShellRefresh
|
||||
* Signature: (I)V
|
||||
*/
|
||||
JNIEXPORT jboolean JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellRefresh (
|
||||
JNIEnv * env,
|
||||
jobject obj,
|
||||
jint webShellPtr)
|
||||
{
|
||||
JNIEnv * pEnv = env;
|
||||
jobject jobj = obj;
|
||||
void * voidResult = nsnull;
|
||||
|
||||
WebShellInitContext* initContext = (WebShellInitContext *) webShellPtr;
|
||||
|
||||
if (initContext == nsnull) {
|
||||
::ThrowExceptionToJava(env, "Exception: null webShellPtr passed to raptorWebShellRefresh");
|
||||
return JNI_FALSE;
|
||||
}
|
||||
|
||||
if (initContext->initComplete) {
|
||||
wsRefreshEvent * actionEvent = new wsRefreshEvent(initContext->webShell);
|
||||
PLEvent * event = (PLEvent*) *actionEvent;
|
||||
|
||||
voidResult = ::PostSynchronousEvent(initContext, event);
|
||||
|
||||
return (NS_FAILED((nsresult) voidResult)) ? JNI_FALSE : JNI_TRUE;
|
||||
}
|
||||
|
||||
return JNI_FALSE;
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellBack()
|
||||
|
||||
|
||||
#ifdef XP_UNIX
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user