| Index: tools/dom/templates/html/impl/impl_Window.darttemplate
|
| diff --git a/tools/dom/templates/html/impl/impl_Window.darttemplate b/tools/dom/templates/html/impl/impl_Window.darttemplate
|
| index 74081311ee56338579ba05ecdf29743a739491aa..2d9493d7e9a6fa3a1542d44cf2407f2a05f1c96f 100644
|
| --- a/tools/dom/templates/html/impl/impl_Window.darttemplate
|
| +++ b/tools/dom/templates/html/impl/impl_Window.darttemplate
|
| @@ -236,6 +236,32 @@ $endif
|
| Future<FileSystem> requestFileSystem(int size, {bool persistent: false}) {
|
| return _requestFileSystem(persistent? 1 : 0, size);
|
| }
|
| +
|
| + @DomName('DOMWindow.convertPointFromNodeToPage')
|
| + @SupportedBrowser(SupportedBrowser.CHROME)
|
| + @SupportedBrowser(SupportedBrowser.SAFARI)
|
| + @Experimental
|
| + Point convertPointFromNodeToPage(Node node, Point point) {
|
| + var result = _convertPointFromNodeToPage(node,
|
| + new _DomPoint(point.x, point.y));
|
| + return new Point(result.x, result.y);
|
| + }
|
| +
|
| + @DomName('DOMWindow.convertPointFromPageToNode')
|
| + @SupportedBrowser(SupportedBrowser.CHROME)
|
| + @SupportedBrowser(SupportedBrowser.SAFARI)
|
| + @Experimental
|
| + Point convertPointFromPageToNode(Node node, Point point) {
|
| + var result = _convertPointFromPageToNode(node,
|
| + new _DomPoint(point.x, point.y));
|
| + return new Point(result.x, result.y);
|
| + }
|
| +
|
| + /**
|
| + * Checks whether [convertPointFromNodeToPage] and
|
| + * [convertPointFromPageToNode] are supported on the current platform.
|
| + */
|
| + static bool get supportsPointConversions => _DomPoint.supported;
|
| $!MEMBERS
|
|
|
| @DomName('DOMWindow.beforeunloadEvent')
|
|
|