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

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

Issue 26466003: IDL compiler: [CustomElementCallbacks] for getter + cleanup values (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix Perl Created 7 years, 2 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
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 11 matching lines...) Expand all
22 22
23 [ 23 [
24 SpecialWrapFor=HTMLDocument|SVGDocument 24 SpecialWrapFor=HTMLDocument|SVGDocument
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 [CustomElementCallbacks=Enable, PerWorldBindings, ActivityLog=AccessForIsola tedWorlds, RaisesException] Element createElement([TreatNullAs=NullString,Defaul t=Undefined] optional DOMString tagName); 32 [CustomElementCallbacks, PerWorldBindings, ActivityLog=AccessForIsolatedWorl ds, RaisesException] Element createElement([TreatNullAs=NullString,Default=Undef ined] optional DOMString tagName);
33 DocumentFragment createDocumentFragment(); 33 DocumentFragment createDocumentFragment();
34 [PerWorldBindings] Text createTextNode([Default=Undefined] optional DOMStrin g data); 34 [PerWorldBindings] Text createTextNode([Default=Undefined] optional DOMStrin g data);
35 Comment createComment([Default=Undefined] optional DOMString data); 35 Comment createComment([Default=Undefined] optional DOMString data);
36 [RaisesException, MeasureAs=DocumentCreateCDATASection] CDATASection createC DATASection([Default=Undefined] optional DOMString data); // Removed from DOM4. 36 [RaisesException, MeasureAs=DocumentCreateCDATASection] CDATASection createC DATASection([Default=Undefined] optional DOMString data); // Removed from DOM4.
37 [RaisesException] ProcessingInstruction createProcessingInstruction([Default =Undefined] optional DOMString target, 37 [RaisesException] ProcessingInstruction createProcessingInstruction([Default =Undefined] optional DOMString target,
38 [Default=Undefined] optional DOMString data); 38 [Default=Undefined] optional DOMString data);
39 [RaisesException, MeasureAs=DocumentCreateAttribute] Attr createAttribute([D efault=Undefined] optional DOMString name); // Removed from DOM4. 39 [RaisesException, MeasureAs=DocumentCreateAttribute] Attr createAttribute([D efault=Undefined] optional DOMString name); // Removed from DOM4.
40 [PerWorldBindings] NodeList getElementsByTagName([Default=Undefine d] optional DOMString tagname); 40 [PerWorldBindings] NodeList getElementsByTagName([Default=Undefine d] optional DOMString tagname);
41 41
42 // Introduced in DOM Level 2: 42 // Introduced in DOM Level 2:
43 43
44 [CustomElementCallbacks=Enable, PerWorldBindings, ActivityLog=AccessForIsola tedWorlds, RaisesException] Node importNode([Default=Undefined] optional Node im portedNode, 44 [CustomElementCallbacks, PerWorldBindings, ActivityLog=AccessForIsolatedWorl ds, RaisesException] Node importNode([Default=Undefined] optional Node importedN ode,
45 optional boolean deep); 45 optional boolean deep);
46 [CustomElementCallbacks=Enable, PerWorldBindings, ActivityLog=AccessForIsola tedWorlds, RaisesException] Element createElementNS([TreatNullAs=NullString,Defa ult=Undefined] optional DOMString namespaceURI, 46 [CustomElementCallbacks, PerWorldBindings, ActivityLog=AccessForIsolatedWorl ds, RaisesException] Element createElementNS([TreatNullAs=NullString,Default=Und efined] optional DOMString namespaceURI,
47 [TreatNullAs=NullString,Default=Undefined] optional DOMString qualifiedName); 47 [TreatNullAs=NullString,Default=Undefined] optional DOMString qualifiedName);
48 [RaisesException, MeasureAs=DocumentCreateAttributeNS] Attr createAttributeN S([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI, 48 [RaisesException, MeasureAs=DocumentCreateAttributeNS] Attr createAttributeN S([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI,
49 [TreatNullAs=NullString,Default=Undefined] optional DOMString qualifiedName); // Removed from DOM4. 49 [TreatNullAs=NullString,Default=Undefined] optional DOMString qualifiedName); // Removed from DOM4.
50 NodeList getElementsByTagNameNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI, 50 NodeList getElementsByTagNameNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI,
51 [Default=Undefined] optional DOMString localName); 51 [Default=Undefined] optional DOMString localName);
52 [PerWorldBindings] Element getElementById([Default=Undefined] opt ional DOMString elementId); 52 [PerWorldBindings] Element getElementById([Default=Undefined] opt ional DOMString elementId);
53 53
54 // DOM Level 3 Core 54 // DOM Level 3 Core
55 55
56 [TreatReturnedNullStringAs=Null, MeasureAs=DocumentInputEncoding] readonly a ttribute DOMString inputEncoding; // Removed from DOM4. 56 [TreatReturnedNullStringAs=Null, MeasureAs=DocumentInputEncoding] readonly a ttribute DOMString inputEncoding; // Removed from DOM4.
57 57
58 [TreatReturnedNullStringAs=Null, MeasureAs=DocumentXMLEncoding] readonly att ribute DOMString xmlEncoding; // Removed from DOM4. 58 [TreatReturnedNullStringAs=Null, MeasureAs=DocumentXMLEncoding] readonly att ribute DOMString xmlEncoding; // Removed from DOM4.
59 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, SetterRaisesExcepti on, MeasureAs=DocumentXMLVersion] attribute DOMString xmlVersion; // Removed fro m DOM4. 59 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, SetterRaisesExcepti on, MeasureAs=DocumentXMLVersion] attribute DOMString xmlVersion; // Removed fro m DOM4.
60 [SetterRaisesException, MeasureAs=DocumentXMLStandalone] attribute boolean x mlStandalone; // Removed from DOM4. 60 [SetterRaisesException, MeasureAs=DocumentXMLStandalone] attribute boolean x mlStandalone; // Removed from DOM4.
61 61
62 [RaisesException, CustomElementCallbacks=Enable] Node adoptNod e([Default=Undefined] optional Node source); 62 [RaisesException, CustomElementCallbacks] Node adoptNode([Defa ult=Undefined] optional Node source);
63 63
64 [TreatReturnedNullStringAs=Null] readonly attribute DOMString documentURI; 64 [TreatReturnedNullStringAs=Null] readonly attribute DOMString documentURI;
65 65
66 // DOM Level 2 Events (DocumentEvents interface) 66 // DOM Level 2 Events (DocumentEvents interface)
67 67
68 [RaisesException] Event createEvent([Default=Undefined] optiona l DOMString eventType); 68 [RaisesException] Event createEvent([Default=Undefined] optiona l DOMString eventType);
69 69
70 // DOM Level 2 Traversal and Range (DocumentRange interface) 70 // DOM Level 2 Traversal and Range (DocumentRange interface)
71 71
72 Range createRange(); 72 Range createRange();
(...skipping 18 matching lines...) Expand all
91 // DOM Level 2 Style (DocumentStyle interface) 91 // DOM Level 2 Style (DocumentStyle interface)
92 92
93 readonly attribute StyleSheetList styleSheets; 93 readonly attribute StyleSheetList styleSheets;
94 94
95 // DOM Level 2 Style (DocumentCSS interface) 95 // DOM Level 2 Style (DocumentCSS interface)
96 96
97 CSSStyleDeclaration getOverrideStyle([Default=Undefined] optional Element e lement, 97 CSSStyleDeclaration getOverrideStyle([Default=Undefined] optional Element e lement,
98 [Default=Undefined] opti onal DOMString pseudoElement); 98 [Default=Undefined] opti onal DOMString pseudoElement);
99 99
100 // Common extensions 100 // Common extensions
101 [CustomElementCallbacks=Enable] 101 [CustomElementCallbacks]
102 boolean execCommand([Default=Undefined] optional DOMString comman d, 102 boolean execCommand([Default=Undefined] optional DOMString comman d,
103 [Default=Undefined] optional boolean userInte rface, 103 [Default=Undefined] optional boolean userInte rface,
104 [TreatNullAs=NullString, TreatUndefinedAs=Nul lString,Default=Undefined] optional DOMString value); 104 [TreatNullAs=NullString, TreatUndefinedAs=Nul lString,Default=Undefined] optional DOMString value);
105 105
106 boolean queryCommandEnabled([Default=Undefined] optional DOMStrin g command); 106 boolean queryCommandEnabled([Default=Undefined] optional DOMStrin g command);
107 boolean queryCommandIndeterm([Default=Undefined] optional DOMStri ng command); 107 boolean queryCommandIndeterm([Default=Undefined] optional DOMStri ng command);
108 boolean queryCommandState([Default=Undefined] optional DOMString command); 108 boolean queryCommandState([Default=Undefined] optional DOMString command);
109 boolean queryCommandSupported([Default=Undefined] optional DOMStr ing command); 109 boolean queryCommandSupported([Default=Undefined] optional DOMStr ing command);
110 DOMString queryCommandValue([Default=Undefined] optional DOMString command); 110 DOMString queryCommandValue([Default=Undefined] optional DOMString command);
111 111
112 // Moved down from HTMLDocument 112 // Moved down from HTMLDocument
113 113
114 [TreatNullAs=NullString, CustomElementCallbacks=Enable] attribute D OMString title; 114 [TreatNullAs=NullString, CustomElementCallbacks] attribute DOMStrin g title;
115 readonly attribute DOMString referrer; 115 readonly attribute DOMString referrer;
116 [TreatNullAs=NullString, SetterRaisesException] attribute DOMString domain; 116 [TreatNullAs=NullString, SetterRaisesException] attribute DOMString domain;
117 readonly attribute DOMString URL; 117 readonly attribute DOMString URL;
118 118
119 [TreatNullAs=NullString, GetterRaisesException, SetterRaisesExcepti on] attribute DOMString cookie; 119 [TreatNullAs=NullString, GetterRaisesException, SetterRaisesExcepti on] attribute DOMString cookie;
120 120
121 [SetterRaisesException, CustomElementCallbacks=Enable] attribute HT MLElement body; 121 [SetterRaisesException, CustomElementCallbacks] attribute HTMLEleme nt body;
122 122
123 readonly attribute HTMLHeadElement head; 123 readonly attribute HTMLHeadElement head;
124 readonly attribute HTMLCollection images; 124 readonly attribute HTMLCollection images;
125 readonly attribute HTMLCollection applets; 125 readonly attribute HTMLCollection applets;
126 readonly attribute HTMLCollection links; 126 readonly attribute HTMLCollection links;
127 readonly attribute HTMLCollection forms; 127 readonly attribute HTMLCollection forms;
128 readonly attribute HTMLCollection anchors; 128 readonly attribute HTMLCollection anchors;
129 readonly attribute DOMString lastModified; 129 readonly attribute DOMString lastModified;
130 130
131 [PerWorldBindings] NodeList getElementsByName([Default=Undefined] optional D OMString elementName); 131 [PerWorldBindings] NodeList getElementsByName([Default=Undefined] optional D OMString elementName);
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 [Default=Undefined] optional long pageX, 254 [Default=Undefined] optional long pageX,
255 [Default=Undefined] optional long pageY, 255 [Default=Undefined] optional long pageY,
256 [Default=Undefined] optional long screenX, 256 [Default=Undefined] optional long screenX,
257 [Default=Undefined] optional long screenY, 257 [Default=Undefined] optional long screenY,
258 [Default=Undefined] optional long webkitRadiusX, 258 [Default=Undefined] optional long webkitRadiusX,
259 [Default=Undefined] optional long webkitRadiusY, 259 [Default=Undefined] optional long webkitRadiusY,
260 [Default=Undefined] optional floa t webkitRotationAngle, 260 [Default=Undefined] optional floa t webkitRotationAngle,
261 [Default=Undefined] optional floa t webkitForce); 261 [Default=Undefined] optional floa t webkitForce);
262 [EnabledAtRuntime=Touch] TouchList createTouchList(Touch... touches); 262 [EnabledAtRuntime=Touch] TouchList createTouchList(Touch... touches);
263 263
264 [DeprecateAs=PrefixedDocumentRegister, EnabledAtRuntime=CustomElements, Impl ementedAs=registerElement, CallWith=ScriptState, CustomElementCallbacks=Enable, RaisesException] CustomElementConstructor webkitRegister(DOMString name, optiona l Dictionary options); 264 [DeprecateAs=PrefixedDocumentRegister, EnabledAtRuntime=CustomElements, Impl ementedAs=registerElement, CallWith=ScriptState, CustomElementCallbacks, RaisesE xception] CustomElementConstructor webkitRegister(DOMString name, optional Dicti onary options);
265 [EnabledAtRuntime=CustomElements, ImplementedAs=registerElement, CallWith=Sc riptState, CustomElementCallbacks=Enable, RaisesException] CustomElementConstruc tor register(DOMString name, optional Dictionary options); 265 [EnabledAtRuntime=CustomElements, ImplementedAs=registerElement, CallWith=Sc riptState, CustomElementCallbacks, RaisesException] CustomElementConstructor reg ister(DOMString name, optional Dictionary options);
266 [CustomElementCallbacks=Enable, PerWorldBindings, ActivityLog=AccessForIsola tedWorlds, RaisesException] Element createElement(DOMString localName, [TreatNul lAs=NullString] DOMString typeExtension); 266 [CustomElementCallbacks, PerWorldBindings, ActivityLog=AccessForIsolatedWorl ds, RaisesException] Element createElement(DOMString localName, [TreatNullAs=Nul lString] DOMString typeExtension);
267 [CustomElementCallbacks=Enable, PerWorldBindings, ActivityLog=AccessForIsola tedWorlds, RaisesException] Element createElementNS([TreatNullAs=NullString] DOM String namespaceURI, DOMString qualifiedName, 267 [CustomElementCallbacks, PerWorldBindings, ActivityLog=AccessForIsolatedWorl ds, RaisesException] Element createElementNS([TreatNullAs=NullString] DOMString namespaceURI, DOMString qualifiedName,
268 [TreatNullAs=NullString] DOMString typeExtension); 268 [TreatNullAs=NullString] DOMString typeExtension);
269 269
270 // Page visibility API. 270 // Page visibility API.
271 readonly attribute DOMString webkitVisibilityState; 271 readonly attribute DOMString webkitVisibilityState;
272 readonly attribute boolean webkitHidden; 272 readonly attribute boolean webkitHidden;
273 273
274 // Security Policy API: http://dvcs.w3.org/hg/content-security-policy/raw-fi le/tip/csp-specification.dev.html#script-interfaces 274 // Security Policy API: http://dvcs.w3.org/hg/content-security-policy/raw-fi le/tip/csp-specification.dev.html#script-interfaces
275 [EnabledAtRuntime=ExperimentalContentSecurityPolicyFeatures] readonly attrib ute SecurityPolicy securityPolicy; 275 [EnabledAtRuntime=ExperimentalContentSecurityPolicyFeatures] readonly attrib ute SecurityPolicy securityPolicy;
276 276
277 readonly attribute HTMLScriptElement currentScript; 277 readonly attribute HTMLScriptElement currentScript;
278 }; 278 };
279 279
280 Document implements ParentNode; 280 Document implements ParentNode;
281 281
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698