Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1119)

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 18920008: Add point to Window class and Window polyfills of screen. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5f54dcc4b2fd96cc0decd7ae404558a5b713f686..b5195e39200769d8ab76e2ba976023511529535c 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -23970,21 +23970,25 @@ class Window extends EventTarget implements WindowBase native "Window,DOMWindow"
@DocsEditable()
final Screen screen;
+ @JSName('screenLeft')
@DomName('Window.screenLeft')
@DocsEditable()
- final int screenLeft;
+ final int $dom_screenLeft;
+ @JSName('screenTop')
@DomName('Window.screenTop')
@DocsEditable()
- final int screenTop;
+ final int $dom_screenTop;
+ @JSName('screenX')
@DomName('Window.screenX')
@DocsEditable()
- final int screenX;
+ final int $dom_screenX;
+ @JSName('screenY')
@DomName('Window.screenY')
@DocsEditable()
- final int screenY;
+ final int $dom_screenY;
@DomName('Window.scrollX')
@DocsEditable()
@@ -24165,9 +24169,10 @@ class Window extends EventTarget implements WindowBase native "Window,DOMWindow"
@DocsEditable()
void moveBy(num x, num y) native;
+ @JSName('moveTo')
@DomName('Window.moveTo')
@DocsEditable()
- void moveTo(num x, num y) native;
+ void $dom_moveTo(num x, num y) native;
@DomName('Window.openDatabase')
@DocsEditable()
@@ -24552,6 +24557,10 @@ class Window extends EventTarget implements WindowBase native "Window,DOMWindow"
@DomName('DOMWindow.onbeforeunload')
@DocsEditable()
Stream<Event> get onBeforeUnload => beforeUnloadEvent.forTarget(this);
+
+ void moveTo(Point p) => $dom_moveTo(p.x, p.y);
+ int get screenX() => Device.isIE ? $dom_screenLeft : $dom_screenX;
blois 2013/07/13 00:27:24 no parens
blois 2013/07/13 00:27:24 screenX is supported on IE9, is it buggy? It's no
+ int get screenY() => Device.isIE ? $dom_screenTop : $dom_screenY;
}
/**
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698