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

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
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 24147 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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) => $dom_moveTo(p.x, p.y);
24555 } 24558 }
24556 24559
24557 /** 24560 /**
24558 * Event object that is fired before the window is closed. 24561 * Event object that is fired before the window is closed.
24559 * 24562 *
24560 * The standard window close behavior can be prevented by setting the 24563 * The standard window close behavior can be prevented by setting the
24561 * [returnValue]. This will display a dialog to the user confirming that they 24564 * [returnValue]. This will display a dialog to the user confirming that they
24562 * want to close the page. 24565 * want to close the page.
24563 */ 24566 */
24564 abstract class BeforeUnloadEvent implements Event { 24567 abstract class BeforeUnloadEvent implements Event {
(...skipping 4892 matching lines...) Expand 10 before | Expand all | Expand 10 after
29457 _position = nextPosition; 29460 _position = nextPosition;
29458 return true; 29461 return true;
29459 } 29462 }
29460 _current = null; 29463 _current = null;
29461 _position = _array.length; 29464 _position = _array.length;
29462 return false; 29465 return false;
29463 } 29466 }
29464 29467
29465 T get current => _current; 29468 T get current => _current;
29466 } 29469 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | tools/dom/templates/html/impl/impl_Window.darttemplate » ('J')

Powered by Google App Engine
This is Rietveld 408576698