943 Commits

Author SHA1 Message Date
ashuk%eng.sun.com
2fa0b8e66e Bug = 48356
author = ashuk
r = a = edburns

Added checks to make sure that DocShell is valid and that
calls to getInterface(nsIDOMWindow) return a valid object.


git-svn-id: svn://10.0.0.236/trunk@76913 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-23 00:03:49 +00:00
edburns%acm.org
f8f85a7b78 bug=49293
r=gbarney
a=edburns

M classes_spec/org/mozilla/webclient/test/EMWindow.java
A src_ie/CMyDialog.cpp
A src_ie/CMyDialog.h
M src_ie/CurrentPageImpl.cpp
M src_ie/HistoryImpl.cpp
M src_ie/Makefile.win
M src_ie/NativeEventThread.cpp
M src_ie/WindowControlImpl.cpp
M src_ie/WrapperFactoryImpl.cpp
M src_ie/ie_util.cpp
M src_ie/ie_util.h

cvs diff -u classes_spec/org/mozilla/webclient/test/EMWindow.java src_ie/CMyDialog.cpp src_ie/CMyDialog.h src_ie/CurrentPageImpl.cpp src_ie/HistoryImpl.cpp src_ie/Makefile.win src_ie/NativeEventThread.cpp src_ie/WindowControlImpl.cpp src_ie/WrapperFactoryImpl.cpp src_ie/ie_util.cpp src_ie/ie_util.h

This change adds listener DocumentLoadListener support to src_ie.

tar -cvf 49293.tar classes_spec/org/mozilla/webclient/test/EMWindow.java src_ie/CMyDialog.cpp src_ie/CMyDialog.h src_ie/CurrentPageImpl.cpp src_ie/HistoryImpl.cpp src_ie/Makefile.win src_ie/NativeEventThread.cpp src_ie/WindowControlImpl.cpp src_ie/WrapperFactoryImpl.cpp src_ie/ie_util.cpp src_ie/ie_util.h


git-svn-id: svn://10.0.0.236/trunk@76568 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 19:54:43 +00:00
edburns%acm.org
ec836104c1 r=ashuk
bug=47357
a=edburns
Files in this checkin

M src_moz/CBrowserContainer.cpp
M src_moz/CBrowserContainer.h
M src_moz/ns_util.cpp
M src_moz/ns_util.h
M src_share/jni_util.cpp
M src_share/jni_util.h

cvs diff -u src_moz/CBrowserContainer.cpp src_moz/CBrowserContainer.h src_moz/ns_util.cpp src_moz/ns_util.h src_share/jni_util.cpp src_share/jni_util.h

This change moves out listener constants and other support data from
src_moz into src_share to enable it to be used in src_ie.

tar -cvf 47357.tar src_moz/CBrowserContainer.cpp src_moz/CBrowserContainer.h src_moz/ns_util.cpp src_moz/ns_util.h src_share/jni_util.cpp src_share/jni_util.h


git-svn-id: svn://10.0.0.236/trunk@76567 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 19:52:15 +00:00
edburns%acm.org
05d77f9269 r=ashuk
a=edburns
Files in this checkin

M src_moz/CBrowserContainer.cpp
M src_moz/CBrowserContainer.h
M src_moz/ns_util.cpp
M src_moz/ns_util.h
M src_share/jni_util.cpp
M src_share/jni_util.h

cvs diff -u src_moz/CBrowserContainer.cpp src_moz/CBrowserContainer.h src_moz/ns_util.cpp src_moz/ns_util.h src_share/jni_util.cpp src_share/jni_util.h

This change moves out listener constants and other support data from
src_moz into src_share to enable it to be used in src_ie.

tar -cvf 47357.tar src_moz/CBrowserContainer.cpp src_moz/CBrowserContainer.h src_moz/ns_util.cpp src_moz/ns_util.h src_share/jni_util.cpp src_share/jni_util.h


