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

Side by Side Diff: dom/Node.idl

Issue 13163002: Roll IDLs. (Closed) Base URL: http://dart.googlecode.com/svn/third_party/WebCore/
Patch Set: 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 | Annotate | Revision Log
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,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 const unsigned short CDATA_SECTION_NODE = 4; 42 const unsigned short CDATA_SECTION_NODE = 4;
43 const unsigned short ENTITY_REFERENCE_NODE = 5; 43 const unsigned short ENTITY_REFERENCE_NODE = 5;
44 const unsigned short ENTITY_NODE = 6; 44 const unsigned short ENTITY_NODE = 6;
45 const unsigned short PROCESSING_INSTRUCTION_NODE = 7; 45 const unsigned short PROCESSING_INSTRUCTION_NODE = 7;
46 const unsigned short COMMENT_NODE = 8; 46 const unsigned short COMMENT_NODE = 8;
47 const unsigned short DOCUMENT_NODE = 9; 47 const unsigned short DOCUMENT_NODE = 9;
48 const unsigned short DOCUMENT_TYPE_NODE = 10; 48 const unsigned short DOCUMENT_TYPE_NODE = 10;
49 const unsigned short DOCUMENT_FRAGMENT_NODE = 11; 49 const unsigned short DOCUMENT_FRAGMENT_NODE = 11;
50 const unsigned short NOTATION_NODE = 12; 50 const unsigned short NOTATION_NODE = 12;
51 51
52 readonly attribute [TreatReturnedNullStringAs=Null] DOMString nodeNam e; 52 readonly attribute [TreatReturnedNullStringAs=Null, V8PerWorldBindings] DOMS tring nodeName;
53 53
54 // FIXME: the spec says this can also raise on retrieval. 54 // FIXME: the spec says this can also raise on retrieval.
55 attribute [TreatReturnedNullStringAs=Null, TreatNullAs=NullString] DOMString nodeValue 55 attribute [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, V8PerWorldBindings] DOMString nodeValue
56 setter raises(DOMException); 56 setter raises(DOMException);
57 57
58 readonly attribute unsigned short nodeType; 58 readonly attribute [V8PerWorldBindings] unsigned short nodeType;
59 readonly attribute Node parentNode; 59 readonly attribute [V8PerWorldBindings] Node parentNode;
60 readonly attribute NodeList childNodes; 60 readonly attribute [V8PerWorldBindings] NodeList childNodes;
61 readonly attribute Node firstChild; 61 readonly attribute [V8PerWorldBindings] Node firstChild;
62 readonly attribute Node lastChild; 62 readonly attribute [V8PerWorldBindings] Node lastChild;
63 readonly attribute Node previousSibling; 63 readonly attribute [V8PerWorldBindings] Node previousSibling;
64 readonly attribute Node nextSibling; 64 readonly attribute [V8PerWorldBindings] Node nextSibling;
65 readonly attribute Document ownerDocument; 65 readonly attribute [V8PerWorldBindings] Document ownerDocument;
66 66
67 [ObjCLegacyUnnamedParameters, Custom] Node insertBefore(in [CustomReturn] No de newChild, 67 [ObjCLegacyUnnamedParameters, Custom, V8PerWorldBindings] Node insertBefore( in [CustomReturn] Node newChild,
68 in Node refChild) 68 in Node refChild)
69 raises(DOMException); 69 raises(DOMException);
70 [ObjCLegacyUnnamedParameters, Custom] Node replaceChild(in Node newChild, 70 [ObjCLegacyUnnamedParameters, Custom] Node replaceChild(in Node newChild,
71 in [CustomReturn] No de oldChild) 71 in [CustomReturn] No de oldChild)
72 raises(DOMException); 72 raises(DOMException);
73 [Custom] Node removeChild(in [CustomReturn] Node oldChild) 73 [Custom, V8PerWorldBindings] Node removeChild(in [CustomReturn] Node oldChil d)
74 raises(DOMException); 74 raises(DOMException);
75 [Custom] Node appendChild(in [CustomReturn] Node newChild) 75 [Custom, V8PerWorldBindings] Node appendChild(in [CustomReturn] Node newChil d)
76 raises(DOMException); 76 raises(DOMException);
77 77
78 boolean hasChildNodes(); 78 boolean hasChildNodes();
79 [V8DeliverCustomElementCallbacks, V8PerWorldBindings]
79 Node cloneNode(in [Optional=DefaultIsUndefined] boolean deep); 80 Node cloneNode(in [Optional=DefaultIsUndefined] boolean deep);
80 void normalize(); 81 void normalize();
81 82
82 // Introduced in DOM Level 2: 83 // Introduced in DOM Level 2:
83 84
84 [ObjCLegacyUnnamedParameters] boolean isSupported(in [Optional=DefaultIsUnde fined] DOMString feature, 85 [ObjCLegacyUnnamedParameters] boolean isSupported(in [Optional=DefaultIsUnde fined] DOMString feature,
85 in [TreatNullAs=NullString,Optional=Defau ltIsUndefined] DOMString version); 86 in [TreatNullAs=NullString,Optional=Defau ltIsUndefined] DOMString version);
86 87
87 readonly attribute [TreatReturnedNullStringAs=Null] DOMString namespa ceURI; 88 readonly attribute [TreatReturnedNullStringAs=Null, V8PerWorldBindings] DOMS tring namespaceURI;
88 attribute [TreatReturnedNullStringAs=Null, TreatNullAs=NullString] DOMString prefix 89 attribute [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, V8PerWorldBindings] DOMString prefix
89 setter raises(DOMException); 90 setter raises(DOMException);
90 readonly attribute [TreatReturnedNullStringAs=Null] DOMString localNa me; 91 readonly attribute [TreatReturnedNullStringAs=Null, V8PerWorldBindings] DOMS tring localName;
91 92
92 #if defined(LANGUAGE_OBJECTIVE_C) 93 #if defined(LANGUAGE_OBJECTIVE_C)
93 readonly attribute NamedNodeMap attributes; 94 readonly attribute [V8PerWorldBindings] NamedNodeMap attributes;
94 boolean hasAttributes(); 95 boolean hasAttributes();
95 #endif 96 #endif
96 97
97 98
98 // Introduced in DOM Level 3: 99 // Introduced in DOM Level 3:
99 100
100 readonly attribute [TreatReturnedNullStringAs=Null] DOMString baseURI; 101 readonly attribute [TreatReturnedNullStringAs=Null, V8PerWorldBindings] DOMS tring baseURI;
101 102
102 // FIXME: the spec says this can also raise on retrieval. 103 // FIXME: the spec says this can also raise on retrieval.
103 attribute [TreatReturnedNullStringAs=Null, TreatNullAs=NullString] DOMString textContent 104 attribute [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, V8PerWorldBindings] DOMString textContent
104 setter raises(DOMException); 105 setter raises(DOMException);
105 106
106 boolean isSameNode(in [Optional=DefaultIsUndefined] Node other); 107 boolean isSameNode(in [Optional=DefaultIsUndefined] Node other);
107 boolean isEqualNode(in [Optional=DefaultIsUndefined] Node other); 108 boolean isEqualNode(in [Optional=DefaultIsUndefined] Node other);
108 [TreatReturnedNullStringAs=Null] DOMString lookupPrefix(in [TreatNu llAs=NullString,Optional=DefaultIsUndefined] DOMString namespaceURI); 109 [TreatReturnedNullStringAs=Null] DOMString lookupPrefix(in [TreatNu llAs=NullString,Optional=DefaultIsUndefined] DOMString namespaceURI);
109 boolean isDefaultNamespace(in [TreatNullAs=NullString,Optional=De faultIsUndefined] DOMString namespaceURI); 110 boolean isDefaultNamespace(in [TreatNullAs=NullString,Optional=De faultIsUndefined] DOMString namespaceURI);
110 [TreatReturnedNullStringAs=Null] DOMString lookupNamespaceURI(in [T reatNullAs=NullString,Optional=DefaultIsUndefined] DOMString prefix); 111 [TreatReturnedNullStringAs=Null] DOMString lookupNamespaceURI(in [T reatNullAs=NullString,Optional=DefaultIsUndefined] DOMString prefix);
111 112
112 // DocumentPosition 113 // DocumentPosition
113 const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01; 114 const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01;
114 const unsigned short DOCUMENT_POSITION_PRECEDING = 0x02; 115 const unsigned short DOCUMENT_POSITION_PRECEDING = 0x02;
115 const unsigned short DOCUMENT_POSITION_FOLLOWING = 0x04; 116 const unsigned short DOCUMENT_POSITION_FOLLOWING = 0x04;
116 const unsigned short DOCUMENT_POSITION_CONTAINS = 0x08; 117 const unsigned short DOCUMENT_POSITION_CONTAINS = 0x08;
117 const unsigned short DOCUMENT_POSITION_CONTAINED_BY = 0x10; 118 const unsigned short DOCUMENT_POSITION_CONTAINED_BY = 0x10;
118 const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20; 119 const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20;
119 120
120 unsigned short compareDocumentPosition(in [Optional=DefaultIsUndefined] Node other); 121 unsigned short compareDocumentPosition(in [Optional=DefaultIsUndefined] Node other);
121 122
122 // Introduced in DOM4 123 // Introduced in DOM4
123 boolean contains(in [Optional=DefaultIsUndefined] Node other); 124 boolean contains(in [Optional=DefaultIsUndefined] Node other);
124 125
125 // IE extensions 126 // IE extensions
126 readonly attribute Element parentElement; 127 readonly attribute [V8PerWorldBindings] Element parentElement;
127 128
128 #if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C 129 #if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
129 // Objective-C extensions 130 // Objective-C extensions
130 readonly attribute boolean isContentEditable; 131 readonly attribute [V8PerWorldBindings] boolean isContentEditable;
131 132
132 void inspect(); 133 void inspect();
133 #endif /* defined(LANGUAGE_OBJECTIVE_C) */ 134 #endif /* defined(LANGUAGE_OBJECTIVE_C) */
134 135
135 #if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP 136 #if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP
136 #if !defined(LANGUAGE_OBJECTIVE_C) || !LANGUAGE_OBJECTIVE_C 137 #if !defined(LANGUAGE_OBJECTIVE_C) || !LANGUAGE_OBJECTIVE_C
137 void addEventListener(in DOMString type, 138 void addEventListener(in DOMString type,
138 in EventListener listener, 139 in EventListener listener,
139 in [Optional] boolean useCapture); 140 in [Optional] boolean useCapture);
140 void removeEventListener(in DOMString type, 141 void removeEventListener(in DOMString type,
(...skipping 10 matching lines...) Expand all
151 in boolean useCapture); 152 in boolean useCapture);
152 [Custom] void removeEventListener(in DOMString type, 153 [Custom] void removeEventListener(in DOMString type,
153 in EventListener listener, 154 in EventListener listener,
154 in boolean useCapture); 155 in boolean useCapture);
155 boolean dispatchEvent(in Event event) 156 boolean dispatchEvent(in Event event)
156 raises(EventException); 157 raises(EventException);
157 #endif 158 #endif
158 159
159 }; 160 };
160 161
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698