 Chromium Code Reviews
 Chromium Code Reviews Issue 10806016:
  Cleanup queryAll to return List<Element>.  (Closed) 
  Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
    
  
    Issue 10806016:
  Cleanup queryAll to return List<Element>.  (Closed) 
  Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart| OLD | NEW | 
|---|---|
| 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 so that it's implementing classes | |
| 
sra1
2012/07/19 00:44:00
Not sure I follow.
ElementList extends raw List s
 | |
| 10 // may be cast to List<? extends Element> - e.g., List<CanvasElement>. | |
| 11 interface ElementList extends List { | |
| 8 // TODO(jacobr): add element batch manipulation methods. | 12 // TODO(jacobr): add element batch manipulation methods. | 
| 9 ElementList filter(bool f(Element element)); | 13 ElementList filter(bool f(Element element)); | 
| 10 | 14 | 
| 11 ElementList getRange(int start, int length); | 15 ElementList getRange(int start, int length); | 
| 12 | 16 | 
| 13 Element get first(); | 17 Element get first(); | 
| 14 // TODO(jacobr): add insertAt | 18 // TODO(jacobr): add insertAt | 
| 15 } | 19 } | 
| 16 | 20 | 
| 17 /** | 21 /** | 
| (...skipping 14 matching lines...) Expand all Loading... | |
| 32 ClientRect get offset(); | 36 ClientRect get offset(); | 
| 33 ClientRect get scroll(); | 37 ClientRect get scroll(); | 
| 34 // In global coords | 38 // In global coords | 
| 35 ClientRect get bounding(); | 39 ClientRect get bounding(); | 
| 36 // In global coords | 40 // In global coords | 
| 37 List<ClientRect> get clientRects(); | 41 List<ClientRect> get clientRects(); | 
| 38 } | 42 } | 
| 39 | 43 | 
| 40 interface NodeSelector { | 44 interface NodeSelector { | 
| 41 Element query(String selectors); | 45 Element query(String selectors); | 
| 42 NodeList queryAll(String selectors); | 46 List<Element> queryAll(String selectors); | 
| 43 } | 47 } | 
| 44 | 48 | 
| 45 $!COMMENT | 49 $!COMMENT | 
| 46 interface Element extends Node, NodeSelector default _$(ID)FactoryProvider { | 50 interface Element extends Node, NodeSelector default _$(ID)FactoryProvider { | 
| 47 Element.html(String html); | 51 Element.html(String html); | 
| 48 Element.tag(String tag); | 52 Element.tag(String tag); | 
| 49 | 53 | 
| 50 AttributeMap get attributes(); | 54 AttributeMap get attributes(); | 
| 51 void set attributes(Map<String, String> value); | 55 void set attributes(Map<String, String> value); | 
| 52 | 56 | 
| (...skipping 25 matching lines...) Expand all Loading... | |
| 78 | 82 | 
| 79 /** @domName Window.getComputedStyle */ | 83 /** @domName Window.getComputedStyle */ | 
| 80 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement); | 84 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement); | 
| 81 | 85 | 
| 82 Element clone(bool deep); | 86 Element clone(bool deep); | 
| 83 | 87 | 
| 84 Element get parent(); | 88 Element get parent(); | 
| 85 | 89 | 
| 86 $!MEMBERS | 90 $!MEMBERS | 
| 87 } | 91 } | 
| OLD | NEW |