| OLD | NEW |
| 1 /// The Dart HTML library. | 1 /// The Dart HTML library. |
| 2 library dart.dom.html; | 2 library dart.dom.html; |
| 3 | 3 |
| 4 import 'dart:async'; | 4 import 'dart:async'; |
| 5 import 'dart:collection'; | 5 import 'dart:collection'; |
| 6 import 'dart:_collection-dev' hide Symbol; | 6 import 'dart:_collection-dev' hide Symbol; |
| 7 import 'dart:html_common'; | 7 import 'dart:html_common'; |
| 8 import 'dart:indexed_db'; | 8 import 'dart:indexed_db'; |
| 9 import 'dart:isolate'; | 9 import 'dart:isolate'; |
| 10 import 'dart:json' as json; | 10 import 'dart:json' as json; |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 @DomName('DOMApplicationCache.noupdateEvent') | 242 @DomName('DOMApplicationCache.noupdateEvent') |
| 243 @DocsEditable | 243 @DocsEditable |
| 244 static const EventStreamProvider<Event> noUpdateEvent = const EventStreamProvi
der<Event>('noupdate'); | 244 static const EventStreamProvider<Event> noUpdateEvent = const EventStreamProvi
der<Event>('noupdate'); |
| 245 | 245 |
| 246 @DomName('DOMApplicationCache.obsoleteEvent') | 246 @DomName('DOMApplicationCache.obsoleteEvent') |
| 247 @DocsEditable | 247 @DocsEditable |
| 248 static const EventStreamProvider<Event> obsoleteEvent = const EventStreamProvi
der<Event>('obsolete'); | 248 static const EventStreamProvider<Event> obsoleteEvent = const EventStreamProvi
der<Event>('obsolete'); |
| 249 | 249 |
| 250 @DomName('DOMApplicationCache.progressEvent') | 250 @DomName('DOMApplicationCache.progressEvent') |
| 251 @DocsEditable | 251 @DocsEditable |
| 252 static const EventStreamProvider<Event> progressEvent = const EventStreamProvi
der<Event>('progress'); | 252 static const EventStreamProvider<ProgressEvent> progressEvent = const EventStr
eamProvider<ProgressEvent>('progress'); |
| 253 | 253 |
| 254 @DomName('DOMApplicationCache.updatereadyEvent') | 254 @DomName('DOMApplicationCache.updatereadyEvent') |
| 255 @DocsEditable | 255 @DocsEditable |
| 256 static const EventStreamProvider<Event> updateReadyEvent = const EventStreamPr
ovider<Event>('updateready'); | 256 static const EventStreamProvider<Event> updateReadyEvent = const EventStreamPr
ovider<Event>('updateready'); |
| 257 | 257 |
| 258 /// Checks if this type is supported on the current platform. | 258 /// Checks if this type is supported on the current platform. |
| 259 static bool get supported => JS('bool', '!!(window.applicationCache)'); | 259 static bool get supported => JS('bool', '!!(window.applicationCache)'); |
| 260 | 260 |
| 261 @DomName('DOMApplicationCache.CHECKING') | 261 @DomName('DOMApplicationCache.CHECKING') |
| 262 @DocsEditable | 262 @DocsEditable |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 @DomName('DOMApplicationCache.onnoupdate') | 331 @DomName('DOMApplicationCache.onnoupdate') |
| 332 @DocsEditable | 332 @DocsEditable |
| 333 Stream<Event> get onNoUpdate => noUpdateEvent.forTarget(this); | 333 Stream<Event> get onNoUpdate => noUpdateEvent.forTarget(this); |
| 334 | 334 |
| 335 @DomName('DOMApplicationCache.onobsolete') | 335 @DomName('DOMApplicationCache.onobsolete') |
| 336 @DocsEditable | 336 @DocsEditable |
| 337 Stream<Event> get onObsolete => obsoleteEvent.forTarget(this); | 337 Stream<Event> get onObsolete => obsoleteEvent.forTarget(this); |
| 338 | 338 |
| 339 @DomName('DOMApplicationCache.onprogress') | 339 @DomName('DOMApplicationCache.onprogress') |
| 340 @DocsEditable | 340 @DocsEditable |
| 341 Stream<Event> get onProgress => progressEvent.forTarget(this); | 341 Stream<ProgressEvent> get onProgress => progressEvent.forTarget(this); |
| 342 | 342 |
| 343 @DomName('DOMApplicationCache.onupdateready') | 343 @DomName('DOMApplicationCache.onupdateready') |
| 344 @DocsEditable | 344 @DocsEditable |
| 345 Stream<Event> get onUpdateReady => updateReadyEvent.forTarget(this); | 345 Stream<Event> get onUpdateReady => updateReadyEvent.forTarget(this); |
| 346 } | 346 } |
| 347 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 347 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 348 // for details. All rights reserved. Use of this source code is governed by a | 348 // for details. All rights reserved. Use of this source code is governed by a |
| 349 // BSD-style license that can be found in the LICENSE file. | 349 // BSD-style license that can be found in the LICENSE file. |
| 350 | 350 |
| 351 | 351 |
| (...skipping 28964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 29316 _position = nextPosition; | 29316 _position = nextPosition; |
| 29317 return true; | 29317 return true; |
| 29318 } | 29318 } |
| 29319 _current = null; | 29319 _current = null; |
| 29320 _position = _array.length; | 29320 _position = _array.length; |
| 29321 return false; | 29321 return false; |
| 29322 } | 29322 } |
| 29323 | 29323 |
| 29324 T get current => _current; | 29324 T get current => _current; |
| 29325 } | 29325 } |
| OLD | NEW |