1999-08-06 04:28:53 +04:00
|
|
|
Index: nsWebShell.cpp
|
|
|
|
===================================================================
|
|
|
|
RCS file: /cvsroot/mozilla/webshell/src/nsWebShell.cpp,v
|
2000-06-23 18:14:23 +04:00
|
|
|
retrieving revision 1.467
|
|
|
|
diff -r1.467 nsWebShell.cpp
|
|
|
|
119a120,125
|
|
|
|
> #ifdef JAVA_DOM
|
|
|
|
> #include "nsIJavaDOM.h"
|
|
|
|
> static NS_DEFINE_IID(kJavaDOMCID, NS_JAVADOM_CID);
|
1999-08-06 04:28:53 +04:00
|
|
|
> static NS_DEFINE_IID(kIJavaDOMIID, NS_IJAVADOM_IID);
|
2000-06-23 18:14:23 +04:00
|
|
|
> #endif // JAVA_DOM
|
1999-08-06 04:28:53 +04:00
|
|
|
>
|
2000-06-23 18:14:23 +04:00
|
|
|
1579a1586,1597
|
|
|
|
> #ifdef JAVA_DOM
|
|
|
|
> nsresult jrv = NS_OK;
|
|
|
|
> NS_WITH_SERVICE(nsIDocumentLoaderObserver, javaDOM, kJavaDOMCID, &jrv);
|
|
|
|
> if (NS_FAILED(jrv) || !javaDOM) {
|
|
|
|
> fprintf(stderr,
|
|
|
|
> "nsWebShell::Init: GetService of JavaDOM failed (error %x)\n",
|
|
|
|
> jrv);
|
|
|
|
> } else {
|
|
|
|
> printf("\n webshell: added JAVADOM as observer...\n");
|
|
|
|
> mDocLoader->AddObserver(javaDOM);
|
|
|
|
> }
|
|
|
|
> #endif // JAVA_DOM
|