| 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; | 5 part of html; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * An object representing the top-level context object for web scripting. | 8 * An object representing the top-level context object for web scripting. |
| 9 * | 9 * |
| 10 * In a web browser, a [Window] object represents the actual browser window. | 10 * In a web browser, a [Window] object represents the actual browser window. |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 * window.location('http://www.mysite.com', 'foo'); | 108 * window.location('http://www.mysite.com', 'foo'); |
| 109 * // Does not close this window, as the history has changed. | 109 * // Does not close this window, as the history has changed. |
| 110 * window.close(); | 110 * window.close(); |
| 111 * print(window.closed()); // 'false' | 111 * print(window.closed()); // 'false' |
| 112 * | 112 * |
| 113 * See also: | 113 * See also: |
| 114 * | 114 * |
| 115 * * [Window close discussion](http://www.w3.org/TR/html5/browsers.html#dom-wi
ndow-close) from the W3C | 115 * * [Window close discussion](http://www.w3.org/TR/html5/browsers.html#dom-wi
ndow-close) from the W3C |
| 116 */ | 116 */ |
| 117 void close(); | 117 void close(); |
| 118 void postMessage(var message, String targetOrigin, [List messagePorts = null])
; | 118 void postMessage(var message, String targetOrigin, [List messagePorts]); |
| 119 } | 119 } |
| 120 | 120 |
| 121 abstract class Location { | 121 abstract class Location { |
| 122 void set href(String val); | 122 void set href(String val); |
| 123 } | 123 } |
| 124 | 124 |
| 125 abstract class History { | 125 abstract class History { |
| 126 void back(); | 126 void back(); |
| 127 void forward(); | 127 void forward(); |
| 128 void go(int distance); | 128 void go(int distance); |
| 129 } | 129 } |
| OLD | NEW |