doesn't run, but several unit tests for webclient do.
I'll be proceeding through the rest of the webclient interfaces,
building junit tests as I go, in the coming months. I hope to flesh out
the basic framework, then publish build instructions, and hopefully I
can get some contributions from the community.
M util/classes/org/mozilla/util/Utilities.java
new method: getImplFromServices:
+ *
+ * <p>This method tries to load the resource
+ * <code>META-INF/services/>interfaceClassName></code>, where
+ * <code>>interfaceClassName<</code> is the argument to this
+ * method. If the resource is found, interpret it as a
+ * <code>Properties</code> file and read out its first line.
+ * Interpret the first line as the fully qualified class name of a
+ * class that implements <code></code>. The named class must have a
+ * public no-arg constructor.</p>
M webclient/build-tests.xml
- junit testcases for Webclient APIs, developed using test-first.
M webclient/build.xml
- changes for new package name structure:
packages org.mozilla.webclient.{wrapper_native, wrapper_non_native} have gone away. Replaced with org.mozilla.webclient.impl.{wrapper_native, wrapper_non_native}
- changes to accomodate "Services" based approach for pluggable
webclient implementation.
- don't bother re-naming the javah generated files, just let javah pick
the names.
- pass debugging args from build.properties
- changed name of junit test target to "test".
M webclient/classes_spec/org/mozilla/webclient/BrowserControl.java
- got rid of BROWSER_TYPE. No longer necessary due to the new
pluggability mechanism.
M webclient/classes_spec/org/mozilla/webclient/BrowserControlFactory.java
- Leverage the org.mozilla.util.Utilities.getImplFromServices()
mechanism to allow a vendor-pluggable webclient implementation of the
new "WebclientFactory" interface, which is method for method
compatible with BrowserControlFactory. Make all BrowserControlFactory
methods call through to methods on the vendor provided
WebclientFactory implementation.
R webclient/classes_spec/org/mozilla/webclient/BrowserControlFactoryInterface.java
A webclient/classes_spec/org/mozilla/webclient/BrowserControlICE.java
R webclient/classes_spec/org/mozilla/webclient/BrowserControlImpl.java
R webclient/classes_spec/org/mozilla/webclient/BrowserType.java
- move all implementation specific classe to the impl package.
M webclient/classes_spec/org/mozilla/webclient/ImplObject.java
- ImplObject shouldn't depend on vendor private classes.
M webclient/classes_spec/org/mozilla/webclient/Preferences.java
- new method
+ public void unregisterPrefChangedCallback(PrefChangedCallback cb,
+ String prefName, Object closure);
M webclient/classes_spec/org/mozilla/webclient/ProfileManager.java
- properly specify this interface.
A webclient/classes_spec/org/mozilla/webclient/WebclientFactory.java
* <p>This interface allows a pluggable webclient API implementation.
* The static methods in {@link BrowserControlFactory} call through to
* methods on this interface. Please see {@link BrowserControlFactory}
* for information on how to hook up your <code>WebclientFactory</code>
* implementation to the <code>BrowserControlFactory</code></p>
R webclient/classes_spec/org/mozilla/webclient/WrapperFactory.java
R webclient/classes_spec/org/mozilla/webclient/impl/BrowserControlFactoryImpl.java
- moved these to the impl class
A webclient/classes_spec/org/mozilla/webclient/impl/BrowserControlImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/Service.java
A webclient/classes_spec/org/mozilla/webclient/impl/WebclientFactoryImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/WrapperFactory.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/BookmarkEntryImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/BookmarksImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/CurrentPageImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/EventRegistrationImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/HistoryImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/ISupportsPeer.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/ImplObjectNative.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/NativeEventThread.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/NavigationImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/PreferencesImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/ProfileManagerImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/RDFEnumeration.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/RDFTreeNode.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/SelectionImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/WCEventListenerWrapper.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/WCMouseListenerImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/WindowControlImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/WrapperFactoryImpl.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/gtk/GtkBrowserControlCanvas.java
A webclient/classes_spec/org/mozilla/webclient/impl/wrapper_native/win32/Win32BrowserControlCanvas.java
- copied from old package naming scheme.
- lots and lots of cleanup.
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/BookmarkEntryImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/BookmarksImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/CurrentPageImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/EventRegistrationImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/HistoryImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/ISupportsPeer.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/ImplObjectNative.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/NativeEventThread.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/NavigationImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/PreferencesImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/ProfileManagerImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/RDFEnumeration.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/RDFTreeNode.java
A webclient/classes_spec/org/mozilla/webclient/wrapper_native/README
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/SelectionImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/WCEventListenerWrapper.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/WCMouseListenerImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/WindowControlImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/WrapperFactoryImpl.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/gtk/GtkBrowserControlCanvas.java
R webclient/classes_spec/org/mozilla/webclient/wrapper_native/win32/Win32BrowserControlCanvas.java
- removed from old package naming scheme
M webclient/src_moz/BookmarksImpl.cpp
- remove dependency on RDFActionEvents by inlining all the code that
formerly was in the events.
- package name change
- JNI include file name change
M webclient/src_moz/CurrentPageImpl.cpp
M webclient/src_moz/HistoryImpl.cpp
M webclient/src_moz/ISupportsPeer.cpp
- package name change
- JNI include file name change
M webclient/src_moz/Makefile.in
- get rid of PreferencesActionEvents.cpp and RDFActionEvents.cpp
- add ProfileManagerImpl.cpp
M webclient/src_moz/NativeEventThread.cpp
- this file is not done yet. I've been pulling misplaced initialization
stuff out of here and putting it into WrapperFactoryImpl.cpp.
- got rid of gComponentManager, since we can use do_CreateInstance
instead.
- package name change
- JNI include file name change
M webclient/src_moz/NativeEventThreadActionEvents.h
- JNI include file name change
M webclient/src_moz/NavigationImpl.cpp
- package name change
- JNI include file name change
R webclient/src_moz/PreferencesActionEvents.cpp
R webclient/src_moz/PreferencesActionEvents.h
- don't need these anymore! woohoo!
M webclient/src_moz/PreferencesImpl.cpp
- remove dependency on PreferencesActionEvents by inlining code into the
methods that used to use the events.
A webclient/src_moz/ProfileManagerImpl.cpp
- new class, implementation of the ProfileManager interface.
M webclient/src_moz/PromptActionEvents.cpp
- change erroneous comment so my grep performed correctly.
R webclient/src_moz/RDFActionEvents.cpp
R webclient/src_moz/RDFActionEvents.h
- don't need these anymore! woohoo!
M webclient/src_moz/RDFEnumeration.cpp
M webclient/src_moz/RDFTreeNode.cpp
- remove dependency on RDFActionEvents by inlining code into the
methods that used to use the events.
M webclient/src_moz/WindowControlActionEvents.cpp
- deallocate shareInitiContext.
M webclient/src_moz/WindowControlImpl.cpp
- package name change
- JNI include file name change
- remove the "sleep so I can attach gdb" code. Moved to
WrapperFactoryImpl.cpp.
M webclient/src_moz/WrapperFactoryImpl.cpp
- lots of changes. This is now where the app initialization and
shutdown happens,
M webclient/src_moz/dom_util.cpp
- comment change
M webclient/src_moz/ns_globals.h
- get rid of inappropriate global usage.
M webclient/src_moz/ns_util.h
- new struct WebclientContext for singletons.
M webclient/src_moz/rdf_util.cpp
- new methods, rdf_startup and rdf_shutdown.
- replace calls to nsComponentManager::CreateInstance() with
do_CreateInstance().
M webclient/src_moz/rdf_util.h
- new methods, rdf_startup and rdf_shutdown.
M webclient/src_moz/gtk/GtkBrowserControlCanvas.cpp
- package name change
- JNI include file name change
M webclient/src_moz/gtk/GtkBrowserControlCanvasStub.cpp
- package name change
- JNI include file name change
- this file isn't needed anymore, thankfully! I'll remove it soon.
M webclient/src_moz/gtk/StubFunctions.h
- package name change
- JNI include file name change
- this file isn't needed anymore, thankfully! I'll remove it soon.
M webclient/src_moz/motif/BrowserControlNativeShimStub.cpp
M webclient/src_moz/motif/MotifBrowserControlCanvas.cpp
M webclient/src_moz/motif/MotifBrowserControlCanvasStub.cpp
M webclient/src_moz/motif/NativeLoaderStub.cpp
M webclient/src_moz/win32/Win32BrowserControlCanvas.cpp
- package name change
- JNI include file name change
M webclient/src_share/jni_util.cpp
M webclient/src_share/jni_util.h
- util_InitializeShareInitContext() takes a JNIEnv *.
- new methods
+void util_DeleteGlobalRef(JNIEnv *env, jobject toDeleteRef);
+void util_DeleteLocalRef(JNIEnv *env, jobject toDeleteRef);
+void util_getSystemProperty(JNIEnv *env,
+ const char *propName,
+ char *propValue,
+ jint propValueLen);
M webclient/src_share/jni_util_export.cpp
M webclient/src_share/jni_util_export.h
+JNIEXPORT jobjectArray util_GetJstringArrayFromJcharArray(JNIEnv *env,
+ jint len,
+ jchar **strings,
+ jint *stringLengths)
A webclient/test/automated/src/classes/org/mozilla/webclient/BookmarksTest.java
R webclient/test/automated/src/classes/org/mozilla/webclient/BrowserControlFactoryTest.java
A webclient/test/automated/src/classes/org/mozilla/webclient/PreferencesTest.java
A webclient/test/automated/src/classes/org/mozilla/webclient/ProfileManagerTest.java
A webclient/test/automated/src/classes/org/mozilla/webclient/impl/WebclientFactoryImplTest.java
A webclient/test/automated/src/classes/org/mozilla/webclient/impl/wrapper_native/WrapperFactoryImplTest.java
A webclient/test/automated/src/classes/org/mozilla/webclient/impl/wrapper_native/gtk/TestGtkBrowserControlCanvas.java
R webclient/test/automated/src/classes/org/mozilla/webclient/wrapper_native/gtk/TestGtkBrowserControlCanvas.java
A webclient/test/automated/src/test/BrowserControlFactoryTest_correct
- junit tests! TEST FIRST!
git-svn-id: svn://10.0.0.236/trunk@147393 18797224-902f-48f8-a5cc-f745e15eee43
855 lines
28 KiB
C++
855 lines
28 KiB
C++
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
*
|
|
* The contents of this file are subject to the Netscape Public
|
|
* License Version 1.1 (the "License"); you may not use this file
|
|
* except in compliance with the License. You may obtain a copy of
|
|
* the License at http://www.mozilla.org/NPL/
|
|
*
|
|
* Software distributed under the License is distributed on an "AS
|
|
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
* implied. See the License for the specific language governing
|
|
* rights and limitations under the License.
|
|
*
|
|
* The Original Code is mozilla.org code.
|
|
*
|
|
* The Initial Developer of the Original Code is Netscape
|
|
* Communications Corporation. Portions created by Netscape are
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All
|
|
* Rights Reserved.
|
|
*
|
|
* Contributor(s):
|
|
*/
|
|
|
|
/*
|
|
* BrowserControlNativeShimStub.cpp
|
|
*/
|
|
|
|
// PENDING(mark): I suppose this is where I need to go into my explaination of why
|
|
// this file is needed...
|
|
|
|
// For loading DLL
|
|
#include <dlfcn.h>
|
|
// JNI...yada, yada, yada
|
|
#include <jni.h>
|
|
// JNI Header
|
|
#include "../.h"
|
|
// JNI Header
|
|
#include "../org_mozilla_webclient_impl_wrapper_0005fnative_NativeEventThread.h"
|
|
|
|
// allow code in webclientstub.so to load us
|
|
#include "BrowserControlNativeShimStub.h"
|
|
|
|
// Global reference to webclient dll
|
|
void * webClientDll;
|
|
|
|
extern void locateMotifBrowserControlStubFunctions(void *);
|
|
|
|
void (* nativeInitialize) (JNIEnv *, jobject, jstring);
|
|
void (* nativeTerminate) (JNIEnv *, jobject);
|
|
void (* nativeSendKeyDownEvent) (JNIEnv *, jobject, jint, jchar, jint, jint, jint);
|
|
void (* nativeSendKeyUpEvent) (JNIEnv *, jobject, jint, jchar, jint, jint, jint);
|
|
void (* nativeSendMouseEvent) (JNIEnv *, jobject, jint, jint, jint, jint, jint, jint, jint, jint, jint, jint);
|
|
void (* nativeIdleEvent) (JNIEnv *, jobject, jint, jint);
|
|
void (* nativeUpdateEvent) (JNIEnv *, jobject, jint, jint);
|
|
jint (* nativeWidgetCreate) (JNIEnv *, jobject, jint, jint, jint, jint, jint);
|
|
void (* nativeWidgetDelete) (JNIEnv *, jobject, jint);
|
|
void (* nativeWidgetResize) (JNIEnv *, jobject, jint, jint, jint, jint, jint, jboolean);
|
|
void (* nativeWidgetEnable) (JNIEnv *, jobject, jint, jboolean);
|
|
void (* nativeWidgetShow) (JNIEnv *, jobject, jint, jboolean);
|
|
void (* nativeWidgetInvalidate) (JNIEnv *, jobject, jint, jboolean);
|
|
void (* nativeWidgetUpdate) (JNIEnv *, jobject, jint);
|
|
void (* nativeProcessEvents) (JNIEnv *, jobject, jint);
|
|
jint (* nativeWebShellCreate) (JNIEnv *, jobject, jint, jint, jint, jint, jint);
|
|
void (* nativeWebShellDelete) (JNIEnv *, jobject, jint);
|
|
void (* nativeWebShellLoadURL) (JNIEnv *, jobject, jint, jstring);
|
|
void (* nativeWebShellStop) (JNIEnv *, jobject, jint);
|
|
void (* nativeWebShellShow) (JNIEnv *, jobject, jint);
|
|
void (* nativeWebShellHide) (JNIEnv *, jobject, jint);
|
|
void (* nativeWebShellSetBounds) (JNIEnv *, jobject, jint, jint, jint, jint, jint);
|
|
void (* nativeWebShellMoveTo) (JNIEnv *, jobject, jint, jint, jint);
|
|
void (* nativeWebShellSetFocus) (JNIEnv *, jobject, jint);
|
|
void (* nativeWebShellRemoveFocus) (JNIEnv *, jobject, jint);
|
|
void (* nativeWebShellRepaint) (JNIEnv *, jobject, jint, jboolean);
|
|
jboolean (* nativeWebShellCanBack) (JNIEnv *, jobject, jint);
|
|
jboolean (* nativeWebShellCanForward) (JNIEnv *, jobject, jint);
|
|
jboolean (* nativeWebShellBack) (JNIEnv *, jobject, jint);
|
|
jboolean (* nativeWebShellForward) (JNIEnv *, jobject, jint);
|
|
jboolean (* nativeWebShellGoTo) (JNIEnv *, jobject, jint, jint);
|
|
jint (* nativeWebShellGetHistoryLength) (JNIEnv *, jobject, jint);
|
|
jint (* nativeWebShellGetHistoryIndex) (JNIEnv *, jobject, jint);
|
|
jstring (* nativeWebShellGetURL) (JNIEnv *, jobject, jint, jint);
|
|
// added by Mark Goddard OTMP 9/2/1999
|
|
jboolean (* nativeWebShellRefresh)(JNIEnv *, jobject, jint);
|
|
jboolean (* nativeWebShellAddDocListener) (JNIEnv *, jobject, jint, jobject);
|
|
void (* processNativeEventQueue) (JNIEnv *, jobject, jint);
|
|
|
|
|
|
void locateBrowserControlStubFunctions(void * dll) {
|
|
nativeInitialize = (void (*) (JNIEnv *, jobject, jstring)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeInitialize");
|
|
if (!nativeInitialize) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
nativeTerminate = (void (*) (JNIEnv *, jobject)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeTerminate");
|
|
if (!nativeTerminate) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
nativeSendKeyDownEvent = (void (*) (JNIEnv *, jobject, jint, jchar, jint, jint, jint)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeSendKeyDownEvent");
|
|
if (!nativeSendKeyDownEvent) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
nativeSendKeyUpEvent = (void (*) (JNIEnv *, jobject, jint, jchar, jint, jint, jint)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeSendKeyUpEvent");
|
|
if (!nativeSendKeyUpEvent) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
nativeSendMouseEvent = (void (*) (JNIEnv *, jobject, jint, jint, jint, jint, jint, jint, jint, jint,jint, jint)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeSendMouseEvent");
|
|
if (!nativeSendMouseEvent) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
nativeIdleEvent = (void (*) (JNIEnv *, jobject, jint, jint)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeIdleEvent");
|
|
if (!nativeIdleEvent) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
nativeUpdateEvent = (void (*) (JNIEnv *, jobject, jint, jint)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeUpdateEvent");
|
|
if (!nativeUpdateEvent) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
nativeWidgetCreate = (jint (*) (JNIEnv *, jobject, jint, jint, jint, jint, jint)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetCreate");
|
|
if (!nativeWidgetCreate) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
nativeWidgetDelete = (void (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetDelete");
|
|
if (!nativeWidgetDelete) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
nativeWidgetResize = (void (*) (JNIEnv *, jobject, jint, jint, jint, jint, jint, jboolean)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetResize");
|
|
if (!nativeWidgetResize) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
nativeWidgetEnable = (void (*) (JNIEnv *, jobject, jint, jboolean)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetEnable");
|
|
if (!nativeWidgetEnable) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
nativeWidgetShow = (void (*) (JNIEnv *, jobject, jint, jboolean)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetShow");
|
|
if (!nativeWidgetShow) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
nativeWidgetInvalidate = (void (*) (JNIEnv *, jobject, jint, jboolean)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetInvalidate");
|
|
if (!nativeWidgetInvalidate) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
nativeWidgetUpdate = (void (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetUpdate");
|
|
if (!nativeWidgetUpdate) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
nativeProcessEvents = (void (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeProcessEvents");
|
|
if (!nativeProcessEvents) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
nativeWebShellCreate = (jint (*) (JNIEnv *, jobject, jint, jint, jint, jint, jint)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellCreate");
|
|
if (!nativeWebShellCreate) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
nativeWebShellDelete = (void (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellDelete");
|
|
if (!nativeWebShellDelete) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
nativeWebShellLoadURL = (void (*) (JNIEnv *, jobject, jint, jstring)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellLoadURL");
|
|
if (!nativeWebShellLoadURL) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
nativeWebShellStop = (void (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellStop");
|
|
if (!nativeWebShellStop) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
nativeWebShellShow = (void (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellShow");
|
|
if (!nativeWebShellShow) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
nativeWebShellHide = (void (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellHide");
|
|
if (!nativeWebShellHide) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
nativeWebShellSetBounds = (void (*) (JNIEnv *, jobject, jint, jint, jint, jint, jint)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellSetBounds");
|
|
if (!nativeWebShellSetBounds) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
nativeWebShellMoveTo = (void (*) (JNIEnv *, jobject, jint, jint, jint)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellMoveTo");
|
|
if (!nativeWebShellMoveTo) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
nativeWebShellSetFocus = (void (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellSetFocus");
|
|
if (!nativeWebShellSetFocus) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
nativeWebShellRemoveFocus = (void (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellRemoveFocus");
|
|
if (!nativeWebShellRemoveFocus) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
nativeWebShellRepaint = (void (*) (JNIEnv *, jobject, jint, jboolean)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellRepaint");
|
|
if (!nativeWebShellRepaint) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
nativeWebShellCanBack = (jboolean (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellCanBack");
|
|
if (!nativeWebShellCanBack) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
nativeWebShellCanForward = (jboolean (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellCanForward");
|
|
if (!nativeWebShellCanForward) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
nativeWebShellBack = (jboolean (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellBack");
|
|
if (!nativeWebShellBack) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
nativeWebShellForward = (jboolean (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellForward");
|
|
if (!nativeWebShellForward) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
nativeWebShellGoTo = (jboolean (*) (JNIEnv *, jobject, jint, jint)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellGoTo");
|
|
if (!nativeWebShellGoTo) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
nativeWebShellGetHistoryLength = (jint (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellGetHistoryLength");
|
|
if (!nativeWebShellGetHistoryLength) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
nativeWebShellGetHistoryIndex = (jint (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellGetHistoryIndex");
|
|
if (!nativeWebShellGetHistoryIndex) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
nativeWebShellGetURL = (jstring (*) (JNIEnv *, jobject, jint, jint)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellGetURL");
|
|
if (!nativeWebShellGetURL) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
|
|
// added by Mark Goddard OTMP 9/2/1999
|
|
nativeWebShellRefresh = (jboolean (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellRefresh");
|
|
if (!nativeWebShellRefresh) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
|
|
nativeWebShellAddDocListener = (jboolean (*) (JNIEnv *, jobject, jint, jobject)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellAddDocListener");
|
|
if (!nativeWebShellAddDocListener) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
|
|
|
|
processNativeEventQueue = (void (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_impl_wrapper_1native_motif_NativeEventThread_processNativeEventQueue");
|
|
if (!processNativeEventQueue) {
|
|
printf("got dlsym error %s\n", dlerror());
|
|
}
|
|
}
|
|
|
|
/*
|
|
* Class: org_mozilla_webclient_motif_MotifNativeEventQueue
|
|
* Method: processNativeEventQueue
|
|
* Signature: ()V
|
|
*/
|
|
JNIEXPORT void JNICALL Java_org_mozilla_webclient_motif_NativeEventThread_processNativeEventQueue
|
|
(JNIEnv * env, jobject obj, jint gtkWinPtr) {
|
|
(* processNativeEventQueue) (env, obj, gtkWinPtr);
|
|
}
|
|
|
|
void loadMainDll(void)
|
|
{
|
|
webClientDll = dlopen("libwebclient.so", RTLD_LAZY | RTLD_GLOBAL);
|
|
|
|
if (webClientDll) {
|
|
locateBrowserControlStubFunctions(webClientDll);
|
|
locateMotifBrowserControlStubFunctions(webClientDll);
|
|
} else {
|
|
printf("Got Error: %s\n", dlerror());
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
* Class: MozWebShellNativeShim
|
|
* Method: raptorInitialize
|
|
* Signature: ()V
|
|
*/
|
|
JNIEXPORT void JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeInitialize (
|
|
JNIEnv * env,
|
|
jobject obj, jstring verifiedBinDirAbsolutePath)
|
|
{
|
|
(* nativeInitialize) (env, obj, verifiedBinDirAbsolutePath);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeInitialize()
|
|
|
|
|
|
|
|
/*
|
|
* Class: MozWebShellNativeShim
|
|
* Method: raptorTerminate
|
|
* Signature: ()V
|
|
*/
|
|
JNIEXPORT void JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeTerminate (
|
|
JNIEnv * env,
|
|
jobject obj)
|
|
{
|
|
(* nativeTerminate) (env, obj);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeTerminate()
|
|
|
|
|
|
/*
|
|
* Class: MozWebShellNativeShim
|
|
* Method: raptorSendKeyDownEvent
|
|
* Signature: (ICIII)V
|
|
*/
|
|
JNIEXPORT void JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeSendKeyDownEvent (
|
|
JNIEnv * env,
|
|
jobject obj,
|
|
jint widgetPtr,
|
|
jchar keyChar,
|
|
jint keyCode,
|
|
jint modifiers,
|
|
jint eventTime)
|
|
{
|
|
(* nativeSendKeyDownEvent) (env, obj, widgetPtr, keyChar, keyCode, modifiers, eventTime);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeSendKeyDownEvent()
|
|
|
|
|
|
/*
|
|
* Class: MozWebShellNativeShim
|
|
* Method: raptorSendKeyUpEvent
|
|
* Signature: (ICIII)V
|
|
*/
|
|
JNIEXPORT void JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeSendKeyUpEvent (
|
|
JNIEnv * env,
|
|
jobject obj,
|
|
jint widgetPtr,
|
|
jchar keyChar,
|
|
jint keyCode,
|
|
jint modifiers,
|
|
jint eventTime)
|
|
{
|
|
(* nativeSendKeyUpEvent) (env, obj, widgetPtr, keyChar, keyCode, modifiers, eventTime);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeSendKeyUpEvent()
|
|
|
|
|
|
/*
|
|
* Class: MozWebShellNativeShim
|
|
* Method: raptorSendMouseEvent
|
|
* Signature: (IIIIIIIIIII)V
|
|
*/
|
|
JNIEXPORT void JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeSendMouseEvent (
|
|
JNIEnv * env,
|
|
jobject obj,
|
|
jint windowPtr,
|
|
jint widgetPtr,
|
|
jint widgetX,
|
|
jint widgetY,
|
|
jint windowX,
|
|
jint windowY,
|
|
jint mouseMessage,
|
|
jint numClicks,
|
|
jint modifiers,
|
|
jint eventTime)
|
|
{
|
|
(* nativeSendMouseEvent) (env, obj, windowPtr, widgetPtr, widgetX, widgetY, windowX, windowY, mouseMessage, numClicks, modifiers, eventTime);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeSendMouseEvent()
|
|
|
|
|
|
|
|
/*
|
|
* Class: MozWebShellNativeShim
|
|
* Method: raptorIdleEvent
|
|
* Signature: (I)V
|
|
*/
|
|
JNIEXPORT void JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeIdleEvent (
|
|
JNIEnv * env,
|
|
jobject obj,
|
|
jint windowPtr,
|
|
jint eventTime)
|
|
{
|
|
(* nativeIdleEvent) (env, obj, windowPtr, eventTime);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeIdleEvent()
|
|
|
|
|
|
/*
|
|
* Class: MozWebShellNativeShim
|
|
* Method: raptorUpdateEvent
|
|
* Signature: (II)V
|
|
*/
|
|
JNIEXPORT void JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeUpdateEvent (
|
|
JNIEnv * env,
|
|
jobject obj,
|
|
jint windowPtr,
|
|
jint eventTime)
|
|
{
|
|
(* nativeUpdateEvent) (env, obj, windowPtr, eventTime);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeUpdateEvent()
|
|
|
|
|
|
/*
|
|
* Class: MozWebShellNativeShim
|
|
* Method: raptorWidgetCreate
|
|
* Signature: (I)I
|
|
*/
|
|
JNIEXPORT jint JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetCreate (
|
|
JNIEnv * env,
|
|
jobject obj,
|
|
jint windowPtr,
|
|
jint x,
|
|
jint y,
|
|
jint width,
|
|
jint height)
|
|
{
|
|
return (* nativeWidgetCreate) (env, obj, windowPtr, x, y, width, height);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetCreate()
|
|
|
|
|
|
/*
|
|
* Class: MozWebShellNativeShim
|
|
* Method: raptorWidgetDelete
|
|
* Signature: (I)I
|
|
*/
|
|
JNIEXPORT void JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetDelete (
|
|
JNIEnv * env,
|
|
jobject obj,
|
|
jint widgetPtr)
|
|
{
|
|
(* nativeWidgetDelete) (env, obj, widgetPtr);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetDelete()
|
|
|
|
|
|
|
|
/*
|
|
* Class: MozWebShellNativeShim
|
|
* Method: raptorWidgetResize
|
|
* Signature: (IIIZ)V
|
|
*/
|
|
JNIEXPORT void JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetResize (
|
|
JNIEnv * env,
|
|
jobject obj,
|
|
jint widgetPtr,
|
|
jint x,
|
|
jint y,
|
|
jint width,
|
|
jint height,
|
|
jboolean repaint)
|
|
{
|
|
(* nativeWidgetResize) (env, obj, widgetPtr, x, y, width, height, repaint);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetResize()
|
|
|
|
|
|
|
|
/*
|
|
* Class: MozWebShellNativeShim
|
|
* Method: raptorWidgetEnable
|
|
* Signature: (IZ)V
|
|
*/
|
|
JNIEXPORT void JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetEnable (
|
|
JNIEnv * env,
|
|
jobject obj,
|
|
jint widgetPtr,
|
|
jboolean enable)
|
|
{
|
|
(* nativeWidgetEnable) (env, obj, widgetPtr, enable);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetEnable()
|
|
|
|
|
|
|
|
/*
|
|
* Class: MozWebShellNativeShim
|
|
* Method: raptorWidgetShow
|
|
* Signature: (IZ)V
|
|
*/
|
|
JNIEXPORT void JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetShow (
|
|
JNIEnv * env,
|
|
jobject obj,
|
|
jint widgetPtr,
|
|
jboolean show)
|
|
{
|
|
(* nativeWidgetShow) (env, obj, widgetPtr, show);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetShow()
|
|
|
|
|
|
|
|
/*
|
|
* Class: MozWebShellNativeShim
|
|
* Method: raptorWidgetInvalidate
|
|
* Signature: (IZ)V
|
|
*/
|
|
JNIEXPORT void JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetInvalidate (
|
|
JNIEnv * env,
|
|
jobject obj,
|
|
jint widgetPtr,
|
|
jboolean isSynchronous)
|
|
{
|
|
(* nativeWidgetInvalidate) (env, obj, widgetPtr, isSynchronous);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetInvalidate()
|
|
|
|
|
|
|
|
/*
|
|
* Class: MozWebShellNativeShim
|
|
* Method: raptorWidgetUpdate
|
|
* Signature: (I)V
|
|
*/
|
|
JNIEXPORT void JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetUpdate (
|
|
JNIEnv * env,
|
|
jobject obj,
|
|
jint widgetPtr)
|
|
{
|
|
(* nativeWidgetUpdate) (env, obj, widgetPtr);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetUpdate()
|
|
|
|
|
|
|
|
JNIEXPORT void JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeProcessEvents (
|
|
JNIEnv* env,
|
|
jobject obj,
|
|
jint theWebShell)
|
|
{
|
|
(* nativeProcessEvents) (env, obj, theWebShell);
|
|
}
|
|
|
|
|
|
/*
|
|
* Class: MozWebShellNativeShim
|
|
* Method: raptorWebShellCreate
|
|
* Signature: (IIIIII)I
|
|
*/
|
|
JNIEXPORT jint JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellCreate (
|
|
JNIEnv * env,
|
|
jobject obj,
|
|
jint windowPtr,
|
|
jint x,
|
|
jint y,
|
|
jint width,
|
|
jint height)
|
|
{
|
|
return (* nativeWebShellCreate) (env, obj, windowPtr, x, y, width, height);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellCreate()
|
|
|
|
|
|
/*
|
|
* Class: MozWebShellNativeShim
|
|
* Method: raptorWebShellDelete
|
|
* Signature: (I)V
|
|
*/
|
|
JNIEXPORT void JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellDelete (
|
|
JNIEnv * env,
|
|
jobject obj,
|
|
jint webShellPtr)
|
|
{
|
|
(* nativeWebShellDelete) (env, obj, webShellPtr);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellDelete()
|
|
|
|
|
|
/*
|
|
* Class: MozWebShellNativeShim
|
|
* Method: raptorWebShellLoadURL
|
|
* Signature: (ILjava/lang/String;)V
|
|
*/
|
|
JNIEXPORT void JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellLoadURL (
|
|
JNIEnv * env,
|
|
jobject obj,
|
|
jint webShellPtr,
|
|
jstring urlString)
|
|
{
|
|
(* nativeWebShellLoadURL) (env, obj, webShellPtr, urlString);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellLoadURL()
|
|
|
|
|
|
/*
|
|
* Class: MozWebShellNativeShim
|
|
* Method: raptorWebShellStop
|
|
* Signature: (I)V
|
|
*/
|
|
JNIEXPORT void JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellStop (
|
|
JNIEnv * env,
|
|
jobject obj,
|
|
jint webShellPtr)
|
|
{
|
|
(* nativeWebShellStop) (env, obj, webShellPtr);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellStop()
|
|
|
|
|
|
/*
|
|
* Class: MozWebShellNativeShim
|
|
* Method: raptorWebShellShow
|
|
* Signature: (I)V
|
|
*/
|
|
JNIEXPORT void JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellShow (
|
|
JNIEnv * env,
|
|
jobject obj,
|
|
jint webShellPtr)
|
|
{
|
|
(* nativeWebShellShow) (env, obj, webShellPtr);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellShow()
|
|
|
|
|
|
/*
|
|
* Class: MozWebShellNativeShim
|
|
* Method: raptorWebShellHide
|
|
* Signature: (I)V
|
|
*/
|
|
JNIEXPORT void JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellHide (
|
|
JNIEnv * env,
|
|
jobject obj,
|
|
jint webShellPtr)
|
|
{
|
|
(* nativeWebShellHide) (env, obj, webShellPtr);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellHide()
|
|
|
|
|
|
/*
|
|
* Class: MozWebShellNativeShim
|
|
* Method: raptorWebShellSetBounds
|
|
* Signature: (IIIII)V
|
|
*/
|
|
JNIEXPORT void JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellSetBounds (
|
|
JNIEnv * env,
|
|
jobject obj,
|
|
jint webShellPtr,
|
|
jint x,
|
|
jint y,
|
|
jint width,
|
|
jint height)
|
|
{
|
|
(* nativeWebShellSetBounds) (env, obj, webShellPtr, x, y, width, height);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellSetBounds()
|
|
|
|
|
|
/*
|
|
* Class: MozWebShellNativeShim
|
|
* Method: raptorWebShellMoveTo
|
|
* Signature: (III)V
|
|
*/
|
|
JNIEXPORT void JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellMoveTo (
|
|
JNIEnv * env,
|
|
jobject obj,
|
|
jint webShellPtr,
|
|
jint x,
|
|
jint y)
|
|
{
|
|
(* nativeWebShellMoveTo) (env, obj, webShellPtr, x, y);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellMoveTo()
|
|
|
|
|
|
/*
|
|
* Class: MozWebShellNativeShim
|
|
* Method: raptorWebShellSetFocus
|
|
* Signature: (I)V
|
|
*/
|
|
JNIEXPORT void JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellSetFocus (
|
|
JNIEnv * env,
|
|
jobject obj,
|
|
jint webShellPtr)
|
|
{
|
|
(* nativeWebShellSetFocus) (env, obj, webShellPtr);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellSetFocus()
|
|
|
|
|
|
/*
|
|
* Class: MozWebShellNativeShim
|
|
* Method: raptorWebShellRemoveFocus
|
|
* Signature: (I)V
|
|
*/
|
|
JNIEXPORT void JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellRemoveFocus (
|
|
JNIEnv * env,
|
|
jobject obj,
|
|
jint webShellPtr)
|
|
{
|
|
(* nativeWebShellRemoveFocus) (env, obj, webShellPtr);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellRemoveFocus()
|
|
|
|
|
|
/*
|
|
* Class: MozWebShellNativeShim
|
|
* Method: raptorWebShellRepaint
|
|
* Signature: (IZ)V
|
|
*/
|
|
JNIEXPORT void JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellRepaint (
|
|
JNIEnv * env,
|
|
jobject obj,
|
|
jint webShellPtr,
|
|
jboolean forceRepaint)
|
|
{
|
|
(* nativeWebShellRepaint) (env, obj, webShellPtr, forceRepaint);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellRepaint()
|
|
|
|
|
|
/*
|
|
* Class: MozWebShellNativeShim
|
|
* Method: raptorWebShellCanBack
|
|
* Signature: (I)Z
|
|
*/
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellCanBack (
|
|
JNIEnv * env,
|
|
jobject obj,
|
|
jint webShellPtr)
|
|
{
|
|
return (* nativeWebShellCanBack) (env, obj, webShellPtr);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellCanBack()
|
|
|
|
|
|
/*
|
|
* Class: MozWebShellNativeShim
|
|
* Method: raptorWebShellCanForward
|
|
* Signature: (I)Z
|
|
*/
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellCanForward (
|
|
JNIEnv * env,
|
|
jobject obj,
|
|
jint webShellPtr)
|
|
{
|
|
return (* nativeWebShellCanForward) (env, obj, webShellPtr);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellCanForward()
|
|
|
|
|
|
/*
|
|
* Class: MozWebShellNativeShim
|
|
* Method: raptorWebShellBack
|
|
* Signature: (I)Z
|
|
*/
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellBack (
|
|
JNIEnv * env,
|
|
jobject obj,
|
|
jint webShellPtr)
|
|
{
|
|
return (* nativeWebShellBack) (env, obj, webShellPtr);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellBack()
|
|
|
|
|
|
/*
|
|
* Class: MozWebShellNativeShim
|
|
* Method: raptorWebShellForward
|
|
* Signature: (I)Z
|
|
*/
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellForward (
|
|
JNIEnv * env,
|
|
jobject obj,
|
|
jint webShellPtr)
|
|
{
|
|
return (* nativeWebShellForward) (env, obj, webShellPtr);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellForward()
|
|
|
|
|
|
/*
|
|
* Class: MozWebShellNativeShim
|
|
* Method: raptorWebShellGoTo
|
|
* Signature: (II)Z
|
|
*/
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellGoTo (
|
|
JNIEnv * env,
|
|
jobject obj,
|
|
jint webShellPtr,
|
|
jint historyIndex)
|
|
{
|
|
return (* nativeWebShellGoTo) (env, obj, webShellPtr, historyIndex);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellGoTo()
|
|
|
|
|
|
/*
|
|
* Class: MozWebShellNativeShim
|
|
* Method: raptorWebShellGetHistoryLength
|
|
* Signature: (I)I
|
|
*/
|
|
JNIEXPORT jint JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellGetHistoryLength (
|
|
JNIEnv * env,
|
|
jobject obj,
|
|
jint webShellPtr)
|
|
{
|
|
return (* nativeWebShellGetHistoryLength) (env, obj, webShellPtr);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellGetHistoryLength()
|
|
|
|
|
|
/*
|
|
* Class: MozWebShellNativeShim
|
|
* Method: raptorWebShellGetHistoryIndex
|
|
* Signature: (I)I
|
|
*/
|
|
JNIEXPORT jint JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellGetHistoryIndex (
|
|
JNIEnv * env,
|
|
jobject obj,
|
|
jint webShellPtr)
|
|
{
|
|
return (* nativeWebShellGetHistoryIndex) (env, obj, webShellPtr);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellGetHistoryIndex()
|
|
|
|
|
|
/*
|
|
* Class: MozWebShellNativeShim
|
|
* Method: raptorWebShellGetURL
|
|
* Signature: (II)Ljava/lang/String;
|
|
*/
|
|
JNIEXPORT jstring JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellGetURL (
|
|
JNIEnv * env,
|
|
jobject obj,
|
|
jint webShellPtr,
|
|
jint historyIndex)
|
|
{
|
|
return (* nativeWebShellGetURL) (env, obj, webShellPtr, historyIndex);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellGetURL()
|
|
|
|
// added by Mark Goddard OTMP 9/2/1999
|
|
/*
|
|
* Class: MozWebShellNativeShim
|
|
* Method: raptorWebShellRefresh
|
|
* Signature: (I)Z
|
|
*/
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellRefresh (
|
|
JNIEnv * env,
|
|
jobject obj,
|
|
jint webShellPtr)
|
|
{
|
|
return (* nativeWebShellRefresh) (env, obj, webShellPtr);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellRefresh()
|
|
|
|
|
|
/*
|
|
* Class: BrowserControlNativeShimStub
|
|
* Method: nativeWebShellAddDocListener
|
|
* Signature: (I)Z
|
|
*/
|
|
JNIEXPORT jboolean JNICALL
|
|
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellAddDocListener (
|
|
JNIEnv * env,
|
|
jobject obj,
|
|
jint webShellPtr,
|
|
jobject listener)
|
|
{
|
|
return (* nativeWebShellAddDocListener) (env, obj, webShellPtr, listener);
|
|
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellAddDocListener()
|
|
|
|
|
|
// EOF
|