Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(444)

Side by Side Diff: core/dom/Document.idl

Issue 581453002: Dartium Roll 38 roll (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Sync'd w/ r 182210 Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « core/dom/DOMTokenList.idl ('k') | core/dom/DocumentFullscreen.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 13 matching lines...) Expand all
24 24
25 [ 25 [
26 SpecialWrapFor=HTMLDocument|XMLDocument 26 SpecialWrapFor=HTMLDocument|XMLDocument
27 ] interface Document : Node { 27 ] interface Document : Node {
28 28
29 // DOM Level 1 Core 29 // DOM Level 1 Core
30 readonly attribute DocumentType doctype; 30 readonly attribute DocumentType doctype;
31 readonly attribute DOMImplementation implementation; 31 readonly attribute DOMImplementation implementation;
32 readonly attribute Element documentElement; 32 readonly attribute Element documentElement;
33 33
34 [CustomElementCallbacks, PerWorldBindings, LogActivity, RaisesException] Ele ment createElement(DOMString tagName); 34 [CustomElementCallbacks, PerWorldBindings, RaisesException] Element createEl ement(DOMString tagName);
35 DocumentFragment createDocumentFragment(); 35 DocumentFragment createDocumentFragment();
36 Text createTextNode(DOMString data); 36 Text createTextNode(DOMString data);
37 Comment createComment(DOMString data); 37 Comment createComment(DOMString data);
38 [RaisesException, MeasureAs=DocumentCreateCDATASection] CDATASection createC DATASection([Default=Undefined] optional DOMString data); // Removed from DOM4. 38 [RaisesException, MeasureAs=DocumentCreateCDATASection] CDATASection createC DATASection([Default=Undefined] optional DOMString data); // Removed from DOM4.
39 [RaisesException] ProcessingInstruction createProcessingInstruction(DOMStrin g target, DOMString data); 39 [RaisesException] ProcessingInstruction createProcessingInstruction(DOMStrin g target, DOMString data);
40 [RaisesException, MeasureAs=DocumentCreateAttribute] Attr createAttribute([D efault=Undefined] optional DOMString name); // Removed from DOM4. 40 [RaisesException, MeasureAs=DocumentCreateAttribute] Attr createAttribute([D efault=Undefined] optional DOMString name); // Removed from DOM4.
41 [DartNoAutoScope] HTMLCollection getElementsByTagName(DOMString localName); 41 [DartNoAutoScope] HTMLCollection getElementsByTagName(DOMString localName);
42 42
43 // Introduced in DOM Level 2: 43 // Introduced in DOM Level 2:
44 44
45 [CustomElementCallbacks, LogActivity, RaisesException] Node importNode(Node node, optional boolean deep); 45 [CustomElementCallbacks, RaisesException, TypeChecking=Interface] Node impor tNode(Node node, optional boolean deep = false);
46 [CustomElementCallbacks, LogActivity, RaisesException] Element createElement NS([TreatNullAs=NullString] DOMString namespaceURI, DOMString qualifiedName); 46 [CustomElementCallbacks, RaisesException] Element createElementNS(DOMString? namespaceURI, DOMString qualifiedName);
47 [RaisesException, DeprecateAs=DocumentCreateAttributeNS] Attr createAttribut eNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI, 47 [RaisesException, DeprecateAs=DocumentCreateAttributeNS] Attr createAttribut eNS([Default=Undefined] optional DOMString? namespaceURI,
48 [TreatNullAs=NullString,Default=Undefined] optional DOMString qualifiedName); // Removed from DOM4. 48 [Default=Undefined] optional DOMString? qualifiedName); // Removed from DOM4 .
49 HTMLCollection getElementsByTagNameNS([TreatNullAs=NullString] DOMString nam espaceURI, DOMString localName); 49 HTMLCollection getElementsByTagNameNS(DOMString? namespaceURI, DOMString loc alName);
50 [PerWorldBindings, DartNoAutoScope] Element getElementById(DOMString element Id); 50 [PerWorldBindings, DartNoAutoScope] Element getElementById(DOMString element Id);
51 51
52 // DOM Level 3 Core 52 // DOM Level 3 Core
53 53
54 [TreatReturnedNullStringAs=Null, MeasureAs=DocumentInputEncoding] readonly a ttribute DOMString inputEncoding; // Removed from DOM4. 54 [MeasureAs=DocumentInputEncoding] readonly attribute DOMString? inputEncodin g; // Removed from DOM4.
55 55
56 [TreatReturnedNullStringAs=Null, MeasureAs=DocumentXMLEncoding] readonly att ribute DOMString xmlEncoding; // Removed from DOM4. 56 [MeasureAs=DocumentXMLEncoding] readonly attribute DOMString? xmlEncoding; / / Removed from DOM4.
57 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, RaisesException=Set ter, MeasureAs=DocumentXMLVersion] attribute DOMString xmlVersion; // Removed fr om DOM4. 57 [RaisesException=Setter, MeasureAs=DocumentXMLVersion] attribute DOMString? xmlVersion; // Removed from DOM4.
58 [RaisesException=Setter, MeasureAs=DocumentXMLStandalone] attribute boolean xmlStandalone; // Removed from DOM4. 58 [RaisesException=Setter, MeasureAs=DocumentXMLStandalone] attribute boolean xmlStandalone; // Removed from DOM4.
59 59
60 [RaisesException, CustomElementCallbacks] Node adoptNode(Node node); 60 [RaisesException, CustomElementCallbacks, TypeChecking=Interface] Node adopt Node(Node node);
61 61
62 [TreatReturnedNullStringAs=Null, ImplementedAs=url] readonly attribute DOMSt ring documentURI; 62 [ImplementedAs=url] readonly attribute DOMString? documentURI;
63 63
64 // DOM Level 2 Events (DocumentEvents interface) 64 // DOM Level 2 Events (DocumentEvents interface)
65 65
66 [RaisesException] Event createEvent(DOMString eventType); 66 [RaisesException] Event createEvent(DOMString eventType);
67 67
68 // DOM Level 2 Traversal and Range (DocumentRange interface) 68 // DOM Level 2 Traversal and Range (DocumentRange interface)
69 69
70 Range createRange(); 70 Range createRange();
71 71
72 // DOM Level 2 Traversal and Range (DocumentTraversal interface) 72 // DOM Level 2 Traversal and Range (DocumentTraversal interface)
73 73
74 [RaisesException] NodeIterator createNodeIterator(Node root, 74 [RaisesException, TypeChecking=Interface] NodeIterator createNodeIterator(No de root,
75 optional unsigned long wha tToShow, 75 op tional unsigned long whatToShow = 0xFFFFFFFF,
76 optional NodeFilter filter ); 76 op tional NodeFilter? filter = null);
77 [RaisesException] TreeWalker createTreeWalker(Node root, 77 [RaisesException, TypeChecking=Interface] TreeWalker createTreeWalker(Node r oot,
78 optional unsigned long whatToS how, 78 option al unsigned long whatToShow = 0xFFFFFFFF,
79 optional NodeFilter filter); 79 option al NodeFilter? filter = null);
80 80
81 // DOM Level 2 Abstract Views (DocumentView interface) 81 // DOM Level 2 Abstract Views (DocumentView interface)
82 82
83 [ImplementedAs=executingWindow] readonly attribute Window defaultView; 83 [ImplementedAs=executingWindow] readonly attribute Window defaultView;
84 84
85 // DOM Level 2 Style (DocumentStyle interface) 85 // DOM Level 2 Style (DocumentStyle interface)
86 86
87 readonly attribute StyleSheetList styleSheets; 87 readonly attribute StyleSheetList styleSheets;
88 88
89 // DOM Level 2 Style (DocumentCSS interface) 89 // DOM Level 2 Style (DocumentCSS interface)
90 90
91 CSSStyleDeclaration getOverrideStyle([Default=Undefined] optional Element e lement, 91 CSSStyleDeclaration getOverrideStyle([Default=Undefined] optional Element el ement,
92 [Default=Undefined] opti onal DOMString pseudoElement); 92 [Default=Undefined] optional DOMString pseudoElement);
93 93
94 // DOM 4 94 // DOM 4
95 readonly attribute DOMString contentType; 95 readonly attribute DOMString contentType;
96 96
97 // Common extensions 97 // Common extensions
98 [CustomElementCallbacks] 98 [CustomElementCallbacks]
99 boolean execCommand([Default=Undefined] optional DOMString comman d, 99 boolean execCommand([Default=Undefined] optional DOMString comman d,
100 [Default=Undefined] optional boolean userInte rface, 100 [Default=Undefined] optional boolean userInte rface,
101 [TreatNullAs=NullString, TreatUndefinedAs=Nul lString,Default=Undefined] optional DOMString value); 101 [TreatUndefinedAs=NullString, Default=Undefin ed] optional DOMString? value);
102 102
103 boolean queryCommandEnabled([Default=Undefined] optional DOMStrin g command); 103 boolean queryCommandEnabled([Default=Undefined] optional DOMStrin g command);
104 boolean queryCommandIndeterm([Default=Undefined] optional DOMStri ng command); 104 boolean queryCommandIndeterm([Default=Undefined] optional DOMStri ng command);
105 boolean queryCommandState([Default=Undefined] optional DOMString command); 105 boolean queryCommandState([Default=Undefined] optional DOMString command);
106 boolean queryCommandSupported([Default=Undefined] optional DOMStr ing command); 106 boolean queryCommandSupported([Default=Undefined] optional DOMStr ing command);
107 DOMString queryCommandValue([Default=Undefined] optional DOMString command); 107 DOMString queryCommandValue([Default=Undefined] optional DOMString command);
108 108
109 // Moved down from HTMLDocument 109 // Moved down from HTMLDocument
110 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMStrin g dir; 110 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMStrin g dir;
111 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMStrin g designMode; 111 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMStrin g designMode;
112 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMStrin g title; 112 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMStrin g title;
113 readonly attribute DOMString referrer; 113 readonly attribute DOMString referrer;
114 [TreatNullAs=NullString, RaisesException=Setter] attribute DOMStrin g domain; 114 [TreatNullAs=NullString, RaisesException=Setter] attribute DOMStrin g domain;
115 readonly attribute DOMString URL; 115 readonly attribute DOMString URL;
116 116
117 [TreatNullAs=NullString, RaisesException] attribute DOMString cooki e; 117 [TreatNullAs=NullString, RaisesException] attribute DOMString cooki e;
118 118
119 [RaisesException=Setter, CustomElementCallbacks, PerWorldBindings, DartNoAutoScope] attribute HTMLElement body; 119 [RaisesException=Setter, CustomElementCallbacks, PerWorldBindings, TypeCheck ing=Interface, DartNoAutoScope] attribute HTMLElement? body;
120 120
121 readonly attribute HTMLHeadElement head; 121 readonly attribute HTMLHeadElement head;
122 readonly attribute HTMLCollection images; 122 readonly attribute HTMLCollection images;
123 readonly attribute HTMLCollection applets; 123 readonly attribute HTMLCollection applets;
124 readonly attribute HTMLCollection embeds; 124 readonly attribute HTMLCollection embeds;
125 [ImplementedAs=embeds] readonly attribute HTMLCollection plugins; 125 [ImplementedAs=embeds] readonly attribute HTMLCollection plugins;
126 readonly attribute HTMLCollection links; 126 readonly attribute HTMLCollection links;
127 readonly attribute HTMLCollection forms; 127 readonly attribute HTMLCollection forms;
128 readonly attribute HTMLCollection scripts; 128 readonly attribute HTMLCollection scripts;
129 readonly attribute HTMLCollection anchors; 129 readonly attribute HTMLCollection anchors;
130 readonly attribute DOMString lastModified; 130 readonly attribute DOMString lastModified;
131 131
132 [PerWorldBindings, DartNoAutoScope] NodeList getElementsByName([Default=Unde fined] optional DOMString elementName); 132 [PerWorldBindings, DartNoAutoScope] NodeList getElementsByName([Default=Unde fined] optional DOMString elementName);
133 133
134 [LogActivity, PutForwards=href] readonly attribute Location location; 134 [PutForwards=href] readonly attribute Location location;
135 135
136 // IE extensions 136 // IE extensions
137 [MeasureAs=DocumentCharset, TreatReturnedNullStringAs=Undefined, TreatNullAs =NullString] attribute DOMString charset; 137 [MeasureAs=DocumentCharset, TreatReturnedNullStringAs=Undefined, TreatNullAs =NullString] attribute DOMString charset;
138 [MeasureAs=DocumentDefaultCharset, TreatReturnedNullStringAs=Undefined] read only attribute DOMString defaultCharset; 138 [MeasureAs=DocumentDefaultCharset, TreatReturnedNullStringAs=Undefined] read only attribute DOMString defaultCharset;
139 [TreatReturnedNullStringAs=Undefined] readonly attribute DOMString readyStat e; 139 [TreatReturnedNullStringAs=Undefined] readonly attribute DOMString readyStat e;
140 140
141 Element elementFromPoint([Default=Undefined] optional long x, 141 Element elementFromPoint([Default=Undefined] optional long x,
142 [Default=Undefined] optional long y); 142 [Default=Undefined] optional long y);
143 [MeasureAs=DocumentCaretRangeFromPoint] 143 [MeasureAs=DocumentCaretRangeFromPoint]
144 Range caretRangeFromPoint([Default=Undefined] optional long x, 144 Range caretRangeFromPoint([Default=Undefined] optional long x,
145 [Default=Undefined] optional long y); 145 [Default=Undefined] optional long y);
146 146
147 // Mozilla extensions 147 // Mozilla extensions
148 Selection getSelection(); 148 Selection getSelection();
149 [TreatReturnedNullStringAs=Null] readonly attribute DOMString characterSet; 149 readonly attribute DOMString? characterSet;
150 150
151 // WebKit extensions 151 // WebKit extensions
152 152
153 [TreatReturnedNullStringAs=Null] readonly attribute DOMString preferredStyle sheetSet; 153 readonly attribute DOMString? preferredStylesheetSet;
154 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString] attribute DOMString selectedStylesheetSet; 154 attribute DOMString? selectedStylesheetSet;
155 155
156 [MeasureAs=DocumentGetCSSCanvasContext] RenderingContext getCSSCanvasContext (DOMString contextId, DOMString name, long width, long height); 156 [MeasureAs=DocumentGetCSSCanvasContext] RenderingContext getCSSCanvasContext (DOMString contextId, DOMString name, long width, long height);
157 157
158 // HTML 5 158 // HTML 5
159 HTMLCollection getElementsByClassName(DOMString classNames); 159 HTMLCollection getElementsByClassName(DOMString classNames);
160 readonly attribute Element activeElement; 160 readonly attribute Element activeElement;
161 boolean hasFocus(); 161 boolean hasFocus();
162 162
163 readonly attribute DOMString compatMode; 163 readonly attribute DOMString compatMode;
164 164
165 [MeasureAs=DocumentExitPointerLock] void exitPointerLock(); 165 [MeasureAs=DocumentExitPointerLock] void exitPointerLock();
166 [MeasureAs=DocumentPointerLockElement] readonly attribute Element pointerLoc kElement; 166 [MeasureAs=DocumentPointerLockElement] readonly attribute Element pointerLoc kElement;
167 [MeasureAs=PrefixedDocumentExitPointerLock, ImplementedAs=exitPointerLock] v oid webkitExitPointerLock();
168 [MeasureAs=PrefixedDocumentPointerLockElement, ImplementedAs=pointerLockElem ent] readonly attribute Element webkitPointerLockElement;
169 167
170 // Event handler attributes 168 // Event handler attributes
171 attribute EventHandler onbeforecopy; 169 attribute EventHandler onbeforecopy;
172 attribute EventHandler onbeforecut; 170 attribute EventHandler onbeforecut;
173 attribute EventHandler onbeforepaste; 171 attribute EventHandler onbeforepaste;
174 attribute EventHandler oncopy; 172 attribute EventHandler oncopy;
175 attribute EventHandler oncut; 173 attribute EventHandler oncut;
176 attribute EventHandler onpaste; 174 attribute EventHandler onpaste;
177 attribute EventHandler onpointerlockchange; 175 attribute EventHandler onpointerlockchange;
178 attribute EventHandler onpointerlockerror; 176 attribute EventHandler onpointerlockerror;
179 attribute EventHandler onreadystatechange; 177 attribute EventHandler onreadystatechange;
180 attribute EventHandler onsearch; 178 attribute EventHandler onsearch;
181 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa ndler onsecuritypolicyviolation; 179 [RuntimeEnabled=ExperimentalContentSecurityPolicyFeatures] attribute EventHa ndler onsecuritypolicyviolation;
182 attribute EventHandler onselectionchange; 180 attribute EventHandler onselectionchange;
183 attribute EventHandler onselectstart; 181 attribute EventHandler onselectstart;
184 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel; 182 [RuntimeEnabled=Touch] attribute EventHandler ontouchcancel;
185 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; 183 [RuntimeEnabled=Touch] attribute EventHandler ontouchend;
186 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; 184 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove;
187 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; 185 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart;
188 attribute EventHandler onwebkitfullscreenchange; 186 attribute EventHandler onwheel;
189 attribute EventHandler onwebkitfullscreenerror;
190 attribute EventHandler onwebkitpointerlockchange;
191 attribute EventHandler onwebkitpointerlockerror;
192 [LogActivity=SetterOnly] attribute EventHandler onwheel;
193 187
194 [RuntimeEnabled=Touch] Touch createTouch([Default=Undefined] optional Window window, 188 [RuntimeEnabled=Touch] Touch createTouch([Default=Undefined] optional Window window,
195 [Default=Undefined] optional Even tTarget target, 189 [Default=Undefined] optional EventT arget target,
196 [Default=Undefined] optional long identifier, 190 [Default=Undefined] optional long i dentifier,
197 [Default=Undefined] optional doub le pageX, 191 [Default=Undefined] optional double pageX,
198 [Default=Undefined] optional doub le pageY, 192 [Default=Undefined] optional double pageY,
199 [Default=Undefined] optional doub le screenX, 193 [Default=Undefined] optional double screenX,
200 [Default=Undefined] optional doub le screenY, 194 [Default=Undefined] optional double screenY,
201 [Default=Undefined] optional doub le webkitRadiusX, 195 [Default=Undefined] optional double webkitRadiusX,
202 [Default=Undefined] optional doub le webkitRadiusY, 196 [Default=Undefined] optional double webkitRadiusY,
203 [Default=Undefined] optional floa t webkitRotationAngle, 197 [Default=Undefined] optional float webkitRotationAngle,
204 [Default=Undefined] optional floa t webkitForce); 198 [Default=Undefined] optional float webkitForce);
205 [RuntimeEnabled=Touch] TouchList createTouchList(Touch... touches); 199 [RuntimeEnabled=Touch] TouchList createTouchList(Touch... touches);
206 200
207 [CallWith=ScriptState, CustomElementCallbacks, RaisesException, MeasureAs=Do cumentRegisterElement] CustomElementConstructor registerElement(DOMString name, optional Dictionary options); 201 [CallWith=ScriptState, CustomElementCallbacks, RaisesException, MeasureAs=Do cumentRegisterElement] CustomElementConstructor registerElement(DOMString name, optional Dictionary options);
208 [CustomElementCallbacks, PerWorldBindings, LogActivity, RaisesException, Dar tCustom] Element createElement(DOMString localName, [TreatNullAs=NullString] DOM String typeExtension); 202 [CustomElementCallbacks, PerWorldBindings, RaisesException, DartCustom] Elem ent createElement(DOMString localName, DOMString? typeExtension);
209 [CustomElementCallbacks, LogActivity, RaisesException, DartCustom] Element c reateElementNS([TreatNullAs=NullString] DOMString namespaceURI, DOMString qualif iedName, 203 [CustomElementCallbacks, RaisesException, DartCustom] Element createElementN S(DOMString? namespaceURI, DOMString qualifiedName, DOMString? typeExtension);
210 [TreatNullAs=NullString] DOMString typeExtension);
211 204
212 // Page visibility API. 205 // Page visibility API.
213 readonly attribute DOMString visibilityState; 206 readonly attribute DOMString visibilityState;
214 readonly attribute boolean hidden; 207 readonly attribute boolean hidden;
215 208
216 // Deprecated prefixed page visibility API. 209 // Deprecated prefixed page visibility API.
217 // TODO(davidben): This is a property so attaching a deprecation warning res ults in false positives when outputting 210 // TODO(davidben): This is a property so attaching a deprecation warning res ults in false positives when outputting
218 // document in the console. It's possible http://crbug.com/43394 will resolv e this. 211 // document in the console. It's possible http://crbug.com/43394 will resolv e this.
219 [MeasureAs=PrefixedPageVisibility, ImplementedAs=visibilityState] readonly a ttribute DOMString webkitVisibilityState; 212 [MeasureAs=PrefixedPageVisibility, ImplementedAs=visibilityState] readonly a ttribute DOMString webkitVisibilityState;
220 [MeasureAs=PrefixedPageVisibility, ImplementedAs=hidden] readonly attribute boolean webkitHidden; 213 [MeasureAs=PrefixedPageVisibility, ImplementedAs=hidden] readonly attribute boolean webkitHidden;
221 214
222 readonly attribute HTMLScriptElement currentScript; 215 readonly attribute HTMLScriptElement currentScript;
223 }; 216 };
224 217
225 Document implements GlobalEventHandlers; 218 Document implements GlobalEventHandlers;
226 Document implements ParentNode; 219 Document implements ParentNode;
OLDNEW
« no previous file with comments | « core/dom/DOMTokenList.idl ('k') | core/dom/DocumentFullscreen.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698