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

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

Issue 922893002: Merge the Sky Engine changes from the SkyDart branch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « sky/engine/core/dom/Node.cpp ('k') | sky/engine/core/dom/NodeList.h » ('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 [ 21 [
22 Custom=Wrap,
23 DependentLifetime, 22 DependentLifetime,
24 ] interface Node : EventTarget { 23 ] interface Node : EventTarget {
25 [PerWorldBindings] readonly attribute Node parentNode; 24 readonly attribute Node parentNode;
26 [PerWorldBindings] readonly attribute Node firstChild; 25 readonly attribute Node firstChild;
27 [PerWorldBindings] readonly attribute Node lastChild; 26 readonly attribute Node lastChild;
28 [PerWorldBindings] readonly attribute Node previousSibling; 27 readonly attribute Node previousSibling;
29 [PerWorldBindings] readonly attribute Node nextSibling; 28 readonly attribute Node nextSibling;
30 [PerWorldBindings] readonly attribute Document ownerDocument; 29 readonly attribute Document ownerDocument;
31 30
32 // TODO(esprehn): This should return TreeScope in Sky, but we don't have 31 // TODO(esprehn): This should return TreeScope in Sky, but we don't have
33 // a TreeScope type yet. 32 // a TreeScope type yet.
34 readonly attribute Node ownerScope; 33 readonly attribute Node ownerScope;
35 34
36 [CustomElementCallbacks, PerWorldBindings, RaisesException, TypeChecking=Int erface] Node insertBefore(Node newChild, Node? refChild); 35 [CustomElementCallbacks, RaisesException, TypeChecking=Interface] Node inser tBefore(Node newChild, Node? refChild);
37 [CustomElementCallbacks, PerWorldBindings, RaisesException, TypeChecking=Int erface] Node replaceChild(Node newChild, Node oldChild); 36 [CustomElementCallbacks, RaisesException, TypeChecking=Interface] Node repla ceChild(Node newChild, Node oldChild);
38 [CustomElementCallbacks, RaisesException, TypeChecking=Interface] Node remov eChild(Node oldChild); 37 [CustomElementCallbacks, RaisesException, TypeChecking=Interface] Node remov eChild(Node oldChild);
39 [CustomElementCallbacks, PerWorldBindings, RaisesException, TypeChecking=Int erface] Node appendChild(Node newChild); 38 [CustomElementCallbacks, RaisesException, TypeChecking=Interface] Node appen dChild(Node newChild);
40 39
41 [ImplementedAs=hasChildren] boolean hasChildNodes(); 40 [ImplementedAs=hasChildren] boolean hasChildNodes();
42 [CustomElementCallbacks] Node cloneNode(optional boolean deep); 41 [CustomElementCallbacks] Node cloneNode(optional boolean deep);
43 42
44 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, TreatUndefinedAs=Nu llString, CustomElementCallbacks] attribute DOMString textContent; 43 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, TreatUndefinedAs=Nu llString, CustomElementCallbacks] attribute DOMString textContent;
45 44
46 boolean contains(Node other); 45 boolean contains(Node other);
47 46
48 // DocumentPosition 47 // DocumentPosition
49 const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01; 48 const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01;
50 const unsigned short DOCUMENT_POSITION_PRECEDING = 0x02; 49 const unsigned short DOCUMENT_POSITION_PRECEDING = 0x02;
51 const unsigned short DOCUMENT_POSITION_FOLLOWING = 0x04; 50 const unsigned short DOCUMENT_POSITION_FOLLOWING = 0x04;
52 const unsigned short DOCUMENT_POSITION_CONTAINS = 0x08; 51 const unsigned short DOCUMENT_POSITION_CONTAINS = 0x08;
53 const unsigned short DOCUMENT_POSITION_CONTAINED_BY = 0x10; 52 const unsigned short DOCUMENT_POSITION_CONTAINED_BY = 0x10;
54 const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20; 53 const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20;
55 54
56 unsigned short compareDocumentPosition(Node other); 55 unsigned short compareDocumentPosition(Node other);
57 56
58 [PerWorldBindings] readonly attribute Element parentElement; 57 readonly attribute Element parentElement;
59 }; 58 };
OLDNEW
« no previous file with comments | « sky/engine/core/dom/Node.cpp ('k') | sky/engine/core/dom/NodeList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698