зеркало из https://github.com/mozilla/gecko-dev.git
r=marklin
Change BrowserControlMozillaShim to BrowserControlNativeShim.
This commit is contained in:
Родитель
d64e97f2c2
Коммит
79be9d7781
|
@ -19,6 +19,6 @@ all:
|
|||
${JAVAH} -jni -classpath ${CLASSES} \
|
||||
-o ${JAVAH_OUTPUT_DIR}/motif/MotifBrowserControlCanvas.h org.mozilla.webclient.motif.MotifBrowserControlCanvas
|
||||
${JAVAH} -jni -classpath ${CLASSES} \
|
||||
-o ${JAVAH_OUTPUT_DIR}/motif/MozillaEventThread.h org.mozilla.webclient.motif.MozillaEventThread
|
||||
-o ${JAVAH_OUTPUT_DIR}/motif/MozillaEventThread.h org.mozilla.webclient.motif.NativeEventThread
|
||||
${JAVAH} -jni -classpath ${CLASSES} \
|
||||
-o ${JAVAH_OUTPUT_DIR}/BrowserControlMozillaShim.h org.mozilla.webclient.BrowserControlMozillaShim
|
||||
-o ${JAVAH_OUTPUT_DIR}/BrowserControlNativeShim.h org.mozilla.webclient.BrowserControlNativeShim
|
||||
|
|
|
@ -43,7 +43,7 @@ import java.io.FileNotFoundException;
|
|||
* This is a static class, it is neven instantiated.
|
||||
|
||||
*
|
||||
* @version $Id: BrowserControlFactory.java,v 1.2 1999/12/06 23:31:04 edburns%acm.org Exp $
|
||||
* @version $Id: BrowserControlFactory.java,v 1.3 1999/12/23 04:09:27 edburns%acm.org Exp $
|
||||
*
|
||||
* @see org.mozilla.webclient.test.EmbeddedMozilla
|
||||
|
||||
|
@ -153,7 +153,7 @@ public static void setAppData(String absolutePathToNativeBrowserBinDir) throws F
|
|||
}
|
||||
|
||||
try {
|
||||
BrowserControlMozillaShim.initialize(absolutePathToNativeBrowserBinDir);
|
||||
BrowserControlNativeShim.initialize(absolutePathToNativeBrowserBinDir);
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw new ClassNotFoundException("Can't initialize native browser: " +
|
||||
|
@ -197,7 +197,7 @@ public static void main(String [] args)
|
|||
Assert.setEnabled(true);
|
||||
Log.setApplicationName("BrowserControlFactory");
|
||||
Log.setApplicationVersion("0.0");
|
||||
Log.setApplicationVersionDate("$Id: BrowserControlFactory.java,v 1.2 1999/12/06 23:31:04 edburns%acm.org Exp $");
|
||||
Log.setApplicationVersionDate("$Id: BrowserControlFactory.java,v 1.3 1999/12/23 04:09:27 edburns%acm.org Exp $");
|
||||
|
||||
java.awt.Canvas canvas = null;
|
||||
BrowserControl control = null;
|
||||
|
|
|
@ -41,7 +41,7 @@ import java.awt.Canvas;
|
|||
*
|
||||
* <B>Lifetime And Scope</B> <P>
|
||||
*
|
||||
* @version $Id: BrowserControlImpl.java,v 1.6 1999/12/03 01:55:29 edburns%acm.org Exp $
|
||||
* @version $Id: BrowserControlImpl.java,v 1.7 1999/12/23 04:09:27 edburns%acm.org Exp $
|
||||
*
|
||||
* @see org.mozilla.webclient.BrowserControl
|
||||
*
|
||||
|
@ -98,7 +98,7 @@ protected BrowserControlImpl(Canvas yourCanvas)
|
|||
|
||||
public void createWindow(int windowPtr, Rectangle bounds) throws Exception
|
||||
{
|
||||
nativeWebShell = BrowserControlMozillaShim.webShellCreate(windowPtr, bounds);
|
||||
nativeWebShell = BrowserControlNativeShim.webShellCreate(windowPtr, bounds);
|
||||
}
|
||||
|
||||
public Canvas getCanvas()
|
||||
|
@ -108,32 +108,32 @@ public Canvas getCanvas()
|
|||
|
||||
public void loadURL(String urlString) throws Exception
|
||||
{
|
||||
BrowserControlMozillaShim.webShellLoadURL(nativeWebShell, urlString);
|
||||
BrowserControlNativeShim.webShellLoadURL(nativeWebShell, urlString);
|
||||
}
|
||||
|
||||
public void stop() throws Exception
|
||||
{
|
||||
BrowserControlMozillaShim.webShellStop(nativeWebShell);
|
||||
BrowserControlNativeShim.webShellStop(nativeWebShell);
|
||||
}
|
||||
|
||||
public void show () throws Exception
|
||||
{
|
||||
BrowserControlMozillaShim.webShellShow(nativeWebShell);
|
||||
BrowserControlNativeShim.webShellShow(nativeWebShell);
|
||||
}
|
||||
|
||||
public void hide () throws Exception
|
||||
{
|
||||
BrowserControlMozillaShim.webShellHide(nativeWebShell);
|
||||
BrowserControlNativeShim.webShellHide(nativeWebShell);
|
||||
}
|
||||
|
||||
public void setBounds (Rectangle bounds) throws Exception
|
||||
{
|
||||
BrowserControlMozillaShim.webShellSetBounds(nativeWebShell, bounds);
|
||||
BrowserControlNativeShim.webShellSetBounds(nativeWebShell, bounds);
|
||||
}
|
||||
|
||||
public void moveTo (int x, int y) throws Exception
|
||||
{
|
||||
BrowserControlMozillaShim.webShellMoveTo(nativeWebShell, x, y);
|
||||
BrowserControlNativeShim.webShellMoveTo(nativeWebShell, x, y);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -141,7 +141,7 @@ public void moveTo (int x, int y) throws Exception
|
|||
*/
|
||||
public void setFocus () throws Exception
|
||||
{
|
||||
BrowserControlMozillaShim.webShellSetFocus(nativeWebShell);
|
||||
BrowserControlNativeShim.webShellSetFocus(nativeWebShell);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -149,7 +149,7 @@ public void setFocus () throws Exception
|
|||
*/
|
||||
public void removeFocus () throws Exception
|
||||
{
|
||||
BrowserControlMozillaShim.webShellRemoveFocus(nativeWebShell);
|
||||
BrowserControlNativeShim.webShellRemoveFocus(nativeWebShell);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -157,7 +157,7 @@ public void removeFocus () throws Exception
|
|||
*/
|
||||
public void repaint (boolean forceRepaint) throws Exception
|
||||
{
|
||||
BrowserControlMozillaShim.webShellRepaint(nativeWebShell, forceRepaint);
|
||||
BrowserControlNativeShim.webShellRepaint(nativeWebShell, forceRepaint);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -165,7 +165,7 @@ public void repaint (boolean forceRepaint) throws Exception
|
|||
*/
|
||||
public boolean canBack () throws Exception
|
||||
{
|
||||
return BrowserControlMozillaShim.webShellCanBack(nativeWebShell);
|
||||
return BrowserControlNativeShim.webShellCanBack(nativeWebShell);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -173,7 +173,7 @@ public boolean canBack () throws Exception
|
|||
*/
|
||||
public boolean canForward () throws Exception
|
||||
{
|
||||
return BrowserControlMozillaShim.webShellCanForward(nativeWebShell);
|
||||
return BrowserControlNativeShim.webShellCanForward(nativeWebShell);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -181,7 +181,7 @@ public boolean canForward () throws Exception
|
|||
*/
|
||||
public boolean back () throws Exception
|
||||
{
|
||||
return BrowserControlMozillaShim.webShellBack(nativeWebShell);
|
||||
return BrowserControlNativeShim.webShellBack(nativeWebShell);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -189,7 +189,7 @@ public boolean back () throws Exception
|
|||
*/
|
||||
public boolean forward () throws Exception
|
||||
{
|
||||
return BrowserControlMozillaShim.webShellForward(nativeWebShell);
|
||||
return BrowserControlNativeShim.webShellForward(nativeWebShell);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -197,7 +197,7 @@ public boolean forward () throws Exception
|
|||
*/
|
||||
public boolean goTo (int historyIndex) throws Exception
|
||||
{
|
||||
return BrowserControlMozillaShim.webShellGoTo(nativeWebShell, historyIndex);
|
||||
return BrowserControlNativeShim.webShellGoTo(nativeWebShell, historyIndex);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -205,7 +205,7 @@ public boolean goTo (int historyIndex) throws Exception
|
|||
*/
|
||||
public int getHistoryLength () throws Exception
|
||||
{
|
||||
return BrowserControlMozillaShim.webShellGetHistoryLength(nativeWebShell);
|
||||
return BrowserControlNativeShim.webShellGetHistoryLength(nativeWebShell);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -213,7 +213,7 @@ public int getHistoryLength () throws Exception
|
|||
*/
|
||||
public int getHistoryIndex () throws Exception
|
||||
{
|
||||
return BrowserControlMozillaShim.webShellGetHistoryIndex(nativeWebShell);
|
||||
return BrowserControlNativeShim.webShellGetHistoryIndex(nativeWebShell);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -221,7 +221,7 @@ public int getHistoryIndex () throws Exception
|
|||
*/
|
||||
public String getURL (int historyIndex) throws Exception
|
||||
{
|
||||
return BrowserControlMozillaShim.webShellGetURL(nativeWebShell, historyIndex);
|
||||
return BrowserControlNativeShim.webShellGetURL(nativeWebShell, historyIndex);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -229,7 +229,7 @@ public String getURL (int historyIndex) throws Exception
|
|||
*/
|
||||
public boolean refresh() throws Exception
|
||||
{
|
||||
return BrowserControlMozillaShim.webShellRefresh(nativeWebShell);
|
||||
return BrowserControlNativeShim.webShellRefresh(nativeWebShell);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -244,7 +244,7 @@ public EventRegistration getEventRegistration() {
|
|||
* add document load event listener
|
||||
*/
|
||||
public boolean addDocumentLoadListener(DocumentLoadListener dll) throws Exception {
|
||||
return BrowserControlMozillaShim.webShellAddDocListener(nativeWebShell, dll);
|
||||
return BrowserControlNativeShim.webShellAddDocListener(nativeWebShell, dll);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -261,7 +261,7 @@ public int getNativeWebShell ()
|
|||
public void finalize ()
|
||||
{
|
||||
try {
|
||||
BrowserControlMozillaShim.webShellDelete(nativeWebShell);
|
||||
BrowserControlNativeShim.webShellDelete(nativeWebShell);
|
||||
}
|
||||
catch (Exception ex) {
|
||||
System.out.println(ex.toString());
|
||||
|
@ -281,7 +281,7 @@ public static void main(String [] args)
|
|||
// BrowserControlImpl me = new BrowserControlImpl();
|
||||
Log.setApplicationName("BrowserControlImpl");
|
||||
Log.setApplicationVersion("0.0");
|
||||
Log.setApplicationVersionDate("$Id: BrowserControlImpl.java,v 1.6 1999/12/03 01:55:29 edburns%acm.org Exp $");
|
||||
Log.setApplicationVersionDate("$Id: BrowserControlImpl.java,v 1.7 1999/12/23 04:09:27 edburns%acm.org Exp $");
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ import java.awt.*;
|
|||
* There is one instance of this class and all of the exposed methods
|
||||
* are static.
|
||||
|
||||
* @version $Id: BrowserControlMozillaShim.java,v 1.6 1999/11/06 02:24:18 dmose%mozilla.org Exp $
|
||||
* @version $Id: BrowserControlNativeShim.java,v 1.1 1999/12/23 04:09:29 edburns%acm.org Exp $
|
||||
*
|
||||
* @see org.mozilla.webclient.BrowserControlImpl
|
||||
|
||||
|
@ -56,7 +56,7 @@ import java.awt.*;
|
|||
|
||||
*/
|
||||
|
||||
public class BrowserControlMozillaShim extends Object
|
||||
public class BrowserControlNativeShim extends Object
|
||||
{
|
||||
//
|
||||
// Protected Constants
|
||||
|
@ -68,7 +68,7 @@ public class BrowserControlMozillaShim extends Object
|
|||
|
||||
private static boolean initialized = false;
|
||||
|
||||
private static BrowserControlMozillaShim instance = null;
|
||||
private static BrowserControlNativeShim instance = null;
|
||||
|
||||
private static Object lock = null;
|
||||
|
||||
|
@ -85,7 +85,7 @@ private static Object lock = null;
|
|||
// Constructors and Initializers
|
||||
//
|
||||
|
||||
public BrowserControlMozillaShim()
|
||||
public BrowserControlNativeShim()
|
||||
{
|
||||
super();
|
||||
lock = new Object();
|
||||
|
@ -105,7 +105,7 @@ public BrowserControlMozillaShim()
|
|||
public static void initialize(String verifiedBinDirAbsolutePath) throws Exception
|
||||
{
|
||||
if (!initialized) {
|
||||
instance = new BrowserControlMozillaShim();
|
||||
instance = new BrowserControlNativeShim();
|
||||
|
||||
instance.nativeInitialize(verifiedBinDirAbsolutePath);
|
||||
initialized = true;
|
||||
|
@ -122,164 +122,6 @@ public static void terminate () throws Exception
|
|||
}
|
||||
}
|
||||
|
||||
public static void processEvents(int theWebShell)
|
||||
{
|
||||
synchronized(lock) {
|
||||
if (initialized) {
|
||||
instance.nativeProcessEvents(theWebShell);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Window events
|
||||
//
|
||||
|
||||
public static void sendKeyDownEvent (int widgetPtr,
|
||||
char keyChar, int keyCode,
|
||||
int modifiers, int eventTime)
|
||||
{
|
||||
synchronized(lock) {
|
||||
if (initialized) {
|
||||
instance.nativeSendKeyDownEvent(widgetPtr,
|
||||
keyChar, keyCode, modifiers,
|
||||
eventTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void sendKeyUpEvent (int widgetPtr,
|
||||
char keyChar, int keyCode,
|
||||
int modifiers, int eventTime)
|
||||
{
|
||||
synchronized(lock) {
|
||||
if (initialized) {
|
||||
instance.nativeSendKeyUpEvent(widgetPtr, keyChar,
|
||||
keyCode, modifiers, eventTime);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void sendMouseEvent (int windowPtr, int widgetPtr,
|
||||
int widgetX, int widgetY,
|
||||
int windowX, int windowY,
|
||||
int mouseMessage, int numClicks,
|
||||
int modifiers, int eventTime)
|
||||
{
|
||||
|
||||
synchronized(lock) {
|
||||
if (initialized) {
|
||||
instance.nativeSendMouseEvent(windowPtr, widgetPtr,
|
||||
widgetX, widgetY,
|
||||
windowX, windowY,
|
||||
mouseMessage, numClicks,
|
||||
modifiers, eventTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void idleEvent (int windowPtr)
|
||||
{
|
||||
synchronized(lock) {
|
||||
if (initialized) {
|
||||
instance.nativeIdleEvent(windowPtr, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void updateEvent (int windowPtr)
|
||||
{
|
||||
synchronized(lock) {
|
||||
if (initialized) {
|
||||
instance.nativeUpdateEvent(windowPtr, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Widget methods
|
||||
//
|
||||
|
||||
public static int widgetCreate (int windowPtr,
|
||||
Rectangle bounds) throws Exception
|
||||
{
|
||||
synchronized(lock) {
|
||||
if (initialized) {
|
||||
return(instance.nativeWidgetCreate(windowPtr,
|
||||
bounds.x, bounds.y,
|
||||
bounds.width + 1, bounds.height + 1));
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void widgetDelete (int widgetPtr) throws Exception
|
||||
{
|
||||
synchronized(lock) {
|
||||
if (initialized) {
|
||||
instance.nativeWidgetDelete(widgetPtr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void widgetResize (int widgetPtr, Rectangle bounds,
|
||||
boolean repaint)
|
||||
{
|
||||
synchronized(lock) {
|
||||
if (initialized) {
|
||||
instance.nativeWidgetResize(widgetPtr, bounds.x, bounds.y, bounds.width + 1, bounds.height + 1, repaint);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void widgetResize (int widgetPtr, int width,
|
||||
int height, boolean repaint)
|
||||
{
|
||||
synchronized(lock) {
|
||||
if (initialized) {
|
||||
instance.nativeWidgetResize(widgetPtr, 0, 0, width + 1, height + 1, repaint);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void widgetEnable (int widgetPtr, boolean enable)
|
||||
{
|
||||
synchronized(lock) {
|
||||
if (initialized) {
|
||||
instance.nativeWidgetEnable(widgetPtr, enable);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void widgetShow (int widgetPtr, boolean show)
|
||||
{
|
||||
synchronized(lock) {
|
||||
if (initialized) {
|
||||
instance.nativeWidgetShow(widgetPtr, show);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void widgetInvalidate (int widgetPtr, boolean isSynchronous)
|
||||
{
|
||||
synchronized(lock) {
|
||||
if (initialized) {
|
||||
instance.nativeWidgetInvalidate(widgetPtr, isSynchronous);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void widgetUpdate (int widgetPtr)
|
||||
{
|
||||
synchronized(lock) {
|
||||
if (initialized) {
|
||||
instance.nativeWidgetUpdate(widgetPtr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// WebShell methods
|
||||
//
|
||||
|
@ -525,43 +367,6 @@ public static boolean webShellRefresh(int webShellPtr) throws Exception
|
|||
private native void nativeInitialize (String verifiedBinDirAbsolutePath) throws Exception;
|
||||
private native void nativeTerminate () throws Exception;
|
||||
|
||||
|
||||
//
|
||||
// Event interfaces
|
||||
//
|
||||
|
||||
private native void nativeSendKeyDownEvent(int widgetPtr, char keyChar, int keyCode, int modifiers, int eventTime);
|
||||
private native void nativeSendKeyUpEvent(int widgetPtr, char keyChar, int keyCode, int modifiers, int eventTime);
|
||||
private native void nativeSendMouseEvent(int windowPtr, int widgetPtr,
|
||||
int widgetX, int widgetY,
|
||||
int windowX, int windowY,
|
||||
int mouseMessage, int numClicks,
|
||||
int modifiers, int eventTime);
|
||||
private native void nativeProcessEvents(int theWebShell);
|
||||
private native void nativeIdleEvent (int windowPtr, int eventTime);
|
||||
private native void nativeUpdateEvent (int windowPtr, int eventTime);
|
||||
|
||||
|
||||
//
|
||||
// Widget interfaces
|
||||
//
|
||||
|
||||
private native int nativeWidgetCreate (int windowPtr, int x, int y, int width, int height) throws Exception;
|
||||
private native void nativeWidgetDelete (int widgetPtr) throws Exception;
|
||||
private native boolean nativeWebShellAddDocListener(int windowPtr, DocumentLoadListener dl);
|
||||
private native void nativeWidgetResize (int widgetPtr, int x, int y, int width, int height, boolean repaint);
|
||||
|
||||
/*
|
||||
private native void nativeWidgetResize (int widgetPtr, int width, int height, boolean repaint);
|
||||
*/
|
||||
|
||||
private native void nativeWidgetEnable (int widgetPtr, boolean enable);
|
||||
private native void nativeWidgetShow (int widgetPtr, boolean show);
|
||||
private native void nativeWidgetInvalidate (int widgetPtr, boolean isSynchronous);
|
||||
private native void nativeWidgetUpdate (int widgetPtr);
|
||||
|
||||
|
||||
|
||||
//
|
||||
// WebShell interface
|
||||
//
|
||||
|
@ -591,6 +396,7 @@ private native String nativeWebShellGetURL (int webShellPtr, int aHistoryIndex
|
|||
* Added by Mark Goddard OTMP 9/2/1999
|
||||
*/
|
||||
private native boolean nativeWebShellRefresh (int webShellPtr) throws Exception;
|
||||
private native boolean nativeWebShellAddDocListener(int webShellPtr, DocumentLoadListener dl);
|
||||
|
||||
public static native void nativeDebugBreak(String fileName, int lineNumber);
|
||||
|
||||
|
@ -607,13 +413,13 @@ public static native void nativeDebugBreak(String fileName, int lineNumber);
|
|||
public static void main(String [] args)
|
||||
{
|
||||
Assert.setEnabled(true);
|
||||
BrowserControlMozillaShim me = new BrowserControlMozillaShim();
|
||||
Log.setApplicationName("BrowserControlMozillaShim");
|
||||
BrowserControlNativeShim me = new BrowserControlNativeShim();
|
||||
Log.setApplicationName("BrowserControlNativeShim");
|
||||
Log.setApplicationVersion("0.0");
|
||||
Log.setApplicationVersionDate("$Id: BrowserControlMozillaShim.java,v 1.6 1999/11/06 02:24:18 dmose%mozilla.org Exp $");
|
||||
Log.setApplicationVersionDate("$Id: BrowserControlNativeShim.java,v 1.1 1999/12/23 04:09:29 edburns%acm.org Exp $");
|
||||
|
||||
}
|
||||
|
||||
// ----UNIT_TEST_END
|
||||
|
||||
} // end of class BrowserControlMozillaShim
|
||||
} // end of class BrowserControlNativeShim
|
|
@ -36,7 +36,7 @@ import org.mozilla.util.ParameterCheck;
|
|||
|
||||
* There is one instance of the WebShellCanvas per top level awt Frame.
|
||||
|
||||
* @version $Id: MotifBrowserControlCanvas.java,v 1.5 1999/12/06 23:31:05 edburns%acm.org Exp $
|
||||
* @version $Id: MotifBrowserControlCanvas.java,v 1.6 1999/12/23 04:09:30 edburns%acm.org Exp $
|
||||
*
|
||||
* @see org.mozilla.webclient.BrowserControlCanvasFactory
|
||||
*
|
||||
|
@ -132,8 +132,8 @@ public class MotifBrowserControlCanvas extends BrowserControlCanvas /* implement
|
|||
|
||||
this.gtkWinID = this.getGTKWinID(gtkWinPtr);
|
||||
|
||||
Thread mozillaEventThread = new MozillaEventThread(this);
|
||||
mozillaEventThread.start();
|
||||
Thread nativeEventThread = new NativeEventThread(this);
|
||||
nativeEventThread.start();
|
||||
}
|
||||
|
||||
return this.gtkWinPtr;
|
||||
|
|
|
@ -23,7 +23,7 @@ package org.mozilla.webclient.motif;
|
|||
|
||||
|
||||
/**
|
||||
* This is MozillaEventThread. It's job is to process any pending mozilla events
|
||||
* This is NativeEventThread. It's job is to process any pending mozilla events
|
||||
* which have been queued up.
|
||||
*
|
||||
* It also contains a private static hashtable mapping of GTK window to
|
||||
|
@ -38,14 +38,14 @@ package org.mozilla.webclient.motif;
|
|||
* <B>Lifetime And Scope</B> <P>
|
||||
* There will be one of these per BrowserControlCanvas (but hasn't been tested yet)
|
||||
*
|
||||
* @version $Id: MozillaEventThread.java,v 1.3 1999/11/06 02:24:19 dmose%mozilla.org Exp $
|
||||
* @see org.mozilla.webclient.motif.MozillaEventThread
|
||||
* @version $Id: NativeEventThread.java,v 1.1 1999/12/23 04:09:31 edburns%acm.org Exp $
|
||||
* @see org.mozilla.webclient.motif.NativeEventThread
|
||||
*
|
||||
*/
|
||||
|
||||
import java.util.*;
|
||||
|
||||
public class MozillaEventThread extends Thread {
|
||||
public class NativeEventThread extends Thread {
|
||||
|
||||
static private int eventQueueCount = 0;
|
||||
// A mapping of gtkWindowID <-> WebShellInitContext structs
|
||||
|
@ -75,7 +75,7 @@ public class MozillaEventThread extends Thread {
|
|||
return 0;
|
||||
}
|
||||
|
||||
public MozillaEventThread(MotifBrowserControlCanvas canvas) {
|
||||
public NativeEventThread(MotifBrowserControlCanvas canvas) {
|
||||
super("Mozilla-Event-Thread-" + eventQueueCount);
|
||||
|
||||
this.browserCanvas = canvas;
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -30,7 +30,7 @@ MODULE=webclient
|
|||
|
||||
OBJS = \
|
||||
.\$(OBJDIR)\nsActions.obj \
|
||||
.\$(OBJDIR)\BrowserControlMozillaShim.obj \
|
||||
.\$(OBJDIR)\BrowserControlNativeShim.obj \
|
||||
.\$(OBJDIR)\DocumentObserver.obj \
|
||||
.\$(OBJDIR)\jni_util.obj \
|
||||
$(NULL)
|
||||
|
@ -66,11 +66,11 @@ include <$(DEPTH)\java\config\localdefs.mak>
|
|||
!CMDSWITCHES -S
|
||||
|
||||
# generate the jni header
|
||||
export:: BrowserControlMozillaShim.h
|
||||
export:: BrowserControlNativeShim.h
|
||||
|
||||
BrowserControlMozillaShim.h:
|
||||
@echo Assuming class org.mozilla.webclient.BrowserControlMozillaShim is in $(JAVAH_FLAGS)
|
||||
$(JAVAH) $(JAVAH_FLAGS) -o $@ org.mozilla.webclient.BrowserControlMozillaShim
|
||||
BrowserControlNativeShim.h:
|
||||
@echo Assuming class org.mozilla.webclient.BrowserControlNativeShim is in $(JAVAH_FLAGS)
|
||||
$(JAVAH) $(JAVAH_FLAGS) -o $@ org.mozilla.webclient.BrowserControlNativeShim
|
||||
|
||||
install:: $(DLL)
|
||||
$(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).dll $(DIST)\bin
|
||||
|
@ -85,6 +85,6 @@ clobber_all:: clobber
|
|||
|
||||
clobber::
|
||||
rm -f $(DIST)\bin\$(DLLNAME).dll
|
||||
rm -f BrowserControlMozillaShim.h
|
||||
rm -f BrowserControlNativeShim.h
|
||||
rm -f .\$(OBJDIR)\runem.bat
|
||||
rm -f .\$(OBJDIR)\swingem.bat
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
*/
|
||||
|
||||
/*
|
||||
* BrowserControlMozillaShimStub.cpp
|
||||
* BrowserControlNativeShimStub.cpp
|
||||
*/
|
||||
|
||||
// PENDING(mark): I suppose this is where I need to go into my explaination of why
|
||||
|
@ -32,12 +32,12 @@
|
|||
// JNI...yada, yada, yada
|
||||
#include <jni.h>
|
||||
// JNI Header
|
||||
#include "../BrowserControlMozillaShim.h"
|
||||
#include "../BrowserControlNativeShim.h"
|
||||
// JNI Header
|
||||
#include "MozillaEventThread.h"
|
||||
#include "NativeEventThread.h"
|
||||
|
||||
// allow code in webclientstub.so to load us
|
||||
#include "BrowserControlMozillaShimStub.h"
|
||||
#include "BrowserControlNativeShimStub.h"
|
||||
|
||||
// Global reference to webclient dll
|
||||
void * webClientDll;
|
||||
|
@ -85,167 +85,167 @@ void (* processNativeEventQueue) (JNIEnv *, jobject, jint);
|
|||
|
||||
|
||||
void locateBrowserControlStubFunctions(void * dll) {
|
||||
nativeInitialize = (void (*) (JNIEnv *, jobject, jstring)) dlsym(dll, "Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeInitialize");
|
||||
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_BrowserControlMozillaShim_nativeTerminate");
|
||||
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_BrowserControlMozillaShim_nativeSendKeyDownEvent");
|
||||
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_BrowserControlMozillaShim_nativeSendKeyUpEvent");
|
||||
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_BrowserControlMozillaShim_nativeSendMouseEvent");
|
||||
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_BrowserControlMozillaShim_nativeIdleEvent");
|
||||
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_BrowserControlMozillaShim_nativeUpdateEvent");
|
||||
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_BrowserControlMozillaShim_nativeWidgetCreate");
|
||||
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_BrowserControlMozillaShim_nativeWidgetDelete");
|
||||
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_BrowserControlMozillaShim_nativeWidgetResize");
|
||||
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_BrowserControlMozillaShim_nativeWidgetEnable");
|
||||
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_BrowserControlMozillaShim_nativeWidgetShow");
|
||||
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_BrowserControlMozillaShim_nativeWidgetInvalidate");
|
||||
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_BrowserControlMozillaShim_nativeWidgetUpdate");
|
||||
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_BrowserControlMozillaShim_nativeProcessEvents");
|
||||
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_BrowserControlMozillaShim_nativeWebShellCreate");
|
||||
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_BrowserControlMozillaShim_nativeWebShellDelete");
|
||||
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_BrowserControlMozillaShim_nativeWebShellLoadURL");
|
||||
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_BrowserControlMozillaShim_nativeWebShellStop");
|
||||
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_BrowserControlMozillaShim_nativeWebShellShow");
|
||||
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_BrowserControlMozillaShim_nativeWebShellHide");
|
||||
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_BrowserControlMozillaShim_nativeWebShellSetBounds");
|
||||
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_BrowserControlMozillaShim_nativeWebShellMoveTo");
|
||||
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_BrowserControlMozillaShim_nativeWebShellSetFocus");
|
||||
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_BrowserControlMozillaShim_nativeWebShellRemoveFocus");
|
||||
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_BrowserControlMozillaShim_nativeWebShellRepaint");
|
||||
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_BrowserControlMozillaShim_nativeWebShellCanBack");
|
||||
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_BrowserControlMozillaShim_nativeWebShellCanForward");
|
||||
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_BrowserControlMozillaShim_nativeWebShellBack");
|
||||
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_BrowserControlMozillaShim_nativeWebShellForward");
|
||||
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_BrowserControlMozillaShim_nativeWebShellGoTo");
|
||||
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_BrowserControlMozillaShim_nativeWebShellGetHistoryLength");
|
||||
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_BrowserControlMozillaShim_nativeWebShellGetHistoryIndex");
|
||||
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_BrowserControlMozillaShim_nativeWebShellGetURL");
|
||||
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_BrowserControlMozillaShim_nativeWebShellRefresh");
|
||||
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_BrowserControlMozillaShim_nativeWebShellAddDocListener");
|
||||
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_motif_MozillaEventThread_processNativeEventQueue");
|
||||
processNativeEventQueue = (void (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_motif_NativeEventThread_processNativeEventQueue");
|
||||
if (!processNativeEventQueue) {
|
||||
printf("got dlsym error %s\n", dlerror());
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Class: org_mozilla_webclient_motif_MotifMozillaEventQueue
|
||||
* Class: org_mozilla_webclient_motif_MotifNativeEventQueue
|
||||
* Method: processNativeEventQueue
|
||||
* Signature: ()V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_org_mozilla_webclient_motif_MozillaEventThread_processNativeEventQueue
|
||||
JNIEXPORT void JNICALL Java_org_mozilla_webclient_motif_NativeEventThread_processNativeEventQueue
|
||||
(JNIEnv * env, jobject obj, jint gtkWinPtr) {
|
||||
(* processNativeEventQueue) (env, obj, gtkWinPtr);
|
||||
}
|
||||
|
@ -265,41 +265,41 @@ void loadMainDll(void)
|
|||
|
||||
|
||||
/*
|
||||
* Class: MozWebShellMozillaShim
|
||||
* Class: MozWebShellNativeShim
|
||||
* Method: raptorInitialize
|
||||
* Signature: ()V
|
||||
*/
|
||||
JNIEXPORT void JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeInitialize (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeInitialize (
|
||||
JNIEnv * env,
|
||||
jobject obj, jstring verifiedBinDirAbsolutePath)
|
||||
{
|
||||
(* nativeInitialize) (env, obj, verifiedBinDirAbsolutePath);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeInitialize()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeInitialize()
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Class: MozWebShellMozillaShim
|
||||
* Class: MozWebShellNativeShim
|
||||
* Method: raptorTerminate
|
||||
* Signature: ()V
|
||||
*/
|
||||
JNIEXPORT void JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeTerminate (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeTerminate (
|
||||
JNIEnv * env,
|
||||
jobject obj)
|
||||
{
|
||||
(* nativeTerminate) (env, obj);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeTerminate()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeTerminate()
|
||||
|
||||
|
||||
/*
|
||||
* Class: MozWebShellMozillaShim
|
||||
* Class: MozWebShellNativeShim
|
||||
* Method: raptorSendKeyDownEvent
|
||||
* Signature: (ICIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeSendKeyDownEvent (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeSendKeyDownEvent (
|
||||
JNIEnv * env,
|
||||
jobject obj,
|
||||
jint widgetPtr,
|
||||
|
@ -309,16 +309,16 @@ Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeSendKeyDownEvent (
|
|||
jint eventTime)
|
||||
{
|
||||
(* nativeSendKeyDownEvent) (env, obj, widgetPtr, keyChar, keyCode, modifiers, eventTime);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeSendKeyDownEvent()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeSendKeyDownEvent()
|
||||
|
||||
|
||||
/*
|
||||
* Class: MozWebShellMozillaShim
|
||||
* Class: MozWebShellNativeShim
|
||||
* Method: raptorSendKeyUpEvent
|
||||
* Signature: (ICIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeSendKeyUpEvent (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeSendKeyUpEvent (
|
||||
JNIEnv * env,
|
||||
jobject obj,
|
||||
jint widgetPtr,
|
||||
|
@ -328,16 +328,16 @@ Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeSendKeyUpEvent (
|
|||
jint eventTime)
|
||||
{
|
||||
(* nativeSendKeyUpEvent) (env, obj, widgetPtr, keyChar, keyCode, modifiers, eventTime);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeSendKeyUpEvent()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeSendKeyUpEvent()
|
||||
|
||||
|
||||
/*
|
||||
* Class: MozWebShellMozillaShim
|
||||
* Class: MozWebShellNativeShim
|
||||
* Method: raptorSendMouseEvent
|
||||
* Signature: (IIIIIIIIIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeSendMouseEvent (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeSendMouseEvent (
|
||||
JNIEnv * env,
|
||||
jobject obj,
|
||||
jint windowPtr,
|
||||
|
@ -352,49 +352,49 @@ Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeSendMouseEvent (
|
|||
jint eventTime)
|
||||
{
|
||||
(* nativeSendMouseEvent) (env, obj, windowPtr, widgetPtr, widgetX, widgetY, windowX, windowY, mouseMessage, numClicks, modifiers, eventTime);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeSendMouseEvent()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeSendMouseEvent()
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Class: MozWebShellMozillaShim
|
||||
* Class: MozWebShellNativeShim
|
||||
* Method: raptorIdleEvent
|
||||
* Signature: (I)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeIdleEvent (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeIdleEvent (
|
||||
JNIEnv * env,
|
||||
jobject obj,
|
||||
jint windowPtr,
|
||||
jint eventTime)
|
||||
{
|
||||
(* nativeIdleEvent) (env, obj, windowPtr, eventTime);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeIdleEvent()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeIdleEvent()
|
||||
|
||||
|
||||
/*
|
||||
* Class: MozWebShellMozillaShim
|
||||
* Class: MozWebShellNativeShim
|
||||
* Method: raptorUpdateEvent
|
||||
* Signature: (II)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeUpdateEvent (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeUpdateEvent (
|
||||
JNIEnv * env,
|
||||
jobject obj,
|
||||
jint windowPtr,
|
||||
jint eventTime)
|
||||
{
|
||||
(* nativeUpdateEvent) (env, obj, windowPtr, eventTime);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeUpdateEvent()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeUpdateEvent()
|
||||
|
||||
|
||||
/*
|
||||
* Class: MozWebShellMozillaShim
|
||||
* Class: MozWebShellNativeShim
|
||||
* Method: raptorWidgetCreate
|
||||
* Signature: (I)I
|
||||
*/
|
||||
JNIEXPORT jint JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWidgetCreate (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetCreate (
|
||||
JNIEnv * env,
|
||||
jobject obj,
|
||||
jint windowPtr,
|
||||
|
@ -404,32 +404,32 @@ Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWidgetCreate (
|
|||
jint height)
|
||||
{
|
||||
return (* nativeWidgetCreate) (env, obj, windowPtr, x, y, width, height);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWidgetCreate()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetCreate()
|
||||
|
||||
|
||||
/*
|
||||
* Class: MozWebShellMozillaShim
|
||||
* Class: MozWebShellNativeShim
|
||||
* Method: raptorWidgetDelete
|
||||
* Signature: (I)I
|
||||
*/
|
||||
JNIEXPORT void JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWidgetDelete (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetDelete (
|
||||
JNIEnv * env,
|
||||
jobject obj,
|
||||
jint widgetPtr)
|
||||
{
|
||||
(* nativeWidgetDelete) (env, obj, widgetPtr);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWidgetDelete()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetDelete()
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Class: MozWebShellMozillaShim
|
||||
* Class: MozWebShellNativeShim
|
||||
* Method: raptorWidgetResize
|
||||
* Signature: (IIIZ)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWidgetResize (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetResize (
|
||||
JNIEnv * env,
|
||||
jobject obj,
|
||||
jint widgetPtr,
|
||||
|
@ -440,79 +440,79 @@ Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWidgetResize (
|
|||
jboolean repaint)
|
||||
{
|
||||
(* nativeWidgetResize) (env, obj, widgetPtr, x, y, width, height, repaint);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWidgetResize()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetResize()
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Class: MozWebShellMozillaShim
|
||||
* Class: MozWebShellNativeShim
|
||||
* Method: raptorWidgetEnable
|
||||
* Signature: (IZ)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWidgetEnable (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetEnable (
|
||||
JNIEnv * env,
|
||||
jobject obj,
|
||||
jint widgetPtr,
|
||||
jboolean enable)
|
||||
{
|
||||
(* nativeWidgetEnable) (env, obj, widgetPtr, enable);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWidgetEnable()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetEnable()
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Class: MozWebShellMozillaShim
|
||||
* Class: MozWebShellNativeShim
|
||||
* Method: raptorWidgetShow
|
||||
* Signature: (IZ)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWidgetShow (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetShow (
|
||||
JNIEnv * env,
|
||||
jobject obj,
|
||||
jint widgetPtr,
|
||||
jboolean show)
|
||||
{
|
||||
(* nativeWidgetShow) (env, obj, widgetPtr, show);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWidgetShow()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetShow()
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Class: MozWebShellMozillaShim
|
||||
* Class: MozWebShellNativeShim
|
||||
* Method: raptorWidgetInvalidate
|
||||
* Signature: (IZ)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWidgetInvalidate (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetInvalidate (
|
||||
JNIEnv * env,
|
||||
jobject obj,
|
||||
jint widgetPtr,
|
||||
jboolean isSynchronous)
|
||||
{
|
||||
(* nativeWidgetInvalidate) (env, obj, widgetPtr, isSynchronous);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWidgetInvalidate()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetInvalidate()
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Class: MozWebShellMozillaShim
|
||||
* Class: MozWebShellNativeShim
|
||||
* Method: raptorWidgetUpdate
|
||||
* Signature: (I)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWidgetUpdate (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetUpdate (
|
||||
JNIEnv * env,
|
||||
jobject obj,
|
||||
jint widgetPtr)
|
||||
{
|
||||
(* nativeWidgetUpdate) (env, obj, widgetPtr);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWidgetUpdate()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWidgetUpdate()
|
||||
|
||||
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeProcessEvents (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeProcessEvents (
|
||||
JNIEnv* env,
|
||||
jobject obj,
|
||||
jint theWebShell)
|
||||
|
@ -522,12 +522,12 @@ Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeProcessEvents (
|
|||
|
||||
|
||||
/*
|
||||
* Class: MozWebShellMozillaShim
|
||||
* Class: MozWebShellNativeShim
|
||||
* Method: raptorWebShellCreate
|
||||
* Signature: (IIIIII)I
|
||||
*/
|
||||
JNIEXPORT jint JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellCreate (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellCreate (
|
||||
JNIEnv * env,
|
||||
jobject obj,
|
||||
jint windowPtr,
|
||||
|
@ -537,92 +537,92 @@ Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellCreate (
|
|||
jint height)
|
||||
{
|
||||
return (* nativeWebShellCreate) (env, obj, windowPtr, x, y, width, height);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellCreate()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellCreate()
|
||||
|
||||
|
||||
/*
|
||||
* Class: MozWebShellMozillaShim
|
||||
* Class: MozWebShellNativeShim
|
||||
* Method: raptorWebShellDelete
|
||||
* Signature: (I)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellDelete (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellDelete (
|
||||
JNIEnv * env,
|
||||
jobject obj,
|
||||
jint webShellPtr)
|
||||
{
|
||||
(* nativeWebShellDelete) (env, obj, webShellPtr);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellDelete()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellDelete()
|
||||
|
||||
|
||||
/*
|
||||
* Class: MozWebShellMozillaShim
|
||||
* Class: MozWebShellNativeShim
|
||||
* Method: raptorWebShellLoadURL
|
||||
* Signature: (ILjava/lang/String;)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellLoadURL (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellLoadURL (
|
||||
JNIEnv * env,
|
||||
jobject obj,
|
||||
jint webShellPtr,
|
||||
jstring urlString)
|
||||
{
|
||||
(* nativeWebShellLoadURL) (env, obj, webShellPtr, urlString);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellLoadURL()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellLoadURL()
|
||||
|
||||
|
||||
/*
|
||||
* Class: MozWebShellMozillaShim
|
||||
* Class: MozWebShellNativeShim
|
||||
* Method: raptorWebShellStop
|
||||
* Signature: (I)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellStop (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellStop (
|
||||
JNIEnv * env,
|
||||
jobject obj,
|
||||
jint webShellPtr)
|
||||
{
|
||||
(* nativeWebShellStop) (env, obj, webShellPtr);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellStop()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellStop()
|
||||
|
||||
|
||||
/*
|
||||
* Class: MozWebShellMozillaShim
|
||||
* Class: MozWebShellNativeShim
|
||||
* Method: raptorWebShellShow
|
||||
* Signature: (I)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellShow (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellShow (
|
||||
JNIEnv * env,
|
||||
jobject obj,
|
||||
jint webShellPtr)
|
||||
{
|
||||
(* nativeWebShellShow) (env, obj, webShellPtr);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellShow()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellShow()
|
||||
|
||||
|
||||
/*
|
||||
* Class: MozWebShellMozillaShim
|
||||
* Class: MozWebShellNativeShim
|
||||
* Method: raptorWebShellHide
|
||||
* Signature: (I)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellHide (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellHide (
|
||||
JNIEnv * env,
|
||||
jobject obj,
|
||||
jint webShellPtr)
|
||||
{
|
||||
(* nativeWebShellHide) (env, obj, webShellPtr);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellHide()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellHide()
|
||||
|
||||
|
||||
/*
|
||||
* Class: MozWebShellMozillaShim
|
||||
* Class: MozWebShellNativeShim
|
||||
* Method: raptorWebShellSetBounds
|
||||
* Signature: (IIIII)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellSetBounds (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellSetBounds (
|
||||
JNIEnv * env,
|
||||
jobject obj,
|
||||
jint webShellPtr,
|
||||
|
@ -632,16 +632,16 @@ Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellSetBounds (
|
|||
jint height)
|
||||
{
|
||||
(* nativeWebShellSetBounds) (env, obj, webShellPtr, x, y, width, height);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellSetBounds()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellSetBounds()
|
||||
|
||||
|
||||
/*
|
||||
* Class: MozWebShellMozillaShim
|
||||
* Class: MozWebShellNativeShim
|
||||
* Method: raptorWebShellMoveTo
|
||||
* Signature: (III)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellMoveTo (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellMoveTo (
|
||||
JNIEnv * env,
|
||||
jobject obj,
|
||||
jint webShellPtr,
|
||||
|
@ -649,206 +649,206 @@ Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellMoveTo (
|
|||
jint y)
|
||||
{
|
||||
(* nativeWebShellMoveTo) (env, obj, webShellPtr, x, y);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellMoveTo()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellMoveTo()
|
||||
|
||||
|
||||
/*
|
||||
* Class: MozWebShellMozillaShim
|
||||
* Class: MozWebShellNativeShim
|
||||
* Method: raptorWebShellSetFocus
|
||||
* Signature: (I)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellSetFocus (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellSetFocus (
|
||||
JNIEnv * env,
|
||||
jobject obj,
|
||||
jint webShellPtr)
|
||||
{
|
||||
(* nativeWebShellSetFocus) (env, obj, webShellPtr);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellSetFocus()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellSetFocus()
|
||||
|
||||
|
||||
/*
|
||||
* Class: MozWebShellMozillaShim
|
||||
* Class: MozWebShellNativeShim
|
||||
* Method: raptorWebShellRemoveFocus
|
||||
* Signature: (I)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellRemoveFocus (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellRemoveFocus (
|
||||
JNIEnv * env,
|
||||
jobject obj,
|
||||
jint webShellPtr)
|
||||
{
|
||||
(* nativeWebShellRemoveFocus) (env, obj, webShellPtr);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellRemoveFocus()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellRemoveFocus()
|
||||
|
||||
|
||||
/*
|
||||
* Class: MozWebShellMozillaShim
|
||||
* Class: MozWebShellNativeShim
|
||||
* Method: raptorWebShellRepaint
|
||||
* Signature: (IZ)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellRepaint (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellRepaint (
|
||||
JNIEnv * env,
|
||||
jobject obj,
|
||||
jint webShellPtr,
|
||||
jboolean forceRepaint)
|
||||
{
|
||||
(* nativeWebShellRepaint) (env, obj, webShellPtr, forceRepaint);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellRepaint()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellRepaint()
|
||||
|
||||
|
||||
/*
|
||||
* Class: MozWebShellMozillaShim
|
||||
* Class: MozWebShellNativeShim
|
||||
* Method: raptorWebShellCanBack
|
||||
* Signature: (I)Z
|
||||
*/
|
||||
JNIEXPORT jboolean JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellCanBack (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellCanBack (
|
||||
JNIEnv * env,
|
||||
jobject obj,
|
||||
jint webShellPtr)
|
||||
{
|
||||
return (* nativeWebShellCanBack) (env, obj, webShellPtr);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellCanBack()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellCanBack()
|
||||
|
||||
|
||||
/*
|
||||
* Class: MozWebShellMozillaShim
|
||||
* Class: MozWebShellNativeShim
|
||||
* Method: raptorWebShellCanForward
|
||||
* Signature: (I)Z
|
||||
*/
|
||||
JNIEXPORT jboolean JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellCanForward (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellCanForward (
|
||||
JNIEnv * env,
|
||||
jobject obj,
|
||||
jint webShellPtr)
|
||||
{
|
||||
return (* nativeWebShellCanForward) (env, obj, webShellPtr);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellCanForward()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellCanForward()
|
||||
|
||||
|
||||
/*
|
||||
* Class: MozWebShellMozillaShim
|
||||
* Class: MozWebShellNativeShim
|
||||
* Method: raptorWebShellBack
|
||||
* Signature: (I)Z
|
||||
*/
|
||||
JNIEXPORT jboolean JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellBack (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellBack (
|
||||
JNIEnv * env,
|
||||
jobject obj,
|
||||
jint webShellPtr)
|
||||
{
|
||||
return (* nativeWebShellBack) (env, obj, webShellPtr);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellBack()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellBack()
|
||||
|
||||
|
||||
/*
|
||||
* Class: MozWebShellMozillaShim
|
||||
* Class: MozWebShellNativeShim
|
||||
* Method: raptorWebShellForward
|
||||
* Signature: (I)Z
|
||||
*/
|
||||
JNIEXPORT jboolean JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellForward (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellForward (
|
||||
JNIEnv * env,
|
||||
jobject obj,
|
||||
jint webShellPtr)
|
||||
{
|
||||
return (* nativeWebShellForward) (env, obj, webShellPtr);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellForward()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellForward()
|
||||
|
||||
|
||||
/*
|
||||
* Class: MozWebShellMozillaShim
|
||||
* Class: MozWebShellNativeShim
|
||||
* Method: raptorWebShellGoTo
|
||||
* Signature: (II)Z
|
||||
*/
|
||||
JNIEXPORT jboolean JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellGoTo (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellGoTo (
|
||||
JNIEnv * env,
|
||||
jobject obj,
|
||||
jint webShellPtr,
|
||||
jint historyIndex)
|
||||
{
|
||||
return (* nativeWebShellGoTo) (env, obj, webShellPtr, historyIndex);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellGoTo()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellGoTo()
|
||||
|
||||
|
||||
/*
|
||||
* Class: MozWebShellMozillaShim
|
||||
* Class: MozWebShellNativeShim
|
||||
* Method: raptorWebShellGetHistoryLength
|
||||
* Signature: (I)I
|
||||
*/
|
||||
JNIEXPORT jint JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellGetHistoryLength (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellGetHistoryLength (
|
||||
JNIEnv * env,
|
||||
jobject obj,
|
||||
jint webShellPtr)
|
||||
{
|
||||
return (* nativeWebShellGetHistoryLength) (env, obj, webShellPtr);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellGetHistoryLength()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellGetHistoryLength()
|
||||
|
||||
|
||||
/*
|
||||
* Class: MozWebShellMozillaShim
|
||||
* Class: MozWebShellNativeShim
|
||||
* Method: raptorWebShellGetHistoryIndex
|
||||
* Signature: (I)I
|
||||
*/
|
||||
JNIEXPORT jint JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellGetHistoryIndex (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellGetHistoryIndex (
|
||||
JNIEnv * env,
|
||||
jobject obj,
|
||||
jint webShellPtr)
|
||||
{
|
||||
return (* nativeWebShellGetHistoryIndex) (env, obj, webShellPtr);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellGetHistoryIndex()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellGetHistoryIndex()
|
||||
|
||||
|
||||
/*
|
||||
* Class: MozWebShellMozillaShim
|
||||
* Class: MozWebShellNativeShim
|
||||
* Method: raptorWebShellGetURL
|
||||
* Signature: (II)Ljava/lang/String;
|
||||
*/
|
||||
JNIEXPORT jstring JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellGetURL (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellGetURL (
|
||||
JNIEnv * env,
|
||||
jobject obj,
|
||||
jint webShellPtr,
|
||||
jint historyIndex)
|
||||
{
|
||||
return (* nativeWebShellGetURL) (env, obj, webShellPtr, historyIndex);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellGetURL()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellGetURL()
|
||||
|
||||
// added by Mark Goddard OTMP 9/2/1999
|
||||
/*
|
||||
* Class: MozWebShellMozillaShim
|
||||
* Class: MozWebShellNativeShim
|
||||
* Method: raptorWebShellRefresh
|
||||
* Signature: (I)Z
|
||||
*/
|
||||
JNIEXPORT jboolean JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellRefresh (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellRefresh (
|
||||
JNIEnv * env,
|
||||
jobject obj,
|
||||
jint webShellPtr)
|
||||
{
|
||||
return (* nativeWebShellRefresh) (env, obj, webShellPtr);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellRefresh()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellRefresh()
|
||||
|
||||
|
||||
/*
|
||||
* Class: BrowserControlMozillaShimStub
|
||||
* Class: BrowserControlNativeShimStub
|
||||
* Method: nativeWebShellAddDocListener
|
||||
* Signature: (I)Z
|
||||
*/
|
||||
JNIEXPORT jboolean JNICALL
|
||||
Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellAddDocListener (
|
||||
Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellAddDocListener (
|
||||
JNIEnv * env,
|
||||
jobject obj,
|
||||
jint webShellPtr,
|
||||
jobject listener)
|
||||
{
|
||||
return (* nativeWebShellAddDocListener) (env, obj, webShellPtr, listener);
|
||||
} // Java_org_mozilla_webclient_BrowserControlMozillaShim_nativeWebShellAddDocListener()
|
||||
} // Java_org_mozilla_webclient_BrowserControlNativeShim_nativeWebShellAddDocListener()
|
||||
|
||||
|
||||
// EOF
|
|
@ -21,7 +21,7 @@
|
|||
*/
|
||||
|
||||
/*
|
||||
* BrowserControlMozillaShimStub.h
|
||||
* BrowserControlNativeShimStub.h
|
||||
*/
|
||||
|
||||
/*
|
Загрузка…
Ссылка в новой задаче