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