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

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

Issue 13799007: Support for selective DOM activity logging, based on IDL attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed two superfluous in attributes in the IDL. Created 7 years, 8 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
« no previous file with comments | « no previous file | Source/WebCore/dom/Node.idl » ('j') | Source/bindings/scripts/CodeGeneratorV8.pm » ('J')
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 CustomToJSObject
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, RaisesExc eption] Element createElement([TreatNullAs=NullString,Optional=DefaultIsUndefine d] DOMString tagName); 30 [ReturnNewObject, DeliverCustomElementCallbacks, PerWorldBindings, ActivityL og=AccessForIsolatedWorlds, RaisesException] Element createElement([TreatNullAs= NullString,Optional=DefaultIsUndefined] DOMString tagName);
31 DocumentFragment createDocumentFragment(); 31 DocumentFragment createDocumentFragment();
32 [ReturnNewObject, PerWorldBindings] Text createTextNode([Optional=DefaultIsU ndefined] DOMString data); 32 [ReturnNewObject, PerWorldBindings] Text createTextNode([Optional=DefaultIsU ndefined] DOMString data);
33 [ReturnNewObject] Comment createComment([Optional=DefaultIsUndefined] DOMStr ing data); 33 [ReturnNewObject] Comment createComment([Optional=DefaultIsUndefined] DOMStr ing data);
34 [ReturnNewObject, RaisesException] CDATASection createCDATASection([Optional =DefaultIsUndefined] DOMString data); 34 [ReturnNewObject, RaisesException] CDATASection createCDATASection([Optional =DefaultIsUndefined] DOMString data);
35 [ReturnNewObject, RaisesException] ProcessingInstruction createProcessingIns truction([Optional=DefaultIsUndefined] DOMString target, 35 [ReturnNewObject, RaisesException] ProcessingInstruction createProcessingIns truction([Optional=DefaultIsUndefined] DOMString target,
36 [Optional=DefaultIsUndefined] DOMString data); 36 [Optional=DefaultIsUndefined] DOMString data);
37 [ReturnNewObject, RaisesException] Attr createAttribute([Optional=DefaultIsU ndefined] DOMString name); 37 [ReturnNewObject, RaisesException] Attr createAttribute([Optional=DefaultIsU ndefined] DOMString name);
38 [ReturnNewObject, RaisesException] EntityReference createEntityReference([Op tional=DefaultIsUndefined] DOMString name); 38 [ReturnNewObject, RaisesException] EntityReference createEntityReference([Op tional=DefaultIsUndefined] DOMString name);
39 [PerWorldBindings] NodeList getElementsByTagName([Optional=Default IsUndefined] DOMString tagname); 39 [PerWorldBindings] NodeList getElementsByTagName([Optional=Default IsUndefined] DOMString tagname);
40 40
41 // Introduced in DOM Level 2: 41 // Introduced in DOM Level 2:
42 42
43 [ReturnNewObject, DeliverCustomElementCallbacks, RaisesException] Node impor tNode([Optional=DefaultIsUndefined] Node importedNode, 43 [ReturnNewObject, DeliverCustomElementCallbacks, PerWorldBindings, ActivityL og=AccessForIsolatedWorlds, RaisesException] Node importNode([Optional=DefaultIs Undefined] Node importedNode,
44 [Optional] boolean deep); 44 [Optional] boolean deep);
45 [ReturnNewObject, DeliverCustomElementCallbacks, RaisesException] Element cr eateElementNS([TreatNullAs=NullString,Optional=DefaultIsUndefined] DOMString nam espaceURI, 45 [ReturnNewObject, DeliverCustomElementCallbacks, PerWorldBindings, ActivityL og=AccessForIsolatedWorlds, RaisesException] Element createElementNS([TreatNullA s=NullString,Optional=DefaultIsUndefined] DOMString namespaceURI,
46 [TreatNullAs=NullString,Optional=DefaultIsUndefined] DOMString qualifiedName); 46 [TreatNullAs=NullString,Optional=DefaultIsUndefined] DOMString qualifiedName);
47 [ReturnNewObject, RaisesException] Attr createAttributeNS([TreatNullAs=NullS tring,Optional=DefaultIsUndefined] DOMString namespaceURI, 47 [ReturnNewObject, RaisesException] Attr createAttributeNS([TreatNullAs=NullS tring,Optional=DefaultIsUndefined] DOMString namespaceURI,
48 [Treat NullAs=NullString,Optional=DefaultIsUndefined] DOMString qualifiedName); 48 [Treat NullAs=NullString,Optional=DefaultIsUndefined] DOMString qualifiedName);
49 NodeList getElementsByTagNameNS([TreatNullAs=NullString,Optional=DefaultIsU ndefined] DOMString namespaceURI, 49 NodeList getElementsByTagNameNS([TreatNullAs=NullString,Optional=DefaultIsU ndefined] DOMString namespaceURI,
50 [Optional=DefaultIsUndefined] DOMString localName); 50 [Optional=DefaultIsUndefined] DOMString localName);
51 [PerWorldBindings] Element getElementById([Optional=DefaultIsUnde fined] DOMString elementId); 51 [PerWorldBindings] Element getElementById([Optional=DefaultIsUnde fined] 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;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 readonly attribute HTMLCollection forms; 134 readonly attribute HTMLCollection forms;
135 readonly attribute HTMLCollection anchors; 135 readonly attribute HTMLCollection anchors;
136 readonly attribute DOMString lastModified; 136 readonly attribute DOMString lastModified;
137 137
138 [PerWorldBindings] NodeList getElementsByName([Optional=DefaultIsUndefined] DOMString elementName); 138 [PerWorldBindings] NodeList getElementsByName([Optional=DefaultIsUndefined] DOMString elementName);
139 139
140 #if defined(ENABLE_MICRODATA) && ENABLE_MICRODATA 140 #if defined(ENABLE_MICRODATA) && ENABLE_MICRODATA
141 NodeList getItems([TreatNullAs=NullString, TreatUndefinedAs=NullString, Opti onal=DefaultIsUndefined] DOMString typeNames); 141 NodeList getItems([TreatNullAs=NullString, TreatUndefinedAs=NullString, Opti onal=DefaultIsUndefined] DOMString typeNames);
142 #endif 142 #endif
143 143
144 [Custom] attribute Location location; 144 [Custom, PerWorldBindings, ActivityLog=AccessForIsolatedWorlds] attribute Lo cation location;
145 145
146 // IE extensions 146 // IE extensions
147 147
148 [TreatReturnedNullStringAs=Undefined, TreatNullAs=NullString] attri bute DOMString charset; 148 [TreatReturnedNullStringAs=Undefined, TreatNullAs=NullString] attri bute DOMString charset;
149 [TreatReturnedNullStringAs=Undefined] readonly attribute DOMString defaultCh arset; 149 [TreatReturnedNullStringAs=Undefined] readonly attribute DOMString defaultCh arset;
150 [TreatReturnedNullStringAs=Undefined] readonly attribute DOMString readyStat e; 150 [TreatReturnedNullStringAs=Undefined] readonly attribute DOMString readyStat e;
151 151
152 Element elementFromPoint([Optional=DefaultIsUndefined] long x, 152 Element elementFromPoint([Optional=DefaultIsUndefined] long x,
153 [Optional=DefaultIsUndefined] long y); 153 [Optional=DefaultIsUndefined] long y);
154 Range caretRangeFromPoint([Optional=DefaultIsUndefined] long x, 154 Range caretRangeFromPoint([Optional=DefaultIsUndefined] long x,
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 [Optional=DefaultIsUndefine d] long screenY, 278 [Optional=DefaultIsUndefine d] long screenY,
279 [Optional=DefaultIsUndefine d] long webkitRadiusX, 279 [Optional=DefaultIsUndefine d] long webkitRadiusX,
280 [Optional=DefaultIsUndefine d] long webkitRadiusY, 280 [Optional=DefaultIsUndefine d] long webkitRadiusY,
281 [Optional=DefaultIsUndefine d] float webkitRotationAngle, 281 [Optional=DefaultIsUndefine d] float webkitRotationAngle,
282 [Optional=DefaultIsUndefine d] float webkitForce); 282 [Optional=DefaultIsUndefine d] float webkitForce);
283 [ReturnNewObject, EnabledAtRuntime=touch, Custom, RaisesException] TouchList createTouchList(); 283 [ReturnNewObject, EnabledAtRuntime=touch, Custom, RaisesException] TouchList createTouchList();
284 #endif 284 #endif
285 285
286 #if defined(ENABLE_CUSTOM_ELEMENTS) && ENABLE_CUSTOM_ELEMENTS 286 #if defined(ENABLE_CUSTOM_ELEMENTS) && ENABLE_CUSTOM_ELEMENTS
287 [EnabledAtRuntime=customDOMElements, Conditional=CUSTOM_ELEMENTS, Implemente dAs=registerElement, CallWith=ScriptState, DeliverCustomElementCallbacks, Raises Exception] CustomElementConstructor webkitRegister(DOMString name, [Optional] Di ctionary options); 287 [EnabledAtRuntime=customDOMElements, Conditional=CUSTOM_ELEMENTS, Implemente dAs=registerElement, CallWith=ScriptState, DeliverCustomElementCallbacks, Raises Exception] CustomElementConstructor webkitRegister(DOMString name, [Optional] Di ctionary options);
288 [ReturnNewObject, DeliverCustomElementCallbacks, PerWorldBindings, RaisesExc eption] Element createElement(DOMString localName, [TreatNullAs=NullString] DOMS tring typeExtension); 288 [ReturnNewObject, DeliverCustomElementCallbacks, PerWorldBindings, ActivityL og=AccessForIsolatedWorlds, RaisesException] Element createElement(DOMString loc alName, [TreatNullAs=NullString] DOMString typeExtension);
289 [ReturnNewObject, DeliverCustomElementCallbacks, RaisesException] Element cr eateElementNS([TreatNullAs=NullString] DOMString namespaceURI, DOMString qualifi edName, 289 [ReturnNewObject, DeliverCustomElementCallbacks, PerWorldBindings, ActivityL og=AccessForIsolatedWorlds, RaisesException] Element createElementNS([TreatNullA s=NullString] DOMString namespaceURI, DOMString qualifiedName,
290 [TreatNullAs=NullString] DOMString typeExtension); 290 [TreatNullAs=NullString] DOMString typeExtension);
291 #endif 291 #endif
292 292
293 // Page visibility API. 293 // Page visibility API.
294 readonly attribute DOMString webkitVisibilityState; 294 readonly attribute DOMString webkitVisibilityState;
295 readonly attribute boolean webkitHidden; 295 readonly attribute boolean webkitHidden;
296 296
297 // Security Policy API: http://dvcs.w3.org/hg/content-security-policy/raw-fi le/tip/csp-specification.dev.html#script-interfaces 297 // Security Policy API: http://dvcs.w3.org/hg/content-security-policy/raw-fi le/tip/csp-specification.dev.html#script-interfaces
298 [EnabledAtRuntime=experimentalContentSecurityPolicyFeatures] readonly attrib ute DOMSecurityPolicy securityPolicy; 298 [EnabledAtRuntime=experimentalContentSecurityPolicyFeatures] readonly attrib ute DOMSecurityPolicy securityPolicy;
299 299
300 }; 300 };
301 301
OLDNEW
« no previous file with comments | « no previous file | Source/WebCore/dom/Node.idl » ('j') | Source/bindings/scripts/CodeGeneratorV8.pm » ('J')

Powered by Google App Engine
This is Rietveld 408576698