From 26651ac87d189916e32f271b0015a28411dfeae0 Mon Sep 17 00:00:00 2001 From: vidur Date: Fri, 3 Jul 1998 00:48:44 +0000 Subject: [PATCH] Moved core DOM interfaces to coreDom directory --- dom/public/idl/AttributeList.idl | 9 ------ dom/public/idl/Comment.idl | 4 --- dom/public/idl/DOM.idl | 4 --- dom/public/idl/Document.idl | 17 ------------ dom/public/idl/DocumentContext.idl | 3 -- dom/public/idl/DocumentFragment.idl | 3 -- dom/public/idl/Element.idl | 14 ---------- dom/public/idl/Node.idl | 25 ----------------- dom/public/idl/NodeIterator.idl | 9 ------ dom/public/idl/PI.idl | 4 --- dom/public/idl/Text.idl | 14 ---------- dom/public/idl/TreeIterator.idl | 11 -------- dom/public/idl/{ => coreDom}/Attribute.idl | 0 dom/public/idl/makefile.win | 32 ++++++++++------------ 14 files changed, 14 insertions(+), 135 deletions(-) delete mode 100644 dom/public/idl/AttributeList.idl delete mode 100644 dom/public/idl/Comment.idl delete mode 100644 dom/public/idl/DOM.idl delete mode 100644 dom/public/idl/Document.idl delete mode 100644 dom/public/idl/DocumentContext.idl delete mode 100644 dom/public/idl/DocumentFragment.idl delete mode 100644 dom/public/idl/Element.idl delete mode 100644 dom/public/idl/Node.idl delete mode 100644 dom/public/idl/NodeIterator.idl delete mode 100644 dom/public/idl/PI.idl delete mode 100644 dom/public/idl/Text.idl delete mode 100644 dom/public/idl/TreeIterator.idl rename dom/public/idl/{ => coreDom}/Attribute.idl (100%) diff --git a/dom/public/idl/AttributeList.idl b/dom/public/idl/AttributeList.idl deleted file mode 100644 index 0a7c287389f3..000000000000 --- a/dom/public/idl/AttributeList.idl +++ /dev/null @@ -1,9 +0,0 @@ - interface AttributeList { - Attribute getAttribute(in wstring attrName); - void setAttribute(in Attribute attr); - Attribute remove(in wstring attrName) interface NoSuchAttributeException {}; - - Attribute item(in unsigned long index) interface NoSuchAttributeException {}; - - unsigned long getLength(); - }; diff --git a/dom/public/idl/Comment.idl b/dom/public/idl/Comment.idl deleted file mode 100644 index 8461cc73873f..000000000000 --- a/dom/public/idl/Comment.idl +++ /dev/null @@ -1,4 +0,0 @@ - interface Comment : Node { - attribute wstring data; - }; - diff --git a/dom/public/idl/DOM.idl b/dom/public/idl/DOM.idl deleted file mode 100644 index 881f552e3695..000000000000 --- a/dom/public/idl/DOM.idl +++ /dev/null @@ -1,4 +0,0 @@ -interface DOM { - Document createDocument(in wstring type); - boolean hasFeature(in wstring feature); - }; diff --git a/dom/public/idl/Document.idl b/dom/public/idl/Document.idl deleted file mode 100644 index 978b2d1d536e..000000000000 --- a/dom/public/idl/Document.idl +++ /dev/null @@ -1,17 +0,0 @@ - interface Document : DocumentFragment { - attribute Node documentType; - attribute Element documentElement; - attribute DocumentContext documentContext; - DocumentContext createDocumentContext(); - Element createElement(in wstring tagName, - in AttributeList attributes); - Text createTextNode(in wstring data); - Comment createComment(in wstring data); - PI createPI(in wstring name, - in wstring data); - Attribute createAttribute(in wstring name, - in Node value); - AttributeList createAttributeList(); - TreeIterator createTreeIterator(in Node node); - NodeIterator getElementsByTagName(in wstring tagname); - }; diff --git a/dom/public/idl/DocumentContext.idl b/dom/public/idl/DocumentContext.idl deleted file mode 100644 index 1f14f9e17c22..000000000000 --- a/dom/public/idl/DocumentContext.idl +++ /dev/null @@ -1,3 +0,0 @@ - interface DocumentContext { - attribute Document document; - }; diff --git a/dom/public/idl/DocumentFragment.idl b/dom/public/idl/DocumentFragment.idl deleted file mode 100644 index 9a6e76176bda..000000000000 --- a/dom/public/idl/DocumentFragment.idl +++ /dev/null @@ -1,3 +0,0 @@ - interface DocumentFragment : Node { - attribute Document masterDoc; - }; diff --git a/dom/public/idl/Element.idl b/dom/public/idl/Element.idl deleted file mode 100644 index 759afb574bbe..000000000000 --- a/dom/public/idl/Element.idl +++ /dev/null @@ -1,14 +0,0 @@ - interface Element : Node { - wstring getTagName(); - AttributeList getAttributes(); - wstring getDOMAttribute(in wstring name); - void setDOMAttribute(in string name, - in string value); - void removeAttribute(in wstring name); - Attribute getAttributeNode(in wstring name); - void setAttributeNode(in Attribute newAttr); - void removeAttributeNode(in Attribute oldAttr); - NodeIterator getElementsByTagName(in wstring tagname); - void normalize(); - }; - diff --git a/dom/public/idl/Node.idl b/dom/public/idl/Node.idl deleted file mode 100644 index a33f79569d5f..000000000000 --- a/dom/public/idl/Node.idl +++ /dev/null @@ -1,25 +0,0 @@ - interface Node { - // NodeType - const int DOCUMENT = 1; - const int ELEMENT = 2; - const int ATTRIBUTE = 3; - const int PI = 4; - const int COMMENT = 5; - const int TEXT = 6; - - int getNodeType(); - Node getParentNode(); - NodeIterator getChildNodes(); - boolean hasChildNodes(); - Node getFirstChild(); - Node getPreviousSibling(); - Node getNextSibling(); - void insertBefore(in Node newChild, - in Node refChild) interface NotMyChildException {}; - - void replaceChild(in Node newChild, - in Node oldChild) interface NotMyChildException {}; - - void removeChild(in Node oldChild) interface NotMyChildException {}; - - }; diff --git a/dom/public/idl/NodeIterator.idl b/dom/public/idl/NodeIterator.idl deleted file mode 100644 index b6edbfdd76f6..000000000000 --- a/dom/public/idl/NodeIterator.idl +++ /dev/null @@ -1,9 +0,0 @@ - interface NodeIterator { - unsigned long getLength(); - Node getCurrentNode(); - Node getNextNode(); - Node getPreviousNode(); - Node toFirst(); - Node toLast(); - Node moveTo(in int n); - }; diff --git a/dom/public/idl/PI.idl b/dom/public/idl/PI.idl deleted file mode 100644 index 23a59b2bd3ec..000000000000 --- a/dom/public/idl/PI.idl +++ /dev/null @@ -1,4 +0,0 @@ - interface PI : Node { - attribute wstring name; - attribute wstring data; - }; diff --git a/dom/public/idl/Text.idl b/dom/public/idl/Text.idl deleted file mode 100644 index 0b1a8463fcec..000000000000 --- a/dom/public/idl/Text.idl +++ /dev/null @@ -1,14 +0,0 @@ - interface Text : Node { - attribute wstring data; - void append(in wstring data); - void insert(in int offset, - in wstring data); - void delete(in int offset, - in int count); - void replace(in int offset, - in int count, - in wstring data); - void splice(in Element element, - in int offset, - in int count); - }; diff --git a/dom/public/idl/TreeIterator.idl b/dom/public/idl/TreeIterator.idl deleted file mode 100644 index bd73b6e34ee2..000000000000 --- a/dom/public/idl/TreeIterator.idl +++ /dev/null @@ -1,11 +0,0 @@ - interface TreeIterator : NodeIterator { - unsigned long numChildren(); - unsigned long numPreviousSiblings(); - unsigned long numNextSiblings(); - Node toParent(); - Node toPreviousSibling(); - Node toNextSibling(); - Node toFirstChild(); - Node toLastChild(); - Node toNthChild(in int n) interface NoSuchNodeException {}; - }; diff --git a/dom/public/idl/Attribute.idl b/dom/public/idl/coreDom/Attribute.idl similarity index 100% rename from dom/public/idl/Attribute.idl rename to dom/public/idl/coreDom/Attribute.idl diff --git a/dom/public/idl/makefile.win b/dom/public/idl/makefile.win index 8b1c549c3db4..c8f8430370ba 100644 --- a/dom/public/idl/makefile.win +++ b/dom/public/idl/makefile.win @@ -18,26 +18,17 @@ DEPTH=..\..\.. IGNORE_MANIFEST=1 +DIRS=coreDom MODULE=raptor IDLSRCS = \ - Attribute.idl \ - AttributeList.idl \ - Comment.idl \ - DOM.idl \ - Document.idl \ - DocumentContext.idl \ - DocumentFragment.idl \ - Element.idl \ - Navigator.idl \ - Node.idl \ - NodeIterator.idl \ - PI.idl \ - Text.idl \ - TreeIterator.idl + Navigator.idl -XPCOM_DESTDIR=$(DEPTH)\dom\public\coreDom +GLOBAL_IDLSRC = Window.idl + +XPCOM_DESTDIR=$(DEPTH)\dom\public JSSTUB_DESTDIR=$(DEPTH)\dom\src +IIDDIRS=$(DIRS: =/genx )/$(GENXDIR) $(GENXDIR) GENXDIR=genx GENJSDIR=genjs @@ -56,12 +47,17 @@ GENIID=$(DIST)\bin\geniid.pl export:: $(GENXDIR) $(GENJSDIR) $(IDLSRCS) @echo +++ make: generating xpcom headers $(IDLC) -d $(GENXDIR) -x $(IDLSRCS) - @echo +++ make: generating interface ids - $(PERL) $(GENIID) $(GENXDIR) + $(IDLC) -d $(GENXDIR) -g -x $(GLOBAL_IDLSRC) @echo +++ make: generating JavaScript stubs $(IDLC) -d $(GENJSDIR) -j $(IDLSRCS) + $(IDLC) -d $(GENJSDIR) -g -j $(GLOBAL_IDLSRC) + @echo +++ make: generating interface ids + @echo +++ make: directories $(IIDDIRS) + $(PERL) $(GENIID) $(IIDDIRS) install:: - for %g in ($(IDLSRCS:.idl=.h)) do $(MAKE_INSTALL:/=\) $(GENXDIR)\nsIDOM%g $(XPCOM_DESTDIR) + for %g in ($(DIRS)) do $(MAKE_INSTALL:/=\) %g\$(GENXDIR)\*.h $(XPCOM_DESTDIR)\%g + $(MAKE_INSTALL:/=\) $(GENXDIR)\*.h $(XPCOM_DESTDIR) for %g in ($(IDLSRCS:.idl=.cpp)) do $(MAKE_INSTALL:/=\) $(GENJSDIR)\nsJS%g $(JSSTUB_DESTDIR) + $(MAKE_INSTALL:/=\) $(GENJSDIR)\nsJS$(GLOBAL_IDLSRC:.idl=.cpp) $(JSSTUB_DESTDIR)