Граф коммитов

225 Коммитов

Автор SHA1 Сообщение Дата
edburns%acm.org 12f9501da2 bug=33093
a=edburns
r=ashuk

Force prefs to be read, causing the proxy data to be read.
2000-03-23 23:08:35 +00:00
edburns%acm.org 8952b1fe7f bug=33093
a=edburns
r=ashuk

Force prefs to be read, causing the proxy data to be read.
2000-03-23 22:57:57 +00:00
edburns%acm.org aa3d2d50d7 r=ashuk
a=edburns
bug=32011
This change enables the current webclient API to be called from native
code.

It adds makefile and conditional compilation logic.

If the user defines BAL_INTERFACE in their environment before building
webclient, -DBAL_INTERFACE is added to LCFLAGS.  This causes code in
jni_util_export.cpp to behave differently due to the conditional
compilation logic.

I've broken out the 8 functions that are necessary to call into the
Webclient JNI methods into jni_util_export.{h,cpp}.

I've created a new pair of files, bal_util.{h,cpp} that contain function
declarations and definitions that are used when src_moz is built with
BAL_INTERFACE.  bal_util.obj is not built, nor added to webclient.dll if
building without BAL_INTERFACE.

See the page
http://www.mozilla.org/projects/blackwood/webclient/design/uno-transition.html
for a design document description of these changes.
2000-03-21 19:27:13 +00:00
edburns%acm.org d7929152b5 bug=32011
r=ashuk
a=edburns
This set of changes replaces all occurrences of

env->Func(args...)

with

::util_Func(env, args...)

Except of course, for the implementations of the above mentioned
::util_Func() functions.

This is done to allow the JNI functions to be called from a non JNI
context, such as UNO.
2000-03-16 23:07:03 +00:00
edburns%acm.org 2b80283ff3 This checkin adds API to cleanly destroy a BrowserControl instance. It
also modifies EmbeddedMozilla so this code is exercised.

I have changed EmbeddedMozilla to be a stub-like class that simply
displays a Frame with a single Button, titled "New Window".  Pressing
this button causes an EMWindow to be created and displayed.  EMWindow is
basically the former EmbeddedMozilla renamed, with modifications to the
WindowListener implementation to call the BrowserControl deallocation
method.

I've added a delete() method to ImplObect:

 * I know Java has automatic garbage collection and all, but explicitly
 * adding a delete method helps the gc algorithm out. <P>

 * Subclasses should override this and call super.delete() at the end of
 * their overridden delete() method.

 * @see org.mozilla.webclient.wrapper_native.ImplObjectNative#delete

and ImplObjectNative:

 * Note how we call super.delete() at the end.  THIS IS VERY IMPORTANT. <P>

 * Also, note how we don't de-allocate nativeWebShell, that is done in
 * the class that owns the nativeWebShell reference, WindowControlImpl.

 * ImplObjectNative subclasses that further override delete() are <P>

<CODE><PRE>
BookmarksImpl.java
EventRegistrationImpl.java
NativeEventThread.java
WindowControlImpl.java
</PRE><CODE> <P>

 * All other ImplObject subclasses don't have any local Ivars and thus
 * don't need to override delete().

I've added a delete() method to BrowserControlImpl:

 * Called from BrowserControlFactory.deleteBrowserControl() <P>

 * The order of deletion of objects is very important! <P>

 * We don't allow deletion if the Canvas is showing. <P>

In BrowserControlImpl's delete(), the important delete()s is for
WindowControlImpl:

 * First, we delete our eventThread, which causes the eventThread to
 * stop running.  Then we call nativeDestroyInitContext(), which
 * deallocates native resources for this window.

As stated above, NativeEventThread.delete() is called:

 * This is a very delicate method, and possibly subject to race
 * condition problems.  To combat this, our first step is to set our
 * browserControlCanvas to null, within a synchronized block which
 * synchronizes on the same object used in the run() method's event
 * loop.  By setting the browserControlCanvas ivar to null, we cause the
 * run method to return.

After all of this deleting, we return from
BrowserControlFactory.delete().
2000-03-13 18:44:32 +00:00
edburns%acm.org 20a7194058 r=ashuk
a=edburns
bug=31253

This change doesn't impact SeaMonkey.

Move the initialization of the nativeWebShell ptr into a superclass.
2000-03-09 23:22:52 +00:00
edburns%acm.org 0d6fc7f850 bug=31123
a=edburns
r=bruce

