| OLD | NEW |
| 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 24147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 24158 Selection getSelection() native; | 24158 Selection getSelection() native; |
| 24159 | 24159 |
| 24160 @DomName('Window.matchMedia') | 24160 @DomName('Window.matchMedia') |
| 24161 @DocsEditable() | 24161 @DocsEditable() |
| 24162 MediaQueryList matchMedia(String query) native; | 24162 MediaQueryList matchMedia(String query) native; |
| 24163 | 24163 |
| 24164 @DomName('Window.moveBy') | 24164 @DomName('Window.moveBy') |
| 24165 @DocsEditable() | 24165 @DocsEditable() |
| 24166 void moveBy(num x, num y) native; | 24166 void moveBy(num x, num y) native; |
| 24167 | 24167 |
| 24168 @JSName('moveTo') |
| 24168 @DomName('Window.moveTo') | 24169 @DomName('Window.moveTo') |
| 24169 @DocsEditable() | 24170 @DocsEditable() |
| 24170 void moveTo(num x, num y) native; | 24171 void $dom_moveTo(num x, num y) native; |
| 24171 | 24172 |
| 24172 @DomName('Window.openDatabase') | 24173 @DomName('Window.openDatabase') |
| 24173 @DocsEditable() | 24174 @DocsEditable() |
| 24174 @SupportedBrowser(SupportedBrowser.CHROME) | 24175 @SupportedBrowser(SupportedBrowser.CHROME) |
| 24175 @SupportedBrowser(SupportedBrowser.SAFARI) | 24176 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 24176 @Experimental() | 24177 @Experimental() |
| 24177 // http://www.w3.org/TR/webdatabase/ | 24178 // http://www.w3.org/TR/webdatabase/ |
| 24178 @Experimental() // deprecated | 24179 @Experimental() // deprecated |
| 24179 @Creates('SqlDatabase') | 24180 @Creates('SqlDatabase') |
| 24180 SqlDatabase openDatabase(String name, String version, String displayName, int
estimatedSize, [DatabaseCallback creationCallback]) native; | 24181 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 Loading... |
| 24545 | 24546 |
| 24546 | 24547 |
| 24547 @DomName('DOMWindow.beforeunloadEvent') | 24548 @DomName('DOMWindow.beforeunloadEvent') |
| 24548 @DocsEditable() | 24549 @DocsEditable() |
| 24549 static const EventStreamProvider<BeforeUnloadEvent> beforeUnloadEvent = | 24550 static const EventStreamProvider<BeforeUnloadEvent> beforeUnloadEvent = |
| 24550 const _BeforeUnloadEventStreamProvider('beforeunload'); | 24551 const _BeforeUnloadEventStreamProvider('beforeunload'); |
| 24551 | 24552 |
| 24552 @DomName('DOMWindow.onbeforeunload') | 24553 @DomName('DOMWindow.onbeforeunload') |
| 24553 @DocsEditable() | 24554 @DocsEditable() |
| 24554 Stream<Event> get onBeforeUnload => beforeUnloadEvent.forTarget(this); | 24555 Stream<Event> get onBeforeUnload => beforeUnloadEvent.forTarget(this); |
| 24556 |
| 24557 void moveTo(Point p) { |
| 24558 $dom_moveTo(p.x, p.y); |
| 24559 } |
| 24555 } | 24560 } |
| 24556 | 24561 |
| 24557 /** | 24562 /** |
| 24558 * Event object that is fired before the window is closed. | 24563 * Event object that is fired before the window is closed. |
| 24559 * | 24564 * |
| 24560 * The standard window close behavior can be prevented by setting the | 24565 * The standard window close behavior can be prevented by setting the |
| 24561 * [returnValue]. This will display a dialog to the user confirming that they | 24566 * [returnValue]. This will display a dialog to the user confirming that they |
| 24562 * want to close the page. | 24567 * want to close the page. |
| 24563 */ | 24568 */ |
| 24564 abstract class BeforeUnloadEvent implements Event { | 24569 abstract class BeforeUnloadEvent implements Event { |
| (...skipping 4892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 29457 _position = nextPosition; | 29462 _position = nextPosition; |
| 29458 return true; | 29463 return true; |
| 29459 } | 29464 } |
| 29460 _current = null; | 29465 _current = null; |
| 29461 _position = _array.length; | 29466 _position = _array.length; |
| 29462 return false; | 29467 return false; |
| 29463 } | 29468 } |
| 29464 | 29469 |
| 29465 T get current => _current; | 29470 T get current => _current; |
| 29466 } | 29471 } |
| OLD | NEW |