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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /// The Dart HTML library. 1 /// The Dart HTML library.
2 /// 2 ///
3 /// For examples, see 3 /// For examples, see
4 /// [Dart HTML5 Samples](https://github.com/dart-lang/dart-html5-samples) 4 /// [Dart HTML5 Samples](https://github.com/dart-lang/dart-html5-samples)
5 /// on Github. 5 /// on Github.
6 library dart.dom.html; 6 library dart.dom.html;
7 7
8 import 'dart:async'; 8 import 'dart:async';
9 import 'dart:collection'; 9 import 'dart:collection';
10 import 'dart:_collection-dev' hide Symbol, deprecated; 10 import 'dart:_collection-dev' hide Symbol, deprecated;
(...skipping 23952 matching lines...) Expand 10 before | Expand all | Expand 10 after
23963 @DomName('Window.personalbar') 23963 @DomName('Window.personalbar')
23964 @DocsEditable() 23964 @DocsEditable()
23965 // https://developer.mozilla.org/en-US/docs/DOM/window.personalbar 23965 // https://developer.mozilla.org/en-US/docs/DOM/window.personalbar
23966 @deprecated // deprecated 23966 @deprecated // deprecated
23967 final BarProp personalbar; 23967 final BarProp personalbar;
23968 23968
23969 @DomName('Window.screen') 23969 @DomName('Window.screen')
23970 @DocsEditable() 23970 @DocsEditable()
23971 final Screen screen; 23971 final Screen screen;
23972 23972
23973 @JSName('screenLeft')
23973 @DomName('Window.screenLeft') 23974 @DomName('Window.screenLeft')
23974 @DocsEditable() 23975 @DocsEditable()
23975 final int screenLeft; 23976 final int $dom_screenLeft;
23976 23977
23978 @JSName('screenTop')
23977 @DomName('Window.screenTop') 23979 @DomName('Window.screenTop')
23978 @DocsEditable() 23980 @DocsEditable()
23979 final int screenTop; 23981 final int $dom_screenTop;
23980 23982
23983 @JSName('screenX')
23981 @DomName('Window.screenX') 23984 @DomName('Window.screenX')
23982 @DocsEditable() 23985 @DocsEditable()
23983 final int screenX; 23986 final int $dom_screenX;
23984 23987
23988 @JSName('screenY')
23985 @DomName('Window.screenY') 23989 @DomName('Window.screenY')
23986 @DocsEditable() 23990 @DocsEditable()
23987 final int screenY; 23991 final int $dom_screenY;
23988 23992
23989 @DomName('Window.scrollX') 23993 @DomName('Window.scrollX')
23990 @DocsEditable() 23994 @DocsEditable()
23991 final int scrollX; 23995 final int scrollX;
23992 23996
23993 @DomName('Window.scrollY') 23997 @DomName('Window.scrollY')
23994 @DocsEditable() 23998 @DocsEditable()
23995 final int scrollY; 23999 final int scrollY;
23996 24000
23997 @DomName('Window.scrollbars') 24001 @DomName('Window.scrollbars')
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
24158 Selection getSelection() native; 24162 Selection getSelection() native;
24159 24163
24160 @DomName('Window.matchMedia') 24164 @DomName('Window.matchMedia')
24161 @DocsEditable() 24165 @DocsEditable()
24162 MediaQueryList matchMedia(String query) native; 24166 MediaQueryList matchMedia(String query) native;
24163 24167
24164 @DomName('Window.moveBy') 24168 @DomName('Window.moveBy')
24165 @DocsEditable() 24169 @DocsEditable()
24166 void moveBy(num x, num y) native; 24170 void moveBy(num x, num y) native;
24167 24171
24172 @JSName('moveTo')
24168 @DomName('Window.moveTo') 24173 @DomName('Window.moveTo')
24169 @DocsEditable() 24174 @DocsEditable()
24170 void moveTo(num x, num y) native; 24175 void $dom_moveTo(num x, num y) native;
24171 24176
24172 @DomName('Window.openDatabase') 24177 @DomName('Window.openDatabase')
24173 @DocsEditable() 24178 @DocsEditable()
24174 @SupportedBrowser(SupportedBrowser.CHROME) 24179 @SupportedBrowser(SupportedBrowser.CHROME)
24175 @SupportedBrowser(SupportedBrowser.SAFARI) 24180 @SupportedBrowser(SupportedBrowser.SAFARI)
24176 @Experimental() 24181 @Experimental()
24177 // http://www.w3.org/TR/webdatabase/ 24182 // http://www.w3.org/TR/webdatabase/
24178 @Experimental() // deprecated 24183 @Experimental() // deprecated
24179 @Creates('SqlDatabase') 24184 @Creates('SqlDatabase')
24180 SqlDatabase openDatabase(String name, String version, String displayName, int estimatedSize, [DatabaseCallback creationCallback]) native; 24185 SqlDatabase openDatabase(String name, String version, String displayName, int estimatedSize, [DatabaseCallback creationCallback]) native;
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
24545 24550
24546 24551
24547 @DomName('DOMWindow.beforeunloadEvent') 24552 @DomName('DOMWindow.beforeunloadEvent')
24548 @DocsEditable() 24553 @DocsEditable()
24549 static const EventStreamProvider<BeforeUnloadEvent> beforeUnloadEvent = 24554 static const EventStreamProvider<BeforeUnloadEvent> beforeUnloadEvent =
24550 const _BeforeUnloadEventStreamProvider('beforeunload'); 24555 const _BeforeUnloadEventStreamProvider('beforeunload');
24551 24556
24552 @DomName('DOMWindow.onbeforeunload') 24557 @DomName('DOMWindow.onbeforeunload')
24553 @DocsEditable() 24558 @DocsEditable()
24554 Stream<Event> get onBeforeUnload => beforeUnloadEvent.forTarget(this); 24559 Stream<Event> get onBeforeUnload => beforeUnloadEvent.forTarget(this);
24560
24561 void moveTo(Point p) => $dom_moveTo(p.x, p.y);
24562 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
24563 int get screenY() => Device.isIE ? $dom_screenTop : $dom_screenY;
24555 } 24564 }
24556 24565
24557 /** 24566 /**
24558 * Event object that is fired before the window is closed. 24567 * Event object that is fired before the window is closed.
24559 * 24568 *
24560 * The standard window close behavior can be prevented by setting the 24569 * The standard window close behavior can be prevented by setting the
24561 * [returnValue]. This will display a dialog to the user confirming that they 24570 * [returnValue]. This will display a dialog to the user confirming that they
24562 * want to close the page. 24571 * want to close the page.
24563 */ 24572 */
24564 abstract class BeforeUnloadEvent implements Event { 24573 abstract class BeforeUnloadEvent implements Event {
(...skipping 4892 matching lines...) Expand 10 before | Expand all | Expand 10 after
29457 _position = nextPosition; 29466 _position = nextPosition;
29458 return true; 29467 return true;
29459 } 29468 }
29460 _current = null; 29469 _current = null;
29461 _position = _array.length; 29470 _position = _array.length;
29462 return false; 29471 return false;
29463 } 29472 }
29464 29473
29465 T get current => _current; 29474 T get current => _current;
29466 } 29475 }
OLDNEW
« 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