gecko-dev/java
ashuk%eng.sun.com ea2739771e Bug=78610
author=ashuk
ra=edburns

File modifed: java/webclient/src_moz/CBrowserContainer.cpp

This patch enables focus in a form field inside Webclient.

Index: CBrowserContainer.cpp
===================================================================
RCS file: /cvsroot/mozilla/java/webclient/src_moz/CBrowserContainer.cpp,v
retrieving revision 1.19
diff -u -r1.19 CBrowserContainer.cpp
--- CBrowserContainer.cpp       2001/05/10 20:47:06     1.19
+++ CBrowserContainer.cpp       2001/05/11 19:04:09
@@ -28,6 +28,7 @@
 #include "CBrowserContainer.h"
 #include "nsCWebBrowser.h"
 #include "nsIWebBrowser.h"
+#include "nsIWebBrowserFocus.h"
 #include "nsIRequest.h"
 #include "nsIDOMNamedNodeMap.h"
 #include "nsIDOMWindow.h"
@@ -619,6 +620,10 @@
 nsresult JNICALL
 CBrowserContainer::doEndDocumentLoad(nsIWebProgress *aWebProgress)
 {
+
+    nsCOMPtr<nsIWebBrowserFocus> focus(do_GetInterface(mInitContext->webBrowser));
+    focus->Activate();
+
     nsCOMPtr<nsIDOMWindow> domWin;

     if (nsnull != aWebProgress) {
2001-05-11 19:06:54 +00:00
..
build The following files are in this checkin. 2001-04-30 23:50:52 +00:00
config updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 02:47:15 +00:00
dom For some reason, javadom wouldn't compile today unless I changed 2001-05-10 20:46:09 +00:00
external We need to have this file to unjar the dom jar into dist/classes. 2001-04-03 02:03:07 +00:00
pluggable-jvm Learning documentation. 2001-05-10 22:24:36 +00:00
plugins *not part of the build* 2001-05-09 01:29:06 +00:00
util Merging JAVADEV_RTM_20001102 into Trunk 2001-04-02 21:18:06 +00:00
webclient Bug=78610 2001-05-11 19:06:54 +00:00
xpcom *not part of the build* 2001-05-10 20:31:26 +00:00
changelo
Makefile.in The following files are in this checkin. 2001-04-30 23:50:52 +00:00
Makefile.win The following files are in this checkin. 2001-04-30 23:50:52 +00:00
makefiles Changed waterfall to pluggable-jvm 2001-05-10 18:30:22 +00:00
README bug 40330 2000-06-04 22:16:36 +00:00
README.commercial Merged branch JAVADEV_PR3_20001002 into trunk. 2000-11-02 23:33:21 +00:00

Here lies the code that comprises the java enhancers to mozilla.

Authors: see the README files for each individual subdirectory

Requirements:

* JDK1.2 or greater (may work with lower versions, haven't checked).

* Successfully built MOZ_DEBUG=1 Mozilla M13 tree.

* Perl 5 perl.exe must be in your path

How To Build:

* make it so the directory in which this file resides is a child of your
  top level Mozilla M13 directory

* make sure the environment var JDKHOME is set to your jdk installation
  directory, ie SET JDKHOME=C:\jdk1.2.2

* type "nmake /f makefile.win all" and hope for the best

* this should compile the clasess into %MOZ_SRC%\dist\classes

Problems:

* clobber_all doesn't remove the .class files from dist\classes.  You
  have to do this manually.

* post to netscape.public.mozilla.java newsgroup

General notes:

* Please update the ChangeLog (changelo) files in the subdirectories when
  you make changes.