| Index: sdk/lib/html/dart2js/html_dart2js.dart
|
| diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
|
| index 1e7dbf5fa96bc75507f4e563d35361907988d63a..de74c32c65c06eb81191ef738d61c9b823bb2bd9 100644
|
| --- a/sdk/lib/html/dart2js/html_dart2js.dart
|
| +++ b/sdk/lib/html/dart2js/html_dart2js.dart
|
| @@ -22144,12 +22144,67 @@ class _XSLTProcessorFactoryProvider {
|
| */
|
| abstract class Window {
|
| // Fields.
|
| +
|
| + /**
|
| + * The [Location] object representing the current location of this window.
|
| + *
|
| + * Location currentLocation = window.location;
|
| + * print(currentLocation.href); // 'http://www.example.com:80/'
|
| + */
|
| Location get location;
|
| History get history;
|
|
|
| + /**
|
| + * Indicates whether the window is closed.
|
| + *
|
| + * print(window.closed); // 'false'
|
| + * window.close();
|
| + * print(window.closed); // 'true'
|
| + */
|
| bool get closed;
|
| +
|
| + /**
|
| + * A reference to the [Window] that opened this [Window].
|
| + *
|
| + * Window thisWindow = window;
|
| + * Window otherWindow = thisWindow.open('http://www.example.com/', 'foo');
|
| + * print(otherWindow.opener == thisWindow); // 'true'
|
| + */
|
| Window get opener;
|
| +
|
| + /**
|
| + * A reference to the parent of this [Window].
|
| + *
|
| + * If this [Window] has no parent, [parent] will return a reference to
|
| + * the [Window] itself.
|
| + *
|
| + * IFrameElement myIFrame = new IFrameElement();
|
| + * window.document.body.elements.add(myIFrame);
|
| + * print(myIframe.contentWindow.parent == window) // 'true'
|
| + *
|
| + * print(window.parent == window) // 'true'
|
| + */
|
| Window get parent;
|
| +
|
| + /**
|
| + * A reference to the topmost [Window] in the [Window] heirarchy.
|
| + *
|
| + * If this [Window] is the topmost [Window], [top] will return a reference to
|
| + * the [Window] itself.
|
| + *
|
| + * // Add an IFrame to the current window.
|
| + * IFrameElement myIFrame = new IFrameElement();
|
| + * window.document.body.elements.add(myIFrame);
|
| + *
|
| + * // Add an IFrame inside of the other IFrame.
|
| + * IFrameElement innerIFrame = new IFrameElement();
|
| + * myIFrame.elements.add(innerIFrame);
|
| + *
|
| + * print(myIframe.contentWindow.top == window) // 'true'
|
| + * print(innerIFrame.contentWindow.top == window) // 'true'
|
| + *
|
| + * print(window.top == window) // 'true'
|
| + */
|
| Window get top;
|
|
|
| // Methods.
|
|
|