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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 * true, the application will request permission from the user to create | 210 * true, the application will request permission from the user to create |
211 * lasting storage. This storage cannot be freed without the user's | 211 * lasting storage. This storage cannot be freed without the user's |
212 * permission. Returns a [Future] whose value stores a reference to the | 212 * permission. Returns a [Future] whose value stores a reference to the |
213 * sandboxed file system for use. Because the file system is sandboxed, | 213 * sandboxed file system for use. Because the file system is sandboxed, |
214 * applications cannot access file systems created in other web pages. | 214 * applications cannot access file systems created in other web pages. |
215 */ | 215 */ |
216 Future<FileSystem> requestFileSystem(int size, {bool persistent: false}) { | 216 Future<FileSystem> requestFileSystem(int size, {bool persistent: false}) { |
217 return _requestFileSystem(persistent? 1 : 0, size); | 217 return _requestFileSystem(persistent? 1 : 0, size); |
218 } | 218 } |
219 | 219 |
220 /** | 220 /// Obsolete API for testing if Geometry APIs supported. |
221 * convertPointFromNodeToPage and convertPointFromPageToNode are removed. | 221 @Deprecated("Obsolete") |
222 * see http://dev.w3.org/csswg/cssom-view/#geometry | 222 static bool get supportsPointConversions => true; |
223 */ | |
224 static bool get supportsPointConversions => DomPoint.supported; | |
225 $!MEMBERS | 223 $!MEMBERS |
226 | 224 |
227 /** | 225 /** |
228 * Static factory designed to expose `beforeunload` events to event | 226 * Static factory designed to expose `beforeunload` events to event |
229 * handlers that are not necessarily instances of [Window]. | 227 * handlers that are not necessarily instances of [Window]. |
230 * | 228 * |
231 * See [EventStreamProvider] for usage information. | 229 * See [EventStreamProvider] for usage information. |
232 */ | 230 */ |
233 @DomName('Window.beforeunloadEvent') | 231 @DomName('Window.beforeunloadEvent') |
234 static const EventStreamProvider<BeforeUnloadEvent> beforeUnloadEvent = | 232 static const EventStreamProvider<BeforeUnloadEvent> beforeUnloadEvent = |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 | 359 |
362 ElementStream<BeforeUnloadEvent> forElement(Element e, {bool useCapture: false
}) { | 360 ElementStream<BeforeUnloadEvent> forElement(Element e, {bool useCapture: false
}) { |
363 return new _ElementEventStreamImpl(e, _eventType, useCapture); | 361 return new _ElementEventStreamImpl(e, _eventType, useCapture); |
364 } | 362 } |
365 | 363 |
366 ElementStream<BeforeUnloadEvent> _forElementList(ElementList e, | 364 ElementStream<BeforeUnloadEvent> _forElementList(ElementList e, |
367 {bool useCapture: false}) { | 365 {bool useCapture: false}) { |
368 return new _ElementListEventStreamImpl(e, _eventType, useCapture); | 366 return new _ElementListEventStreamImpl(e, _eventType, useCapture); |
369 } | 367 } |
370 } | 368 } |
OLD | NEW |