Folks, don't EVER use NULL in your c++ code.  Use nsnull instead.
2000-03-09 05:12:42 +00:00
edburns%acm.org 0bf1d2eb4c JAVAH generated header files should not be checked in, since they are generated as a result of the build. 2000-03-09 04:41:43 +00:00
sherry.shen%sun.com afbace2f0e Bug #28281, r=leaf, a=leaf,
Add an option for building Java-supplement and
fix the Java building problem about JDIRS.
2000-03-09 01:14:22 +00:00
edburns%acm.org f4c528647e For win32 builds. If you define
WEBCLIENT_SPEC=1

in your environment before building webclient, the spec-compliant
version of webclient will be built.
2000-03-08 19:17:16 +00:00
edburns%acm.org b07d563b43 Changed NULL to nsnull, so it would build with gcc.
.
2000-03-08 18:54:00 +00:00
ashuk%eng.sun.com 16019f5a72 a=edburns
r=edburns
author=ashuk
bug=28407

Made fix for new BookmarksImpl.java file -- Ashu K.
2000-03-08 18:49:36 +00:00
ashuk%eng.sun.com 43a6915347 a=edburns
r=edburns
author=ashuk
bug=28407

Made fix for changed BookmarksImpl.cpp file in the Stubs file -- Ashu K.
2000-03-08 18:41:01 +00:00
ashuk%eng.sun.com b6b1747f72 a=edburns
r=edburns
author=ashuk
bug=28407

New native code for spec-compliant impl ported to solaris -- Ashu K.
2000-03-07 22:45:37 +00:00
ashuk%eng.sun.com 9fe6afbb8e a=edburns
r=edburns
author=ashuk
bug=28407

Moved this file to java/webclient/classes_new/org/mozilla/webclient/wrapper_native -- Ashu K.
2000-03-07 22:39:11 +00:00
ashuk%eng.sun.com 632a1b0f34 a=edburns
r=edburns
author=ashuk
bug=28407

New native code for spec-compliant impl ported to solaris -- Ashu K.
2000-03-07 22:33:38 +00:00
edburns%acm.org 29ed3a17ef NOT IN SeaMonkey
Added // PENDING comment
2000-03-07 22:32:27 +00:00
ashuk%eng.sun.com 364a2788bc a=edburns
r=edburns
author=ashuk
bug=28407

New run script for spec-compliant impl -- Ashu K.
2000-03-07 22:19:20 +00:00
ashuk%eng.sun.com 11dfd4783d a=edburns
r=edburns
author=ashuk
bug=28407

New solaris Makefile for spec-compliant impl -- Ashu K.
2000-03-07 22:18:17 +00:00
ashuk%eng.sun.com cbe874f8cf a=edburns
r=edburns
author=ashuk
bug=28407

New java code for spec-compliant impl ported to solaris -- Ashu K.
2000-03-07 22:16:07 +00:00
ashuk%eng.sun.com 6171e421f6 a=edburns
r=edburns
author=ashuk
bug=28407

New java code for spec-compliant impl ported to solaris -- Ashu K.
2000-03-07 22:10:08 +00:00
ashuk%eng.sun.com 837a1c3112 a=edburns
r=edburns
author=ashuk
bug=28407

makefile for Java code - spec compliant impl -- Ashu K
2000-03-07 22:03:57 +00:00
edburns%acm.org bb161e49d0 a=edburns
r=ashuk
bug=2069

Native code for spec compliant webclient impl.
2000-03-04 01:37:20 +00:00
edburns%acm.org c231d6c5d9 a=edburns
r=ashuk
bug=2069

Java classes for spec compliant webclient impl.
2000-03-04 01:10:58 +00:00
edburns%acm.org 3c421d4cd1 Put #include <unistd.h> inside #ifdef XP_UNIX 2000-02-18 19:33:28 +00:00
edburns%acm.org 5a19a2ac25 Removed import org.mozilla.webclient.motif.* 2000-02-18 19:32:22 +00:00
edburns%acm.org bcd8361b00 author=Ashutosh Kulkarni
r=edburns
approver=edburns
bug=28407

THIS CODE IS NOT MOZILLA CODE!

This code change allows webclient to work with GTKSUPERWIN.
2000-02-18 19:16:27 +00:00
edburns%acm.org 88bfb6256e More simple name change changes. 2000-01-07 00:44:24 +00:00
edburns%acm.org e7b56436fc Changed MozillaEventThread.h to NativeEventThread.h 2000-01-06 22:52:03 +00:00
edburns%acm.org 3de2ef730a Change to new NS_InitXPCOM argument.
r=dp
b=23157
a=edburns
2000-01-06 22:45:48 +00:00
edburns%acm.org 58fdb7b9d4 account for nsIDocumentLoaderObserver API changes. 2000-01-05 20:25:29 +00:00
edburns%acm.org d89128187f r=marklin
a=edburns