git-svn-id: svn://10.0.0.236/trunk@76560 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-17 18:29:18 +00:00
edburns%acm.org
14ce93d1c7 bug=45127
r=edburns
a=edburns
author=avm@sparc.spb.su

Wrong URL for kRDF_type.


git-svn-id: svn://10.0.0.236/trunk@76357 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-15 22:09:05 +00:00
edburns%acm.org
cdaf385ad3 Changes to make it build in the BAL case.
git-svn-id: svn://10.0.0.236/trunk@76193 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 01:22:18 +00:00
edburns%acm.org
7e99186539 Make it so BAL_INTERFACE=1 compiles on solaris.
git-svn-id: svn://10.0.0.236/trunk@76191 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 01:08:37 +00:00
edburns%acm.org
89d95f4ec6 Make it so BAL_INTERFACE=1 compiles on Solaris.
git-svn-id: svn://10.0.0.236/trunk@76189 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-12 01:08:04 +00:00
edburns%acm.org
1968a5ae56 bug=47357
a=edburns
r=edburns
author=avm

This fix adds a length parameter to the loading of URLs.  It also adds a new util function util_getStringLength().


git-svn-id: svn://10.0.0.236/trunk@76157 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 21:58:56 +00:00
edburns%acm.org
e962e3882f Update makefile to pull JNI includes from src_share.
git-svn-id: svn://10.0.0.236/trunk@76148 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-11 21:35:29 +00:00
edburns%acm.org
1f01dae006 a=edburns
r=ashuk
bug=47357
M classes_spec/org/mozilla/webclient/wrapper_native/NativeEventThread.java
M src_moz/CBrowserContainer.cpp
M src_moz/NativeEventThread.cpp
M src_moz/ns_util.cpp
M src_moz/ns_util.h
M src_share/jni_util.cpp
M src_share/jni_util.h

tar -cvf 47357.2.tar classes_spec/org/mozilla/webclient/wrapper_native/NativeEventThread.java src_moz/CBrowserContainer.cpp src_moz/NativeEventThread.cpp src_moz/ns_util.cpp src_moz/ns_util.h src_share/jni_util.cpp src_share/jni_util.h

cvs diff -u classes_spec/org/mozilla/webclient/wrapper_native/NativeEventThread.java src_moz/CBrowserContainer.cpp src_moz/NativeEventThread.cpp src_moz/ns_util.cpp src_moz/ns_util.h src_share/jni_util.cpp src_share/jni_util.h

This change modifes what one has to do on the native side to add a
listener.

 * How to create a new listener type on the native side: <P>

 * 1. add an entry in the gSupportedListenerInterfaces array defined in
 * ns_util.cpp <P>

 * 2. add a corresponding entry in the LISTENER_CLASSES enum in
 * ns_util.h <P>

 * 3. add a jstring to the string constant list in
 * CBrowserContainer.cpp, below.

 * 4. Initialize this jstring constant in CBrowserContainer.cpp
 * initStringConstants() <P>

 * 5. add an entry to the switch statement in NativeEventThread.cpp
 * native{add,remove}Listener <P>

You have to clobber_all in webclient after this change.


git-svn-id: svn://10.0.0.236/trunk@76019 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 21:38:52 +00:00
edburns%acm.org
1cf629674f First checkin of Webclient/IE
git-svn-id: svn://10.0.0.236/trunk@75941 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 01:33:35 +00:00
edburns%acm.org
3395507383 Make it so the jni headers are built in src_share.
git-svn-id: svn://10.0.0.236/trunk@75940 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 01:08:14 +00:00
edburns%acm.org
287ea4cd13 Make it so the jni headers are built in src_share.
git-svn-id: svn://10.0.0.236/trunk@75937 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-10 01:02:57 +00:00
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
sdv%sparc.spb.su
bb0e90b109 fix for bug=47878
NamedNodeMapImpl class should not extend NodeImpl
according to the w3c spec.


