| 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 20477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20488 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20488 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 20489 // for details. All rights reserved. Use of this source code is governed by a | 20489 // for details. All rights reserved. Use of this source code is governed by a |
| 20490 // BSD-style license that can be found in the LICENSE file. | 20490 // BSD-style license that can be found in the LICENSE file. |
| 20491 | 20491 |
| 20492 | 20492 |
| 20493 @DomName('URL') | 20493 @DomName('URL') |
| 20494 class Url native "URL" { | 20494 class Url native "URL" { |
| 20495 | 20495 |
| 20496 static String createObjectUrl(blob_OR_source_OR_stream) => | 20496 static String createObjectUrl(blob_OR_source_OR_stream) => |
| 20497 JS('String', | 20497 JS('String', |
| 20498 '(window.URL || window.webkitURL).createObjectURL(#)', | 20498 '(self.URL || self.webkitURL).createObjectURL(#)', |
| 20499 blob_OR_source_OR_stream); | 20499 blob_OR_source_OR_stream); |
| 20500 | 20500 |
| 20501 static void revokeObjectUrl(String objectUrl) => | 20501 static void revokeObjectUrl(String objectUrl) => |
| 20502 JS('void', | 20502 JS('void', |
| 20503 '(window.URL || window.webkitURL).revokeObjectURL(#)', objectUrl); | 20503 '(self.URL || self.webkitURL).revokeObjectURL(#)', objectUrl); |
| 20504 | 20504 |
| 20505 } | 20505 } |
| 20506 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20506 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 20507 // for details. All rights reserved. Use of this source code is governed by a | 20507 // for details. All rights reserved. Use of this source code is governed by a |
| 20508 // BSD-style license that can be found in the LICENSE file. | 20508 // BSD-style license that can be found in the LICENSE file. |
| 20509 | 20509 |
| 20510 | 20510 |
| 20511 @DocsEditable | 20511 @DocsEditable |
| 20512 @DomName('ValidityState') | 20512 @DomName('ValidityState') |
| 20513 class ValidityState native "ValidityState" { | 20513 class ValidityState native "ValidityState" { |
| (...skipping 7437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 27951 _position = nextPosition; | 27951 _position = nextPosition; |
| 27952 return true; | 27952 return true; |
| 27953 } | 27953 } |
| 27954 _current = null; | 27954 _current = null; |
| 27955 _position = _array.length; | 27955 _position = _array.length; |
| 27956 return false; | 27956 return false; |
| 27957 } | 27957 } |
| 27958 | 27958 |
| 27959 T get current => _current; | 27959 T get current => _current; |
| 27960 } | 27960 } |
| OLD | NEW |