| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 part of $LIBRARYNAME; | 5 part of $LIBRARYNAME; |
| 6 | 6 |
| 7 @DocsEditable() | 7 @DocsEditable() |
| 8 $if DART2JS | 8 $if DART2JS |
| 9 $(ANNOTATIONS)@Native("Window,DOMWindow") | 9 $(ANNOTATIONS)@Native("Window,DOMWindow") |
| 10 $(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS { | 10 $(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS { |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 * applications cannot access file systems created in other web pages. | 213 * applications cannot access file systems created in other web pages. |
| 214 */ | 214 */ |
| 215 Future<FileSystem> requestFileSystem(int size, {bool persistent: false}) { | 215 Future<FileSystem> requestFileSystem(int size, {bool persistent: false}) { |
| 216 return _requestFileSystem(persistent? 1 : 0, size); | 216 return _requestFileSystem(persistent? 1 : 0, size); |
| 217 } | 217 } |
| 218 | 218 |
| 219 /** | 219 /** |
| 220 * convertPointFromNodeToPage and convertPointFromPageToNode are removed. | 220 * convertPointFromNodeToPage and convertPointFromPageToNode are removed. |
| 221 * see http://dev.w3.org/csswg/cssom-view/#geometry | 221 * see http://dev.w3.org/csswg/cssom-view/#geometry |
| 222 */ | 222 */ |
| 223 static bool get supportsPointConversions => _DomPoint.supported; | 223 static bool get supportsPointConversions => true; |
| 224 $!MEMBERS | 224 $!MEMBERS |
| 225 | 225 |
| 226 /** | 226 /** |
| 227 * Static factory designed to expose `beforeunload` events to event | 227 * Static factory designed to expose `beforeunload` events to event |
| 228 * handlers that are not necessarily instances of [Window]. | 228 * handlers that are not necessarily instances of [Window]. |
| 229 * | 229 * |
| 230 * See [EventStreamProvider] for usage information. | 230 * See [EventStreamProvider] for usage information. |
| 231 */ | 231 */ |
| 232 @DomName('Window.beforeunloadEvent') | 232 @DomName('Window.beforeunloadEvent') |
| 233 static const EventStreamProvider<BeforeUnloadEvent> beforeUnloadEvent = | 233 static const EventStreamProvider<BeforeUnloadEvent> beforeUnloadEvent = |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 | 360 |
| 361 ElementStream<BeforeUnloadEvent> forElement(Element e, {bool useCapture: false
}) { | 361 ElementStream<BeforeUnloadEvent> forElement(Element e, {bool useCapture: false
}) { |
| 362 return new _ElementEventStreamImpl(e, _eventType, useCapture); | 362 return new _ElementEventStreamImpl(e, _eventType, useCapture); |
| 363 } | 363 } |
| 364 | 364 |
| 365 ElementStream<BeforeUnloadEvent> _forElementList(ElementList e, | 365 ElementStream<BeforeUnloadEvent> _forElementList(ElementList e, |
| 366 {bool useCapture: false}) { | 366 {bool useCapture: false}) { |
| 367 return new _ElementListEventStreamImpl(e, _eventType, useCapture); | 367 return new _ElementListEventStreamImpl(e, _eventType, useCapture); |
| 368 } | 368 } |
| 369 } | 369 } |
| OLD | NEW |