git-svn-id: svn://10.0.0.236/trunk@75789 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-08 16:43:52 +00:00
edburns%acm.org
0b79e56e49 a=edburns
author=Oleg Khokhlov
r=edburns
bug=47026


git-svn-id: svn://10.0.0.236/trunk@75607 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-04 21:46:10 +00:00
ashuk%eng.sun.com
a2522e3fb6 Minor change to get Webclient to compile on Solaris
author=ashuk

cvs diff dom_util.h (in directory D:\M16\mozilla\java\webclient\src_moz\)
Index: dom_util.h
===================================================================
RCS file: /cvsroot/mozilla/java/webclient/src_moz/dom_util.h,v
retrieving revision 1.1
diff -r1.1 dom_util.h
28a29
> #include "nsIDOMDocument.h"

*****CVS exited normally with code 1*****


git-svn-id: svn://10.0.0.236/trunk@75535 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 22:35:14 +00:00
edburns%acm.org
af2702d036 bug=47357
a=edburns
r=ashuk

This change creates a new directory, java/webclient/src_share, that
contains the code that will be used in both src_moz and src_ie, and any
other native browser wrapping implementations.

Here are the steps I followed to implement this change.

1. Create a new directory java/webclient/src_share

2. Move all jni_util*.* files from src_moz into src_share

3. Make it so src_share compiles into a new .lib

   src_share has no netscape dependencies.  Any functionality that
   depended on ns dependencies was kept in src_moz.  In this case, we
   have a function prototype only in src_share, with the implementation
   in src_moz.  We did this for nsHashtable.  The other trick was for
   things in WebShellInitContext that had nothing to do with Netscape.
   This case was accomodated by creating a new struct, ShareInitContext,
   that contains all WebShellInitContext members that have nothing to do
   with Netscape.  Currently this is just jobject propertiesClass.  I
   modified the WebShellInitContext struct to contain a ShareContext
   struct as its last member.  There are two new methods in jni_util.h
   that allow for the initialization and deallocation of the members of
   the ShareContext struct.

4. Make it so src_moz uses the new .lib to provide the jni_util behavior

  a. Create ns_util* files that include ../src_share/jni_util* files
  appropriately.

  The only tricky part was for things in jni_util.h that

Here's the list of files in this change.

cvs -z3 -n update (in directory D:\Projects\mozilla\java\webclient)
cvs server: Updating .
M Makefile.win // added src_share to DIRS
M src_moz/BookmarksImpl.cpp             // include ns_util instead of jni_util
M src_moz/CBrowserContainer.cpp         // include ns_util instead of jni_util
M src_moz/CBrowserContainer.h           // include ns_util instead of jni_util
M src_moz/CurrentPageImpl.cpp           // include ns_util instead of jni_util
M src_moz/HistoryImpl.cpp               // include ns_util instead of jni_util
M src_moz/Makefile.win                  // include ns_util instead of jni_util
M src_moz/NativeEventThread.cpp         // include ns_util instead of jni_util
M src_moz/NavigationImpl.cpp            // include ns_util instead of jni_util
M src_moz/RDFEnumeration.cpp            // include ns_util instead of jni_util
M src_moz/RDFTreeNode.cpp               // include ns_util instead of jni_util
M src_moz/WindowControlImpl.cpp         // include ns_util instead of jni_util
                                        // also use new util_InitShareContext
                                        // function
M src_moz/WrapperFactoryImpl.cpp        // include ns_util instead of jni_util
R src_moz/jni_util.cpp                  // moved to ../src_share
R src_moz/jni_util.h                    // moved to ../src_share
R src_moz/jni_util_export.cpp           // moved to ../src_share
R src_moz/jni_util_export.h             // moved to ../src_share
M src_moz/nsActions.cpp                 // include ns_util instead of jni_util
                                        // also use new
util_DeallocateShareContext
M src_moz/nsActions.h                   // include ns_util instead of jni_util
A src_moz/ns_util.cpp                   // include jni_util.h
A src_moz/ns_util.h                     // include jni_util.h, changes to
                                        // WebshellInitContext struct
