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

Side by Side Diff: client/html/src/Node.dart

Issue 9315061: Specify the types for Element.classes, Element.elements and Node.nodes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed dynamic type error issue with VM. Created 8 years, 9 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 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // TODO(jacobr): stop extending eventTarget. 5 // TODO(jacobr): stop extending eventTarget.
6 interface Node extends EventTarget { 6 interface Node extends EventTarget {
7 7
8 NodeList get nodes(); 8 NodeList get nodes();
9 9
10 // TODO: The type of value should be Collection<Node>. See http://b/5392897 10 void set nodes(Collection<Node> value);
11 void set nodes(value);
12 11
13 Node get nextNode(); 12 Node get nextNode();
14 13
15 Document get document(); 14 Document get document();
16 15
17 Node get parent(); 16 Node get parent();
18 17
19 Node get previousNode(); 18 Node get previousNode();
20 19
21 String get text(); 20 String get text();
22 21
23 void set text(String value); 22 void set text(String value);
24 23
25 Node replaceWith(Node otherNode); 24 Node replaceWith(Node otherNode);
26 25
27 Node remove(); 26 Node remove();
28 27
29 bool contains(Node otherNode); 28 bool contains(Node otherNode);
30 29
31 // TODO(jacobr): remove when/if Array supports a method similar to 30 // TODO(jacobr): remove when/if Array supports a method similar to
32 // insertBefore or we switch NodeList to implement LinkedList rather than 31 // insertBefore or we switch NodeList to implement LinkedList rather than
33 // array. 32 // array.
34 Node insertBefore(Node newChild, Node refChild); 33 Node insertBefore(Node newChild, Node refChild);
35 34
36 Node clone(bool deep); 35 Node clone(bool deep);
37 } 36 }
OLDNEW
« no previous file with comments | « client/html/src/DocumentFragmentWrappingImplementation.dart ('k') | client/html/src/SVGElementWrappingImplementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698