Compare commits

..

4 Commits

Author SHA1 Message Date
waterson%netscape.com
802dbc4a66 Test 2.
git-svn-id: svn://10.0.0.236/branches/TEST_BRANCH@95362 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-18 02:01:27 +00:00
waterson%netscape.com
0e716a7aaf Test 1.
git-svn-id: svn://10.0.0.236/branches/TEST_BRANCH@95361 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-18 02:00:53 +00:00
waterson%netscape.com
5990cba7bc Force revision on branch.
git-svn-id: svn://10.0.0.236/branches/TEST_BRANCH@95360 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-18 02:00:23 +00:00
(no author)
ddd19d9d94 This commit was manufactured by cvs2svn to create branch 'TEST_BRANCH'.
git-svn-id: svn://10.0.0.236/branches/TEST_BRANCH@13484 18797224-902f-48f8-a5cc-f745e15eee43
1998-10-26 21:26:21 +00:00
2 changed files with 148 additions and 105 deletions

View File

@@ -1,105 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
#ifndef __JavaDOMGlobals_h__
#define __JavaDOMGlobals_h__
#include "jni.h"
#include "prclist.h"
#include "nsError.h"
#ifdef ERROR
#undef ERROR
#endif
class nsISupports;
class nsIDOMNode;
struct PRLogModuleInfo;
struct PRLock;
class JavaDOMGlobals {
public:
static jclass attrClass;
static jclass cDataSectionClass;
static jclass commentClass;
static jclass documentClass;
static jclass documentFragmentClass;
static jclass documentTypeClass;
static jclass domImplementationClass;
static jclass elementClass;
static jclass entityClass;
static jclass entityReferenceClass;
static jclass namedNodeMapClass;
static jclass nodeClass;
static jclass nodeListClass;
static jclass notationClass;
static jclass processingInstructionClass;
static jclass textClass;
static jfieldID nodePtrFID;
static jfieldID nodeListPtrFID;
static jfieldID domImplementationPtrFID;
static jfieldID nodeTypeAttributeFID;
static jfieldID nodeTypeCDataSectionFID;
static jfieldID nodeTypeCommentFID;
static jfieldID nodeTypeDocumentFragmentFID;
static jfieldID nodeTypeDocumentFID;
static jfieldID nodeTypeDocumentTypeFID;
static jfieldID nodeTypeElementFID;
static jfieldID nodeTypeEntityFID;
static jfieldID nodeTypeEntityReferenceFID;
static jfieldID nodeTypeNotationFID;
static jfieldID nodeTypeProcessingInstructionFID;
static jfieldID nodeTypeTextFID;
static jclass domExceptionClass;
static jmethodID domExceptionInitMID;
static jclass runtimeExceptionClass;
static jmethodID runtimeExceptionInitMID;
static const char* const DOM_EXCEPTION_MESSAGE[];
typedef enum ExceptionType { EXCEPTION_RUNTIME,
EXCEPTION_DOM } ExceptionType;
static PRLogModuleInfo* log;
static PRCList garbage;
static PRLock* garbageLock;
static PRInt32 javaMaxInt;
static void Initialize(JNIEnv *env);
static void Destroy(JNIEnv *env);
static jobject CreateNodeSubtype(JNIEnv *env,
nsIDOMNode *node);
static void AddToGarbage(nsISupports* domObject);
static void TakeOutGarbage();
static void ThrowException(JNIEnv *env,
const char * message = NULL,
nsresult rv = NS_OK,
ExceptionType exceptionType = EXCEPTION_RUNTIME);
};
#endif /* __JavaDOMGlobals_h__ */

View File

