157 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
edburns%acm.org
12c5493511 Compile_String_changes_with_M16
git-svn-id: svn://10.0.0.236/trunk@73716 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 00:25:23 +00:00
edburns%acm.org
da177fe5fd Whitespace formatting changes.
git-svn-id: svn://10.0.0.236/trunk@73687 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 20:27:41 +00:00
edburns%acm.org
c3f688ff6d Make it so it compiles on UNIX.
git-svn-id: svn://10.0.0.236/trunk@73684 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 19:53:24 +00:00
edburns%acm.org
8e2c512db6 Automatically_generate_JAVAH_headers
git-svn-id: svn://10.0.0.236/trunk@73599 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 21:08:30 +00:00
edburns%acm.org
a8d3fcb4e4 Finally_make_use_of_Sherry_Shen_changes
git-svn-id: svn://10.0.0.236/trunk@73598 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 19:03:27 +00:00
edburns%acm.org
8c4107130e Finally_make_use_of_Sherry_Shen_changes
git-svn-id: svn://10.0.0.236/trunk@73597 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 18:50:02 +00:00
edburns%acm.org
3560f2869c feature:
Now you can shift click to select a node in the DOM viewer.


git-svn-id: svn://10.0.0.236/trunk@73595 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 17:53:58 +00:00
ashuk%eng.sun.com
ad8ed2e23e bug=44279
a=edburns
r=edburns
author=ashuk.

This code makes Webclient work with Mozilla M16.


git-svn-id: svn://10.0.0.236/trunk@73562 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 00:01:58 +00:00
ashuk%eng.sun.com
25d27834af The current webclient only works with M13, and the
old webclient, in classes and src, works with pre M13.

This change removes the old webclient.


git-svn-id: svn://10.0.0.236/trunk@73561 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 23:59:12 +00:00
edburns%acm.org
7af4ea35a6 Removed accidentally introduced ^M's
git-svn-id: svn://10.0.0.236/trunk@72428 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-16 21:59:04 +00:00
edburns%acm.org
e10055646c Created file to allow shift-clicking.
git-svn-id: svn://10.0.0.236/trunk@71906 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-09 19:03:42 +00:00
edburns%acm.org
97cc25884d Make building the spec compliant classes the default.
git-svn-id: svn://10.0.0.236/trunk@71828 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-09 00:03:51 +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
edburns%acm.org
5adaa3e694 Modifications to allow webclient to run again on solaris.
git-svn-id: svn://10.0.0.236/trunk@71819 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-08 23:24:51 +00:00
edburns%acm.org
0eacb3af82 Checked in nascent "select the current node in the tree view when the user shift-clicks on a node" feature,
but it's blocked by the incompleteness of the DOM implementation in M13.


git-svn-id: svn://10.0.0.236/trunk@71794 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-08 18:40:20 +00:00
edburns%acm.org
9fac87eedf bug 40330
a=edburns

This checkin mainly does two things:

1. Correctly populates the java.awt.event.MouseEvent subclass with the
  correct modifiers, x, y, and clickCount for the mozilla mouse event.

2. Adds a performance optimization: previously, every mouse event was
  causing a new instance of java.util.Properties to be created.  Now,
  only one Properties instance is created per-page, and it is cleared on
  each mouse event.

Also, I made the DOMMouseListenerImpl constructor initialize the
refCount to 0.  This allows the object to be correctly deleted.

M classes_spec/org/mozilla/webclient/test/EMWindow.java
M classes_spec/org/mozilla/webclient/wrapper_native/WCMouseListenerImpl.java
M src_moz/DOMMouseListenerImpl.cpp
M src_moz/DOMMouseListenerImpl.h
M src_moz/WindowControlImpl.cpp
M src_moz/jni_util.cpp
M src_moz/jni_util.h
M src_moz/jni_util_export.cpp
M src_moz/jni_util_export.h

M classes_spec/org/mozilla/webclient/test/EMWindow.java

* Added test code for MouseListener properties: buttons, modifiers, etc.

M classes_spec/org/mozilla/webclient/wrapper_native/WCMouseListenerImpl.java

* Added support for mouse modifiers.  Pull values out of the hash table,
  put them in the MouseEvent constructor.

M src_moz/DOMMouseListenerImpl.cpp

* Modified constructors so they initialize all ivars.

* changed usage model of properties object to share the lifetime of the
  DOMMouseListenerImpl instance.  Needed to make use of the new function
  util_ClearPropertiesObject() to do this.  Now we have only one call to
  util_DestroyPropertiesObject(), in the DOMMouseListenerImpl
  destructor.

