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 |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 /** | 132 /** |
133 * Sends a cross-origin message. | 133 * Sends a cross-origin message. |
134 * | 134 * |
135 * ## Other resources | 135 * ## Other resources |
136 * | 136 * |
137 * * [window.postMessage](https://developer.mozilla.org/en-US/docs/Web/API/Win
dow.postMessage) | 137 * * [window.postMessage](https://developer.mozilla.org/en-US/docs/Web/API/Win
dow.postMessage) |
138 * from MDN. | 138 * from MDN. |
139 * * [Cross-document messaging](https://html.spec.whatwg.org/multipage/comms.h
tml#web-messaging) | 139 * * [Cross-document messaging](https://html.spec.whatwg.org/multipage/comms.h
tml#web-messaging) |
140 * from WHATWG. | 140 * from WHATWG. |
141 */ | 141 */ |
142 void postMessage(var message, String targetOrigin, [List<MessagePort> messageP
orts]); | 142 void postMessage(var message, String targetOrigin, |
| 143 [List<MessagePort> messagePorts]); |
143 } | 144 } |
144 | 145 |
145 abstract class LocationBase { | 146 abstract class LocationBase { |
146 void set href(String val); | 147 void set href(String val); |
147 } | 148 } |
148 | 149 |
149 abstract class HistoryBase { | 150 abstract class HistoryBase { |
150 void back(); | 151 void back(); |
151 void forward(); | 152 void forward(); |
152 void go(int distance); | 153 void go(int distance); |
153 } | 154 } |
OLD | NEW |