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

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

Issue 15685002: IDL roll. (Closed) Base URL: http://dart.googlecode.com/svn/third_party/WebCore/
Patch Set: Created 7 years, 7 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/DataTransferItemList.idl ('k') | core/dom/Element.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,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 */ 19 */
20 20
21 [ 21 [
22 CustomToJSObject 22 CustomToV8
23 ] interface Document : Node { 23 ] interface Document : Node {
24 24
25 // DOM Level 1 Core 25 // DOM Level 1 Core
26 readonly attribute DocumentType doctype; 26 readonly attribute DocumentType doctype;
27 readonly attribute DOMImplementation implementation; 27 readonly attribute DOMImplementation implementation;
28 readonly attribute Element documentElement; 28 readonly attribute Element documentElement;
29 29
30 [ReturnNewObject, DeliverCustomElementCallbacks, PerWorldBindings, ActivityL og=AccessForIsolatedWorlds, RaisesException] Element createElement([TreatNullAs= NullString,Default=Undefined] optional DOMString tagName); 30 [DeliverCustomElementCallbacks, PerWorldBindings, ActivityLog=AccessForIsola tedWorlds, RaisesException] Element createElement([TreatNullAs=NullString,Defaul t=Undefined] optional DOMString tagName);
31 DocumentFragment createDocumentFragment(); 31 DocumentFragment createDocumentFragment();
32 [ReturnNewObject, PerWorldBindings] Text createTextNode([Default=Undefined] optional DOMString data); 32 [PerWorldBindings] Text createTextNode([Default=Undefined] optional DOMStrin g data);
33 [ReturnNewObject] Comment createComment([Default=Undefined] optional DOMStri ng data); 33 Comment createComment([Default=Undefined] optional DOMString data);
34 [ReturnNewObject, RaisesException] CDATASection createCDATASection([Default= Undefined] optional DOMString data); 34 [RaisesException] CDATASection createCDATASection([Default=Undefined] option al DOMString data);
35 [ReturnNewObject, RaisesException] ProcessingInstruction createProcessingIns truction([Default=Undefined] optional DOMString target, 35 [RaisesException] ProcessingInstruction createProcessingInstruction([Default =Undefined] optional DOMString target,
36 [Default=Undefined] optional DOMString data); 36 [Default=Undefined] optional DOMString data);
37 [ReturnNewObject, RaisesException] Attr createAttribute([Default=Undefined] optional DOMString name); 37 [RaisesException] Attr createAttribute([Default=Undefined] optional DOMStrin g name);
38 [ReturnNewObject, RaisesException] EntityReference createEntityReference([De fault=Undefined] optional DOMString name); 38 [RaisesException] EntityReference createEntityReference([Default=Undefined] optional DOMString name);
39 [PerWorldBindings] NodeList getElementsByTagName([Default=Undefine d] optional DOMString tagname); 39 [PerWorldBindings] NodeList getElementsByTagName([Default=Undefine d] optional DOMString tagname);
40 40
41 // Introduced in DOM Level 2: 41 // Introduced in DOM Level 2:
42 42
43 [ReturnNewObject, DeliverCustomElementCallbacks, PerWorldBindings, ActivityL og=AccessForIsolatedWorlds, RaisesException] Node importNode([Default=Undefined] optional Node importedNode, 43 [DeliverCustomElementCallbacks, PerWorldBindings, ActivityLog=AccessForIsola tedWorlds, RaisesException] Node importNode([Default=Undefined] optional Node im portedNode,
44 optional boolean deep); 44 optional boolean deep);
45 [ReturnNewObject, DeliverCustomElementCallbacks, PerWorldBindings, ActivityL og=AccessForIsolatedWorlds, RaisesException] Element createElementNS([TreatNullA s=NullString,Default=Undefined] optional DOMString namespaceURI, 45 [DeliverCustomElementCallbacks, PerWorldBindings, ActivityLog=AccessForIsola tedWorlds, RaisesException] Element createElementNS([TreatNullAs=NullString,Defa ult=Undefined] optional DOMString namespaceURI,
46 [TreatNullAs=NullString,Default=Undefined] optional DOMString qualifiedName); 46 [TreatNullAs=NullString,Default=Undefined] optional DOMString qualifiedName);
47 [ReturnNewObject, RaisesException] Attr createAttributeNS([TreatNullAs=NullS tring,Default=Undefined] optional DOMString namespaceURI, 47 [RaisesException] Attr createAttributeNS([TreatNullAs=NullString,Default=Und efined] optional DOMString namespaceURI,
48 [Treat NullAs=NullString,Default=Undefined] optional DOMString qualifiedName); 48 [Treat NullAs=NullString,Default=Undefined] optional DOMString qualifiedName);
49 NodeList getElementsByTagNameNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI, 49 NodeList getElementsByTagNameNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI,
50 [Default=Undefined] optional DOMString localName); 50 [Default=Undefined] optional DOMString localName);
51 [PerWorldBindings] Element getElementById([Default=Undefined] opt ional DOMString elementId); 51 [PerWorldBindings] Element getElementById([Default=Undefined] opt ional DOMString elementId);
52 52
53 // DOM Level 3 Core 53 // DOM Level 3 Core
54 54
55 [TreatReturnedNullStringAs=Null] readonly attribute DOMString inputEncoding; 55 [TreatReturnedNullStringAs=Null] readonly attribute DOMString inputEncoding;
56 56
57 [TreatReturnedNullStringAs=Null] readonly attribute DOMString xmlEncoding; 57 [TreatReturnedNullStringAs=Null] readonly attribute DOMString xmlEncoding;
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 [EnabledAtRuntime=fullscreen] void webkitCancelFullScreen(); 177 [EnabledAtRuntime=fullscreen] void webkitCancelFullScreen();
178 178
179 // W3C version 179 // W3C version
180 [EnabledAtRuntime=fullscreen] readonly attribute boolean webkitFullscreenEna bled; 180 [EnabledAtRuntime=fullscreen] readonly attribute boolean webkitFullscreenEna bled;
181 [EnabledAtRuntime=fullscreen] readonly attribute Element webkitFullscreenEle ment; 181 [EnabledAtRuntime=fullscreen] readonly attribute Element webkitFullscreenEle ment;
182 [EnabledAtRuntime=fullscreen] void webkitExitFullscreen(); 182 [EnabledAtRuntime=fullscreen] void webkitExitFullscreen();
183 183
184 void webkitExitPointerLock(); 184 void webkitExitPointerLock();
185 readonly attribute Element webkitPointerLockElement; 185 readonly attribute Element webkitPointerLockElement;
186 186
187 [Conditional=CSS_REGIONS, EnabledAtRuntime=cssRegions] DOMNamedFlowCollectio n webkitGetNamedFlows(); 187 [EnabledAtRuntime=cssRegions] DOMNamedFlowCollection webkitGetNamedFlows();
188 188
189 [EnabledAtRuntime=fontLoadEvents] readonly attribute FontLoader fontloader; 189 [EnabledAtRuntime=fontLoadEvents] readonly attribute FontLoader fontloader;
190 190
191 // Event handler DOM attributes 191 // Event handler DOM attributes
192 [NotEnumerable] attribute EventListener onabort; 192 [NotEnumerable] attribute EventListener onabort;
193 [NotEnumerable] attribute EventListener onblur; 193 [NotEnumerable] attribute EventListener onblur;
194 [NotEnumerable] attribute EventListener onchange; 194 [NotEnumerable] attribute EventListener onchange;
195 [NotEnumerable] attribute EventListener onclick; 195 [NotEnumerable] attribute EventListener onclick;
196 [NotEnumerable] attribute EventListener oncontextmenu; 196 [NotEnumerable] attribute EventListener oncontextmenu;
197 [NotEnumerable] attribute EventListener ondblclick; 197 [NotEnumerable] attribute EventListener ondblclick;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 [NotEnumerable,EnabledAtRuntime=touch] attribute EventListener ontouchstart; 257 [NotEnumerable,EnabledAtRuntime=touch] attribute EventListener ontouchstart;
258 [NotEnumerable,EnabledAtRuntime=touch] attribute EventListener ontouchmove; 258 [NotEnumerable,EnabledAtRuntime=touch] attribute EventListener ontouchmove;
259 [NotEnumerable,EnabledAtRuntime=touch] attribute EventListener ontouchend; 259 [NotEnumerable,EnabledAtRuntime=touch] attribute EventListener ontouchend;
260 [NotEnumerable,EnabledAtRuntime=touch] attribute EventListener ontouchcancel ; 260 [NotEnumerable,EnabledAtRuntime=touch] attribute EventListener ontouchcancel ;
261 [NotEnumerable] attribute EventListener onwebkitfullscreenchange; 261 [NotEnumerable] attribute EventListener onwebkitfullscreenchange;
262 [NotEnumerable] attribute EventListener onwebkitfullscreenerror; 262 [NotEnumerable] attribute EventListener onwebkitfullscreenerror;
263 [NotEnumerable] attribute EventListener onwebkitpointerlockchange; 263 [NotEnumerable] attribute EventListener onwebkitpointerlockchange;
264 [NotEnumerable] attribute EventListener onwebkitpointerlockerror; 264 [NotEnumerable] attribute EventListener onwebkitpointerlockerror;
265 [NotEnumerable, EnabledAtRuntime=experimentalContentSecurityPolicyFeatures] attribute EventListener onsecuritypolicyviolation; 265 [NotEnumerable, EnabledAtRuntime=experimentalContentSecurityPolicyFeatures] attribute EventListener onsecuritypolicyviolation;
266 266
267 [ReturnNewObject, EnabledAtRuntime=touch, RaisesException] Touch createTouch ([Default=Undefined] optional DOMWindow window, 267 [EnabledAtRuntime=touch, RaisesException] Touch createTouch([Default=Undefin ed] optional DOMWindow window,
268 [Default=Undefined] optiona l EventTarget target, 268 [Default=Undefined] optiona l EventTarget target,
269 [Default=Undefined] optiona l long identifier, 269 [Default=Undefined] optiona l long identifier,
270 [Default=Undefined] optiona l long pageX, 270 [Default=Undefined] optiona l long pageX,
271 [Default=Undefined] optiona l long pageY, 271 [Default=Undefined] optiona l long pageY,
272 [Default=Undefined] optiona l long screenX, 272 [Default=Undefined] optiona l long screenX,
273 [Default=Undefined] optiona l long screenY, 273 [Default=Undefined] optiona l long screenY,
274 [Default=Undefined] optiona l long webkitRadiusX, 274 [Default=Undefined] optiona l long webkitRadiusX,
275 [Default=Undefined] optiona l long webkitRadiusY, 275 [Default=Undefined] optiona l long webkitRadiusY,
276 [Default=Undefined] optiona l float webkitRotationAngle, 276 [Default=Undefined] optiona l float webkitRotationAngle,
277 [Default=Undefined] optiona l float webkitForce); 277 [Default=Undefined] optiona l float webkitForce);
278 [ReturnNewObject, EnabledAtRuntime=touch, Custom, RaisesException] TouchList createTouchList(); 278 [EnabledAtRuntime=touch, Custom, RaisesException] TouchList createTouchList( );
279 279
280 [EnabledAtRuntime=customDOMElements, ImplementedAs=registerElement, CallWith =ScriptState, DeliverCustomElementCallbacks, RaisesException] CustomElementConst ructor webkitRegister(DOMString name, optional Dictionary options); 280 [EnabledAtRuntime=customDOMElements, ImplementedAs=registerElement, CallWith =ScriptState, DeliverCustomElementCallbacks, RaisesException] CustomElementConst ructor webkitRegister(DOMString name, optional Dictionary options);
281 [ReturnNewObject, DeliverCustomElementCallbacks, PerWorldBindings, ActivityL og=AccessForIsolatedWorlds, RaisesException] Element createElement(DOMString loc alName, [TreatNullAs=NullString] DOMString typeExtension); 281 [DeliverCustomElementCallbacks, PerWorldBindings, ActivityLog=AccessForIsola tedWorlds, RaisesException] Element createElement(DOMString localName, [TreatNul lAs=NullString] DOMString typeExtension);
282 [ReturnNewObject, DeliverCustomElementCallbacks, PerWorldBindings, ActivityL og=AccessForIsolatedWorlds, RaisesException] Element createElementNS([TreatNullA s=NullString] DOMString namespaceURI, DOMString qualifiedName, 282 [DeliverCustomElementCallbacks, PerWorldBindings, ActivityLog=AccessForIsola tedWorlds, RaisesException] Element createElementNS([TreatNullAs=NullString] DOM String namespaceURI, DOMString qualifiedName,
283 [TreatNullAs=NullString] DOMString typeExtension); 283 [TreatNullAs=NullString] DOMString typeExtension);
284 284
285 // Page visibility API. 285 // Page visibility API.
286 readonly attribute DOMString webkitVisibilityState; 286 readonly attribute DOMString webkitVisibilityState;
287 readonly attribute boolean webkitHidden; 287 readonly attribute boolean webkitHidden;
288 288
289 // Security Policy API: http://dvcs.w3.org/hg/content-security-policy/raw-fi le/tip/csp-specification.dev.html#script-interfaces 289 // Security Policy API: http://dvcs.w3.org/hg/content-security-policy/raw-fi le/tip/csp-specification.dev.html#script-interfaces
290 [EnabledAtRuntime=experimentalContentSecurityPolicyFeatures] readonly attrib ute DOMSecurityPolicy securityPolicy; 290 [EnabledAtRuntime=experimentalContentSecurityPolicyFeatures] readonly attrib ute DOMSecurityPolicy securityPolicy;
291 291
292 }; 292 };
293 293
OLDNEW
« no previous file with comments | « core/dom/DataTransferItemList.idl ('k') | core/dom/Element.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698