📄 publicdominterfaces.h
字号:
// Copyright (C) 2006, 2007 Apple Inc. All rights reserved.// Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>//// Redistribution and use in source and binary forms, with or without// modification, are permitted provided that the following conditions// are met:// 1. Redistributions of source code must retain the above copyright// notice, this list of conditions and the following disclaimer.// 2. Redistributions in binary form must reproduce the above copyright// notice, this list of conditions and the following disclaimer in the// documentation and/or other materials provided with the distribution.//// THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // This file is used by bindings/scripts/CodeGeneratorObjC.pm to determine public API.// All public DOM class interfaces, properties and methods need to be in this file.// Anything not in the file will be generated into the appropriate private header file.#ifndef OBJC_CODE_GENERATION#error Do not include this header, instead include the appropriate DOM header.#endif@interface DOMAttr : DOMNode WEBKIT_VERSION_1_3@property(readonly, copy) NSString *name;@property(readonly) BOOL specified;@property(copy) NSString *value;@property(readonly, retain) DOMElement *ownerElement;@property(readonly, retain) DOMCSSStyleDeclaration *style AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;@end@interface DOMCDATASection : DOMText WEBKIT_VERSION_1_3@end@interface DOMCharacterData : DOMNode WEBKIT_VERSION_1_3@property(copy) NSString *data;@property(readonly) unsigned length;- (NSString *)substringData:(unsigned)offset :(unsigned)length;- (NSString *)substringData:(unsigned)offset length:(unsigned)length AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (void)appendData:(NSString *)data;- (void)insertData:(unsigned)offset :(NSString *)data;- (void)deleteData:(unsigned)offset :(unsigned)length;- (void)replaceData:(unsigned)offset :(unsigned)length :(NSString *)data;- (void)insertData:(unsigned)offset data:(NSString *)data AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (void)deleteData:(unsigned)offset length:(unsigned)length AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (void)replaceData:(unsigned)offset length:(unsigned)length data:(NSString *)data AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;@end@interface DOMComment : DOMCharacterData WEBKIT_VERSION_1_3@end@interface DOMImplementation : DOMObject WEBKIT_VERSION_1_3- (BOOL)hasFeature:(NSString *)feature :(NSString *)version;- (DOMDocumentType *)createDocumentType:(NSString *)qualifiedName :(NSString *)publicId :(NSString *)systemId;- (DOMDocument *)createDocument:(NSString *)namespaceURI :(NSString *)qualifiedName :(DOMDocumentType *)doctype;- (DOMCSSStyleSheet *)createCSSStyleSheet:(NSString *)title :(NSString *)media;- (BOOL)hasFeature:(NSString *)feature version:(NSString *)version AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (DOMDocumentType *)createDocumentType:(NSString *)qualifiedName publicId:(NSString *)publicId systemId:(NSString *)systemId AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (DOMDocument *)createDocument:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName doctype:(DOMDocumentType *)doctype AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (DOMCSSStyleSheet *)createCSSStyleSheet:(NSString *)title media:(NSString *)media AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (DOMHTMLDocument *)createHTMLDocument:(NSString *)title AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;@end@interface DOMAbstractView : DOMObject WEBKIT_VERSION_1_3@property(readonly, retain) DOMDocument *document;@end@interface DOMDocument : DOMNode WEBKIT_VERSION_1_3@property(readonly, retain) DOMDocumentType *doctype;@property(readonly, retain) DOMImplementation *implementation;@property(readonly, retain) DOMElement *documentElement;@property(readonly, retain) DOMAbstractView *defaultView;@property(readonly, retain) DOMStyleSheetList *styleSheets;@property(readonly, retain) DOMHTMLCollection *images;@property(readonly, retain) DOMHTMLCollection *applets;@property(readonly, retain) DOMHTMLCollection *links;@property(readonly, retain) DOMHTMLCollection *forms;@property(readonly, retain) DOMHTMLCollection *anchors;@property(copy) NSString *title;@property(readonly, copy) NSString *referrer;@property(readonly, copy) NSString *domain;@property(readonly, copy) NSString *URL;@property(retain) DOMHTMLElement *body;@property(copy) NSString *cookie;- (DOMElement *)createElement:(NSString *)tagName;- (DOMDocumentFragment *)createDocumentFragment;- (DOMText *)createTextNode:(NSString *)data;- (DOMComment *)createComment:(NSString *)data;- (DOMCDATASection *)createCDATASection:(NSString *)data;- (DOMProcessingInstruction *)createProcessingInstruction:(NSString *)target :(NSString *)data;- (DOMProcessingInstruction *)createProcessingInstruction:(NSString *)target data:(NSString *)data AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (DOMAttr *)createAttribute:(NSString *)name;- (DOMEntityReference *)createEntityReference:(NSString *)name;- (DOMNodeList *)getElementsByTagName:(NSString *)tagname;- (DOMNode *)importNode:(DOMNode *)importedNode :(BOOL)deep;- (DOMElement *)createElementNS:(NSString *)namespaceURI :(NSString *)qualifiedName;- (DOMAttr *)createAttributeNS:(NSString *)namespaceURI :(NSString *)qualifiedName;- (DOMNodeList *)getElementsByTagNameNS:(NSString *)namespaceURI :(NSString *)localName;- (DOMNode *)importNode:(DOMNode *)importedNode deep:(BOOL)deep AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (DOMNode *)adoptNode:(DOMNode *)source AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (DOMElement *)createElementNS:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (DOMAttr *)createAttributeNS:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (DOMNodeList *)getElementsByTagNameNS:(NSString *)namespaceURI localName:(NSString *)localName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (DOMElement *)getElementById:(NSString *)elementId;- (DOMEvent *)createEvent:(NSString *)eventType;- (DOMRange *)createRange;- (DOMCSSStyleDeclaration *)createCSSStyleDeclaration AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (DOMCSSStyleDeclaration *)getOverrideStyle:(DOMElement *)element :(NSString *)pseudoElement;- (DOMCSSStyleDeclaration *)getOverrideStyle:(DOMElement *)element pseudoElement:(NSString *)pseudoElement AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (DOMCSSStyleDeclaration *)getComputedStyle:(DOMElement *)element :(NSString *)pseudoElement;- (DOMCSSStyleDeclaration *)getComputedStyle:(DOMElement *)element pseudoElement:(NSString *)pseudoElement AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (DOMCSSRuleList *)getMatchedCSSRules:(DOMElement *)element pseudoElement:(NSString *)pseudoElement AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (DOMCSSRuleList *)getMatchedCSSRules:(DOMElement *)element pseudoElement:(NSString *)pseudoElement authorOnly:(BOOL)authorOnly AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (DOMNodeList *)getElementsByName:(NSString *)elementName;- (DOMNodeIterator *)createNodeIterator:(DOMNode *)root whatToShow:(unsigned)whatToShow filter:(id <DOMNodeFilter>)filter expandEntityReferences:(BOOL)expandEntityReferences AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (DOMTreeWalker *)createTreeWalker:(DOMNode *)root whatToShow:(unsigned)whatToShow filter:(id <DOMNodeFilter>)filter expandEntityReferences:(BOOL)expandEntityReferences AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (DOMNodeIterator *)createNodeIterator:(DOMNode *)root :(unsigned)whatToShow :(id <DOMNodeFilter>)filter :(BOOL)expandEntityReferences;- (DOMTreeWalker *)createTreeWalker:(DOMNode *)root :(unsigned)whatToShow :(id <DOMNodeFilter>)filter :(BOOL)expandEntityReferences;#if ENABLE_XPATH- (DOMXPathExpression *)createExpression:(NSString *)expression :(id <DOMXPathNSResolver>)resolver AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER_BUT_DEPRECATED;- (DOMXPathExpression *)createExpression:(NSString *)expression resolver:(id <DOMXPathNSResolver>)resolver AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (id <DOMXPathNSResolver>)createNSResolver:(DOMNode *)nodeResolver AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (DOMXPathResult *)evaluate:(NSString *)expression :(DOMNode *)contextNode :(id <DOMXPathNSResolver>)resolver :(unsigned short)type :(DOMXPathResult *)inResult AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER_BUT_DEPRECATED;- (DOMXPathResult *)evaluate:(NSString *)expression contextNode:(DOMNode *)contextNode resolver:(id <DOMXPathNSResolver>)resolver type:(unsigned short)type inResult:(DOMXPathResult *)inResult AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;#endif@end@interface DOMDocumentFragment : DOMNode WEBKIT_VERSION_1_3@end@interface DOMDocumentType : DOMNode WEBKIT_VERSION_1_3@property(readonly, copy) NSString *name;@property(readonly, retain) DOMNamedNodeMap *entities;@property(readonly, retain) DOMNamedNodeMap *notations;@property(readonly, copy) NSString *publicId;@property(readonly, copy) NSString *systemId;@property(readonly, copy) NSString *internalSubset;@end@interface DOMElement : DOMNode WEBKIT_VERSION_1_3@property(readonly, copy) NSString *tagName;@property(readonly, retain) DOMCSSStyleDeclaration *style;@property(readonly) int offsetLeft;@property(readonly) int offsetTop;@property(readonly) int offsetWidth;@property(readonly) int offsetHeight;@property(readonly, retain) DOMElement *offsetParent;@property(readonly) int clientWidth;@property(readonly) int clientHeight;@property int scrollLeft;@property int scrollTop;@property(readonly) int scrollWidth;@property(readonly) int scrollHeight;- (NSString *)getAttribute:(NSString *)name;- (void)setAttribute:(NSString *)name :(NSString *)value;- (void)setAttribute:(NSString *)name value:(NSString *)value AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (void)removeAttribute:(NSString *)name;- (DOMAttr *)getAttributeNode:(NSString *)name;- (DOMAttr *)setAttributeNode:(DOMAttr *)newAttr;- (DOMAttr *)removeAttributeNode:(DOMAttr *)oldAttr;- (DOMNodeList *)getElementsByTagName:(NSString *)name;- (NSString *)getAttributeNS:(NSString *)namespaceURI :(NSString *)localName;- (void)setAttributeNS:(NSString *)namespaceURI :(NSString *)qualifiedName :(NSString *)value;- (void)removeAttributeNS:(NSString *)namespaceURI :(NSString *)localName;- (DOMNodeList *)getElementsByTagNameNS:(NSString *)namespaceURI :(NSString *)localName;- (DOMAttr *)getAttributeNodeNS:(NSString *)namespaceURI :(NSString *)localName;- (NSString *)getAttributeNS:(NSString *)namespaceURI localName:(NSString *)localName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (void)setAttributeNS:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName value:(NSString *)value AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (void)removeAttributeNS:(NSString *)namespaceURI localName:(NSString *)localName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (DOMNodeList *)getElementsByTagNameNS:(NSString *)namespaceURI localName:(NSString *)localName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (DOMAttr *)getAttributeNodeNS:(NSString *)namespaceURI localName:(NSString *)localName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (DOMAttr *)setAttributeNodeNS:(DOMAttr *)newAttr;- (BOOL)hasAttribute:(NSString *)name;- (BOOL)hasAttributeNS:(NSString *)namespaceURI :(NSString *)localName;- (BOOL)hasAttributeNS:(NSString *)namespaceURI localName:(NSString *)localName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (void)scrollIntoView:(BOOL)alignWithTop AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (void)scrollIntoViewIfNeeded:(BOOL)centerIfNeeded AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;@end@interface DOMEntity : DOMNode WEBKIT_VERSION_1_3@property(readonly, copy) NSString *publicId;@property(readonly, copy) NSString *systemId;@property(readonly, copy) NSString *notationName;@end@interface DOMEntityReference : DOMNode WEBKIT_VERSION_1_3@end@interface DOMNamedNodeMap : DOMObject WEBKIT_VERSION_1_3@property(readonly) unsigned length;- (DOMNode *)getNamedItem:(NSString *)name;- (DOMNode *)setNamedItem:(DOMNode *)node;- (DOMNode *)removeNamedItem:(NSString *)name;- (DOMNode *)item:(unsigned)index;- (DOMNode *)getNamedItemNS:(NSString *)namespaceURI :(NSString *)localName;- (DOMNode *)getNamedItemNS:(NSString *)namespaceURI localName:(NSString *)localName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (DOMNode *)setNamedItemNS:(DOMNode *)node;- (DOMNode *)removeNamedItemNS:(NSString *)namespaceURI :(NSString *)localName;- (DOMNode *)removeNamedItemNS:(NSString *)namespaceURI localName:(NSString *)localName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;@end@interface DOMNode : DOMObject WEBKIT_VERSION_1_3@property(readonly, copy) NSString *nodeName;@property(copy) NSString *nodeValue;@property(readonly) unsigned short nodeType;@property(readonly, retain) DOMNode *parentNode;@property(readonly, retain) DOMNodeList *childNodes;@property(readonly, retain) DOMNode *firstChild;@property(readonly, retain) DOMNode *lastChild;@property(readonly, retain) DOMNode *previousSibling;@property(readonly, retain) DOMNode *nextSibling;@property(readonly, retain) DOMNamedNodeMap *attributes;@property(readonly, retain) DOMDocument *ownerDocument;@property(readonly, copy) NSString *namespaceURI;@property(copy) NSString *prefix;@property(readonly, copy) NSString *localName;@property(copy) NSString *textContent AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (DOMNode *)insertBefore:(DOMNode *)newChild :(DOMNode *)refChild;- (DOMNode *)insertBefore:(DOMNode *)newChild refChild:(DOMNode *)refChild AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (DOMNode *)replaceChild:(DOMNode *)newChild :(DOMNode *)oldChild;- (DOMNode *)replaceChild:(DOMNode *)newChild oldChild:(DOMNode *)oldChild AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (DOMNode *)removeChild:(DOMNode *)oldChild;- (DOMNode *)appendChild:(DOMNode *)newChild;- (BOOL)hasChildNodes;- (DOMNode *)cloneNode:(BOOL)deep;- (void)normalize;- (BOOL)isSupported:(NSString *)feature :(NSString *)version;- (BOOL)isSupported:(NSString *)feature version:(NSString *)version AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (BOOL)hasAttributes;- (BOOL)isSameNode:(DOMNode *)other AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;- (BOOL)isEqualNode:(DOMNode *)other AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;@end@interface DOMNodeList : DOMObject WEBKIT_VERSION_1_3@property(readonly) unsigned length;- (DOMNode *)item:(unsigned)index;@end@interface DOMNotation : DOMNode WEBKIT_VERSION_1_3@property(readonly, copy) NSString *publicId;@property(readonly, copy) NSString *systemId;@end@interface DOMProcessingInstruction : DOMNode WEBKIT_VERSION_1_3@property(readonly, copy) NSString *target;@property(copy) NSString *data;@end@interface DOMText : DOMCharacterData WEBKIT_VERSION_1_3- (DOMText *)splitText:(unsigned)offset;@end@interface DOMHTMLAnchorElement : DOMHTMLElement WEBKIT_VERSION_1_3@property(copy) NSString *accessKey;@property(copy) NSString *charset;@property(copy) NSString *coords;@property(copy) NSString *href;@property(copy) NSString *hreflang;@property(copy) NSString *name;@property(copy) NSString *rel;@property(copy) NSString *rev;@property(copy) NSString *shape;@property(copy) NSString *target;@property(copy) NSString *type;@property(readonly, copy) NSURL *absoluteLinkURL AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;@end@interface DOMHTMLAppletElement : DOMHTMLElement WEBKIT_VERSION_1_3@property(copy) NSString *align;@property(copy) NSString *alt;@property(copy) NSString *archive;@property(copy) NSString *code;@property(copy) NSString *codeBase;@property(copy) NSString *height;@property int hspace;@property(copy) NSString *name;@property(copy) NSString *object;@property int vspace;@property(copy) NSString *width;@end@interface DOMHTMLAreaElement : DOMHTMLElement WEBKIT_VERSION_1_3@property(copy) NSString *accessKey;@property(copy) NSString *alt;@property(copy) NSString *coords;@property(copy) NSString *href;@property BOOL noHref;@property(copy) NSString *shape;@property(copy) NSString *target;@property(readonly, copy) NSURL *absoluteLinkURL AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER;@end@interface DOMHTMLBRElement : DOMHTMLElement WEBKIT_VERSION_1_3@property(copy) NSString *clear;@end@interface DOMHTMLBaseElement : DOMHTMLElement WEBKIT_VERSION_1_3@property(copy) NSString *href;@property(copy) NSString *target;@end@interface DOMHTMLBaseFontElement : DOMHTMLElement WEBKIT_VERSION_1_3@property(copy) NSString *color;@property(copy) NSString *face;@property(copy) NSString *size;@end@interface DOMHTMLBodyElement : DOMHTMLElement WEBKIT_VERSION_1_3@property(copy) NSString *aLink;@property(copy) NSString *background;@property(copy) NSString *bgColor;@property(copy) NSString *link;@property(copy) NSString *text;@property(copy) NSString *vLink;@end@interface DOMHTMLButtonElement : DOMHTMLElement WEBKIT_VERSION_1_3@property(readonly, retain) DOMHTMLFormElement *form;@property(copy) NSString *accessKey;@property BOOL disabled;@property(copy) NSString *name;@property(readonly, copy) NSString *type;@property(copy) NSString *value;@end@interface DOMHTMLCanvasElement : DOMHTMLElement WEBKIT_VERSION_3_0@property int height;@property int width;@end@interface DOMHTMLCollection : DOMObject WEBKIT_VERSION_1_3@property(readonly) unsigned length;- (DOMNode *)item:(unsigned)index;- (DOMNode *)namedItem:(NSString *)name;@end@interface DOMHTMLDListElement : DOMHTMLElement WEBKIT_VERSION_1_3@property BOOL compact;@end@interface DOMHTMLDirectoryElement : DOMHTMLElement WEBKIT_VERSION_1_3@property BOOL compact;@end@interface DOMHTMLDivElement : DOMHTMLElement WEBKIT_VERSION_1_3@property(copy) NSString *align;@end@interface DOMHTMLDocument : DOMDocument WEBKIT_VERSION_1_3- (void)open;- (void)close;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -