| 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 82eaeee52c4c6a1c846b5a213ef6f1e8bbc284d3..e75ea5d2cb596cca41336b7f6be9662c935035c4 100644
|
| --- a/sdk/lib/html/dart2js/html_dart2js.dart
|
| +++ b/sdk/lib/html/dart2js/html_dart2js.dart
|
| @@ -12175,9 +12175,6 @@ class LocalWindow extends EventTarget implements Window native "@*DOMWindow" {
|
| /** @domName Window.atob */
|
| String atob(String string) native;
|
|
|
| - /** @domName Window.blur */
|
| - void blur() native;
|
| -
|
| /** @domName Window.btoa */
|
| String btoa(String string) native;
|
|
|
| @@ -12202,9 +12199,6 @@ class LocalWindow extends EventTarget implements Window native "@*DOMWindow" {
|
| /** @domName Window.find */
|
| bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool wholeWord, bool searchInFrames, bool showDialog) native;
|
|
|
| - /** @domName Window.focus */
|
| - void focus() native;
|
| -
|
| /** @domName Window.getComputedStyle */
|
| CSSStyleDeclaration $dom_getComputedStyle(Element element, String pseudoElement) native "getComputedStyle";
|
|
|
| @@ -22200,17 +22194,70 @@ class _XSLTProcessorFactoryProvider {
|
| */
|
| abstract class Window {
|
| // Fields.
|
| +
|
| + /**
|
| + * 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 this window is closed.
|
| + *
|
| + * print(window.closed); // 'false'
|
| + * window.close();
|
| + * print(window.closed); // 'true'
|
| + */
|
| bool get closed;
|
| +
|
| + /**
|
| + * A reference to the window that opened this one.
|
| + *
|
| + * 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 hierarchy.
|
| + *
|
| + * 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.
|
| - void focus();
|
| - void blur();
|
| void close();
|
| void postMessage(var message, String targetOrigin, [List messagePorts = null]);
|
| }
|
|
|