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

Side by Side Diff: third_party/WebCore/dom/Node.idl

Issue 9958151: Update script to fetch new WebCore IDL (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
« no previous file with comments | « third_party/WebCore/dom/NamedNodeMap.idl ('k') | third_party/WebCore/dom/NodeFilter.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 *
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
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19 */
20
21 module core {
22
23 interface [
24 JSCustomHeader,
25 JSCustomMarkFunction,
26 JSCustomPushEventHandlerScope,
27 JSCustomIsReachable,
28 JSCustomFinalize,
29 CustomToJSObject,
30 EventTarget,
31 JSGenerateToNativeObject,
32 JSInlineGetOwnPropertySlot,
33 ObjCPolymorphic,
34 V8DependentLifetime
35 ] Node
36 #if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
37 : Object, EventTarget
38 #endif /* defined(LANGUAGE_OBJECTIVE_C) */
39 {
40 // NodeType
41 const unsigned short ELEMENT_NODE = 1;
42 const unsigned short ATTRIBUTE_NODE = 2;
43 const unsigned short TEXT_NODE = 3;
44 const unsigned short CDATA_SECTION_NODE = 4;
45 const unsigned short ENTITY_REFERENCE_NODE = 5;
46 const unsigned short ENTITY_NODE = 6;
47 const unsigned short PROCESSING_INSTRUCTION_NODE = 7;
48 const unsigned short COMMENT_NODE = 8;
49 const unsigned short DOCUMENT_NODE = 9;
50 const unsigned short DOCUMENT_TYPE_NODE = 10;
51 const unsigned short DOCUMENT_FRAGMENT_NODE = 11;
52 const unsigned short NOTATION_NODE = 12;
53
54 readonly attribute [TreatReturnedNullStringAs=Null] DOMString nod eName;
55
56 // FIXME: the spec says this can also raise on retrieval.
57 attribute [TreatReturnedNullStringAs=Null, TreatNullAs=NullStri ng] DOMString nodeValue
58 setter raises(DOMException);
59
60 readonly attribute unsigned short nodeType;
61 readonly attribute Node parentNode;
62 readonly attribute NodeList childNodes;
63 readonly attribute Node firstChild;
64 readonly attribute Node lastChild;
65 readonly attribute Node previousSibling;
66 readonly attribute Node nextSibling;
67 readonly attribute NamedNodeMap attributes;
68 readonly attribute Document ownerDocument;
69
70 [ObjCLegacyUnnamedParameters, Custom] Node insertBefore(in [CustomReturn ] Node newChild,
71 in Node refChild )
72 raises(DOMException);
73 [ObjCLegacyUnnamedParameters, Custom] Node replaceChild(in Node newChild ,
74 in [CustomReturn ] Node oldChild)
75 raises(DOMException);
76 [Custom] Node removeChild(in [CustomReturn] Node oldChild)
77 raises(DOMException);
78 [Custom] Node appendChild(in [CustomReturn] Node newChild)
79 raises(DOMException);
80
81 boolean hasChildNodes();
82 Node cloneNode(in [Optional=DefaultIsUndefined] boolean de ep);
83 void normalize();
84
85 // Introduced in DOM Level 2:
86
87 [ObjCLegacyUnnamedParameters] boolean isSupported(in [Optional=DefaultIs Undefined] DOMString feature,
88 in [TreatNullAs=NullString,Optional=D efaultIsUndefined] DOMString version);
89
90 readonly attribute [TreatReturnedNullStringAs=Null] DOMString nam espaceURI;
91 attribute [TreatReturnedNullStringAs=Null, TreatNullAs=NullStri ng] DOMString prefix
92 setter raises(DOMException);
93 readonly attribute [TreatReturnedNullStringAs=Null] DOMString loc alName;
94
95 boolean hasAttributes();
96
97 // Introduced in DOM Level 3:
98
99 readonly attribute [TreatReturnedNullStringAs=Null] DOMString base URI;
100
101 // FIXME: the spec says this can also raise on retrieval.
102 attribute [TreatReturnedNullStringAs=Null, TreatNullAs=NullStri ng] DOMString textContent
103 setter raises(DOMException);
104
105 boolean isSameNode(in [Optional=DefaultIsUndefined] Node othe r);
106 boolean isEqualNode(in [Optional=DefaultIsUndefined] Node oth er);
107 [TreatReturnedNullStringAs=Null] DOMString lookupPrefix(in [Tre atNullAs=NullString,Optional=DefaultIsUndefined] DOMString namespaceURI);
108 boolean isDefaultNamespace(in [TreatNullAs=NullString,Optiona l=DefaultIsUndefined] DOMString namespaceURI);
109 [TreatReturnedNullStringAs=Null] DOMString lookupNamespaceURI(i n [TreatNullAs=NullString,Optional=DefaultIsUndefined] DOMString prefix);
110
111 // DocumentPosition
112 const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01;
113 const unsigned short DOCUMENT_POSITION_PRECEDING = 0x02;
114 const unsigned short DOCUMENT_POSITION_FOLLOWING = 0x04;
115 const unsigned short DOCUMENT_POSITION_CONTAINS = 0x08;
116 const unsigned short DOCUMENT_POSITION_CONTAINED_BY = 0x10;
117 const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x 20;
118
119 unsigned short compareDocumentPosition(in [Optional=DefaultIsUndefin ed] Node other);
120
121 // Introduced in DOM4
122 boolean contains(in [Optional=DefaultIsUndefined] Node other);
123
124 #if 0
125 DOMObject getFeature(in DOMString feature,
126 in DOMString version);
127 DOMUserData setUserData(in DOMString key,
128 in DOMUserData data,
129 in UserDataHandler handler);
130 DOMUserData getUserData(in DOMString key);
131 #endif /* 0 */
132
133 // IE extensions
134 readonly attribute Element parentElement;
135
136 #if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
137 // Objective-C extensions
138 readonly attribute boolean isContentEditable;
139 #endif /* defined(LANGUAGE_OBJECTIVE_C) */
140
141 #if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP
142 #if !defined(LANGUAGE_OBJECTIVE_C) || !LANGUAGE_OBJECTIVE_C
143 void addEventListener(in DOMString type,
144 in EventListener listener,
145 in [Optional] boolean useCapture);
146 void removeEventListener(in DOMString type,
147 in EventListener listener,
148 in [Optional] boolean useCapture);
149 boolean dispatchEvent(in Event event)
150 raises(EventException);
151 #endif
152 #endif
153
154 #if defined(LANGUAGE_CPP) && LANGUAGE_CPP
155 [Custom] void addEventListener(in DOMString type,
156 in EventListener listener,
157 in boolean useCapture);
158 [Custom] void removeEventListener(in DOMString type,
159 in EventListener listener,
160 in boolean useCapture);
161 boolean dispatchEvent(in Event event)
162 raises(EventException);
163 #endif
164
165 };
166
167 }
OLDNEW
« no previous file with comments | « third_party/WebCore/dom/NamedNodeMap.idl ('k') | third_party/WebCore/dom/NodeFilter.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698