| 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 // TODO(vsm): Add frames to navigate subframes. See 2312. | |
| 16 | |
| 17 // Methods. | 15 // Methods. |
| 18 void focus(); | 16 void focus(); |
| 19 void blur(); | 17 void blur(); |
| 20 void close(); | 18 void close(); |
| 21 void postMessage(Dynamic message, | 19 void postMessage(Dynamic message, |
| 22 String targetOrigin, | 20 String targetOrigin, |
| 23 [List messagePorts = null]); | 21 [List messagePorts = null]); |
| 24 } | 22 } |
| 25 | 23 |
| 26 abstract class Location { | 24 abstract class Location { |
| 27 void set href(String val); | 25 void set href(String val); |
| 28 } | 26 } |
| 29 | 27 |
| 30 abstract class History { | 28 abstract class History { |
| 31 void back(); | 29 void back(); |
| 32 void forward(); | 30 void forward(); |
| 33 void go(int distance); | 31 void go(int distance); |
| 34 } | 32 } |
| OLD | NEW |