| 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 * Top-level container for a browser tab or window. |
| 9 * | 9 * |
| 10 * In a web browser, a [Window] object represents the actual browser window. | 10 * In a web browser, a [WindowBase] object represents any browser window. This |
| 11 * In a multi-tabbed browser, each tab has its own [Window] object. A [Window] | 11 * abstract class contains the state of the window and its relation to other |
| 12 * is the container that displays a [Document]'s content. All web scripting | 12 * windows, such as which window opened it. |
| 13 * happens within the context of a [Window] object. | |
| 14 * | 13 * |
| 15 * **Note:** This class represents any window, whereas [Window] is | 14 * **Note:** This class represents any window, whereas [Window] is |
| 16 * used to access the properties and content of the current window. | 15 * used to access the properties and content of the current window or tab. |
| 17 * | 16 * |
| 18 * See also: | 17 * ## Other resources |
| 19 * | 18 * |
| 20 * * [DOM Window](https://developer.mozilla.org/en-US/docs/DOM/window) from MDN. | 19 * * [DOM Window](https://developer.mozilla.org/en-US/docs/DOM/window) from MDN. |
| 21 * * [Window](http://www.w3.org/TR/Window/) from the W3C. | 20 * * [Window](http://www.w3.org/TR/Window/) from the W3C. |
| 22 */ | 21 */ |
| 23 abstract class WindowBase implements EventTarget { | 22 abstract class WindowBase implements EventTarget { |
| 24 // Fields. | 23 // Fields. |
| 25 | 24 |
| 26 /** | 25 /** |
| 27 * The current location of this window. | 26 * The current location of this window. |
| 28 * | 27 * |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 119 |
| 121 abstract class LocationBase { | 120 abstract class LocationBase { |
| 122 void set href(String val); | 121 void set href(String val); |
| 123 } | 122 } |
| 124 | 123 |
| 125 abstract class HistoryBase { | 124 abstract class HistoryBase { |
| 126 void back(); | 125 void back(); |
| 127 void forward(); | 126 void forward(); |
| 128 void go(int distance); | 127 void go(int distance); |
| 129 } | 128 } |
| OLD | NEW |