Commit e804476d authored by rjw's avatar rjw

Stubs for DOM level 2 core API.

        * DOM.subproj/WebDOMDocument.h: Added.
        * DOM.subproj/WebDOMDocument.m: Added.
        * DOM.subproj/WebDOMElement.h: Added.
        * DOM.subproj/WebDOMElement.m: Added.
        * DOM.subproj/WebDOMNamedNodeMap.h: Added.
        * DOM.subproj/WebDOMNamedNodeMap.m: Added.
        * DOM.subproj/WebDOMNode.h: Added.
        * DOM.subproj/WebDOMNode.m: Added.
        * WebKit.pbproj/project.pbxproj:

        * WebView.subproj/WebHTMLViewPrivate.m: tweak.

        Removed import of header that was removed earlier.

        * BookmarksController.m:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2255 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 55b88c94
2002-10-04 Richard Williamson <rjw@apple.com>
Stubs for DOM level 2 core API.
* DOM.subproj/WebDOMDocument.h: Added.
* DOM.subproj/WebDOMDocument.m: Added.
* DOM.subproj/WebDOMElement.h: Added.
* DOM.subproj/WebDOMElement.m: Added.
* DOM.subproj/WebDOMNamedNodeMap.h: Added.
* DOM.subproj/WebDOMNamedNodeMap.m: Added.
* DOM.subproj/WebDOMNode.h: Added.
* DOM.subproj/WebDOMNode.m: Added.
* WebKit.pbproj/project.pbxproj:
* WebView.subproj/WebHTMLViewPrivate.m: tweak.
2002-10-04 Darin Adler <darin@apple.com>
* English.lproj/StringsNotToBeLocalized.txt: Add the last few exceptions.
......
2002-10-04 Richard Williamson <rjw@apple.com>
Stubs for DOM level 2 core API.
* DOM.subproj/WebDOMDocument.h: Added.
* DOM.subproj/WebDOMDocument.m: Added.
* DOM.subproj/WebDOMElement.h: Added.
* DOM.subproj/WebDOMElement.m: Added.
* DOM.subproj/WebDOMNamedNodeMap.h: Added.
* DOM.subproj/WebDOMNamedNodeMap.m: Added.
* DOM.subproj/WebDOMNode.h: Added.
* DOM.subproj/WebDOMNode.m: Added.
* WebKit.pbproj/project.pbxproj:
* WebView.subproj/WebHTMLViewPrivate.m: tweak.
2002-10-04 Darin Adler <darin@apple.com>
* English.lproj/StringsNotToBeLocalized.txt: Add the last few exceptions.
......
/*
WebDOMDocument.h
Copyright 2002, Apple, Inc. All rights reserved.
*/
#import <Foundation/Foundation.h>
#import <WebKit/WebDOMNode.h>
@protocol WebDOMAttr;
@protocol WebDOMComment;
@protocol WebDOMCDATASection;
@protocol WebDOMDocument;
@protocol WebDOMElement;
@protocol WebDOMEntityReference;
@protocol WebDOMNamedNodeMap;
@protocol WebDOMNode;
@protocol WebDOMNodeList;
@protocol WebDOMProcessingInstruction;
@protocol WebDOMText;
@protocol WebDOMDocumentType <WebDOMNode>
- (NSString *)name;
- (id<WebDOMNamedNodeMap>)entities;
- (id<WebDOMNamedNodeMap>)notations;
- (NSString *)publicId;
- (NSString *)systemId;
- (NSString *)internalSubset;
@end
@protocol WebDOMDocumentFragment <WebDOMNode>
@end
@protocol WebDOMImplementation
- (BOOL)hasFeature: (NSString *)feature : (NSString *)version;
- (id<WebDOMDocumentType>)createDocumentType: (NSString *)qualifiedName
:(NSString *)publicId
:(NSString *)systemId;
- (id<WebDOMDocument>)createDocument: (NSString *)namespaceURI
: (NSString *)qualifiedName
: (id<WebDOMDocumentType>)doctype;
@end
@protocol WebDOMDocument <WebDOMNode>
- (id<WebDOMDocumentType>)doctype;
- (id<WebDOMDocument>)implementation;
- (id<WebDOMDocument>)documentElement;
- (id<WebDOMDocument>)createElement:(NSString *)tagName;
- (id<WebDOMElement>)createElementNS:(NSString *)namespaceURI :(NSString *)qualifiedName;
- (id<WebDOMDocumentFragment>)createDocumentFragment;
- (id<WebDOMText>)createTextNode:(NSString *)data;
- (id<WebDOMComment>)createComment:(NSString *)data;
- (id<WebDOMCDATASection>)createCDATASection:(NSString *)data;
- (id<WebDOMProcessingInstruction>)createProcessingInstruction:(NSString *)target :(NSString *)data;
- (id<WebDOMAttr>)createAttribute:(NSString *)name;
- (id<WebDOMAttr>)createAttributeNS:(NSString *)namespaceURI :(NSString *)qualifiedName;
- (id<WebDOMEntityReference>)createEntityReference:(NSString *)name;
- (id<WebDOMElement>)getElementById:(NSString *)elementId;
- (id<WebDOMEntityReference>)getElementsByTagName:(NSString *)tagname;
- (id<WebDOMEntityReference>)getElementsByTagNameNS:(NSString *)namespaceURI :(NSString *)localName;
- (id<WebDOMEntityReference>)importNode:(id<WebDOMNode>)importedNode :(BOOL)deep;
@end
/*
WebDOMDocument.m
Copyright 2002, Apple, Inc. All rights reserved.
*/
#import <WebKit/WebDOMDocument.h>
/*
WebDOMElement.m
Copyright 2002, Apple, Inc. All rights reserved.
*/
#import <Foundation/Foundation.h>
@protocol WebDOMElement;
@protocol WebDOMNode;
@protocol WebDOMNodeList;
@protocol WebDOMAttr <NSObject>
- (NSString *)name;
- (BOOL)specified;
- (NSString *)value;
- (void)setValue:(NSString *)value;
- (id<WebDOMElement>)ownerElement;
@end
@protocol WebDOMCharacterData <NSObject>
- (NSString *)data;
- (void)setData: (NSString *)data;
- (unsigned long)length;
- (NSString *)substringData: (unsigned long)offset :(unsigned long)count;
- (void)appendData:(NSString *)arg;
- (void)insertData:(unsigned long)offset :(NSString *)arg;
- (void)deleteData:(unsigned long)offset :(unsigned long) count;
- (void)replaceData:(unsigned long)offset :(unsigned long)count :(NSString *)arg;
@end
@protocol WebDOMComment <WebDOMCharacterData>
@end
@protocol WebDOMText <WebDOMCharacterData>
- (id<WebDOMText>)splitText: (unsigned long)offset;
@end
@protocol WebDOMCDATASection <WebDOMText>
@end
@protocol WebDOMProcessingInstruction <WebDOMNode>
- (NSString *)target;
- (NSString *)data;
- (void)setData:(NSString *)data;
@end
@protocol WebDOMEntityReference <WebDOMNode>
@end
@protocol WebDOMElement <NSObject>
- (NSString *)tagName;
- (NSString *)getAttribute: (NSString *)name;
- (void)setAttribute:(NSString *)name :(NSString *)value;
- (void)removeAttribute:(NSString *)name;
- (id<WebDOMAttr>)getAttributeNodeNamed:(NSString *)name;
- (id<WebDOMAttr>)setAttributeNode:(id<WebDOMAttr>)newAttr;
- (id<WebDOMAttr>)removeAttributeNode:(id<WebDOMAttr>)oldAttr;
- (id<WebDOMNodeList>)getElementsByTagName:(NSString *)name;
- (id<WebDOMNodeList>)getElementsByTagNameNS:(NSString *)namespaceURI :(NSString *)localName;
- (NSString *)getAttributeNS:(NSString *)namespaceURI :(NSString *)localName;
- (void)setAttributeNS:(NSString *)namespaceURI :(NSString *)qualifiedName :(NSString *)value;
- (void)removeAttributeNS:(NSString *)namespaceURI :(NSString *)localName;
- (id<WebDOMAttr>)getAttributeNodeNS:(NSString *)namespaceURI :(NSString *)localName;
- (id<WebDOMAttr>)setAttributeNodeNS:(id<WebDOMAttr>)newAttr;
- (BOOL)hasAttribute: (NSString *)name;
- (BOOL)hasAttributeNS:(NSString *)namespaceURI :(NSString *)localName;
@end
/*
WebDOMElement.h
Copyright 2002, Apple, Inc. All rights reserved.
*/
#import <WebKit/WebDOMElement.h>
/*
WebDOMNamedNodeMap.h
Copyright 2002, Apple, Inc. All rights reserved.
*/
#import <Foundation/Foundation.h>
@protocol WebDOMNode;
@protocol WebDOMNamedNodeMap <NSObject>
- (unsigned long) length;
- (id<WebDOMNode>)getNamedItem:(NSString *)name;
- (id<WebDOMNode>)setNamedItem:(id<WebDOMNode>)arg;
- (id<WebDOMNode>)removeNamedItem:(NSString *)name;
- (id<WebDOMNode>)item:(unsigned long) index;
- (id<WebDOMNode>)getNamedItemNS:(NSString *)namespaceURI :(NSString *)localName;
- (id<WebDOMNode>)setNamedItemNS:(id<WebDOMNode>)arg;
- (id<WebDOMNode>)removeNamedItemNS:(NSString *)namespaceURI :(NSString *)localName;
@end
@protocol WebDOMNodeList <NSObject>
- (unsigned long)length;
- (id<WebDOMNode>)item: (unsigned long)index;
@end
/*
WebDOMNamedNodeMap.m
Copyright 2002, Apple, Inc. All rights reserved.
*/
#import <WebKit/WebDOMNamedNodeMap.h>
/*
WebDOMNode.h
Copyright 2002, Apple, Inc. All rights reserved.
*/
#import <Foundation/Foundation.h>
@protocol WebDOMDocument;
@protocol WebDOMNamedNodeMap;
@protocol WebDOMNodeList;
enum WebNodeType {
ELEMENT_NODE = 1,
ATTRIBUTE_NODE = 2,
TEXT_NODE = 3,
CDATA_SECTION_NODE = 4,
ENTITY_REFERENCE_NODE = 5,
ENTITY_NODE = 6,
PROCESSING_INSTRUCTION_NODE = 7,
COMMENT_NODE = 8,
DOCUMENT_NODE = 9,
DOCUMENT_TYPE_NODE = 10,
DOCUMENT_FRAGMENT_NODE = 11,
NOTATION_NODE = 12
};
@protocol WebDOMNode <NSObject>
- (NSString *)nodeName;
- (NSString *)nodeValue;
- (void)setNodeValue: (NSString *)string;
- (unsigned short)nodeType;
- (id<WebDOMNode>)parentNode;
- (id<WebDOMNodeList>)childNodes;
- (id<WebDOMNode>)firstChild;
- (id<WebDOMNode>)lastChild;
- (id<WebDOMNode>) previousSibling;
- (id<WebDOMNode>)nextSibling;
- (id<WebDOMNamedNodeMap>)attributes;
- (id<WebDOMDocument>)ownerDocument;
- (id<WebDOMNode>)insert:(id<WebDOMDocument>)newChild before:(id<WebDOMDocument>)refChild;
- (id<WebDOMNode>)replace:(id<WebDOMDocument>)newChild child:(id<WebDOMDocument>)oldChild;
- (id<WebDOMNode>)removeChild:(id<WebDOMDocument>)oldChild;
- (id<WebDOMNode>)appendChild:(id<WebDOMDocument>)newChild;
- (BOOL)hasChildNodes;
- (id<WebDOMNode>)cloneNode: (BOOL) deep;
- (void)normalize;
- (BOOL)isSupported:(NSString *)feature : (NSString *)version;
- (NSString *)namespaceURIt;
- (NSString *)prefix;
- (void)setPrefix: (NSString *)prefix;
- (NSString *)localName;
- (BOOL)hasAttributes;
@end
/*
WebDOMNode.m
Copyright 2002, Apple, Inc. All rights reserved.
*/
#import <WebKit/WebDOMNode.h>
......@@ -72,7 +72,6 @@
F58C8A07025BD3BC018635CA,
F531DDFF02F0C36F018635CA,
);
hasScannedForEncodings = 1;
isa = PBXProject;
knownRegions = (
English,
......@@ -92,6 +91,7 @@
};
0867D691FE84028FC02AAC07 = {
children = (
F57D194A034E732C01A80180,
9C7CABBB0190A37C0ECA16EA,
F5B36B400281DE87018635CB,
F8CA15B4029A399401000122,
......@@ -279,6 +279,10 @@
84D4BFFD0348EF9D00CA2ACA,
513D422F034CF55A00CA2ACD,
F57FB8C6034E180101A80180,
F57D1953034E734901A80180,
F57D1955034E734901A80180,
F57D1957034E734901A80180,
F57D1959034E734901A80180,
);
isa = PBXHeadersBuildPhase;
runOnlyForDeploymentPostprocessing = 0;
......@@ -370,6 +374,10 @@
84D4BFFA0348EF7600CA2ACA,
84D4BFFE0348EF9D00CA2ACA,
F57FB8C7034E180101A80180,
F57D1954034E734901A80180,
F57D1956034E734901A80180,
F57D1958034E734901A80180,
F57D195A034E734901A80180,
);
isa = PBXSourcesBuildPhase;
runOnlyForDeploymentPostprocessing = 0;
......@@ -2108,6 +2116,117 @@
settings = {
};
};
F57D194A034E732C01A80180 = {
children = (
F57D194B034E734901A80180,
F57D194C034E734901A80180,
F57D194D034E734901A80180,
F57D194E034E734901A80180,
F57D194F034E734901A80180,
F57D1950034E734901A80180,
F57D1951034E734901A80180,
F57D1952034E734901A80180,
);
isa = PBXGroup;
name = DOM;
refType = 4;
};
F57D194B034E734901A80180 = {
isa = PBXFileReference;
name = WebDOMDocument.h;
path = DOM.subproj/WebDOMDocument.h;
refType = 2;
};
F57D194C034E734901A80180 = {
isa = PBXFileReference;
name = WebDOMDocument.m;
path = DOM.subproj/WebDOMDocument.m;
refType = 2;
};
F57D194D034E734901A80180 = {
isa = PBXFileReference;
name = WebDOMElement.h;
path = DOM.subproj/WebDOMElement.h;
refType = 2;
};
F57D194E034E734901A80180 = {
isa = PBXFileReference;
name = WebDOMElement.m;
path = DOM.subproj/WebDOMElement.m;
refType = 2;
};
F57D194F034E734901A80180 = {
isa = PBXFileReference;
name = WebDOMNamedNodeMap.h;
path = DOM.subproj/WebDOMNamedNodeMap.h;
refType = 2;
};
F57D1950034E734901A80180 = {
isa = PBXFileReference;
name = WebDOMNamedNodeMap.m;
path = DOM.subproj/WebDOMNamedNodeMap.m;
refType = 2;
};
F57D1951034E734901A80180 = {
isa = PBXFileReference;
name = WebDOMNode.h;
path = DOM.subproj/WebDOMNode.h;
refType = 2;
};
F57D1952034E734901A80180 = {
isa = PBXFileReference;
name = WebDOMNode.m;
path = DOM.subproj/WebDOMNode.m;
refType = 2;
};
F57D1953034E734901A80180 = {
fileRef = F57D194B034E734901A80180;
isa = PBXBuildFile;
settings = {
};
};
F57D1954034E734901A80180 = {
fileRef = F57D194C034E734901A80180;
isa = PBXBuildFile;
settings = {
};
};
F57D1955034E734901A80180 = {
fileRef = F57D194D034E734901A80180;
isa = PBXBuildFile;
settings = {
};
};
F57D1956034E734901A80180 = {
fileRef = F57D194E034E734901A80180;
isa = PBXBuildFile;
settings = {
};
};
F57D1957034E734901A80180 = {
fileRef = F57D194F034E734901A80180;
isa = PBXBuildFile;
settings = {
};
};
F57D1958034E734901A80180 = {
fileRef = F57D1950034E734901A80180;
isa = PBXBuildFile;
settings = {
};
};
F57D1959034E734901A80180 = {
fileRef = F57D1951034E734901A80180;
isa = PBXBuildFile;
settings = {
};
};
F57D195A034E734901A80180 = {
fileRef = F57D1952034E734901A80180;
isa = PBXBuildFile;
settings = {
};
};
F57FB8C4034E180101A80180 = {
fileEncoding = 4;
isa = PBXFileReference;
......
/* WebHTMLViewPrivate.mm
Copyright 2002, Apple, Inc. All rights reserved.
Private header file. This file may reference classes (both ObjectiveC and C++)
in WebCore. Instances of this class are referenced by _private in
NSWebPageView.
/*
WebHTMLViewPrivate.m
Copyright 2002, Apple, Inc. All rights reserved.
*/
#import <WebKit/WebHTMLViewPrivate.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment