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