| OLD | NEW |
| 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 interface ElementList extends List<Element> { | 5 interface ElementList extends List<Element> { |
| 6 // TODO(jacobr): add element batch manipulation methods. | 6 // TODO(jacobr): add element batch manipulation methods. |
| 7 ElementList filter(bool f(Element element)); | 7 ElementList filter(bool f(Element element)); |
| 8 | 8 |
| 9 ElementList getRange(int start, int length); | 9 ElementList getRange(int start, int length); |
| 10 | 10 |
| 11 Element get first(); | 11 Element get first(); |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 default ElementWrappingImplementation { | 81 default ElementWrappingImplementation { |
| 82 | 82 |
| 83 Element.html(String html); | 83 Element.html(String html); |
| 84 Element.tag(String tag); | 84 Element.tag(String tag); |
| 85 | 85 |
| 86 Map<String, String> get attributes(); | 86 Map<String, String> get attributes(); |
| 87 void set attributes(Map<String, String> value); | 87 void set attributes(Map<String, String> value); |
| 88 | 88 |
| 89 ElementList get elements(); | 89 ElementList get elements(); |
| 90 | 90 |
| 91 // TODO: The type of value should be Collection<Element>. See http://b/5392897 | 91 void set elements(Collection<Element> value); |
| 92 void set elements(value); | |
| 93 | 92 |
| 94 Set<String> get classes(); | 93 Set<String> get classes(); |
| 95 | 94 |
| 96 // TODO: The type of value should be Collection<String>. See http://b/5392897 | 95 void set classes(Collection<String> value); |
| 97 void set classes(value); | |
| 98 | 96 |
| 99 Map<String, String> get dataAttributes(); | 97 Map<String, String> get dataAttributes(); |
| 100 void set dataAttributes(Map<String, String> value); | 98 void set dataAttributes(Map<String, String> value); |
| 101 | 99 |
| 102 String get contentEditable(); | 100 String get contentEditable(); |
| 103 | 101 |
| 104 void set contentEditable(String value); | 102 void set contentEditable(String value); |
| 105 | 103 |
| 106 String get dir(); | 104 String get dir(); |
| 107 | 105 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 Future<ElementRect> get rect(); | 190 Future<ElementRect> get rect(); |
| 193 | 191 |
| 194 Future<CSSStyleDeclaration> get computedStyle(); | 192 Future<CSSStyleDeclaration> get computedStyle(); |
| 195 | 193 |
| 196 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement); | 194 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement); |
| 197 | 195 |
| 198 ElementEvents get on(); | 196 ElementEvents get on(); |
| 199 | 197 |
| 200 Element clone(bool deep); | 198 Element clone(bool deep); |
| 201 } | 199 } |
| OLD | NEW |