Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2006, 2007 Samuel Weinig <sam@webkit.org> | 3 * Copyright (C) 2006, 2007 Samuel Weinig <sam@webkit.org> |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 22 CustomToJSObject, | 22 CustomToJSObject, |
| 23 JSGenerateToNativeObject, | 23 JSGenerateToNativeObject, |
| 24 JSInlineGetOwnPropertySlot | 24 JSInlineGetOwnPropertySlot |
| 25 ] interface Document : Node { | 25 ] interface Document : Node { |
| 26 | 26 |
| 27 // DOM Level 1 Core | 27 // DOM Level 1 Core |
| 28 readonly attribute DocumentType doctype; | 28 readonly attribute DocumentType doctype; |
| 29 readonly attribute DOMImplementation implementation; | 29 readonly attribute DOMImplementation implementation; |
| 30 readonly attribute Element documentElement; | 30 readonly attribute Element documentElement; |
| 31 | 31 |
| 32 [ReturnNewObject] Element createElement(in [TreatNullAs=NullString,Optional= DefaultIsUndefined] DOMString tagName) | 32 [ReturnNewObject, V8DeliverCustomElementCallbacks, V8PerWorldBindings] |
|
Anton Muhin
2013/03/28 14:13:49
I'll take a look at those new attributes.
Anton Muhin
2013/03/28 17:16:53
This is about custom elements. We do not have pro
| |
| 33 Element createElement(in [TreatNullAs=NullString,Optional=DefaultIsUndefined ] DOMString tagName) | |
| 33 raises (DOMException); | 34 raises (DOMException); |
| 34 DocumentFragment createDocumentFragment(); | 35 DocumentFragment createDocumentFragment(); |
| 35 [ReturnNewObject] Text createTextNode(in [Optional=DefaultIsUndefined] DOMSt ring data); | 36 [ReturnNewObject, V8PerWorldBindings] Text createTextNode(in [Optional=Defau ltIsUndefined] DOMString data); |
| 36 [ReturnNewObject] Comment createComment(in [Optional=DefaultIsUndefined] DOM String data); | 37 [ReturnNewObject] Comment createComment(in [Optional=DefaultIsUndefined] DOM String data); |
| 37 [ReturnNewObject] CDATASection createCDATASection(in [Optional=DefaultIsUnde fined] DOMString data) | 38 [ReturnNewObject] CDATASection createCDATASection(in [Optional=DefaultIsUnde fined] DOMString data) |
| 38 raises(DOMException); | 39 raises(DOMException); |
| 39 [ObjCLegacyUnnamedParameters, ReturnNewObject] ProcessingInstruction createP rocessingInstruction(in [Optional=DefaultIsUndefined] DOMString target, | 40 [ObjCLegacyUnnamedParameters, ReturnNewObject] ProcessingInstruction createP rocessingInstruction(in [Optional=DefaultIsUndefined] DOMString target, |
| 40 in [Optional=DefaultIsUndefined] DOMString data) | 41 in [Optional=DefaultIsUndefined] DOMString data) |
| 41 raises (DOMException); | 42 raises (DOMException); |
| 42 [ReturnNewObject] Attr createAttribute(in [Optional=DefaultIsUndefined] DOMS tring name) | 43 [ReturnNewObject] Attr createAttribute(in [Optional=DefaultIsUndefined] DOMS tring name) |
| 43 raises (DOMException); | 44 raises (DOMException); |
| 44 [ReturnNewObject] EntityReference createEntityReference(in [Optional=Default IsUndefined] DOMString name) | 45 [ReturnNewObject] EntityReference createEntityReference(in [Optional=Default IsUndefined] DOMString name) |
| 45 raises(DOMException); | 46 raises(DOMException); |
| 46 NodeList getElementsByTagName(in [Optional=DefaultIsUndefined] DOM String tagname); | 47 [V8PerWorldBindings] NodeList getElementsByTagName(in [Optional=De faultIsUndefined] DOMString tagname); |
| 47 | 48 |
| 48 // Introduced in DOM Level 2: | 49 // Introduced in DOM Level 2: |
| 49 | 50 |
| 50 [ObjCLegacyUnnamedParameters, ReturnNewObject] Node importNode(in [Optional= DefaultIsUndefined] Node importedNode, | 51 [ObjCLegacyUnnamedParameters, ReturnNewObject, V8DeliverCustomElementCallbac ks] |
| 51 in [Optional] boolean deep) | 52 Node importNode(in [Optional=DefaultIsUndefined] Node importedNode, |
| 53 in [Optional] boolean deep) | |
| 52 raises (DOMException); | 54 raises (DOMException); |
| 53 [ObjCLegacyUnnamedParameters, ReturnNewObject] Element createElementNS(in [T reatNullAs=NullString,Optional=DefaultIsUndefined] DOMString namespaceURI, | 55 [ObjCLegacyUnnamedParameters, ReturnNewObject, V8DeliverCustomElementCallbac ks] |
| 54 in [TreatNullAs=NullStrin g,Optional=DefaultIsUndefined] DOMString qualifiedName) | 56 Element createElementNS(in [TreatNullAs=NullString,Optional=DefaultIsUndefin ed] DOMString namespaceURI, |
| 57 in [TreatNullAs=NullString,Optional=DefaultIsUndefin ed] DOMString qualifiedName) | |
| 55 raises (DOMException); | 58 raises (DOMException); |
| 56 [ObjCLegacyUnnamedParameters, ReturnNewObject] Attr createAttributeNS(in [Tr eatNullAs=NullString,Optional=DefaultIsUndefined] DOMString namespaceURI, | 59 [ObjCLegacyUnnamedParameters, ReturnNewObject] Attr createAttributeNS(in [Tr eatNullAs=NullString,Optional=DefaultIsUndefined] DOMString namespaceURI, |
| 57 in [TreatNullAs=NullString ,Optional=DefaultIsUndefined] DOMString qualifiedName) | 60 in [Tr eatNullAs=NullString,Optional=DefaultIsUndefined] DOMString qualifiedName) |
| 58 raises (DOMException); | 61 raises (DOMException); |
| 59 [ObjCLegacyUnnamedParameters] NodeList getElementsByTagNameNS(in [TreatNullA s=NullString,Optional=DefaultIsUndefined] DOMString namespaceURI, | 62 [ObjCLegacyUnnamedParameters] NodeList getElementsByTagNameNS(in [TreatNullA s=NullString,Optional=DefaultIsUndefined] DOMString namespaceURI, |
| 60 in [Optional=DefaultIsUndefin ed] DOMString localName); | 63 in [Optional=DefaultIsUndefin ed] DOMString localName); |
| 61 Element getElementById(in [Optional=DefaultIsUndefined] DOMString elementId); | 64 [V8PerWorldBindings] Element getElementById(in [Optional=DefaultI sUndefined] DOMString elementId); |
| 62 | 65 |
| 63 // DOM Level 3 Core | 66 // DOM Level 3 Core |
| 64 | 67 |
| 65 [TreatReturnedNullStringAs=Null] readonly attribute DOMString inputEncoding; | 68 [TreatReturnedNullStringAs=Null] readonly attribute DOMString inputEncoding; |
| 66 | 69 |
| 67 [TreatReturnedNullStringAs=Null] readonly attribute DOMString xmlEncoding; | 70 [TreatReturnedNullStringAs=Null] readonly attribute DOMString xmlEncoding; |
| 68 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString] attribute DOMString xmlVersion | 71 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString] attribute DOMString xmlVersion |
| 69 setter raises (DOMException); | 72 setter raises (DOMException); |
| 70 attribute boolean xmlStandalone | 73 attribute boolean xmlStandalone |
| 71 setter raises (DOMException); | 74 setter raises (DOMException); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 124 raises(DOMException); | 127 raises(DOMException); |
| 125 XPathNSResolver createNSResolver(in Node nodeResolver); | 128 XPathNSResolver createNSResolver(in Node nodeResolver); |
| 126 [ObjCLegacyUnnamedParameters, V8Custom] XPathResult evaluate(in [Optional=De faultIsUndefined] DOMString expression, | 129 [ObjCLegacyUnnamedParameters, V8Custom] XPathResult evaluate(in [Optional=De faultIsUndefined] DOMString expression, |
| 127 in [Optional=DefaultIsUndefine d] Node contextNode, | 130 in [Optional=DefaultIsUndefine d] Node contextNode, |
| 128 in [Optional=DefaultIsUndefine d] XPathNSResolver resolver, | 131 in [Optional=DefaultIsUndefine d] XPathNSResolver resolver, |
| 129 in [Optional=DefaultIsUndefine d] unsigned short type, | 132 in [Optional=DefaultIsUndefine d] unsigned short type, |
| 130 in [Optional=DefaultIsUndefine d] XPathResult inResult) | 133 in [Optional=DefaultIsUndefine d] XPathResult inResult) |
| 131 raises(DOMException); | 134 raises(DOMException); |
| 132 | 135 |
| 133 // Common extensions | 136 // Common extensions |
| 134 | 137 [V8DeliverCustomElementCallbacks] |
| 135 boolean execCommand(in [Optional=DefaultIsUndefined] DOMString co mmand, | 138 boolean execCommand(in [Optional=DefaultIsUndefined] DOMString co mmand, |
| 136 in [Optional=DefaultIsUndefined] boolean user Interface, | 139 in [Optional=DefaultIsUndefined] boolean user Interface, |
| 137 in [TreatNullAs=NullString, TreatUndefinedAs= NullString,Optional=DefaultIsUndefined] DOMString value); | 140 in [TreatNullAs=NullString, TreatUndefinedAs= NullString,Optional=DefaultIsUndefined] DOMString value); |
| 138 | 141 |
| 139 #if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C | 142 #if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C |
| 140 // FIXME: remove the these two versions once [Optional] is implemented for O bjective-C. | 143 // FIXME: remove the these two versions once [Optional] is implemented for O bjective-C. |
| 141 boolean execCommand(in DOMString command, | 144 boolean execCommand(in DOMString command, |
| 142 in boolean userInterface); | 145 in boolean userInterface); |
| 143 boolean execCommand(in DOMString command); | 146 boolean execCommand(in DOMString command); |
| 144 #endif | 147 #endif |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 169 setter raises (DOMException); | 172 setter raises (DOMException); |
| 170 | 173 |
| 171 readonly attribute HTMLHeadElement head; | 174 readonly attribute HTMLHeadElement head; |
| 172 readonly attribute HTMLCollection images; | 175 readonly attribute HTMLCollection images; |
| 173 readonly attribute HTMLCollection applets; | 176 readonly attribute HTMLCollection applets; |
| 174 readonly attribute HTMLCollection links; | 177 readonly attribute HTMLCollection links; |
| 175 readonly attribute HTMLCollection forms; | 178 readonly attribute HTMLCollection forms; |
| 176 readonly attribute HTMLCollection anchors; | 179 readonly attribute HTMLCollection anchors; |
| 177 readonly attribute DOMString lastModified; | 180 readonly attribute DOMString lastModified; |
| 178 | 181 |
| 179 NodeList getElementsByName(in [Optional=DefaultIsUndefined] DOMString elemen tName); | 182 [V8PerWorldBindings] NodeList getElementsByName(in [Optional=DefaultIsUndefi ned] DOMString elementName); |
| 180 | 183 |
| 181 #if defined(ENABLE_MICRODATA) && ENABLE_MICRODATA | 184 #if defined(ENABLE_MICRODATA) && ENABLE_MICRODATA |
| 182 NodeList getItems(in [TreatNullAs=NullString, TreatUndefinedAs=NullString, O ptional=DefaultIsUndefined] DOMString typeNames); | 185 NodeList getItems(in [TreatNullAs=NullString, TreatUndefinedAs=NullString, O ptional=DefaultIsUndefined] DOMString typeNames); |
| 183 #endif | 186 #endif |
| 184 | 187 |
| 185 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT | 188 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT |
| 186 [Custom] attribute Location location; | 189 [Custom] attribute Location location; |
| 187 #endif | 190 #endif |
| 188 | 191 |
| 189 // IE extensions | 192 // IE extensions |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 334 [NotEnumerable] attribute EventListener onselectstart; | 337 [NotEnumerable] attribute EventListener onselectstart; |
| 335 [NotEnumerable] attribute EventListener onselectionchange; | 338 [NotEnumerable] attribute EventListener onselectionchange; |
| 336 [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime=touch] attribute EventListener ontouchstart; | 339 [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime=touch] attribute EventListener ontouchstart; |
| 337 [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime=touch] attribute EventListener ontouchmove; | 340 [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime=touch] attribute EventListener ontouchmove; |
| 338 [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime=touch] attribute EventListener ontouchend; | 341 [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime=touch] attribute EventListener ontouchend; |
| 339 [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime=touch] attribute EventListener ontouchcancel; | 342 [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime=touch] attribute EventListener ontouchcancel; |
| 340 [NotEnumerable, Conditional=FULLSCREEN_API] attribute EventListener onwebkit fullscreenchange; | 343 [NotEnumerable, Conditional=FULLSCREEN_API] attribute EventListener onwebkit fullscreenchange; |
| 341 [NotEnumerable, Conditional=FULLSCREEN_API] attribute EventListener onwebkit fullscreenerror; | 344 [NotEnumerable, Conditional=FULLSCREEN_API] attribute EventListener onwebkit fullscreenerror; |
| 342 [NotEnumerable, Conditional=POINTER_LOCK] attribute EventListener onwebkitpo interlockchange; | 345 [NotEnumerable, Conditional=POINTER_LOCK] attribute EventListener onwebkitpo interlockchange; |
| 343 [NotEnumerable, Conditional=POINTER_LOCK] attribute EventListener onwebkitpo interlockerror; | 346 [NotEnumerable, Conditional=POINTER_LOCK] attribute EventListener onwebkitpo interlockerror; |
| 347 [NotEnumerable, Conditional=CSP_NEXT, V8EnabledAtRuntime=experimentalContent SecurityPolicyFeatures] attribute EventListener onsecuritypolicyviolation; | |
| 344 #endif | 348 #endif |
| 345 | 349 |
| 346 #if defined(ENABLE_TOUCH_EVENTS) && ENABLE_TOUCH_EVENTS | 350 #if defined(ENABLE_TOUCH_EVENTS) && ENABLE_TOUCH_EVENTS |
| 347 [ReturnNewObject, V8EnabledAtRuntime=touch] Touch createTouch(in [Optional=D efaultIsUndefined] DOMWindow window, | 351 [ReturnNewObject, V8EnabledAtRuntime=touch] Touch createTouch(in [Optional=D efaultIsUndefined] DOMWindow window, |
| 348 in [Optional=DefaultIsUndef ined] EventTarget target, | 352 in [Optional=DefaultIsUndef ined] EventTarget target, |
| 349 in [Optional=DefaultIsUndef ined] long identifier, | 353 in [Optional=DefaultIsUndef ined] long identifier, |
| 350 in [Optional=DefaultIsUndef ined] long pageX, | 354 in [Optional=DefaultIsUndef ined] long pageX, |
| 351 in [Optional=DefaultIsUndef ined] long pageY, | 355 in [Optional=DefaultIsUndef ined] long pageY, |
| 352 in [Optional=DefaultIsUndef ined] long screenX, | 356 in [Optional=DefaultIsUndef ined] long screenX, |
| 353 in [Optional=DefaultIsUndef ined] long screenY, | 357 in [Optional=DefaultIsUndef ined] long screenY, |
| 354 in [Optional=DefaultIsUndef ined] long webkitRadiusX, | 358 in [Optional=DefaultIsUndef ined] long webkitRadiusX, |
| 355 in [Optional=DefaultIsUndef ined] long webkitRadiusY, | 359 in [Optional=DefaultIsUndef ined] long webkitRadiusY, |
| 356 in [Optional=DefaultIsUndef ined] float webkitRotationAngle, | 360 in [Optional=DefaultIsUndef ined] float webkitRotationAngle, |
| 357 in [Optional=DefaultIsUndef ined] float webkitForce) | 361 in [Optional=DefaultIsUndef ined] float webkitForce) |
| 358 raises (DOMException); | 362 raises (DOMException); |
| 359 [ReturnNewObject, V8EnabledAtRuntime=touch, Custom] TouchList createTouchLis t() | 363 [ReturnNewObject, V8EnabledAtRuntime=touch, Custom] TouchList createTouchLis t() |
| 360 raises (DOMException); | 364 raises (DOMException); |
| 361 #endif | 365 #endif |
| 362 | 366 |
| 363 #if defined(ENABLE_CUSTOM_ELEMENTS) && ENABLE_CUSTOM_ELEMENTS | 367 #if defined(ENABLE_CUSTOM_ELEMENTS) && ENABLE_CUSTOM_ELEMENTS |
| 364 [V8EnabledAtRuntime=customDOMElements, Conditional=CUSTOM_ELEMENTS, Implemen tedAs=registerElement, CallWith=ScriptState] | 368 [V8EnabledAtRuntime=customDOMElements, Conditional=CUSTOM_ELEMENTS, Implemen tedAs=registerElement, CallWith=ScriptState, V8DeliverCustomElementCallbacks] |
| 365 CustomElementConstructor webkitRegister(in DOMString name, in [Optional] Dic tionary options) raises(DOMException); | 369 CustomElementConstructor webkitRegister(in DOMString name, in [Optional] Dic tionary options) raises(DOMException); |
| 366 [ReturnNewObject] Element createElement(in DOMString localName, in [TreatNul lAs=NullString] DOMString typeExtension) raises (DOMException); | 370 [ReturnNewObject, V8DeliverCustomElementCallbacks, V8PerWorldBindings] |
| 367 [ReturnNewObject] Element createElementNS(in [TreatNullAs=NullString] DOMStr ing namespaceURI, in DOMString qualifiedName, | 371 Element createElement(in DOMString localName, in [TreatNullAs=NullString] DO MString typeExtension) raises (DOMException); |
| 368 in [TreatNullAs=NullString] DOMStr ing typeExtension) raises (DOMException); | 372 [ReturnNewObject, V8DeliverCustomElementCallbacks] |
| 373 Element createElementNS(in [TreatNullAs=NullString] DOMString namespaceURI, in DOMString qualifiedName, | |
| 374 in [TreatNullAs=NullString] DOMString typeExtension) raises (DOMException); | |
| 369 #endif | 375 #endif |
| 370 | 376 |
| 371 #if defined(LANGUAGE_CPP) && LANGUAGE_CPP | 377 #if defined(LANGUAGE_CPP) && LANGUAGE_CPP |
| 372 // Extra WebCore methods exposed to allow compile-time casting in C++ | 378 // Extra WebCore methods exposed to allow compile-time casting in C++ |
| 373 boolean isHTMLDocument(); | 379 boolean isHTMLDocument(); |
| 374 #endif | 380 #endif |
| 375 | 381 |
| 376 // Page visibility API. | 382 // Page visibility API. |
| 377 [Conditional=PAGE_VISIBILITY_API] readonly attribute DOMString webkitVisibil ityState; | 383 [Conditional=PAGE_VISIBILITY_API] readonly attribute DOMString webkitVisibil ityState; |
| 378 [Conditional=PAGE_VISIBILITY_API] readonly attribute boolean webkitHidden; | 384 [Conditional=PAGE_VISIBILITY_API] readonly attribute boolean webkitHidden; |
| 379 | 385 |
| 380 // Security Policy API: http://dvcs.w3.org/hg/content-security-policy/raw-fi le/tip/csp-specification.dev.html#script-interfaces | 386 // Security Policy API: http://dvcs.w3.org/hg/content-security-policy/raw-fi le/tip/csp-specification.dev.html#script-interfaces |
| 381 [Conditional=CSP_NEXT, V8EnabledAtRuntime=experimentalContentSecurityPolicyF eatures] readonly attribute DOMSecurityPolicy securityPolicy; | 387 [Conditional=CSP_NEXT, V8EnabledAtRuntime=experimentalContentSecurityPolicyF eatures] readonly attribute DOMSecurityPolicy securityPolicy; |
| 382 | 388 |
| 383 }; | 389 }; |
| 384 | 390 |
| OLD | NEW |