This enables "refresh". Next step will be to enable history next and
back. M classes_spec/org/mozilla/webclient/impl/wrapper_native/NavigationImpl.java M src_moz/NavigationImpl.cpp - push thru "refresh" behavior. M test/automated/src/classes/org/mozilla/webclient/NavigationTest.java - move test HTTPD server out so it can be used by all tests in suite. M test/automated/src/classes/org/mozilla/webclient/WebclientTestCase.java - make getBrowserBinDir() static. git-svn-id: svn://10.0.0.236/trunk@158366 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -271,6 +271,7 @@ JNIEXPORT void JNICALL Java_org_mozilla_webclient_impl_wrapper_1native_Navigatio
|
||||
delete [] headersAndData;
|
||||
return;
|
||||
}
|
||||
*********************/
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_mozilla_webclient_impl_wrapper_1native_NavigationImpl_nativeRefresh
|
||||
(JNIEnv *env, jobject obj, jint nativeBCPtr, jlong loadFlags)
|
||||
@@ -285,19 +286,15 @@ JNIEXPORT void JNICALL Java_org_mozilla_webclient_impl_wrapper_1native_Navigatio
|
||||
return;
|
||||
}
|
||||
|
||||
if (nativeBrowserControl->initComplete) {
|
||||
wsRefreshEvent * actionEvent = new wsRefreshEvent(nativeBrowserControl->webNavigation, (PRInt32) loadFlags);
|
||||
PLEvent * event = (PLEvent*) *actionEvent;
|
||||
|
||||
::util_PostEvent(nativeBrowserControl, event);
|
||||
|
||||
return;
|
||||
}
|
||||
nsresult rv =
|
||||
nativeBrowserControl->mNavigation->Reload(loadFlags);
|
||||
if (NS_FAILED(rv)) {
|
||||
::util_ThrowExceptionToJava(env, "Exception: Can't refresh");
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
*********************/
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_mozilla_webclient_impl_wrapper_1native_NavigationImpl_nativeStop
|
||||
(JNIEnv *env, jobject obj, jint nativeBCPtr)
|
||||
|
||||
Reference in New Issue
Block a user