Changes to complete the transition from BrowserControlMozillaShim to BrowserControlNativeShim.
1999-12-24 00:03:28 +00:00
edburns%acm.org 48f0c882b9 r=marklin
a=edburns

Get webclient working againg with tbogard's help on what has changed with webshell.
1999-12-23 23:40:57 +00:00
edburns%acm.org 79be9d7781 r=marklin
Change BrowserControlMozillaShim to BrowserControlNativeShim.
1999-12-23 04:09:40 +00:00
mark.lin%eng.sun.com 0b03c57e3d Fixed webclient on Unix bustage. 1999-12-21 22:20:19 +00:00
edburns%acm.org 241e1369ab This change is not related to SeaMonkey, so it can't break the build.
r=marklin
a=edburns
bug=20659

added #ifdef XP_UNIX for GTK_MOZAREA stuff.
1999-12-07 01:51:54 +00:00
edburns%acm.org c18859f93a Changed comment in initialize. 1999-12-06 23:42:13 +00:00
edburns%acm.org cc447ed81a r=marklin
a=edburns
bug=20659

Changes to bring webclient sort of up to working shape on unix.
1999-12-06 23:31:11 +00:00
edburns%acm.org f4ca2206f2 r=marklin%eng.sun.com
a=edburns
bug=20659

Make BrowserControl vend a Canvas instead of
BrowserControlCanvas vending a BrowserControl.

This change has nothing to do with mozilla.  It's pure java.
1999-12-03 01:55:31 +00:00
dmose%mozilla.org 297dabc11c updated license boilerplated to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 02:24:22 +00:00
edburns%acm.org 1f6bf5df5a r=marklin
#17358
approver=edburns
author=edburns

This fix enables webclient to work with the latest mozilla.  For now.
1999-10-29 22:51:06 +00:00
edburns%acm.org 8ba6c6ed1e bug: 16842
reviewer: edburns
approver: edburns

Changed raptor to gk in makefile as appropriate.
1999-10-20 22:02:34 +00:00
edburns%acm.org e681c419cb Added Swing webclient test code and windows makefile mods.
Author=Ann Sunhachawee
r=edburns@acm.org
Approver=edburns@acm.org
Bug=http://bugzilla.mozilla.org/show_bug.cgi?id=16842
1999-10-20 00:49:28 +00:00
edburns%acm.org a8e9d5219a 1999-10-07 <Ed Burns <ed.burns@sun.com>>
* This change fixes
 	http://bugzilla.mozilla.org/show_bug.cgi?id=15793 which caused one
 	to have to copy the component.reg and components directory.  It
 	also causes webclient to do autoregistration.  It also adds a
 	debugging method to BrowserControlMozillaShim.java
 	nativeDebugBreak().

	This changes makes webclient depend on having mozilla sources from
 	10/5/99 or later.

	Reviewed by Mark Lin <marklin@eng.sun.com>
	Approved by Ed Burns <edburns@acm.org>, module owner
1999-10-08 00:52:53 +00:00
edburns%acm.org f0c6611e7a 1999-10-07 <Ed Burns <ed.burns@sun.com>>
* This change fixes
 	http://bugzilla.mozilla.org/show_bug.cgi?id=15793 which caused one
 	to have to copy the component.reg and components directory.  It
 	also causes webclient to do autoregistration.  It also adds a
 	debugging method to BrowserControlMozillaShim.java
 	nativeDebugBreak().

	This changes makes webclient depend on having mozilla sources from
 	10/5/99 or later.

	Reviewed by Mark Lin <marklin@eng.sun.com>
	Approved by Ed Burns <edburns@acm.org>, module owner
