зеркало из https://github.com/mozilla/gecko-dev.git
Moved core DOM interfaces to coreDom directory
This commit is contained in:
Родитель
6fbd7cf59d
Коммит
26651ac87d
|
@ -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();
|
||||
};
|
|
@ -1,4 +0,0 @@
|
|||
interface Comment : Node {
|
||||
attribute wstring data;
|
||||
};
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
interface DOM {
|
||||
Document createDocument(in wstring type);
|
||||
boolean hasFeature(in wstring feature);
|
||||
};
|
|
@ -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);
|
||||
};
|
|
@ -1,3 +0,0 @@
|
|||
interface DocumentContext {
|
||||
attribute Document document;
|
||||
};
|
|
@ -1,3 +0,0 @@
|
|||
interface DocumentFragment : Node {
|
||||
attribute Document masterDoc;
|
||||
};
|
|
@ -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();
|
||||
};
|
||||
|
|
@ -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 {};
|
||||
|
||||
};
|
|
@ -1,9 +0,0 @@
|
|||
interface NodeIterator {
|
||||
unsigned long getLength();
|
||||
Node getCurrentNode();
|
||||
Node getNextNode();
|
||||
Node getPreviousNode();
|
||||
Node toFirst();
|
||||
Node toLast();
|
||||
Node moveTo(in int n);
|
||||
};
|
|
@ -1,4 +0,0 @@
|
|||
interface PI : Node {
|
||||
attribute wstring name;
|
||||
attribute wstring data;
|
||||
};
|
|
@ -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);
|
||||
};
|
|
@ -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 {};
|
||||
};
|
|
@ -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)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче