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

Side by Side Diff: lib/dom/templates/html/interface/interface_Element.darttemplate

Issue 10806016: Cleanup queryAll to return List<Element>. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix comment Created 8 years, 5 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) 2011, 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 // WARNING: Do not edit - generated code. 5 // WARNING: Do not edit - generated code.
6 6
7 interface ElementList extends List<Element> { 7 // TODO(vsm): Eliminate this type.
8
9 // Note, ElementList implements List (instead of List<Element>) so
10 // that its implementing classes may be cast to Lists of more specific
11 // type such as List<CanvasElement>.
12 interface ElementList extends List {
8 // TODO(jacobr): add element batch manipulation methods. 13 // TODO(jacobr): add element batch manipulation methods.
9 ElementList filter(bool f(Element element)); 14 ElementList filter(bool f(Element element));
10 15
11 ElementList getRange(int start, int length); 16 ElementList getRange(int start, int length);
12 17
13 Element get first(); 18 Element get first();
14 // TODO(jacobr): add insertAt 19 // TODO(jacobr): add insertAt
15 } 20 }
16 21
17 /** 22 /**
(...skipping 14 matching lines...) Expand all
32 ClientRect get offset(); 37 ClientRect get offset();
33 ClientRect get scroll(); 38 ClientRect get scroll();
34 // In global coords 39 // In global coords
35 ClientRect get bounding(); 40 ClientRect get bounding();
36 // In global coords 41 // In global coords
37 List<ClientRect> get clientRects(); 42 List<ClientRect> get clientRects();
38 } 43 }
39 44
40 interface NodeSelector { 45 interface NodeSelector {
41 Element query(String selectors); 46 Element query(String selectors);
42 NodeList queryAll(String selectors); 47 List<Element> queryAll(String selectors);
43 } 48 }
44 49
45 $!COMMENT 50 $!COMMENT
46 interface Element extends Node, NodeSelector default _$(ID)FactoryProvider { 51 interface Element extends Node, NodeSelector default _$(ID)FactoryProvider {
47 Element.html(String html); 52 Element.html(String html);
48 Element.tag(String tag); 53 Element.tag(String tag);
49 54
50 AttributeMap get attributes(); 55 AttributeMap get attributes();
51 void set attributes(Map<String, String> value); 56 void set attributes(Map<String, String> value);
52 57
(...skipping 25 matching lines...) Expand all
78 83
79 /** @domName Window.getComputedStyle */ 84 /** @domName Window.getComputedStyle */
80 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement); 85 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement);
81 86
82 Element clone(bool deep); 87 Element clone(bool deep);
83 88
84 Element get parent(); 89 Element get parent();
85 90
86 $!MEMBERS 91 $!MEMBERS
87 } 92 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698