1999-10-08 00:48:01 +00:00
mark.lin%eng.sun.com 8357d9dab9 updated library names for Makefile.unix. 1999-09-08 22:18:13 +00:00
edburns%acm.org 509487f95d Added Mark Goddard from OMTP's changes to add "Refresh" to API and implementation.
Also added Refresh button to EmbeddedMozilla.
1999-09-03 19:28:47 +00:00
edburns%acm.org 3acb87f36d Removed antiquated libs 1999-09-02 02:40:59 +00:00
mark.lin%eng.sun.com 64efaa1ee1 Updated makefile. Need to refrence /usr/lib/libC directly. 1999-08-31 22:16:17 +00:00
mark.lin%eng.sun.com b4031a8bc4 Updated makefile.solaris to use workshop compilers. 1999-08-31 22:05:56 +00:00
mark.lin%eng.sun.com 18f7f3f6d3 Updated Makefile.unix. 1999-08-20 17:34:22 +00:00
mark.lin%eng.sun.com 1940e9a4d8 Don't need this anymore. It should get updated dynamically. 1999-08-18 23:24:20 +00:00
mark.lin%eng.sun.com a61f4da753 This should make sure nsSetupRegistry.cpp gets updated. 1999-08-18 23:22:27 +00:00
mark.lin%eng.sun.com 70465b0ed3 Fixed the bug where the page the user specifies from the command line wouldn't open. 1999-08-16 23:26:40 +00:00
mark.lin%eng.sun.com b19f2e524f Added stuff to LD_LIBRARY_PATH 1999-08-16 23:23:06 +00:00
mark.lin%eng.sun.com b3617b8a65 Oops, forgot to add this file. 1999-08-13 23:21:19 +00:00
edburns%acm.org e2280de93d THIS FILE IS NOT IN THE BUILD!
Added Scott Holmes's changes, replacing hard coded WIN32_D.OBJ with
$(DIST).
1999-08-13 23:09:21 +00:00
mark.lin%eng.sun.com 35be769048 Rearchitected the way Mozilla events are delivered in the Unix Motif port.
Events are now handled by a Java Thread.
1999-08-13 23:02:40 +00:00
mark.lin%eng.sun.com 56faaa17b3 Rearchitected the way the Mozilla event thread is run. I'm using
a Java Thread now instead to control Mozilla/GTK events.
1999-08-13 23:01:49 +00:00
mark.lin%eng.sun.com 284de736fe Merged in Kirk's changes. 1999-08-13 17:53:43 +00:00
mark.lin%eng.sun.com 3b89687e72 Should not be setting className to null if we get an exception. 1999-08-12 21:29:15 +00:00
mark.lin%eng.sun.com 2b13d35549 Added warning about gtk-config in Unix makefile 1999-08-12 19:37:23 +00:00
mark.lin%eng.sun.com 072623f46c Added more things to make it run on solaris. 1999-08-12 19:19:18 +00:00
mark.lin%eng.sun.com ffcb33c5aa Updated these files. 1999-08-12 19:08:39 +00:00
mark.lin%eng.sun.com 40667b1692 Solaris runem file 1999-08-12 18:56:45 +00:00
mark.lin%eng.sun.com 5000b5ca50 Added solaris makefile. 1999-08-12 18:56:09 +00:00
edburns%acm.org 76832ecb8b This fix is for http://bugzilla.mozilla.org/show_bug.cgi?id=5429.
This fix enables the Tasks->Java Console menu item to show the Java
Console provided by the JRE plugin if it is installed.

It also exposes nsIJVMManager as a full XPIDL citizen, with the progid
component://netscape/oji/jvm-mgr.  see modules/oji/public/nsIJVMManager.idl
for the methods that can be called.

Thanks to Trevor, John Bandauer, Brendan Eich and Robert Yang.
1999-08-12 01:56:18 +00:00
mark.lin%eng.sun.com 16ed431ace updated run script 1999-08-11 17:55:18 +00:00
mark.lin%eng.sun.com 60ff6cd136 Found a bug in the runem.unix script. 1999-08-11 00:12:59 +00:00
mark.lin%eng.sun.com 07c7783444 Updated event loop stuff so that it's easier to read.
Also made it compilable with latest mozilla source.
Haven't tested yet on windows though.
1999-08-10 23:54:38 +00:00
mark.lin%eng.sun.com f72125c88e oops, forgot to checkin these files. 1999-08-10 18:56:53 +00:00
mark.lin%eng.sun.com bcfd2c0e04 Oopps, forgot to checkin these files... 1999-08-10 18:55:01 +00:00
mark.lin%eng.sun.com e0a370e2d4 Added port to Linux. 1999-08-10 03:59:07 +00:00
edburns%acm.org dd929fddc0 Made changes to allow building on jdk1.1.7 or jdk1.2. Basically, accounted
for the presence or absence of a classes.zip file.
1999-07-30 22:00:20 +00:00
edburns%acm.org 64ef3a02bf Initial checkin of Java Util classes and the Java Wrapper to WebShell
Util docs:  http://www.mozilla.org/projects/blackwood/java-util/
Java Wrapper to WebShell docs: http://www.mozilla.org/projects/blackwood/webclient/
1999-07-30 01:03:12 +00:00