A src_moz/ns_util_export.cpp            // provide impls for methods in
                                        // jni_util_export.h

A src_share/Makefile.win
A src_share/bal_util.cpp
A src_share/bal_util.h
A src_share/jni_util.cpp
A src_share/jni_util.h
A src_share/jni_util_export.cpp
A src_share/jni_util_export.h

*****CVS exited normally with code 0*****


git-svn-id: svn://10.0.0.236/trunk@75504 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-03 21:32:54 +00:00
ashuk%eng.sun.com
1d9d83e75f bug 44774, 44775
author=ashuk
r=ovk@sparc.spb.su

Minor fix for failed QA Test. Patch supplied by
Oleg.

_Ashu


git-svn-id: svn://10.0.0.236/trunk@75403 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-02 17:02:43 +00:00
idk%eng.sun.com
2d26be1613 * NOT PART OF TBOX BUILDS**
Fixed crasher bug. class was used before initialization.


git-svn-id: svn://10.0.0.236/trunk@75011 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-28 05:39:53 +00:00
dmose%mozilla.org
33d5f90134 on some windows configurations, the build has been messed up for at least a couple of weeks because some microsoft header file defines 'interface', which conflicts with the member variable in xpt_struct.h. rename the member variable from interface to iface. workaround suggested by alecf@netscape.com. r=jband@netscape.com, a=waterson@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@74999 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-28 04:03:50 +00:00
edburns%acm.org
282db89308 Classes must be built first in order to build jni.
git-svn-id: svn://10.0.0.236/trunk@74970 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-28 00:17:21 +00:00
ashuk%eng.sun.com
b5f214c647 author = ashuk
r = edburns
a = edburns

Implements RemoveListener


git-svn-id: svn://10.0.0.236/trunk@74818 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-26 20:07:11 +00:00
edburns%acm.org
7d07b23bb4 bug=41871
a=edburns
r=ashuk

This checkin makes it so CBrowserContainer is properly released.  The
problem was that the CBrowserContainer was still registered to the
docShell as a listener.  The solution was to call
wcIBrowserContianer::RemoveAllListeners() in the WebShellInitContext
deallocator.


git-svn-id: svn://10.0.0.236/trunk@74788 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-26 01:03:25 +00:00
ashuk%eng.sun.com
711d526c7d author = ashuk
r = edburns
a = edburns

Fix for Bugs: 44774, 44775 and 41780


git-svn-id: svn://10.0.0.236/trunk@74690 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-24 21:15:03 +00:00
edburns%acm.org
d9e0e9fe10 bug=41977
Insert parameter checks for all webclient methods.


git-svn-id: svn://10.0.0.236/trunk@74631 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-22 02:48:26 +00:00
edburns%acm.org
765a295e3e Remove accidentally inserted ^M chars.
git-svn-id: svn://10.0.0.236/trunk@74629 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-22 02:14:57 +00:00
idk%eng.sun.com
db7f3c0f7c ** not part of tbuild **
Updated README for linux build.


git-svn-id: svn://10.0.0.236/trunk@74357 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 00:03:47 +00:00
edburns%acm.org
7e42c828a0 Thanks to Andy Tripp <atripp@home.com> the DOMViewer
now scrolls to the shift-clicked node.


git-svn-id: svn://10.0.0.236/trunk@74296 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-15 18:56:30 +00:00
idk%eng.sun.com
736f68d6bc ** Not tbuild part **
Ported BlackConnect to Linux. It is working wuth IBM jdk1.3


git-svn-id: svn://10.0.0.236/trunk@74286 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-15 06:18:54 +00:00
idk%eng.sun.com
49187dc0e6 ** NOT PART OF TBOX BUILDS**
Add checking code for component creation


git-svn-id: svn://10.0.0.236/trunk@74244 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 07:19:49 +00:00
idk%eng.sun.com
4f30d77c4b ** NOT PART OF TBOX BUILDS**
Addon to previous check in


