]>
Commit | Line | Data |
---|---|---|
a90939db JF |
1 | // Copyright (C) 2006, 2007 Apple Inc. All rights reserved. |
2 | // Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | |
3 | // | |
4 | // Redistribution and use in source and binary forms, with or without | |
5 | // modification, are permitted provided that the following conditions | |
6 | // are met: | |
7 | // 1. Redistributions of source code must retain the above copyright | |
8 | // notice, this list of conditions and the following disclaimer. | |
9 | // 2. Redistributions in binary form must reproduce the above copyright | |
10 | // notice, this list of conditions and the following disclaimer in the | |
11 | // documentation and/or other materials provided with the distribution. | |
12 | // | |
13 | // THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY | |
14 | // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
15 | // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | |
16 | // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR | |
17 | // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | |
18 | // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | |
19 | // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | |
20 | // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | |
21 | // OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |
22 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | |
23 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
24 | ||
25 | // This file is used by bindings/scripts/CodeGeneratorObjC.pm to determine public API. | |
26 | // All public DOM class interfaces, properties and methods need to be in this file. | |
27 | // Anything not in the file will be generated into the appropriate private header file. | |
28 | ||
29 | #include <JavaScriptCore/Platform.h> | |
30 | ||
31 | #ifndef OBJC_CODE_GENERATION | |
32 | #error Do not include this header, instead include the appropriate DOM header. | |
33 | #endif | |
34 | ||
35 | @interface DOMAttr : DOMNode WEBKIT_VERSION_1_3 | |
36 | @property(readonly, copy) NSString *name; | |
37 | @property(readonly) BOOL specified; | |
38 | @property(copy) NSString *value; | |
39 | @property(readonly, retain) DOMElement *ownerElement; | |
40 | @property(readonly, retain) DOMCSSStyleDeclaration *style AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
41 | @end | |
42 | ||
43 | @interface DOMCDATASection : DOMText WEBKIT_VERSION_1_3 | |
44 | @end | |
45 | ||
46 | @interface DOMCharacterData : DOMNode WEBKIT_VERSION_1_3 | |
47 | @property(copy) NSString *data; | |
48 | @property(readonly) unsigned length; | |
49 | - (NSString *)substringData:(unsigned)offset :(unsigned)length; | |
50 | - (NSString *)substringData:(unsigned)offset length:(unsigned)length AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
51 | - (void)appendData:(NSString *)data; | |
52 | - (void)insertData:(unsigned)offset :(NSString *)data; | |
53 | - (void)deleteData:(unsigned)offset :(unsigned)length; | |
54 | - (void)replaceData:(unsigned)offset :(unsigned)length :(NSString *)data; | |
55 | - (void)insertData:(unsigned)offset data:(NSString *)data AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
56 | - (void)deleteData:(unsigned)offset length:(unsigned)length AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
57 | - (void)replaceData:(unsigned)offset length:(unsigned)length data:(NSString *)data AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
58 | @end | |
59 | ||
60 | @interface DOMComment : DOMCharacterData WEBKIT_VERSION_1_3 | |
61 | @end | |
62 | ||
63 | @interface DOMImplementation : DOMObject WEBKIT_VERSION_1_3 | |
64 | - (BOOL)hasFeature:(NSString *)feature :(NSString *)version; | |
65 | - (DOMDocumentType *)createDocumentType:(NSString *)qualifiedName :(NSString *)publicId :(NSString *)systemId; | |
66 | - (DOMDocument *)createDocument:(NSString *)namespaceURI :(NSString *)qualifiedName :(DOMDocumentType *)doctype; | |
67 | - (DOMCSSStyleSheet *)createCSSStyleSheet:(NSString *)title :(NSString *)media; | |
68 | - (BOOL)hasFeature:(NSString *)feature version:(NSString *)version AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
69 | - (DOMDocumentType *)createDocumentType:(NSString *)qualifiedName publicId:(NSString *)publicId systemId:(NSString *)systemId AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
70 | - (DOMDocument *)createDocument:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName doctype:(DOMDocumentType *)doctype AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
71 | - (DOMCSSStyleSheet *)createCSSStyleSheet:(NSString *)title media:(NSString *)media AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
72 | - (DOMHTMLDocument *)createHTMLDocument:(NSString *)title AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
73 | @end | |
74 | ||
75 | @interface DOMAbstractView : DOMObject WEBKIT_VERSION_1_3 | |
76 | @property(readonly, retain) DOMDocument *document; | |
77 | @end | |
78 | ||
79 | @interface DOMDocument : DOMNode WEBKIT_VERSION_1_3 | |
80 | @property(readonly, retain) DOMDocumentType *doctype; | |
81 | @property(readonly, retain) DOMImplementation *implementation; | |
82 | @property(readonly, retain) DOMElement *documentElement; | |
83 | @property(readonly, retain) DOMAbstractView *defaultView; | |
84 | @property(readonly, retain) DOMStyleSheetList *styleSheets; | |
85 | @property(readonly, retain) DOMHTMLCollection *images; | |
86 | @property(readonly, retain) DOMHTMLCollection *applets; | |
87 | @property(readonly, retain) DOMHTMLCollection *links; | |
88 | @property(readonly, retain) DOMHTMLCollection *forms; | |
89 | @property(readonly, retain) DOMHTMLCollection *anchors; | |
90 | @property(copy) NSString *title; | |
91 | @property(readonly, copy) NSString *referrer; | |
92 | @property(readonly, copy) NSString *domain; | |
93 | @property(readonly, copy) NSString *URL; | |
94 | @property(retain) DOMHTMLElement *body; | |
95 | @property(copy) NSString *cookie; | |
96 | - (DOMElement *)createElement:(NSString *)tagName; | |
97 | - (DOMDocumentFragment *)createDocumentFragment; | |
98 | - (DOMText *)createTextNode:(NSString *)data; | |
99 | - (DOMComment *)createComment:(NSString *)data; | |
100 | - (DOMCDATASection *)createCDATASection:(NSString *)data; | |
101 | - (DOMProcessingInstruction *)createProcessingInstruction:(NSString *)target :(NSString *)data; | |
102 | - (DOMProcessingInstruction *)createProcessingInstruction:(NSString *)target data:(NSString *)data AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
103 | - (DOMAttr *)createAttribute:(NSString *)name; | |
104 | - (DOMEntityReference *)createEntityReference:(NSString *)name; | |
105 | - (DOMNodeList *)getElementsByTagName:(NSString *)tagname; | |
106 | - (DOMNode *)importNode:(DOMNode *)importedNode :(BOOL)deep; | |
107 | - (DOMElement *)createElementNS:(NSString *)namespaceURI :(NSString *)qualifiedName; | |
108 | - (DOMAttr *)createAttributeNS:(NSString *)namespaceURI :(NSString *)qualifiedName; | |
109 | - (DOMNodeList *)getElementsByTagNameNS:(NSString *)namespaceURI :(NSString *)localName; | |
110 | - (DOMNode *)importNode:(DOMNode *)importedNode deep:(BOOL)deep AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
111 | - (DOMNode *)adoptNode:(DOMNode *)source AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
112 | - (DOMElement *)createElementNS:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
113 | - (DOMAttr *)createAttributeNS:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
114 | - (DOMNodeList *)getElementsByTagNameNS:(NSString *)namespaceURI localName:(NSString *)localName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
115 | - (DOMElement *)getElementById:(NSString *)elementId; | |
116 | - (DOMEvent *)createEvent:(NSString *)eventType; | |
117 | - (DOMRange *)createRange; | |
118 | - (DOMCSSStyleDeclaration *)createCSSStyleDeclaration AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
119 | - (DOMCSSStyleDeclaration *)getOverrideStyle:(DOMElement *)element :(NSString *)pseudoElement; | |
120 | - (DOMCSSStyleDeclaration *)getOverrideStyle:(DOMElement *)element pseudoElement:(NSString *)pseudoElement AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
121 | - (DOMCSSStyleDeclaration *)getComputedStyle:(DOMElement *)element :(NSString *)pseudoElement; | |
122 | - (DOMCSSStyleDeclaration *)getComputedStyle:(DOMElement *)element pseudoElement:(NSString *)pseudoElement AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
123 | - (DOMCSSRuleList *)getMatchedCSSRules:(DOMElement *)element pseudoElement:(NSString *)pseudoElement AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
124 | - (DOMCSSRuleList *)getMatchedCSSRules:(DOMElement *)element pseudoElement:(NSString *)pseudoElement authorOnly:(BOOL)authorOnly AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
125 | - (DOMNodeList *)getElementsByName:(NSString *)elementName; | |
126 | - (DOMNodeIterator *)createNodeIterator:(DOMNode *)root whatToShow:(unsigned)whatToShow filter:(id <DOMNodeFilter>)filter expandEntityReferences:(BOOL)expandEntityReferences AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
127 | - (DOMTreeWalker *)createTreeWalker:(DOMNode *)root whatToShow:(unsigned)whatToShow filter:(id <DOMNodeFilter>)filter expandEntityReferences:(BOOL)expandEntityReferences AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
128 | - (DOMNodeIterator *)createNodeIterator:(DOMNode *)root :(unsigned)whatToShow :(id <DOMNodeFilter>)filter :(BOOL)expandEntityReferences; | |
129 | - (DOMTreeWalker *)createTreeWalker:(DOMNode *)root :(unsigned)whatToShow :(id <DOMNodeFilter>)filter :(BOOL)expandEntityReferences; | |
130 | #if ENABLE_XPATH | |
131 | - (DOMXPathExpression *)createExpression:(NSString *)expression :(id <DOMXPathNSResolver>)resolver AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER_BUT_DEPRECATED; | |
132 | - (DOMXPathExpression *)createExpression:(NSString *)expression resolver:(id <DOMXPathNSResolver>)resolver AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
133 | - (id <DOMXPathNSResolver>)createNSResolver:(DOMNode *)nodeResolver AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
134 | - (DOMXPathResult *)evaluate:(NSString *)expression :(DOMNode *)contextNode :(id <DOMXPathNSResolver>)resolver :(unsigned short)type :(DOMXPathResult *)inResult AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER_BUT_DEPRECATED; | |
135 | - (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; | |
136 | #endif | |
137 | @end | |
138 | ||
139 | @interface DOMDocumentFragment : DOMNode WEBKIT_VERSION_1_3 | |
140 | @end | |
141 | ||
142 | @interface DOMDocumentType : DOMNode WEBKIT_VERSION_1_3 | |
143 | @property(readonly, copy) NSString *name; | |
144 | @property(readonly, retain) DOMNamedNodeMap *entities; | |
145 | @property(readonly, retain) DOMNamedNodeMap *notations; | |
146 | @property(readonly, copy) NSString *publicId; | |
147 | @property(readonly, copy) NSString *systemId; | |
148 | @property(readonly, copy) NSString *internalSubset; | |
149 | @end | |
150 | ||
151 | @interface DOMElement : DOMNode WEBKIT_VERSION_1_3 | |
152 | @property(readonly, copy) NSString *tagName; | |
153 | @property(readonly, retain) DOMCSSStyleDeclaration *style; | |
154 | @property(readonly) int offsetLeft; | |
155 | @property(readonly) int offsetTop; | |
156 | @property(readonly) int offsetWidth; | |
157 | @property(readonly) int offsetHeight; | |
158 | @property(readonly, retain) DOMElement *offsetParent; | |
159 | @property(readonly) int clientWidth; | |
160 | @property(readonly) int clientHeight; | |
161 | @property int scrollLeft; | |
162 | @property int scrollTop; | |
163 | @property(readonly) int scrollWidth; | |
164 | @property(readonly) int scrollHeight; | |
165 | - (NSString *)getAttribute:(NSString *)name; | |
166 | - (void)setAttribute:(NSString *)name :(NSString *)value; | |
167 | - (void)setAttribute:(NSString *)name value:(NSString *)value AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
168 | - (void)removeAttribute:(NSString *)name; | |
169 | - (DOMAttr *)getAttributeNode:(NSString *)name; | |
170 | - (DOMAttr *)setAttributeNode:(DOMAttr *)newAttr; | |
171 | - (DOMAttr *)removeAttributeNode:(DOMAttr *)oldAttr; | |
172 | - (DOMNodeList *)getElementsByTagName:(NSString *)name; | |
173 | - (NSString *)getAttributeNS:(NSString *)namespaceURI :(NSString *)localName; | |
174 | - (void)setAttributeNS:(NSString *)namespaceURI :(NSString *)qualifiedName :(NSString *)value; | |
175 | - (void)removeAttributeNS:(NSString *)namespaceURI :(NSString *)localName; | |
176 | - (DOMNodeList *)getElementsByTagNameNS:(NSString *)namespaceURI :(NSString *)localName; | |
177 | - (DOMAttr *)getAttributeNodeNS:(NSString *)namespaceURI :(NSString *)localName; | |
178 | - (NSString *)getAttributeNS:(NSString *)namespaceURI localName:(NSString *)localName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
179 | - (void)setAttributeNS:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName value:(NSString *)value AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
180 | - (void)removeAttributeNS:(NSString *)namespaceURI localName:(NSString *)localName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
181 | - (DOMNodeList *)getElementsByTagNameNS:(NSString *)namespaceURI localName:(NSString *)localName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
182 | - (DOMAttr *)getAttributeNodeNS:(NSString *)namespaceURI localName:(NSString *)localName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
183 | - (DOMAttr *)setAttributeNodeNS:(DOMAttr *)newAttr; | |
184 | - (BOOL)hasAttribute:(NSString *)name; | |
185 | - (BOOL)hasAttributeNS:(NSString *)namespaceURI :(NSString *)localName; | |
186 | - (BOOL)hasAttributeNS:(NSString *)namespaceURI localName:(NSString *)localName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
187 | - (void)scrollIntoView:(BOOL)alignWithTop AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
188 | - (void)scrollIntoViewIfNeeded:(BOOL)centerIfNeeded AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
189 | @end | |
190 | ||
191 | @interface DOMEntity : DOMNode WEBKIT_VERSION_1_3 | |
192 | @property(readonly, copy) NSString *publicId; | |
193 | @property(readonly, copy) NSString *systemId; | |
194 | @property(readonly, copy) NSString *notationName; | |
195 | @end | |
196 | ||
197 | @interface DOMEntityReference : DOMNode WEBKIT_VERSION_1_3 | |
198 | @end | |
199 | ||
200 | @interface DOMNamedNodeMap : DOMObject WEBKIT_VERSION_1_3 | |
201 | @property(readonly) unsigned length; | |
202 | - (DOMNode *)getNamedItem:(NSString *)name; | |
203 | - (DOMNode *)setNamedItem:(DOMNode *)node; | |
204 | - (DOMNode *)removeNamedItem:(NSString *)name; | |
205 | - (DOMNode *)item:(unsigned)index; | |
206 | - (DOMNode *)getNamedItemNS:(NSString *)namespaceURI :(NSString *)localName; | |
207 | - (DOMNode *)getNamedItemNS:(NSString *)namespaceURI localName:(NSString *)localName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
208 | - (DOMNode *)setNamedItemNS:(DOMNode *)node; | |
209 | - (DOMNode *)removeNamedItemNS:(NSString *)namespaceURI :(NSString *)localName; | |
210 | - (DOMNode *)removeNamedItemNS:(NSString *)namespaceURI localName:(NSString *)localName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
211 | @end | |
212 | ||
213 | @interface DOMNode : DOMObject WEBKIT_VERSION_1_3 | |
214 | @property(readonly, copy) NSString *nodeName; | |
215 | @property(copy) NSString *nodeValue; | |
216 | @property(readonly) unsigned short nodeType; | |
217 | @property(readonly, retain) DOMNode *parentNode; | |
218 | @property(readonly, retain) DOMNodeList *childNodes; | |
219 | @property(readonly, retain) DOMNode *firstChild; | |
220 | @property(readonly, retain) DOMNode *lastChild; | |
221 | @property(readonly, retain) DOMNode *previousSibling; | |
222 | @property(readonly, retain) DOMNode *nextSibling; | |
223 | @property(readonly, retain) DOMNamedNodeMap *attributes; | |
224 | @property(readonly, retain) DOMDocument *ownerDocument; | |
225 | @property(readonly, copy) NSString *namespaceURI; | |
226 | @property(copy) NSString *prefix; | |
227 | @property(readonly, copy) NSString *localName; | |
228 | @property(copy) NSString *textContent AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
229 | - (DOMNode *)insertBefore:(DOMNode *)newChild :(DOMNode *)refChild; | |
230 | - (DOMNode *)insertBefore:(DOMNode *)newChild refChild:(DOMNode *)refChild AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
231 | - (DOMNode *)replaceChild:(DOMNode *)newChild :(DOMNode *)oldChild; | |
232 | - (DOMNode *)replaceChild:(DOMNode *)newChild oldChild:(DOMNode *)oldChild AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
233 | - (DOMNode *)removeChild:(DOMNode *)oldChild; | |
234 | - (DOMNode *)appendChild:(DOMNode *)newChild; | |
235 | - (BOOL)hasChildNodes; | |
236 | - (DOMNode *)cloneNode:(BOOL)deep; | |
237 | - (void)normalize; | |
238 | - (BOOL)isSupported:(NSString *)feature :(NSString *)version; | |
239 | - (BOOL)isSupported:(NSString *)feature version:(NSString *)version AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
240 | - (BOOL)hasAttributes; | |
241 | - (BOOL)isSameNode:(DOMNode *)other AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
242 | - (BOOL)isEqualNode:(DOMNode *)other AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
243 | @end | |
244 | ||
245 | @interface DOMNodeList : DOMObject WEBKIT_VERSION_1_3 | |
246 | @property(readonly) unsigned length; | |
247 | - (DOMNode *)item:(unsigned)index; | |
248 | @end | |
249 | ||
250 | @interface DOMNotation : DOMNode WEBKIT_VERSION_1_3 | |
251 | @property(readonly, copy) NSString *publicId; | |
252 | @property(readonly, copy) NSString *systemId; | |
253 | @end | |
254 | ||
255 | @interface DOMProcessingInstruction : DOMNode WEBKIT_VERSION_1_3 | |
256 | @property(readonly, copy) NSString *target; | |
257 | @property(copy) NSString *data; | |
258 | @end | |
259 | ||
260 | @interface DOMText : DOMCharacterData WEBKIT_VERSION_1_3 | |
261 | - (DOMText *)splitText:(unsigned)offset; | |
262 | @end | |
263 | ||
264 | @interface DOMHTMLAnchorElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
265 | @property(copy) NSString *accessKey; | |
266 | @property(copy) NSString *charset; | |
267 | @property(copy) NSString *coords; | |
268 | @property(copy) NSString *href; | |
269 | @property(copy) NSString *hreflang; | |
270 | @property(copy) NSString *name; | |
271 | @property(copy) NSString *rel; | |
272 | @property(copy) NSString *rev; | |
273 | @property(copy) NSString *shape; | |
274 | @property(copy) NSString *target; | |
275 | @property(copy) NSString *type; | |
276 | @property(readonly, copy) NSURL *absoluteLinkURL AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
277 | @end | |
278 | ||
279 | @interface DOMHTMLAppletElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
280 | @property(copy) NSString *align; | |
281 | @property(copy) NSString *alt; | |
282 | @property(copy) NSString *archive; | |
283 | @property(copy) NSString *code; | |
284 | @property(copy) NSString *codeBase; | |
285 | @property(copy) NSString *height; | |
286 | @property int hspace; | |
287 | @property(copy) NSString *name; | |
288 | @property(copy) NSString *object; | |
289 | @property int vspace; | |
290 | @property(copy) NSString *width; | |
291 | @end | |
292 | ||
293 | @interface DOMHTMLAreaElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
294 | @property(copy) NSString *accessKey; | |
295 | @property(copy) NSString *alt; | |
296 | @property(copy) NSString *coords; | |
297 | @property(copy) NSString *href; | |
298 | @property BOOL noHref; | |
299 | @property(copy) NSString *shape; | |
300 | @property(copy) NSString *target; | |
301 | @property(readonly, copy) NSURL *absoluteLinkURL AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
302 | @end | |
303 | ||
304 | @interface DOMHTMLBRElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
305 | @property(copy) NSString *clear; | |
306 | @end | |
307 | ||
308 | @interface DOMHTMLBaseElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
309 | @property(copy) NSString *href; | |
310 | @property(copy) NSString *target; | |
311 | @end | |
312 | ||
313 | @interface DOMHTMLBaseFontElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
314 | @property(copy) NSString *color; | |
315 | @property(copy) NSString *face; | |
316 | @property(copy) NSString *size; | |
317 | @end | |
318 | ||
319 | @interface DOMHTMLBodyElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
320 | @property(copy) NSString *aLink; | |
321 | @property(copy) NSString *background; | |
322 | @property(copy) NSString *bgColor; | |
323 | @property(copy) NSString *link; | |
324 | @property(copy) NSString *text; | |
325 | @property(copy) NSString *vLink; | |
326 | @end | |
327 | ||
328 | @interface DOMHTMLButtonElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
329 | @property(readonly, retain) DOMHTMLFormElement *form; | |
330 | @property(copy) NSString *accessKey; | |
331 | @property BOOL disabled; | |
332 | @property(copy) NSString *name; | |
333 | @property(readonly, copy) NSString *type; | |
334 | @property(copy) NSString *value; | |
335 | @end | |
336 | ||
337 | @interface DOMHTMLCanvasElement : DOMHTMLElement WEBKIT_VERSION_3_0 | |
338 | @property int height; | |
339 | @property int width; | |
340 | @end | |
341 | ||
342 | @interface DOMHTMLCollection : DOMObject WEBKIT_VERSION_1_3 | |
343 | @property(readonly) unsigned length; | |
344 | - (DOMNode *)item:(unsigned)index; | |
345 | - (DOMNode *)namedItem:(NSString *)name; | |
346 | @end | |
347 | ||
348 | @interface DOMHTMLDListElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
349 | @property BOOL compact; | |
350 | @end | |
351 | ||
352 | @interface DOMHTMLDirectoryElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
353 | @property BOOL compact; | |
354 | @end | |
355 | ||
356 | @interface DOMHTMLDivElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
357 | @property(copy) NSString *align; | |
358 | @end | |
359 | ||
360 | @interface DOMHTMLDocument : DOMDocument WEBKIT_VERSION_1_3 | |
361 | - (void)open; | |
362 | - (void)close; | |
363 | - (void)write:(NSString *)text; | |
364 | - (void)writeln:(NSString *)text; | |
365 | @end | |
366 | ||
367 | @interface DOMHTMLElement : DOMElement WEBKIT_VERSION_1_3 | |
368 | @property(copy) NSString *title; | |
369 | @property(copy) NSString *idName; | |
370 | @property(copy) NSString *lang; | |
371 | @property(copy) NSString *dir; | |
372 | @property(copy) NSString *className; | |
373 | @property(copy) NSString *innerHTML; | |
374 | @property(copy) NSString *innerText; | |
375 | @property(copy) NSString *outerHTML; | |
376 | @property(copy) NSString *outerText; | |
377 | @property(readonly, retain) DOMHTMLCollection *children; | |
378 | @property(copy) NSString *contentEditable; | |
379 | @property(readonly) BOOL isContentEditable; | |
380 | @property(readonly, copy) NSString *titleDisplayString AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
381 | @property int tabIndex; | |
382 | - (void)blur; | |
383 | - (void)focus; | |
384 | @end | |
385 | ||
386 | @interface DOMHTMLEmbedElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
387 | @property(copy) NSString *align; | |
388 | @property int height; | |
389 | @property(copy) NSString *name; | |
390 | @property(copy) NSString *src; | |
391 | @property(copy) NSString *type; | |
392 | @property int width; | |
393 | @end | |
394 | ||
395 | @interface DOMHTMLFieldSetElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
396 | @property(readonly, retain) DOMHTMLFormElement *form; | |
397 | @end | |
398 | ||
399 | @interface DOMHTMLFontElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
400 | @property(copy) NSString *color; | |
401 | @property(copy) NSString *face; | |
402 | @property(copy) NSString *size; | |
403 | @end | |
404 | ||
405 | @interface DOMHTMLFormElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
406 | @property(readonly, retain) DOMHTMLCollection *elements; | |
407 | @property(readonly) int length; | |
408 | @property(copy) NSString *name; | |
409 | @property(copy) NSString *acceptCharset; | |
410 | @property(copy) NSString *action; | |
411 | @property(copy) NSString *enctype; | |
412 | @property(copy) NSString *method; | |
413 | @property(copy) NSString *target; | |
414 | - (void)submit; | |
415 | - (void)reset; | |
416 | @end | |
417 | ||
418 | @interface DOMHTMLFrameElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
419 | @property(copy) NSString *frameBorder; | |
420 | @property(copy) NSString *longDesc; | |
421 | @property(copy) NSString *marginHeight; | |
422 | @property(copy) NSString *marginWidth; | |
423 | @property(copy) NSString *name; | |
424 | @property BOOL noResize; | |
425 | @property(copy) NSString *scrolling; | |
426 | @property(copy) NSString *src; | |
427 | @property(readonly, retain) DOMDocument *contentDocument; | |
428 | @end | |
429 | ||
430 | @interface DOMHTMLFrameSetElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
431 | @property(copy) NSString *cols; | |
432 | @property(copy) NSString *rows; | |
433 | @end | |
434 | ||
435 | @interface DOMHTMLHRElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
436 | @property(copy) NSString *align; | |
437 | @property BOOL noShade; | |
438 | @property(copy) NSString *size; | |
439 | @property(copy) NSString *width; | |
440 | @end | |
441 | ||
442 | @interface DOMHTMLHeadElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
443 | @property(copy) NSString *profile; | |
444 | @end | |
445 | ||
446 | @interface DOMHTMLHeadingElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
447 | @property(copy) NSString *align; | |
448 | @end | |
449 | ||
450 | @interface DOMHTMLHtmlElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
451 | @property(copy) NSString *version; | |
452 | @end | |
453 | ||
454 | @interface DOMHTMLIFrameElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
455 | @property(copy) NSString *align; | |
456 | @property(copy) NSString *frameBorder; | |
457 | @property(copy) NSString *height; | |
458 | @property(copy) NSString *longDesc; | |
459 | @property(copy) NSString *marginHeight; | |
460 | @property(copy) NSString *marginWidth; | |
461 | @property(copy) NSString *name; | |
462 | @property(copy) NSString *scrolling; | |
463 | @property(copy) NSString *src; | |
464 | @property(copy) NSString *width; | |
465 | @property(readonly, retain) DOMDocument *contentDocument; | |
466 | @end | |
467 | ||
468 | @interface DOMHTMLImageElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
469 | @property(copy) NSString *name; | |
470 | @property(copy) NSString *align; | |
471 | @property(copy) NSString *alt; | |
472 | @property(copy) NSString *border; | |
473 | @property int height; | |
474 | @property int hspace; | |
475 | @property BOOL isMap; | |
476 | @property(copy) NSString *longDesc; | |
477 | @property(copy) NSString *src; | |
478 | @property(copy) NSString *useMap; | |
479 | @property int vspace; | |
480 | @property int width; | |
481 | @property(readonly, copy) NSString *altDisplayString AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
482 | @property(readonly, copy) NSURL *absoluteImageURL AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
483 | @end | |
484 | ||
485 | @interface DOMHTMLInputElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
486 | @property(copy) NSString *defaultValue; | |
487 | @property BOOL defaultChecked; | |
488 | @property(readonly, retain) DOMHTMLFormElement *form; | |
489 | @property(copy) NSString *accept; | |
490 | @property(copy) NSString *accessKey; | |
491 | @property(copy) NSString *align; | |
492 | @property(copy) NSString *alt; | |
493 | @property BOOL checked; | |
494 | @property BOOL disabled; | |
495 | @property int maxLength; | |
496 | @property(copy) NSString *name; | |
497 | @property BOOL readOnly; | |
498 | @property(copy) NSString *size; | |
499 | @property(copy) NSString *src; | |
500 | @property(copy) NSString *type; | |
501 | @property(copy) NSString *useMap; | |
502 | @property(copy) NSString *value; | |
503 | @property(readonly, copy) NSString *altDisplayString AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
504 | @property(readonly, copy) NSURL *absoluteImageURL AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
505 | - (void)select; | |
506 | - (void)click; | |
507 | @end | |
508 | ||
509 | @interface DOMHTMLIsIndexElement : DOMHTMLInputElement WEBKIT_VERSION_1_3 | |
510 | @property(readonly, retain) DOMHTMLFormElement *form; | |
511 | @property(copy) NSString *prompt; | |
512 | @end | |
513 | ||
514 | @interface DOMHTMLLIElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
515 | @property(copy) NSString *type; | |
516 | @property int value; | |
517 | @end | |
518 | ||
519 | @interface DOMHTMLLabelElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
520 | @property(readonly, retain) DOMHTMLFormElement *form; | |
521 | @property(copy) NSString *accessKey; | |
522 | @property(copy) NSString *htmlFor; | |
523 | @end | |
524 | ||
525 | @interface DOMHTMLLegendElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
526 | @property(readonly, retain) DOMHTMLFormElement *form; | |
527 | @property(copy) NSString *accessKey; | |
528 | @property(copy) NSString *align; | |
529 | @end | |
530 | ||
531 | @interface DOMHTMLLinkElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
532 | @property BOOL disabled; | |
533 | @property(copy) NSString *charset; | |
534 | @property(copy) NSString *href; | |
535 | @property(copy) NSString *hreflang; | |
536 | @property(copy) NSString *media; | |
537 | @property(copy) NSString *rel; | |
538 | @property(copy) NSString *rev; | |
539 | @property(copy) NSString *target; | |
540 | @property(copy) NSString *type; | |
541 | @property(readonly, copy) NSURL *absoluteLinkURL AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
542 | @end | |
543 | ||
544 | @interface DOMHTMLMapElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
545 | @property(readonly, retain) DOMHTMLCollection *areas; | |
546 | @property(copy) NSString *name; | |
547 | @end | |
548 | ||
549 | @interface DOMHTMLMarqueeElement : DOMHTMLElement WEBKIT_VERSION_3_0 | |
550 | - (void)start; | |
551 | - (void)stop; | |
552 | @end | |
553 | ||
554 | @interface DOMHTMLMenuElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
555 | @property BOOL compact; | |
556 | @end | |
557 | ||
558 | @interface DOMHTMLMetaElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
559 | @property(copy) NSString *content; | |
560 | @property(copy) NSString *httpEquiv; | |
561 | @property(copy) NSString *name; | |
562 | @property(copy) NSString *scheme; | |
563 | @end | |
564 | ||
565 | @interface DOMHTMLModElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
566 | @property(copy) NSString *cite; | |
567 | @property(copy) NSString *dateTime; | |
568 | @end | |
569 | ||
570 | @interface DOMHTMLOListElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
571 | @property BOOL compact; | |
572 | @property int start; | |
573 | @property(copy) NSString *type; | |
574 | @end | |
575 | ||
576 | @interface DOMHTMLObjectElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
577 | @property(readonly, retain) DOMHTMLFormElement *form; | |
578 | @property(copy) NSString *code; | |
579 | @property(copy) NSString *align; | |
580 | @property(copy) NSString *archive; | |
581 | @property(copy) NSString *border; | |
582 | @property(copy) NSString *codeBase; | |
583 | @property(copy) NSString *codeType; | |
584 | @property(copy) NSString *data; | |
585 | @property BOOL declare; | |
586 | @property(copy) NSString *height; | |
587 | @property int hspace; | |
588 | @property(copy) NSString *name; | |
589 | @property(copy) NSString *standby; | |
590 | @property(copy) NSString *type; | |
591 | @property(copy) NSString *useMap; | |
592 | @property int vspace; | |
593 | @property(copy) NSString *width; | |
594 | @property(readonly, retain) DOMDocument *contentDocument; | |
595 | @property(readonly, copy) NSURL *absoluteImageURL AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
596 | @end | |
597 | ||
598 | @interface DOMHTMLOptGroupElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
599 | @property BOOL disabled; | |
600 | @property(copy) NSString *label; | |
601 | @end | |
602 | ||
603 | @interface DOMHTMLOptionElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
604 | @property(readonly, retain) DOMHTMLFormElement *form; | |
605 | @property BOOL defaultSelected; | |
606 | @property(readonly, copy) NSString *text; | |
607 | @property(readonly) int index; | |
608 | @property BOOL disabled; | |
609 | @property(copy) NSString *label; | |
610 | @property BOOL selected; | |
611 | @property(copy) NSString *value; | |
612 | @end | |
613 | ||
614 | @interface DOMHTMLOptionsCollection : DOMObject WEBKIT_VERSION_1_3 | |
615 | @property unsigned length; | |
616 | - (DOMNode *)item:(unsigned)index; | |
617 | - (DOMNode *)namedItem:(NSString *)name; | |
618 | @end | |
619 | ||
620 | @interface DOMHTMLParagraphElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
621 | @property(copy) NSString *align; | |
622 | @end | |
623 | ||
624 | @interface DOMHTMLParamElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
625 | @property(copy) NSString *name; | |
626 | @property(copy) NSString *type; | |
627 | @property(copy) NSString *value; | |
628 | @property(copy) NSString *valueType; | |
629 | @end | |
630 | ||
631 | @interface DOMHTMLPreElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
632 | @property int width; | |
633 | @end | |
634 | ||
635 | @interface DOMHTMLQuoteElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
636 | @property(copy) NSString *cite; | |
637 | @end | |
638 | ||
639 | @interface DOMHTMLScriptElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
640 | @property(copy) NSString *text; | |
641 | @property(copy) NSString *htmlFor; | |
642 | @property(copy) NSString *event; | |
643 | @property(copy) NSString *charset; | |
644 | @property BOOL defer; | |
645 | @property(copy) NSString *src; | |
646 | @property(copy) NSString *type; | |
647 | @end | |
648 | ||
649 | @interface DOMHTMLSelectElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
650 | @property(readonly, copy) NSString *type; | |
651 | @property int selectedIndex; | |
652 | @property(copy) NSString *value; | |
653 | @property(readonly) int length; | |
654 | @property(readonly, retain) DOMHTMLFormElement *form; | |
655 | @property(readonly, retain) DOMHTMLOptionsCollection *options; | |
656 | @property BOOL disabled; | |
657 | @property BOOL multiple; | |
658 | @property(copy) NSString *name; | |
659 | @property int size; | |
660 | - (void)add:(DOMHTMLElement *)element :(DOMHTMLElement *)before; | |
661 | - (void)add:(DOMHTMLElement *)element before:(DOMHTMLElement *)before AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
662 | - (void)remove:(int)index; | |
663 | @end | |
664 | ||
665 | @interface DOMHTMLStyleElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
666 | @property BOOL disabled; | |
667 | @property(copy) NSString *media; | |
668 | @property(copy) NSString *type; | |
669 | @end | |
670 | ||
671 | @interface DOMHTMLTableCaptionElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
672 | @property(copy) NSString *align; | |
673 | @end | |
674 | ||
675 | @interface DOMHTMLTableCellElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
676 | @property(readonly) int cellIndex; | |
677 | @property(copy) NSString *abbr; | |
678 | @property(copy) NSString *align; | |
679 | @property(copy) NSString *axis; | |
680 | @property(copy) NSString *bgColor; | |
681 | @property(copy) NSString *ch; | |
682 | @property(copy) NSString *chOff; | |
683 | @property int colSpan; | |
684 | @property(copy) NSString *headers; | |
685 | @property(copy) NSString *height; | |
686 | @property BOOL noWrap; | |
687 | @property int rowSpan; | |
688 | @property(copy) NSString *scope; | |
689 | @property(copy) NSString *vAlign; | |
690 | @property(copy) NSString *width; | |
691 | @end | |
692 | ||
693 | @interface DOMHTMLTableColElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
694 | @property(copy) NSString *align; | |
695 | @property(copy) NSString *ch; | |
696 | @property(copy) NSString *chOff; | |
697 | @property int span; | |
698 | @property(copy) NSString *vAlign; | |
699 | @property(copy) NSString *width; | |
700 | @end | |
701 | ||
702 | @interface DOMHTMLTableElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
703 | @property(retain) DOMHTMLTableCaptionElement *caption; | |
704 | @property(retain) DOMHTMLTableSectionElement *tHead; | |
705 | @property(retain) DOMHTMLTableSectionElement *tFoot; | |
706 | @property(readonly, retain) DOMHTMLCollection *rows; | |
707 | @property(readonly, retain) DOMHTMLCollection *tBodies; | |
708 | @property(copy) NSString *align; | |
709 | @property(copy) NSString *bgColor; | |
710 | @property(copy) NSString *border; | |
711 | @property(copy) NSString *cellPadding; | |
712 | @property(copy) NSString *cellSpacing; | |
713 | @property(copy) NSString *frameBorders; | |
714 | @property(copy) NSString *rules; | |
715 | @property(copy) NSString *summary; | |
716 | @property(copy) NSString *width; | |
717 | - (DOMHTMLElement *)createTHead; | |
718 | - (void)deleteTHead; | |
719 | - (DOMHTMLElement *)createTFoot; | |
720 | - (void)deleteTFoot; | |
721 | - (DOMHTMLElement *)createCaption; | |
722 | - (void)deleteCaption; | |
723 | - (DOMHTMLElement *)insertRow:(int)index; | |
724 | - (void)deleteRow:(int)index; | |
725 | @end | |
726 | ||
727 | @interface DOMHTMLTableRowElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
728 | @property(readonly) int rowIndex; | |
729 | @property(readonly) int sectionRowIndex; | |
730 | @property(readonly, retain) DOMHTMLCollection *cells; | |
731 | @property(copy) NSString *align; | |
732 | @property(copy) NSString *bgColor; | |
733 | @property(copy) NSString *ch; | |
734 | @property(copy) NSString *chOff; | |
735 | @property(copy) NSString *vAlign; | |
736 | - (DOMHTMLElement *)insertCell:(int)index; | |
737 | - (void)deleteCell:(int)index; | |
738 | @end | |
739 | ||
740 | @interface DOMHTMLTableSectionElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
741 | @property(copy) NSString *align; | |
742 | @property(copy) NSString *ch; | |
743 | @property(copy) NSString *chOff; | |
744 | @property(copy) NSString *vAlign; | |
745 | @property(readonly, retain) DOMHTMLCollection *rows; | |
746 | - (DOMHTMLElement *)insertRow:(int)index; | |
747 | - (void)deleteRow:(int)index; | |
748 | @end | |
749 | ||
750 | @interface DOMHTMLTextAreaElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
751 | @property(copy) NSString *defaultValue; | |
752 | @property(readonly, retain) DOMHTMLFormElement *form; | |
753 | @property(copy) NSString *accessKey; | |
754 | @property int cols; | |
755 | @property BOOL disabled; | |
756 | @property(copy) NSString *name; | |
757 | @property BOOL readOnly; | |
758 | @property int rows; | |
759 | @property(readonly, copy) NSString *type; | |
760 | @property(copy) NSString *value; | |
761 | - (void)select; | |
762 | @end | |
763 | ||
764 | @interface DOMHTMLTitleElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
765 | @property(copy) NSString *text; | |
766 | @end | |
767 | ||
768 | @interface DOMHTMLUListElement : DOMHTMLElement WEBKIT_VERSION_1_3 | |
769 | @property BOOL compact; | |
770 | @property(copy) NSString *type; | |
771 | @end | |
772 | ||
773 | @interface DOMStyleSheetList : DOMObject WEBKIT_VERSION_1_3 | |
774 | @property(readonly) unsigned length; | |
775 | - (DOMStyleSheet *)item:(unsigned)index; | |
776 | @end | |
777 | ||
778 | @interface DOMCSSCharsetRule : DOMCSSRule WEBKIT_VERSION_1_3 | |
779 | @property(readonly, copy) NSString *encoding; | |
780 | @end | |
781 | ||
782 | @interface DOMCSSFontFaceRule : DOMCSSRule WEBKIT_VERSION_1_3 | |
783 | @property(readonly, retain) DOMCSSStyleDeclaration *style; | |
784 | @end | |
785 | ||
786 | @interface DOMCSSImportRule : DOMCSSRule WEBKIT_VERSION_1_3 | |
787 | @property(readonly, copy) NSString *href; | |
788 | @property(readonly, retain) DOMMediaList *media; | |
789 | @property(readonly, retain) DOMCSSStyleSheet *styleSheet; | |
790 | @end | |
791 | ||
792 | @interface DOMCSSMediaRule : DOMCSSRule WEBKIT_VERSION_1_3 | |
793 | @property(readonly, retain) DOMMediaList *media; | |
794 | @property(readonly, retain) DOMCSSRuleList *cssRules; | |
795 | - (unsigned)insertRule:(NSString *)rule :(unsigned)index; | |
796 | - (unsigned)insertRule:(NSString *)rule index:(unsigned)index AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
797 | - (void)deleteRule:(unsigned)index; | |
798 | @end | |
799 | ||
800 | @interface DOMCSSPageRule : DOMCSSRule WEBKIT_VERSION_1_3 | |
801 | @property(copy) NSString *selectorText; | |
802 | @property(readonly, retain) DOMCSSStyleDeclaration *style; | |
803 | @end | |
804 | ||
805 | @interface DOMCSSPrimitiveValue : DOMCSSValue WEBKIT_VERSION_1_3 | |
806 | @property(readonly) unsigned short primitiveType; | |
807 | - (void)setFloatValue:(unsigned short)unitType :(float)floatValue; | |
808 | - (void)setFloatValue:(unsigned short)unitType floatValue:(float)floatValue AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
809 | - (float)getFloatValue:(unsigned short)unitType; | |
810 | - (void)setStringValue:(unsigned short)stringType :(NSString *)stringValue; | |
811 | - (void)setStringValue:(unsigned short)stringType stringValue:(NSString *)stringValue AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
812 | - (NSString *)getStringValue; | |
813 | - (DOMCounter *)getCounterValue; | |
814 | - (DOMRect *)getRectValue; | |
815 | - (DOMRGBColor *)getRGBColorValue; | |
816 | @end | |
817 | ||
818 | @interface DOMRGBColor : DOMObject WEBKIT_VERSION_1_3 | |
819 | @property(readonly, retain) DOMCSSPrimitiveValue *red; | |
820 | @property(readonly, retain) DOMCSSPrimitiveValue *green; | |
821 | @property(readonly, retain) DOMCSSPrimitiveValue *blue; | |
822 | @property(readonly, retain) DOMCSSPrimitiveValue *alpha; | |
823 | @end | |
824 | ||
825 | @interface DOMCSSRule : DOMObject WEBKIT_VERSION_1_3 | |
826 | @property(readonly) unsigned short type; | |
827 | @property(copy) NSString *cssText; | |
828 | @property(readonly, retain) DOMCSSStyleSheet *parentStyleSheet; | |
829 | @property(readonly, retain) DOMCSSRule *parentRule; | |
830 | @end | |
831 | ||
832 | @interface DOMCSSRuleList : DOMObject WEBKIT_VERSION_1_3 | |
833 | @property(readonly) unsigned length; | |
834 | - (DOMCSSRule *)item:(unsigned)index; | |
835 | @end | |
836 | ||
837 | @interface DOMCSSStyleDeclaration : DOMObject WEBKIT_VERSION_1_3 | |
838 | @property(copy) NSString *cssText; | |
839 | @property(readonly) unsigned length; | |
840 | @property(readonly, retain) DOMCSSRule *parentRule; | |
841 | - (NSString *)getPropertyValue:(NSString *)propertyName; | |
842 | - (DOMCSSValue *)getPropertyCSSValue:(NSString *)propertyName; | |
843 | - (NSString *)removeProperty:(NSString *)propertyName; | |
844 | - (NSString *)getPropertyPriority:(NSString *)propertyName; | |
845 | - (void)setProperty:(NSString *)propertyName :(NSString *)value :(NSString *)priority; | |
846 | - (void)setProperty:(NSString *)propertyName value:(NSString *)value priority:(NSString *)priority AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
847 | - (NSString *)item:(unsigned)index; | |
848 | - (NSString *)getPropertyShorthand:(NSString *)propertyName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
849 | - (BOOL)isPropertyImplicit:(NSString *)propertyName AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
850 | @end | |
851 | ||
852 | @interface DOMCSSStyleRule : DOMCSSRule WEBKIT_VERSION_1_3 | |
853 | @property(copy) NSString *selectorText; | |
854 | @property(readonly, retain) DOMCSSStyleDeclaration *style; | |
855 | @end | |
856 | ||
857 | @interface DOMStyleSheet : DOMObject WEBKIT_VERSION_1_3 | |
858 | @property(readonly, copy) NSString *type; | |
859 | @property BOOL disabled; | |
860 | @property(readonly, retain) DOMNode *ownerNode; | |
861 | @property(readonly, retain) DOMStyleSheet *parentStyleSheet; | |
862 | @property(readonly, copy) NSString *href; | |
863 | @property(readonly, copy) NSString *title; | |
864 | @property(readonly, retain) DOMMediaList *media; | |
865 | @end | |
866 | ||
867 | @interface DOMCSSStyleSheet : DOMStyleSheet WEBKIT_VERSION_1_3 | |
868 | @property(readonly, retain) DOMCSSRule *ownerRule; | |
869 | @property(readonly, retain) DOMCSSRuleList *cssRules; | |
870 | - (unsigned)insertRule:(NSString *)rule :(unsigned)index; | |
871 | - (unsigned)insertRule:(NSString *)rule index:(unsigned)index AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
872 | - (void)deleteRule:(unsigned)index; | |
873 | @end | |
874 | ||
875 | @interface DOMCSSValue : DOMObject WEBKIT_VERSION_1_3 | |
876 | @property(copy) NSString *cssText; | |
877 | @property(readonly) unsigned short cssValueType; | |
878 | @end | |
879 | ||
880 | @interface DOMCSSValueList : DOMCSSValue WEBKIT_VERSION_1_3 | |
881 | @property(readonly) unsigned length; | |
882 | - (DOMCSSValue *)item:(unsigned)index; | |
883 | @end | |
884 | ||
885 | @interface DOMCSSUnknownRule : DOMCSSRule WEBKIT_VERSION_1_3 | |
886 | @end | |
887 | ||
888 | @interface DOMCounter : DOMObject WEBKIT_VERSION_1_3 | |
889 | @property(readonly, copy) NSString *identifier; | |
890 | @property(readonly, copy) NSString *listStyle; | |
891 | @property(readonly, copy) NSString *separator; | |
892 | @end | |
893 | ||
894 | @interface DOMRect : DOMObject WEBKIT_VERSION_1_3 | |
895 | @property(readonly, retain) DOMCSSPrimitiveValue *top; | |
896 | @property(readonly, retain) DOMCSSPrimitiveValue *right; | |
897 | @property(readonly, retain) DOMCSSPrimitiveValue *bottom; | |
898 | @property(readonly, retain) DOMCSSPrimitiveValue *left; | |
899 | @end | |
900 | ||
901 | @interface DOMEvent : DOMObject WEBKIT_VERSION_1_3 | |
902 | @property(readonly, copy) NSString *type; | |
903 | @property(readonly, retain) id <DOMEventTarget> target; | |
904 | @property(readonly, retain) id <DOMEventTarget> currentTarget; | |
905 | @property(readonly) unsigned short eventPhase; | |
906 | @property(readonly) BOOL bubbles; | |
907 | @property(readonly) BOOL cancelable; | |
908 | @property(readonly) DOMTimeStamp timeStamp; | |
909 | - (void)stopPropagation; | |
910 | - (void)preventDefault; | |
911 | - (void)initEvent:(NSString *)eventTypeArg canBubbleArg:(BOOL)canBubbleArg cancelableArg:(BOOL)cancelableArg AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
912 | - (void)initEvent:(NSString *)eventTypeArg :(BOOL)canBubbleArg :(BOOL)cancelableArg; | |
913 | @end | |
914 | ||
915 | @interface DOMUIEvent : DOMEvent WEBKIT_VERSION_1_3 | |
916 | @property(readonly, retain) DOMAbstractView *view; | |
917 | @property(readonly) int detail; | |
918 | - (void)initUIEvent:(NSString *)type canBubble:(BOOL)canBubble cancelable:(BOOL)cancelable view:(DOMAbstractView *)view detail:(int)detail AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
919 | - (void)initUIEvent:(NSString *)type :(BOOL)canBubble :(BOOL)cancelable :(DOMAbstractView *)view :(int)detail; | |
920 | @end | |
921 | ||
922 | @interface DOMMutationEvent : DOMEvent WEBKIT_VERSION_1_3 | |
923 | @property(readonly, retain) DOMNode *relatedNode; | |
924 | @property(readonly, copy) NSString *prevValue; | |
925 | @property(readonly, copy) NSString *newValue; | |
926 | @property(readonly, copy) NSString *attrName; | |
927 | @property(readonly) unsigned short attrChange; | |
928 | - (void)initMutationEvent:(NSString *)type canBubble:(BOOL)canBubble cancelable:(BOOL)cancelable relatedNode:(DOMNode *)relatedNode prevValue:(NSString *)prevValue newValue:(NSString *)newValue attrName:(NSString *)attrName attrChange:(unsigned short)attrChange AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
929 | - (void)initMutationEvent:(NSString *)type :(BOOL)canBubble :(BOOL)cancelable :(DOMNode *)relatedNode :(NSString *)prevValue :(NSString *)newValue :(NSString *)attrName :(unsigned short)attrChange; | |
930 | @end | |
931 | ||
932 | @interface DOMOverflowEvent : DOMEvent WEBKIT_VERSION_3_0 | |
933 | @property(readonly) unsigned short orient; | |
934 | @property(readonly) BOOL horizontalOverflow; | |
935 | @property(readonly) BOOL verticalOverflow; | |
936 | - (void)initOverflowEvent:(unsigned short)orient horizontalOverflow:(BOOL)horizontalOverflow verticalOverflow:(BOOL)verticalOverflow; | |
937 | @end | |
938 | ||
939 | @interface DOMWheelEvent : DOMUIEvent WEBKIT_VERSION_3_0 | |
940 | @property(readonly) int screenX; | |
941 | @property(readonly) int screenY; | |
942 | @property(readonly) int clientX; | |
943 | @property(readonly) int clientY; | |
944 | @property(readonly) BOOL ctrlKey; | |
945 | @property(readonly) BOOL shiftKey; | |
946 | @property(readonly) BOOL altKey; | |
947 | @property(readonly) BOOL metaKey; | |
948 | @property(readonly) BOOL isHorizontal; | |
949 | @property(readonly) int wheelDelta; | |
950 | @end | |
951 | ||
952 | @interface DOMKeyboardEvent : DOMUIEvent WEBKIT_VERSION_3_0 | |
953 | @property(readonly, copy) NSString *keyIdentifier; | |
954 | @property(readonly) unsigned keyLocation; | |
955 | @property(readonly) BOOL ctrlKey; | |
956 | @property(readonly) BOOL shiftKey; | |
957 | @property(readonly) BOOL altKey; | |
958 | @property(readonly) BOOL metaKey; | |
959 | @property(readonly) int keyCode; | |
960 | @property(readonly) int charCode; | |
961 | - (BOOL)getModifierState:(NSString *)keyIdentifierArg; | |
962 | @end | |
963 | ||
964 | @interface DOMMouseEvent : DOMUIEvent WEBKIT_VERSION_1_3 | |
965 | @property(readonly) int screenX; | |
966 | @property(readonly) int screenY; | |
967 | @property(readonly) int clientX; | |
968 | @property(readonly) int clientY; | |
969 | @property(readonly) BOOL ctrlKey; | |
970 | @property(readonly) BOOL shiftKey; | |
971 | @property(readonly) BOOL altKey; | |
972 | @property(readonly) BOOL metaKey; | |
973 | @property(readonly) unsigned short button; | |
974 | @property(readonly, retain) id <DOMEventTarget> relatedTarget; | |
975 | - (void)initMouseEvent:(NSString *)type canBubble:(BOOL)canBubble cancelable:(BOOL)cancelable view:(DOMAbstractView *)view detail:(int)detail screenX:(int)screenX screenY:(int)screenY clientX:(int)clientX clientY:(int)clientY ctrlKey:(BOOL)ctrlKey altKey:(BOOL)altKey shiftKey:(BOOL)shiftKey metaKey:(BOOL)metaKey button:(unsigned short)button relatedTarget:(id <DOMEventTarget>)relatedTarget AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
976 | - (void)initMouseEvent:(NSString *)type :(BOOL)canBubble :(BOOL)cancelable :(DOMAbstractView *)view :(int)detail :(int)screenX :(int)screenY :(int)clientX :(int)clientY :(BOOL)ctrlKey :(BOOL)altKey :(BOOL)shiftKey :(BOOL)metaKey :(unsigned short)button :(id <DOMEventTarget>)relatedTarget; | |
977 | @end | |
978 | ||
979 | @interface DOMRange : DOMObject WEBKIT_VERSION_1_3 | |
980 | @property(readonly, retain) DOMNode *startContainer; | |
981 | @property(readonly) int startOffset; | |
982 | @property(readonly, retain) DOMNode *endContainer; | |
983 | @property(readonly) int endOffset; | |
984 | @property(readonly) BOOL collapsed; | |
985 | @property(readonly, retain) DOMNode *commonAncestorContainer; | |
986 | @property(readonly, copy) NSString *text AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
987 | - (void)setStart:(DOMNode *)refNode offset:(int)offset AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
988 | - (void)setStart:(DOMNode *)refNode :(int)offset; | |
989 | - (void)setEnd:(DOMNode *)refNode offset:(int)offset AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
990 | - (void)setEnd:(DOMNode *)refNode :(int)offset; | |
991 | - (void)setStartBefore:(DOMNode *)refNode; | |
992 | - (void)setStartAfter:(DOMNode *)refNode; | |
993 | - (void)setEndBefore:(DOMNode *)refNode; | |
994 | - (void)setEndAfter:(DOMNode *)refNode; | |
995 | - (void)collapse:(BOOL)toStart; | |
996 | - (void)selectNode:(DOMNode *)refNode; | |
997 | - (void)selectNodeContents:(DOMNode *)refNode; | |
998 | - (short)compareBoundaryPoints:(unsigned short)how sourceRange:(DOMRange *)sourceRange AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
999 | - (short)compareBoundaryPoints:(unsigned short)how :(DOMRange *)sourceRange; | |
1000 | - (void)deleteContents; | |
1001 | - (DOMDocumentFragment *)extractContents; | |
1002 | - (DOMDocumentFragment *)cloneContents; | |
1003 | - (void)insertNode:(DOMNode *)newNode; | |
1004 | - (void)surroundContents:(DOMNode *)newParent; | |
1005 | - (DOMRange *)cloneRange; | |
1006 | - (NSString *)toString; | |
1007 | - (void)detach; | |
1008 | @end | |
1009 | ||
1010 | @interface DOMNodeIterator : DOMObject WEBKIT_VERSION_1_3 | |
1011 | @property(readonly, retain) DOMNode *root; | |
1012 | @property(readonly) unsigned whatToShow; | |
1013 | @property(readonly, retain) id <DOMNodeFilter> filter; | |
1014 | @property(readonly) BOOL expandEntityReferences; | |
1015 | - (DOMNode *)nextNode; | |
1016 | - (DOMNode *)previousNode; | |
1017 | - (void)detach; | |
1018 | @end | |
1019 | ||
1020 | @interface DOMMediaList : DOMObject WEBKIT_VERSION_1_3 | |
1021 | @property(copy) NSString *mediaText; | |
1022 | @property(readonly) unsigned length; | |
1023 | - (NSString *)item:(unsigned)index; | |
1024 | - (void)deleteMedium:(NSString *)oldMedium; | |
1025 | - (void)appendMedium:(NSString *)newMedium; | |
1026 | @end | |
1027 | ||
1028 | @interface DOMTreeWalker : DOMObject WEBKIT_VERSION_1_3 | |
1029 | @property(readonly, retain) DOMNode *root; | |
1030 | @property(readonly) unsigned whatToShow; | |
1031 | @property(readonly, retain) id <DOMNodeFilter> filter; | |
1032 | @property(readonly) BOOL expandEntityReferences; | |
1033 | @property(retain) DOMNode *currentNode; | |
1034 | - (DOMNode *)parentNode; | |
1035 | - (DOMNode *)firstChild; | |
1036 | - (DOMNode *)lastChild; | |
1037 | - (DOMNode *)previousSibling; | |
1038 | - (DOMNode *)nextSibling; | |
1039 | - (DOMNode *)previousNode; | |
1040 | - (DOMNode *)nextNode; | |
1041 | @end | |
1042 | ||
1043 | @interface DOMXPathResult : DOMObject WEBKIT_VERSION_3_0 | |
1044 | @property(readonly) unsigned short resultType; | |
1045 | @property(readonly) double numberValue; | |
1046 | @property(readonly, copy) NSString *stringValue; | |
1047 | @property(readonly) BOOL booleanValue; | |
1048 | @property(readonly, retain) DOMNode *singleNodeValue; | |
1049 | @property(readonly) BOOL invalidIteratorState; | |
1050 | @property(readonly) unsigned snapshotLength; | |
1051 | - (DOMNode *)iterateNext; | |
1052 | - (DOMNode *)snapshotItem:(unsigned)index; | |
1053 | @end | |
1054 | ||
1055 | @interface DOMXPathExpression : DOMObject WEBKIT_VERSION_3_0 | |
1056 | - (DOMXPathResult *)evaluate:(DOMNode *)contextNode type:(unsigned short)type inResult:(DOMXPathResult *)inResult AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
1057 | - (DOMXPathResult *)evaluate:(DOMNode *)contextNode :(unsigned short)type :(DOMXPathResult *)inResult AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER_BUT_DEPRECATED; | |
1058 | @end | |
1059 | ||
1060 | // Protocols | |
1061 | ||
1062 | @protocol DOMEventListener <NSObject> WEBKIT_VERSION_1_3 | |
1063 | - (void)handleEvent:(DOMEvent *)evt; | |
1064 | @end | |
1065 | ||
1066 | @protocol DOMEventTarget <NSObject, NSCopying> WEBKIT_VERSION_1_3 | |
1067 | - (void)addEventListener:(NSString *)type :(id <DOMEventListener>)listener :(BOOL)useCapture; | |
1068 | - (void)removeEventListener:(NSString *)type :(id <DOMEventListener>)listener :(BOOL)useCapture; | |
1069 | - (void)addEventListener:(NSString *)type listener:(id <DOMEventListener>)listener useCapture:(BOOL)useCapture AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
1070 | - (void)removeEventListener:(NSString *)type listener:(id <DOMEventListener>)listener useCapture:(BOOL)useCapture AVAILABLE_WEBKIT_VERSION_3_0_AND_LATER; | |
1071 | - (BOOL)dispatchEvent:(DOMEvent *)event; | |
1072 | @end | |
1073 | ||
1074 | @protocol DOMNodeFilter <NSObject> WEBKIT_VERSION_1_3 | |
1075 | - (short)acceptNode:(DOMNode *)n; | |
1076 | @end | |
1077 | ||
1078 | @protocol DOMXPathNSResolver <NSObject> WEBKIT_VERSION_3_0 | |
1079 | - (NSString *)lookupNamespaceURI:(NSString *)prefix; | |
1080 | @end | |
1081 | ||
1082 | #include "PublicDOMInterfacesIPhone.h" |