| Index: sdk/lib/html/dartium/html_dartium.dart
|
| diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
|
| index 6bdad865646150b50ac75557d16a6c9abd4c66e4..4602e3f8c802f31e648b2fdf182d72dd4a65db30 100644
|
| --- a/sdk/lib/html/dartium/html_dartium.dart
|
| +++ b/sdk/lib/html/dartium/html_dartium.dart
|
| @@ -15636,10 +15636,6 @@ class LocalWindow extends EventTarget implements Window {
|
| String atob(String string) native "DOMWindow_atob_Callback";
|
|
|
|
|
| - /** @domName DOMWindow.blur */
|
| - void blur() native "DOMWindow_blur_Callback";
|
| -
|
| -
|
| /** @domName DOMWindow.btoa */
|
| String btoa(String string) native "DOMWindow_btoa_Callback";
|
|
|
| @@ -15676,10 +15672,6 @@ class LocalWindow extends EventTarget implements Window {
|
| bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool wholeWord, bool searchInFrames, bool showDialog) native "DOMWindow_find_Callback";
|
|
|
|
|
| - /** @domName DOMWindow.focus */
|
| - void focus() native "DOMWindow_focus_Callback";
|
| -
|
| -
|
| /** @domName DOMWindow.getComputedStyle */
|
| CSSStyleDeclaration $dom_getComputedStyle(Element element, String pseudoElement) native "DOMWindow_getComputedStyle_Callback";
|
|
|
| @@ -28605,17 +28597,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]);
|
| }
|
|
|