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

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

Issue 22498002: Roll IDL to multivm@1329 (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Created 7 years, 4 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/NamedNodeMap.idl ('k') | core/dom/OverflowEvent.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, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
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 // FIXME: Node should inherit EventTarget.
22 [ 21 [
23 CustomToV8, 22 CustomToV8,
24 EventTarget,
25 DependentLifetime 23 DependentLifetime
26 ] interface Node { 24 ] interface Node : EventTarget {
27 // NodeType 25 // NodeType
28 const unsigned short ELEMENT_NODE = 1; 26 const unsigned short ELEMENT_NODE = 1;
29 const unsigned short ATTRIBUTE_NODE = 2; 27 const unsigned short ATTRIBUTE_NODE = 2;
30 const unsigned short TEXT_NODE = 3; 28 const unsigned short TEXT_NODE = 3;
31 const unsigned short CDATA_SECTION_NODE = 4; 29 const unsigned short CDATA_SECTION_NODE = 4;
32 const unsigned short ENTITY_REFERENCE_NODE = 5; // EntityRefer ence nodes are impossible to create in WebKit. 30 const unsigned short ENTITY_REFERENCE_NODE = 5; // EntityRefer ence nodes are impossible to create in WebKit.
33 const unsigned short ENTITY_NODE = 6; 31 const unsigned short ENTITY_NODE = 6;
34 const unsigned short PROCESSING_INSTRUCTION_NODE = 7; 32 const unsigned short PROCESSING_INSTRUCTION_NODE = 7;
35 const unsigned short COMMENT_NODE = 8; 33 const unsigned short COMMENT_NODE = 8;
36 const unsigned short DOCUMENT_NODE = 9; 34 const unsigned short DOCUMENT_NODE = 9;
37 const unsigned short DOCUMENT_TYPE_NODE = 10; 35 const unsigned short DOCUMENT_TYPE_NODE = 10;
38 const unsigned short DOCUMENT_FRAGMENT_NODE = 11; 36 const unsigned short DOCUMENT_FRAGMENT_NODE = 11;
39 const unsigned short NOTATION_NODE = 12; 37 const unsigned short NOTATION_NODE = 12;
40 38
41 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr ing nodeName; 39 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr ing nodeName;
42 40
43 // FIXME: the spec says this can also raise on retrieval. 41 // FIXME: the spec says this can also raise on retrieval.
44 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, PerWorldBi ndings, SetterRaisesException] attribute DOMString nodeValue; 42 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, PerWorldBi ndings] attribute DOMString nodeValue;
45 43
46 [PerWorldBindings] readonly attribute unsigned short nodeType; 44 [PerWorldBindings] readonly attribute unsigned short nodeType;
47 [PerWorldBindings] readonly attribute Node parentNode; 45 [PerWorldBindings] readonly attribute Node parentNode;
48 [PerWorldBindings] readonly attribute NodeList childNodes; 46 [PerWorldBindings] readonly attribute NodeList childNodes;
49 [PerWorldBindings] readonly attribute Node firstChild; 47 [PerWorldBindings] readonly attribute Node firstChild;
50 [PerWorldBindings] readonly attribute Node lastChild; 48 [PerWorldBindings] readonly attribute Node lastChild;
51 [PerWorldBindings] readonly attribute Node previousSibling; 49 [PerWorldBindings] readonly attribute Node previousSibling;
52 [PerWorldBindings] readonly attribute Node nextSibling; 50 [PerWorldBindings] readonly attribute Node nextSibling;
53 [PerWorldBindings] readonly attribute Document ownerDocument; 51 [PerWorldBindings] readonly attribute Document ownerDocument;
54 52
55 [Custom, PerWorldBindings, ActivityLog=AccessForIsolatedWorlds, RaisesExcept ion] Node insertBefore(Node newChild, Node refChild); 53 [Custom, PerWorldBindings, ActivityLog=AccessForIsolatedWorlds, RaisesExcept ion] Node insertBefore(Node newChild, Node refChild);
56 [Custom, PerWorldBindings, ActivityLog=AccessForIsolatedWorlds, RaisesExcept ion] Node replaceChild(Node newChild, Node oldChild); 54 [Custom, PerWorldBindings, ActivityLog=AccessForIsolatedWorlds, RaisesExcept ion] Node replaceChild(Node newChild, Node oldChild);
57 [Custom, PerWorldBindings, RaisesException] Node removeChild(Node oldChild); 55 [Custom, PerWorldBindings, RaisesException] Node removeChild(Node oldChild);
58 [Custom, PerWorldBindings, ActivityLog=AccessForIsolatedWorlds, RaisesExcept ion] Node appendChild(Node newChild); 56 [Custom, PerWorldBindings, ActivityLog=AccessForIsolatedWorlds, RaisesExcept ion] Node appendChild(Node newChild);
59 57
60 boolean hasChildNodes(); 58 boolean hasChildNodes();
61 [DeliverCustomElementCallbacks, PerWorldBindings] 59 [DeliverCustomElementCallbacks, PerWorldBindings]
62 Node cloneNode([Default=Undefined] optional boolean deep); 60 Node cloneNode(optional boolean deep);
63 void normalize(); 61 void normalize();
64 62
65 // Introduced in DOM Level 2: 63 // Introduced in DOM Level 2:
66 boolean isSupported([Default=Undefined] optional DOMString feature, 64 boolean isSupported([Default=Undefined] optional DOMString feature,
67 [TreatNullAs=NullString,Default=Undefined ] optional DOMString version); 65 [TreatNullAs=NullString,Default=Undefined ] optional DOMString version);
68 66
69 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr ing namespaceURI; 67 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr ing namespaceURI;
70 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, PerWorldBi ndings, SetterRaisesException] attribute DOMString prefix; 68 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, PerWorldBi ndings, SetterRaisesException] attribute DOMString prefix;
71 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr ing localName; 69 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr ing localName;
72 70
73 // Introduced in DOM Level 3: 71 // Introduced in DOM Level 3:
74 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr ing baseURI; 72 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr ing baseURI;
75 73
76 // FIXME: the spec says this can also raise on retrieval. 74 // FIXME: the spec says this can also raise on retrieval.
77 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, PerWorldBi ndings, SetterRaisesException] attribute DOMString textContent; 75 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, PerWorldBi ndings, SetterRaisesException, DeliverCustomElementCallbacks] attribute DOMStrin g textContent;
78 76
79 boolean isSameNode([Default=Undefined] optional Node other); 77 boolean isSameNode([Default=Undefined] optional Node other);
80 boolean isEqualNode([Default=Undefined] optional Node other); 78 boolean isEqualNode([Default=Undefined] optional Node other);
81 [TreatReturnedNullStringAs=Null] DOMString lookupPrefix([TreatNullA s=NullString,Default=Undefined] optional DOMString namespaceURI); 79 [TreatReturnedNullStringAs=Null] DOMString lookupPrefix([TreatNullA s=NullString,Default=Undefined] optional DOMString namespaceURI);
82 boolean isDefaultNamespace([TreatNullAs=NullString,Default=Undefi ned] optional DOMString namespaceURI); 80 boolean isDefaultNamespace([TreatNullAs=NullString,Default=Undefi ned] optional DOMString namespaceURI);
83 [TreatReturnedNullStringAs=Null] DOMString lookupNamespaceURI([Trea tNullAs=NullString,Default=Undefined] optional DOMString prefix); 81 [TreatReturnedNullStringAs=Null] DOMString lookupNamespaceURI([Trea tNullAs=NullString,Default=Undefined] optional DOMString prefix);
84 82
85 // DocumentPosition 83 // DocumentPosition
86 const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01; 84 const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01;
87 const unsigned short DOCUMENT_POSITION_PRECEDING = 0x02; 85 const unsigned short DOCUMENT_POSITION_PRECEDING = 0x02;
88 const unsigned short DOCUMENT_POSITION_FOLLOWING = 0x04; 86 const unsigned short DOCUMENT_POSITION_FOLLOWING = 0x04;
89 const unsigned short DOCUMENT_POSITION_CONTAINS = 0x08; 87 const unsigned short DOCUMENT_POSITION_CONTAINS = 0x08;
90 const unsigned short DOCUMENT_POSITION_CONTAINED_BY = 0x10; 88 const unsigned short DOCUMENT_POSITION_CONTAINED_BY = 0x10;
91 const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20; 89 const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20;
92 90
93 unsigned short compareDocumentPosition([Default=Undefined] optional Node other); 91 unsigned short compareDocumentPosition([Default=Undefined] optional Node other);
94 92
95 // Introduced in DOM4 93 // Introduced in DOM4
96 boolean contains([Default=Undefined] optional Node other); 94 boolean contains([Default=Undefined] optional Node other);
97 95
98 // IE extensions 96 // IE extensions
99 [PerWorldBindings] readonly attribute Element parentElement; 97 [PerWorldBindings] readonly attribute Element parentElement;
100
101 void addEventListener(DOMString type,
102 EventListener listener,
103 optional boolean useCapture);
104 void removeEventListener(DOMString type,
105 EventListener listener,
106 optional boolean useCapture);
107 [RaisesException] boolean dispatchEvent(Event event);
108 }; 98 };
OLDNEW
« no previous file with comments | « core/dom/NamedNodeMap.idl ('k') | core/dom/OverflowEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698