M src_moz/DOMMouseListenerImpl.h

>     virtual ~DOMMouseListenerImpl();
>
98a101
> protected:
100a104,105
>
> void JNICALL addMouseEventDataToProperties(nsIDOMEvent *aMouseEvent);

M src_moz/WindowControlImpl.cpp

* Initialize new WebShellInitConext member propertiesClass to nsnull

M src_moz/jni_util.cpp

* Added util_ClearPropertiesObject() an optimization.

* Store the jclass for java/util/Properties in an element in
  WebShellInitContext.  This prevents us from having to do FindClass
  each time a mouse event occurs.

* Added a parameter to util_StoreIntoPropertiesObject.

M src_moz/jni_util.h

* Added propertiesClass to WebShellInitContext

* Added new method ClearPropertiesObject

* Added new last argument to DestroyPropertiesObject

M src_moz/jni_util_export.cpp
M src_moz/jni_util_export.h

* Added function pointer for util_ClearPropertiesObject.


git-svn-id: svn://10.0.0.236/trunk@71756 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-08 02:16:06 +00:00
edburns%acm.org
3f164dfaa6 Remove CRLF's accidentally put in by Ashu.
git-svn-id: svn://10.0.0.236/trunk@71747 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-08 00:52:50 +00:00
edburns%acm.org
765e1f447a modified getPropertiesObject() to populate the hash table with
keys for properties in nsIDOMMouseEvent.


git-svn-id: svn://10.0.0.236/trunk@71652 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-07 00:12:06 +00:00
edburns%acm.org
542ba8a6ef Make it so the status bar URLs correctly display with pre-pended
base URLs.


git-svn-id: svn://10.0.0.236/trunk@71530 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-05 19:11:22 +00:00
edburns%acm.org
f508e6bc26 Enable/disable button bar buttons appropriately.
git-svn-id: svn://10.0.0.236/trunk@71529 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-05 18:23:23 +00:00
edburns%acm.org
e7523b5108 Give the BookmarksFrame the ability to tell the browser to
visit the clicked URL.


git-svn-id: svn://10.0.0.236/trunk@71525 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-05 17:54:58 +00:00
edburns%acm.org
1442832df2 bug 40330
a=edburns
r=drapeau

This checkin creates a dependency on the mozilla java dom module.

Please see mozilla\java\dom\README to build the java dom.
Note that you can just run make in mozilla\java and everything
should be built correctly.

A webclient/classes_spec/org/mozilla/webclient/test/DOMAccessPanel.java
A webclient/classes_spec/org/mozilla/webclient/test/DOMCellRenderer.java
A webclient/classes_spec/org/mozilla/webclient/test/DOMTreeDumper.java
A webclient/classes_spec/org/mozilla/webclient/test/DOMTreeModel.java
A webclient/classes_spec/org/mozilla/webclient/test/DOMTreeNotifier.java
A webclient/classes_spec/org/mozilla/webclient/test/DOMViewerFrame.java

M Makefile.win
M README
M webclient/classes_spec/Makefile.unix
M webclient/classes_spec/Makefile.win
M webclient/classes_spec/org/mozilla/webclient/CurrentPage.java
M webclient/classes_spec/org/mozilla/webclient/test/EMWindow.java
M webclient/classes_spec/org/mozilla/webclient/wrapper_native/CurrentPageImpl.java
M webclient/src_moz/CurrentPageImpl.cpp
M webclient/src_moz/DocumentLoaderObserverImpl.cpp
M webclient/src_moz/Makefile.win
M webclient/src_moz/WindowControlImpl.cpp
M webclient/src_moz/jni_util.h


git-svn-id: svn://10.0.0.236/trunk@71490 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-04 22:16:36 +00:00
edburns%acm.org
30686697e8 Added processing of "END_DOCUMENT_LOAD" and MouseExited events.
git-svn-id: svn://10.0.0.236/trunk@71306 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-01 23:42:35 +00:00
edburns%acm.org
8001fb2a87 Added StatusBar for URL messages.
git-svn-id: svn://10.0.0.236/trunk@71297 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-01 23:10:33 +00:00
edburns%acm.org
e547313630 If BAL_INTERFACE is defined in the build environment, produce
webclient_bal.{lib,dll} instead of webclient.{lib,dll}.


git-svn-id: svn://10.0.0.236/trunk@71288 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-01 22:41:31 +00:00