@@ -0,0 +1,148 @@
<RDF:RDF>
<Topic id="root" name="Wired Digital" largeIcon="http://static.wired.com/rdf/objects/w_largeIcon.gif" smallIcon="http://static.wired.com/rdf/objects/w_smallIcon.gif">
<child rdf:href="http://www.hotwired.com" name="HotWired Home Page" largeIcon="http://static.wired.com/rdf/objects/w_largeIcon.gif" smallIcon="http://static.wired.com/rdf/objects/w_smallIcon.gif"/>
<child>
<Topic id="Webmonkey" name="Webmonkey" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif">
<child rdf:href="http://www.webmonkey.com" name="Webmonkey Frontdoor" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif">
<child>
<Topic id="Crash Courses" name="Crash Courses" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif">
<child>
<Topic id="Web Design" name="Web Design" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif">
<child rdf:href="http://www.hotwired.com/webmonkey/98/07/index0a.html?collection=design" name="Day 1: The Foundations of Web Design" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/98/07/index1a.html?collection=design" name="Day 2: Aesthetics for the Web" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/98/07/index3a.html?collection=design" name="Day 3: Beyond The Basics" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/html/97/05/index2a.html?collection=design" name="Web Design 101" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/97/45/index0a.html?collection=design" name="Building a Better Monkey" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/98/11/index0a.html?collection=design" name="Ecological Design Moves Online" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/tools/97/39/index0a.html?collection=design" name="Test Your Designs - on People!" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/98/13/index0a.html?collection=design" name="Big Minds on Web Design" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/98/01/index0a.html?collection=design" name="Be Your Own Design Team" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/tools/97/22/index0a.html?collection=design" name="BLINK vs. MARQUEE" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/tools/97/33/index0a.html?collection=design" name="The Future of Web Navigation" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/tools/97/10/index0a.html?collection=design" name="Cultural Context Revisted" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/html/96/53/index3a.html?collection=design" name="Degrading Pages" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/tools/97/04/index0a.html?collection=design" name="Design that Communicates Your Message" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/tools/96/41/index0a.html?collection=design" name="Hypertext: The Web's Unsung Hero" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/tools/97/30/index0a.html?collection=design" name="Why Channels Suck"/>
</Topic>
</child>
<child>
<Topic id="Javascript" name="Javascript" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif">
<child rdf:href="http://www.hotwired.com/webmonkey/98/03/index0a.html?collection=javascript" name="Thau's JavaScript Tutorial: Day 1" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/98/03/index2a.html?collection=javascript" name="Thau's JavaScript Tutorial: Day 2" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/98/03/index3a.html?collection=javascript" name="Thau's JavaScript Tutorial: Day 3" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/98/04/index1a.html?collection=javascript" name="Thau's JavaScript Tutorial: Day 4" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/98/04/index3a.html?collection=javascript" name="Thau's JavaScript Tutorial: Day 5 " smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
</Topic>
</child>
</Topic>
</child>
<child>
<Topic id="Dynamic HTML" name="Dynamic HTML" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif">
<child rdf:href="http://www.hotwired.com/webmonkey/98/10/index0a.html?collection=dynamic_html" name="Taylor's Dynamic HTML Tutorial - Day 1" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/98/10/index1a.html?collection=dynamic_html" name="Taylor's Dynamic HTML Tutorial - Day 2" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/98/10/index2a.html?collection=dynamic_html" name="Taylor's Dynamic HTML Tutorial - Day 3" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/98/10/index3a.html?collection=dynamic_html" name="Taylor's Dynamic HTML Tutorial - Day 4" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/98/10/index4a.html?collection=dynamic_html" name="Taylor's Dynamic HTML Tutorial - Day 5" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
</Topic>
</child>
<child>
<Topic id="HTML" name="HTML" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif">
<child rdf:href="http://www.hotwired.com/webmonkey/teachingtool/" name="Webmonkey: HTML Tutorial" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/tools/97/17/index0a.html?collection=html" name="The History of HTML " smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/tools/97/32/index0a.html?collection=html" name="What You Should Know about HTML 4.0" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/tools/97/06/index0a.html?collection=html" name="HTML for Smart People" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/geektalk/97/11/index4a.html?collection=html" name="Accessible HTML" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/tools/97/07/index0a.html?collection=html" name="Getting It Right" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/geektalk/97/36/index3a.html?collection=html" name="Symbols, Accents, and Funky Characters " smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/html/97/06/index2a.html?collection=html" name="Form(s) over Function" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child>
<Topic id="Frames" name="Frames" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif">
<child rdf:href="http://www.hotwired.com/webmonkey/html/96/31/index3a.html?collection=html" name="Frames Are A Picnic (Metaphorically Speaking)" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/geektalk/97/24/index3a.html?collection=html" name="Basic Frames Rehash" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/geektalk/97/02/index4a.html?collection=html" name="Changing Two Frames at Once" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/html/96/36/index2a.html?collection=html" name="Let's Talk Targeting" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/html/96/33/index2a.html?collection=html" name="Don't Forget the Non-Frames Folks" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
</Topic>
</child>
<child>
<Topic id="Tables" name="Tables" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif">
<child rdf:href="http://www.hotwired.com/webmonkey/html/96/47/index3a.html?collection=html" name="The Basic, Basic Table" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/html/96/48/index2a.html?collection=html" name="The Not-So-Basic Table" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/html/96/38/index2a.html?collection=html" name="The Well-Dressed Table" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
</Topic>
</child>
</Topic>
</child>
<child>
<Topic id="XML" name="XML" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif">
<child rdf:href="http://www.hotwired.com/webmonkey/tools/97/27/index0a.html?collection=html" name="XML: Metadata for the Rest of Us (Part 1)" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/tools/97/28/index0a.html?collection=html" name="XML: Roll Your Own Markup Language (Part 2)" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/tools/97/43/index0a.html?collection=html" name="Acronyms You Can't Live Without" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/97/48/index0a.html?collection=design" name="Smart Web Publishing into the Future" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
</Topic>
</child>
<child>
<Topic id="Stylesheets" name="Stylesheets" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif">
<child rdf:href="http://www.hotwired.com/webmonkey/html/96/34/index2a.html?collection=stylesheets" name="Inject some style (sheets) into your HTML" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/tools/96/33/index0a.html?collection=stylesheets" name="The Wonderful World of Stylesheets" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/tools/97/35/index0a.html?collection=stylesheets" name="Stylesheets - the next generation" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/demo/96/43/index4a.html?collection=stylesheets" name="Where are All the GIFs?" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/html/97/25/index2a.html?collection=stylesheets" name="Positioning with Stylesheets " smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/tools/97/34/index0a.html?collection=stylesheets" name="CSS Filters and the Future" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/html/97/33/index1a.html?collection=stylesheets" name="Image Filtering with CSS" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/html/97/38/index1a.html?collection=stylesheets" name="Captain CURSOR!!!" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/tools/97/13/index0a.html?collection=stylesheets" name="Time for stylesheets? Not quite yet." smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
</Topic>
</child>
</child>
<child rdf:href="http://www.hotwired.com/webmonkey/mail/mail.html" name="Subscribe to Webmonkey!" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/tuneup/" name="Browser Tuneup" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
<child rdf:href="http://www.hotwired.com/webmonkey/hideout/" name="About Webmonkey" smallIcon="http://static.wired.com/rdf/objects/webmonkey_small.gif"/>
</Topic>
</child>
<child>
<Topic name="Wired News" smallIcon="http://static.wired.com/rdf/objects/wirednews_small.gif">
<child rdf:href="http://www.wired.com/news/" name="Wired News Home Page" smallIcon="http://static.wired.com/rdf/objects/wirednews_small.gif"/>
<child rdf:href="http://www.wired.com/news/business/" name="Business" smallIcon="http://static.wired.com/rdf/objects/finance_small.gif"/>
<child rdf:href="http://www.wired.com/news/culture/" name="Culture" smallIcon="http://static.wired.com/rdf/objects/culture_small.gif"/>
<child rdf:href="http://www.wired.com/news/technology/" name="Technology" smallIcon="http://static.wired.com/rdf/objects/tech_small.gif"/>
<child rdf:href="http://www.wired.com/news/politics/" name="Politics" smallIcon="http://static.wired.com/rdf/objects/politics_small.gif"/>
<child rdf:href="http://www.wired.com/news/worldnews/" name="Global News" smallIcon="http://static.wired.com/rdf/objects/wirednews_small.gif"/>
</Topic>
</child>
<child>
<Topic name="HotBot" smallIcon="http://static.wired.com/rdf/objects/hotbot_small.gif">
<child rdf:href="http://www.hotbot.com/" name="HotBot" smallIcon="http://static.wired.com/rdf/objects/hotbot_small.gif"/>
<child rdf:href="http://www.hotbot.com/super.html" name="SuperSearch" smallIcon="http://static.wired.com/rdf/objects/hotbot_small.gif"/>
<child>
<Topic id="Other Search Tools" name="Other Search Tools" smallIcon="http://static.wired.com/rdf/objects/hotbot_small.gif">
<child rdf:href="http://www.hotbot.com/usenet/" name="Usenet" smallIcon="http://static.wired.com/rdf/objects/hotbot_small.gif"/>
<child rdf:href="http://www.newsbot.com/" name="Top News Sites" smallIcon="http://static.wired.com/rdf/objects/hotbot_small.gif"/>
<child rdf:href="http://www.hotbot.com/partners/business.html" name="Businesses" smallIcon="http://static.wired.com/rdf/objects/hotbot_small.gif"/>
<child rdf:href="http://www.hotbot.com/partners/people.html" name="People" smallIcon="http://static.wired.com/rdf/objects/hotbot_small.gif"/>
<child rdf:href="http://www.hotbot.com/partners/email.html" name="Email Adresses" smallIcon="http://static.wired.com/rdf/objects/hotbot_small.gif"/>
<child rdf:href="http://www.classifieds2000.com/cgi-cls/display.exe?hotbot+class" name="Classifieds" smallIcon="http://static.wired.com/rdf/objects/hotbot_small.gif"/>
<child rdf:href="http://www.hotbot.com/partners/websitez.html" name="Domain Names" smallIcon="http://static.wired.com/rdf/objects/hotbot_small.gif"/>
<child rdf:href="http://stocks.hotbot.com/" name="Stocks" smallIcon="http://static.wired.com/rdf/objects/hotbot_small.gif"/>
<child rdf:href="http://www.hotbot.com/partners/filez.html" name="ShareWare" smallIcon="http://static.wired.com/rdf/objects/hotbot_small.gif"/>
</Topic>
</child>
</Topic>
</child>
<child>
<Topic name="Wired Magazine" smallIcon="http://static.wired.com/rdf/objects/wiredmagazine_small.gif">
<child rdf:href="http://www.wired.com/wired/" name="Wired Magazine Archives" smallIcon="http://static.wired.com/rdf/objects/wiredmagazine_small.gif"/>
<child rdf:href="http://www.wired.com/wired/subscribe/" name="Subscribe to Wired Magazine" smallIcon="http://static.wired.com/rdf/objects/wiredmagazine_small.gif"/>
</Topic>
</child>
<child rdf:href="http://www.livewired.com/" name="LiveWired" smallIcon="http://static.wired.com/rdf/objects/livewired_small.gif"/>