git-svn-id: svn://10.0.0.236/trunk@74149 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 03:41:24 +00:00
idk%eng.sun.com
1b048e4a15 ** NOT PART OF TBOX BUILDS**
Upgraded blackConnect for M16.
Added make files for win


git-svn-id: svn://10.0.0.236/trunk@74148 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 03:36:02 +00:00
edburns%acm.org
efad92ec96 Removed runem.solaris because we now have the cross platform runem.pl.
git-svn-id: svn://10.0.0.236/trunk@74052 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 23:44:35 +00:00
edburns%acm.org
2b9f6c2b26 Make it so params are correctly passed to runem.pl on Solaris.
git-svn-id: svn://10.0.0.236/trunk@74051 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 23:43:20 +00:00
edburns%acm.org
b971436627 Put dom after util and before webclient
git-svn-id: svn://10.0.0.236/trunk@73929 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 20:06:44 +00:00
edburns%acm.org
efd8882a09 Put classes first so top level java build works.
git-svn-id: svn://10.0.0.236/trunk@73928 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 20:06:07 +00:00
edburns%acm.org
2d11ae2a16 nsSetupRegistry_link_problems
git-svn-id: svn://10.0.0.236/trunk@73927 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 20:02:49 +00:00
edburns%acm.org
db74b4ad01 Use the new xp runem.pl script instead of building the smarts into
the batch file.


git-svn-id: svn://10.0.0.236/trunk@73926 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 19:48:47 +00:00
edburns%acm.org
2d15d02c8f Changes to Makefile.in to allow proper running on solaris.
Added motif/README to explain why some files in this directory
don't get put into this directory's dll.


git-svn-id: svn://10.0.0.236/trunk@73924 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 19:00:51 +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
460a0e83d5 runem.pl now successfully runs webclient on solaris. However,
webclient on solaris doesn't run yet.


git-svn-id: svn://10.0.0.236/trunk@73870 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 01:36:37 +00:00
edburns%acm.org
fcb4a4b0c8 First pass at automating the creation of the runem script. I hope runem.pl
can be used on both win32 and unix.


git-svn-id: svn://10.0.0.236/trunk@73856 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 23:32:43 +00:00
edburns%acm.org
294650864a Build_with_mozilla_build_system
git-svn-id: svn://10.0.0.236/trunk@73827 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 19:54:43 +00:00
edburns%acm.org
468587270c a=edburns
r=ashuk
bugs: 44327, 44328

NativeEventThread:

Re-instate the policy of creating an EventQueue for each window.
Put in a superfluous printf in processEventLoop that fixes 44327.

nsActions.{cpp,h}:

Added wsDeallocateInitContextEvent, to enable the correct
removal of the eventQueue, 44328

WindowControlImpl

Fire the wsDeallocateInitcontextEvent in nativeDestroyInitContext.


git-svn-id: svn://10.0.0.236/trunk@73826 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 18:53:07 +00:00
edburns%acm.org
472deb45c4 a=edburns
r=ashuk
bugs: 44327, 44328

WindowControl:

Don't call nativeDestroyInitContext

NativeEventThread

Call windowControl.nativeDestroyInitContext when the run()
loop exits.


git-svn-id: svn://10.0.0.236/trunk@73825 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 18:49:09 +00:00
edburns%acm.org
d54e7976c1 a=edburns
r=ashuk
bugs: 44327, 44328

Comment out the bookmarks test code.


git-svn-id: svn://10.0.0.236/trunk@73824 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 18:47:25 +00:00
sdv%sparc.spb.su
5f5d17aedf fix for bug=44196
git-svn-id: svn://10.0.0.236/trunk@73755 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 08:01:07 +00:00
edburns%acm.org
64743fd04d compile_under_solaris
git-svn-id: svn://10.0.0.236/trunk@73718 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 00:39:53 +00:00