| 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 WindowEvents extends Events { | 5 interface WindowEvents extends Events { |
| 6 EventListenerList get abort(); | 6 EventListenerList get abort(); |
| 7 EventListenerList get beforeUnload(); | 7 EventListenerList get beforeUnload(); |
| 8 EventListenerList get blur(); | 8 EventListenerList get blur(); |
| 9 EventListenerList get canPlay(); | 9 EventListenerList get canPlay(); |
| 10 EventListenerList get canPlayThrough(); | 10 EventListenerList get canPlayThrough(); |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 void close(); | 256 void close(); |
| 257 | 257 |
| 258 bool confirm([String message]); | 258 bool confirm([String message]); |
| 259 | 259 |
| 260 FileReader createFileReader(); | 260 FileReader createFileReader(); |
| 261 | 261 |
| 262 bool find([String string, bool caseSensitive, bool backwards, bool wrap, bool
wholeWord, bool searchInFrames, bool showDialog]); | 262 bool find([String string, bool caseSensitive, bool backwards, bool wrap, bool
wholeWord, bool searchInFrames, bool showDialog]); |
| 263 | 263 |
| 264 void focus(); | 264 void focus(); |
| 265 | 265 |
| 266 CSSStyleDeclaration getComputedStyle([Element element, String pseudoElement]); | |
| 267 | |
| 268 DOMSelection getSelection(); | 266 DOMSelection getSelection(); |
| 269 | 267 |
| 270 MediaQueryList matchMedia(String query); | 268 MediaQueryList matchMedia(String query); |
| 271 | 269 |
| 272 void moveBy(num x, num y); | 270 void moveBy(num x, num y); |
| 273 | 271 |
| 274 void moveTo(num x, num y); | 272 void moveTo(num x, num y); |
| 275 | 273 |
| 276 Window open(String url, String target, [String features]); | 274 Window open(String url, String target, [String features]); |
| 277 | 275 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 288 void resizeTo(num width, num height); | 286 void resizeTo(num width, num height); |
| 289 | 287 |
| 290 void scroll(int x, int y); | 288 void scroll(int x, int y); |
| 291 | 289 |
| 292 void scrollBy(int x, int y); | 290 void scrollBy(int x, int y); |
| 293 | 291 |
| 294 void scrollTo(int x, int y); | 292 void scrollTo(int x, int y); |
| 295 | 293 |
| 296 int setInterval(TimeoutHandler handler, int timeout); | 294 int setInterval(TimeoutHandler handler, int timeout); |
| 297 | 295 |
| 298 int setTimeout([TimeoutHandler handler, int timeout]); | 296 int setTimeout(TimeoutHandler handler, int timeout); |
| 299 | 297 |
| 300 Object showModalDialog(String url, [Object dialogArgs, String featureArgs]); | 298 Object showModalDialog(String url, [Object dialogArgs, String featureArgs]); |
| 301 | 299 |
| 302 void stop(); | 300 void stop(); |
| 303 | 301 |
| 304 void webkitCancelRequestAnimationFrame(int id); | 302 void webkitCancelRequestAnimationFrame(int id); |
| 305 | 303 |
| 304 // TODO(jacobr): make these return Future<Point>. |
| 306 Point webkitConvertPointFromNodeToPage([Node node, Point p]); | 305 Point webkitConvertPointFromNodeToPage([Node node, Point p]); |
| 307 | 306 |
| 308 Point webkitConvertPointFromPageToNode([Node node, Point p]); | 307 Point webkitConvertPointFromPageToNode([Node node, Point p]); |
| 309 | 308 |
| 310 int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback, [Eleme
nt element]); | 309 int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback, [Eleme
nt element]); |
| 311 | 310 |
| 311 void requestLayoutFrame(TimeoutHandler callback); |
| 312 |
| 312 // Window open(String url, String target, WindowSpec features); | 313 // Window open(String url, String target, WindowSpec features); |
| 313 | 314 |
| 314 WindowEvents get on(); | 315 WindowEvents get on(); |
| 315 } | 316 } |
| OLD | NEW |