8 Commits

Author SHA1 Message Date
edburns%acm.org
60bfaf0127 bug=48227
author=edburns
a=edburns
r=ashuk

Files in this fix:

M classes_spec/org/mozilla/webclient/wrapper_native/EventRegistrationImpl.java
M classes_spec/org/mozilla/webclient/wrapper_native/NativeEventThread.java
A classes_spec/org/mozilla/webclient/wrapper_native/WCEventListenerWrapper.java
M src_moz/NativeEventThread.cpp
M src_moz/motif/NativeLoaderStub.cpp

Added class WCEventListenerWrapper:

 * This class allows the custom app to have one instance that implements
 * multiple Webclient event listener types. <P>

 * This is simply a "struct" type class that encapsulates a listener
 * instance with its class name.  This is necessary because the class
 * name is lost when we deal with the listener as a
 * WebclientEventListener, and not a WebclientEventListener subclass. <P>

 * @see org.mozilla.webclient.wrapper_native.NativeEventThread#addListener

Made it so when a java listener is added,

 * We create a WCEventListenerWrapper containing the user passed
 * DocumentLoadListener, and the string obtained from
 * DocumentLoadListener.class.getName();

We then call nativeEventThread.addListener:

 * Takes the abstract WebclientEventListener instance and adds it to a
 * Vector of listeners to be added.  This vector is scanned each time
 * around the event loop in run(). <P>

 * The vector is a vector of WCEventListenerWrapper instances.  In run()
 * these are unpacked and sent to nativeAddListener like this:
 * nativeAddListener(nativeWebShell,tempListener.listener,
 * tempListener.listenerClassName); <P>


git-svn-id: svn://10.0.0.236/trunk@75909 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-09 21:47:39 +00:00
edburns%acm.org
8ad979c383 Removed "^M" characters.
git-svn-id: svn://10.0.0.236/trunk@73921 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 17:49:19 +00:00
edburns%acm.org
6928c33fd1 Added nativeGetDOM.
git-svn-id: svn://10.0.0.236/trunk@71826 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-08 23:51:13 +00:00
ashuk%eng.sun.com
b4e5689fee Ed's review for multiple window closing bug
author=ashuk
r=ashuk


git-svn-id: svn://10.0.0.236/trunk@71181 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-31 21:56:36 +00:00
ashuk%eng.sun.com
0ef34b084a Added fix for GetSourceBytes and SelectAll Stubs
author = ashuk
r = edburns

_Ashu


git-svn-id: svn://10.0.0.236/trunk@70684 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-23 21:10:02 +00:00
ashuk%eng.sun.com
b8d80f0eaa changed signatures of functions in CurrentPage interface
a=ashuk
r=edburns
Bug=20659

Ashu


git-svn-id: svn://10.0.0.236/trunk@65429 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-06 17:42:46 +00:00
ashuk%eng.sun.com
6c6385f95e a=edburns
r=edburns
author=ashuk
bug=28407

Made fix for changed BookmarksImpl.cpp file in the Stubs file -- Ashu K.


git-svn-id: svn://10.0.0.236/trunk@62397 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-08 18:41:01 +00:00
ashuk%eng.sun.com
dbbd9a87d7 a=edburns
r=edburns
author=ashuk
bug=28407

New native code for spec-compliant impl ported to solaris -- Ashu K.


git-svn-id: svn://10.0.0.236/trunk@62342 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-07 22:33:38 +00:00