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