| 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 Element get first(); | 7 Element get first(); |
| 8 // TODO(jacobr): add insertAt | 8 // TODO(jacobr): add insertAt |
| 9 } | 9 } |
| 10 | 10 |
| 11 class DeferredElementRect { | |
| 12 // TODO(jacobr) | |
| 13 } | |
| 14 | |
| 15 interface ElementEvents extends Events { | 11 interface ElementEvents extends Events { |
| 16 EventListenerList get abort(); | 12 EventListenerList get abort(); |
| 17 EventListenerList get beforeCopy(); | 13 EventListenerList get beforeCopy(); |
| 18 EventListenerList get beforeCut(); | 14 EventListenerList get beforeCut(); |
| 19 EventListenerList get beforePaste(); | 15 EventListenerList get beforePaste(); |
| 20 EventListenerList get blur(); | 16 EventListenerList get blur(); |
| 21 EventListenerList get change(); | 17 EventListenerList get change(); |
| 22 EventListenerList get click(); | 18 EventListenerList get click(); |
| 23 EventListenerList get contextMenu(); | 19 EventListenerList get contextMenu(); |
| 24 EventListenerList get copy(); | 20 EventListenerList get copy(); |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 Element get parent(); | 174 Element get parent(); |
| 179 | 175 |
| 180 void scrollByLines([int lines]); | 176 void scrollByLines([int lines]); |
| 181 | 177 |
| 182 void scrollByPages([int pages]); | 178 void scrollByPages([int pages]); |
| 183 | 179 |
| 184 void scrollIntoView([bool centerIfNeeded]); | 180 void scrollIntoView([bool centerIfNeeded]); |
| 185 | 181 |
| 186 bool matchesSelector([String selectors]); | 182 bool matchesSelector([String selectors]); |
| 187 | 183 |
| 188 Future<ElementRect> get rect(); | 184 /** Only access members when [window.inMeasurementFrame] is true. */ |
| 185 ElementRect get rect(); |
| 189 | 186 |
| 190 Future<CSSStyleDeclaration> get computedStyle(); | 187 /** Only call when [window.inMeasurementFrame] is true. */ |
| 188 CSSStyleDeclaration get computedStyle(); |
| 191 | 189 |
| 192 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement); | 190 /** Only call when [window.inMeasurementFrame] is true. */ |
| 191 CSSStyleDeclaration getComputedStyle(String pseudoElement); |
| 193 | 192 |
| 194 ElementEvents get on(); | 193 ElementEvents get on(); |
| 195 | 194 |
| 196 Element clone(bool deep); | 195 Element clone(bool deep); |
| 197 } | 196 } |
| OLD | NEW |