Index: core/dom/Document.idl |
diff --git a/core/dom/Document.idl b/core/dom/Document.idl |
index 158f5bb2496cc23ae2c556ce0c7381e33c38d7e6..64f4ddf8b9a66ea2de5ea96c8e65a78ced050102 100644 |
--- a/core/dom/Document.idl |
+++ b/core/dom/Document.idl |
@@ -20,6 +20,8 @@ |
callback CustomElementConstructor = Element (); |
+typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext; |
+ |
[ |
SpecialWrapFor=HTMLDocument|XMLDocument |
] interface Document : Node { |
@@ -29,21 +31,23 @@ callback CustomElementConstructor = Element (); |
readonly attribute DOMImplementation implementation; |
readonly attribute Element documentElement; |
- [CustomElementCallbacks, PerWorldBindings, ActivityLogging=ForIsolatedWorlds, RaisesException] Element createElement(DOMString tagName); |
+ [CustomElementCallbacks, PerWorldBindings, LogActivity, RaisesException] Element createElement(DOMString tagName); |
DocumentFragment createDocumentFragment(); |
- [PerWorldBindings] Text createTextNode(DOMString data); |
+ Text createTextNode(DOMString data); |
Comment createComment(DOMString data); |
[RaisesException, MeasureAs=DocumentCreateCDATASection] CDATASection createCDATASection([Default=Undefined] optional DOMString data); // Removed from DOM4. |
[RaisesException] ProcessingInstruction createProcessingInstruction(DOMString target, DOMString data); |
[RaisesException, MeasureAs=DocumentCreateAttribute] Attr createAttribute([Default=Undefined] optional DOMString name); // Removed from DOM4. |
- [PerWorldBindings] HTMLCollection getElementsByTagName(DOMString localName); |
+ [DartNoAutoScope] HTMLCollection getElementsByTagName(DOMString localName); |
// Introduced in DOM Level 2: |
- [CustomElementCallbacks, PerWorldBindings, ActivityLogging=ForIsolatedWorlds, RaisesException] Node importNode(Node node, optional boolean deep); |
- [CustomElementCallbacks, PerWorldBindings, ActivityLogging=ForIsolatedWorlds, RaisesException] Element createElementNS([TreatNullAs=NullString] DOMString namespaceURI, DOMString qualifiedName); |
+ [CustomElementCallbacks, LogActivity, RaisesException] Node importNode(Node node, optional boolean deep); |
+ [CustomElementCallbacks, LogActivity, RaisesException] Element createElementNS([TreatNullAs=NullString] DOMString namespaceURI, DOMString qualifiedName); |
+ [RaisesException, DeprecateAs=DocumentCreateAttributeNS] Attr createAttributeNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI, |
+ [TreatNullAs=NullString,Default=Undefined] optional DOMString qualifiedName); // Removed from DOM4. |
HTMLCollection getElementsByTagNameNS([TreatNullAs=NullString] DOMString namespaceURI, DOMString localName); |
- [PerWorldBindings] Element getElementById(DOMString elementId); |
+ [PerWorldBindings, DartNoAutoScope] Element getElementById(DOMString elementId); |
// DOM Level 3 Core |
@@ -59,7 +63,7 @@ callback CustomElementConstructor = Element (); |
// DOM Level 2 Events (DocumentEvents interface) |
- [RaisesException] Event createEvent(optional DOMString eventType); |
+ [RaisesException] Event createEvent(DOMString eventType); |
// DOM Level 2 Traversal and Range (DocumentRange interface) |
@@ -87,6 +91,9 @@ callback CustomElementConstructor = Element (); |
CSSStyleDeclaration getOverrideStyle([Default=Undefined] optional Element element, |
[Default=Undefined] optional DOMString pseudoElement); |
+ // DOM 4 |
+ readonly attribute DOMString contentType; |
+ |
// Common extensions |
[CustomElementCallbacks] |
boolean execCommand([Default=Undefined] optional DOMString command, |
@@ -100,7 +107,8 @@ callback CustomElementConstructor = Element (); |
DOMString queryCommandValue([Default=Undefined] optional DOMString command); |
// Moved down from HTMLDocument |
- |
+ [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMString dir; |
+ [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMString designMode; |
[TreatNullAs=NullString, CustomElementCallbacks] attribute DOMString title; |
readonly attribute DOMString referrer; |
[TreatNullAs=NullString, RaisesException=Setter] attribute DOMString domain; |
@@ -108,27 +116,31 @@ callback CustomElementConstructor = Element (); |
[TreatNullAs=NullString, RaisesException] attribute DOMString cookie; |
- [RaisesException=Setter, CustomElementCallbacks, PerWorldBindings] attribute HTMLElement body; |
+ [RaisesException=Setter, CustomElementCallbacks, PerWorldBindings, DartNoAutoScope] attribute HTMLElement body; |
readonly attribute HTMLHeadElement head; |
readonly attribute HTMLCollection images; |
readonly attribute HTMLCollection applets; |
+ readonly attribute HTMLCollection embeds; |
+ [ImplementedAs=embeds] readonly attribute HTMLCollection plugins; |
readonly attribute HTMLCollection links; |
readonly attribute HTMLCollection forms; |
+ readonly attribute HTMLCollection scripts; |
readonly attribute HTMLCollection anchors; |
readonly attribute DOMString lastModified; |
- [PerWorldBindings] NodeList getElementsByName([Default=Undefined] optional DOMString elementName); |
+ [PerWorldBindings, DartNoAutoScope] NodeList getElementsByName([Default=Undefined] optional DOMString elementName); |
- [PerWorldBindings, ActivityLogging=ForIsolatedWorlds, PutForwards=href] readonly attribute Location location; |
+ [LogActivity, PutForwards=href] readonly attribute Location location; |
// IE extensions |
[MeasureAs=DocumentCharset, TreatReturnedNullStringAs=Undefined, TreatNullAs=NullString] attribute DOMString charset; |
- [MeasureAs=DocumentCharset, TreatReturnedNullStringAs=Undefined] readonly attribute DOMString defaultCharset; |
+ [MeasureAs=DocumentDefaultCharset, TreatReturnedNullStringAs=Undefined] readonly attribute DOMString defaultCharset; |
[TreatReturnedNullStringAs=Undefined] readonly attribute DOMString readyState; |
Element elementFromPoint([Default=Undefined] optional long x, |
[Default=Undefined] optional long y); |
+ [MeasureAs=DocumentCaretRangeFromPoint] |
Range caretRangeFromPoint([Default=Undefined] optional long x, |
[Default=Undefined] optional long y); |
@@ -139,9 +151,9 @@ callback CustomElementConstructor = Element (); |
// WebKit extensions |
[TreatReturnedNullStringAs=Null] readonly attribute DOMString preferredStylesheetSet; |
- [TreatReturnedNullStringAs=Null, TreatNullAs=NullString] attribute DOMString selectedStylesheetSet; |
+ [TreatReturnedNullStringAs=Null, TreatNullAs=NullString] attribute DOMString selectedStylesheetSet; |
- CanvasRenderingContext getCSSCanvasContext(DOMString contextId, DOMString name, long width, long height); |
+ [MeasureAs=DocumentGetCSSCanvasContext] RenderingContext getCSSCanvasContext(DOMString contextId, DOMString name, long width, long height); |
// HTML 5 |
HTMLCollection getElementsByClassName(DOMString classNames); |
@@ -150,12 +162,10 @@ callback CustomElementConstructor = Element (); |
readonly attribute DOMString compatMode; |
- // NodeSelector - Selector API |
- [RaisesException] Element querySelector(DOMString selectors); |
- [RaisesException] NodeList querySelectorAll(DOMString selectors); |
- |
- void webkitExitPointerLock(); |
- readonly attribute Element webkitPointerLockElement; |
+ [MeasureAs=DocumentExitPointerLock] void exitPointerLock(); |
+ [MeasureAs=DocumentPointerLockElement] readonly attribute Element pointerLockElement; |
+ [MeasureAs=PrefixedDocumentExitPointerLock, ImplementedAs=exitPointerLock] void webkitExitPointerLock(); |
+ [MeasureAs=PrefixedDocumentPointerLockElement, ImplementedAs=pointerLockElement] readonly attribute Element webkitPointerLockElement; |
// Event handler attributes |
attribute EventHandler onbeforecopy; |
@@ -164,6 +174,8 @@ callback CustomElementConstructor = Element (); |
attribute EventHandler oncopy; |
attribute EventHandler oncut; |
attribute EventHandler onpaste; |
+ attribute EventHandler onpointerlockchange; |
+ attribute EventHandler onpointerlockerror; |
attribute EventHandler onreadystatechange; |
attribute EventHandler onsearch; |
[RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHandler onsecuritypolicyviolation; |
@@ -177,24 +189,24 @@ callback CustomElementConstructor = Element (); |
attribute EventHandler onwebkitfullscreenerror; |
attribute EventHandler onwebkitpointerlockchange; |
attribute EventHandler onwebkitpointerlockerror; |
- [PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds] attribute EventHandler onwheel; |
+ [LogActivity=SetterOnly] attribute EventHandler onwheel; |
[RuntimeEnabled=Touch] Touch createTouch([Default=Undefined] optional Window window, |
[Default=Undefined] optional EventTarget target, |
[Default=Undefined] optional long identifier, |
- [Default=Undefined] optional long pageX, |
- [Default=Undefined] optional long pageY, |
- [Default=Undefined] optional long screenX, |
- [Default=Undefined] optional long screenY, |
- [Default=Undefined] optional long webkitRadiusX, |
- [Default=Undefined] optional long webkitRadiusY, |
+ [Default=Undefined] optional double pageX, |
+ [Default=Undefined] optional double pageY, |
+ [Default=Undefined] optional double screenX, |
+ [Default=Undefined] optional double screenY, |
+ [Default=Undefined] optional double webkitRadiusX, |
+ [Default=Undefined] optional double webkitRadiusY, |
[Default=Undefined] optional float webkitRotationAngle, |
[Default=Undefined] optional float webkitForce); |
[RuntimeEnabled=Touch] TouchList createTouchList(Touch... touches); |
- [CallWith=ScriptState, CustomElementCallbacks, RaisesException] CustomElementConstructor registerElement(DOMString name, optional Dictionary options); |
- [CustomElementCallbacks, PerWorldBindings, ActivityLogging=ForIsolatedWorlds, RaisesException] Element createElement(DOMString localName, [TreatNullAs=NullString] DOMString typeExtension); |
- [CustomElementCallbacks, PerWorldBindings, ActivityLogging=ForIsolatedWorlds, RaisesException] Element createElementNS([TreatNullAs=NullString] DOMString namespaceURI, DOMString qualifiedName, |
+ [CallWith=ScriptState, CustomElementCallbacks, RaisesException, MeasureAs=DocumentRegisterElement] CustomElementConstructor registerElement(DOMString name, optional Dictionary options); |
+ [CustomElementCallbacks, PerWorldBindings, LogActivity, RaisesException, DartCustom] Element createElement(DOMString localName, [TreatNullAs=NullString] DOMString typeExtension); |
+ [CustomElementCallbacks, LogActivity, RaisesException, DartCustom] Element createElementNS([TreatNullAs=NullString] DOMString namespaceURI, DOMString qualifiedName, |
[TreatNullAs=NullString] DOMString typeExtension); |
// Page visibility API. |
@@ -212,4 +224,3 @@ callback CustomElementConstructor = Element (); |
Document implements GlobalEventHandlers; |
Document implements ParentNode; |
- |