| OLD | NEW |
| 1 // Copyright (c) 2012, 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 abstract class Window { | 5 abstract class Window { |
| 6 // Fields. | 6 // Fields. |
| 7 Location get location; | 7 Location get location; |
| 8 History get history; | 8 History get history; |
| 9 | 9 |
| 10 bool get closed; | 10 bool get closed; |
| 11 Window get opener; | 11 Window get opener; |
| 12 Window get parent; | 12 Window get parent; |
| 13 Window get top; | 13 Window get top; |
| 14 | 14 |
| 15 // Methods. | 15 // Methods. |
| 16 void focus(); | 16 void focus(); |
| 17 void blur(); | 17 void blur(); |
| 18 void close(); | 18 void close(); |
| 19 void postMessage(Dynamic message, | 19 void postMessage(var message, String targetOrigin, [List messagePorts = null])
; |
| 20 String targetOrigin, | |
| 21 » » [List messagePorts = null]); | |
| 22 } | 20 } |
| 23 | 21 |
| 24 abstract class Location { | 22 abstract class Location { |
| 25 void set href(String val); | 23 void set href(String val); |
| 26 } | 24 } |
| 27 | 25 |
| 28 abstract class History { | 26 abstract class History { |
| 29 void back(); | 27 void back(); |
| 30 void forward(); | 28 void forward(); |
| 31 void go(int distance); | 29 void go(int distance); |
| 32 } | 30 } |
| OLD | NEW |