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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 * myIFrame.elements.add(innerIFrame); | 79 * myIFrame.elements.add(innerIFrame); |
80 * | 80 * |
81 * print(myIframe.contentWindow.top == window) // 'true' | 81 * print(myIframe.contentWindow.top == window) // 'true' |
82 * print(innerIFrame.contentWindow.top == window) // 'true' | 82 * print(innerIFrame.contentWindow.top == window) // 'true' |
83 * | 83 * |
84 * print(window.top == window) // 'true' | 84 * print(window.top == window) // 'true' |
85 */ | 85 */ |
86 Window get top; | 86 Window get top; |
87 | 87 |
88 // Methods. | 88 // Methods. |
| 89 void focus(); |
| 90 void blur(); |
89 void close(); | 91 void close(); |
90 void postMessage(var message, String targetOrigin, [List messagePorts = null])
; | 92 void postMessage(var message, String targetOrigin, [List messagePorts = null])
; |
91 } | 93 } |
92 | 94 |
93 abstract class Location { | 95 abstract class Location { |
94 void set href(String val); | 96 void set href(String val); |
95 } | 97 } |
96 | 98 |
97 abstract class History { | 99 abstract class History { |
98 void back(); | 100 void back(); |
99 void forward(); | 101 void forward(); |
100 void go(int distance); | 102 void go(int distance); |
101 } | 103 } |
OLD | NEW |