| 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 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 Element get first(); | 7 Element get first(); |
| 8 // TODO(jacobr): add insertAt | 8 // TODO(jacobr): add insertAt |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 interface ElementRect { | 67 interface ElementRect { |
| 68 ClientRect get client(); | 68 ClientRect get client(); |
| 69 ClientRect get offset(); | 69 ClientRect get offset(); |
| 70 ClientRect get scroll(); | 70 ClientRect get scroll(); |
| 71 ClientRect get bounding(); | 71 ClientRect get bounding(); |
| 72 List<ClientRect> get clientRects(); | 72 List<ClientRect> get clientRects(); |
| 73 } | 73 } |
| 74 | 74 |
| 75 | 75 |
| 76 interface Element extends Node /*, common.NodeSelector, common.ElementTraversal
*/ | 76 interface Element extends Node /*, common.NodeSelector, common.ElementTraversal
*/ |
| 77 factory ElementWrappingImplementation { | 77 default ElementWrappingImplementation { |
| 78 | 78 |
| 79 Element.html(String html); | 79 Element.html(String html); |
| 80 Element.tag(String tag); | 80 Element.tag(String tag); |
| 81 | 81 |
| 82 Map<String, String> get attributes(); | 82 Map<String, String> get attributes(); |
| 83 void set attributes(Map<String, String> value); | 83 void set attributes(Map<String, String> value); |
| 84 | 84 |
| 85 ElementList get elements(); | 85 ElementList get elements(); |
| 86 | 86 |
| 87 // TODO: The type of value should be Collection<Element>. See http://b/5392897 | 87 // TODO: The type of value should be Collection<Element>. See http://b/5392897 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 bool matchesSelector([String selectors]); | 186 bool matchesSelector([String selectors]); |
| 187 | 187 |
| 188 Future<ElementRect> get rect(); | 188 Future<ElementRect> get rect(); |
| 189 | 189 |
| 190 Future<CSSStyleDeclaration> get computedStyle(); | 190 Future<CSSStyleDeclaration> get computedStyle(); |
| 191 | 191 |
| 192 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement); | 192 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement); |
| 193 | 193 |
| 194 ElementEvents get on(); | 194 ElementEvents get on(); |
| 195 } | 195 } |
| OLD | NEW |