| 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'; | 6 import 'dart:_collection-dev'; |
| 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 29523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 29534 | 29534 |
| 29535 static _get(p, m) => JS('var', '#[#]', p, m); | 29535 static _get(p, m) => JS('var', '#[#]', p, m); |
| 29536 static _set(p, m, v) => JS('void', '#[#] = #', p, m, v); | 29536 static _set(p, m, v) => JS('void', '#[#] = #', p, m, v); |
| 29537 } | 29537 } |
| 29538 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 29538 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 29539 // for details. All rights reserved. Use of this source code is governed by a | 29539 // for details. All rights reserved. Use of this source code is governed by a |
| 29540 // BSD-style license that can be found in the LICENSE file. | 29540 // BSD-style license that can be found in the LICENSE file. |
| 29541 | 29541 |
| 29542 | 29542 |
| 29543 class Platform { | 29543 class Platform { |
| 29544 /** |
| 29545 * Returns true if dart:typed_data types are supported on this |
| 29546 * browser. If false, using these types will generate a runtime |
| 29547 * error. |
| 29548 */ |
| 29544 static final supportsTypedData = JS('bool', '!!(window.ArrayBuffer)'); | 29549 static final supportsTypedData = JS('bool', '!!(window.ArrayBuffer)'); |
| 29550 |
| 29551 /** |
| 29552 * Returns true if SIMD types in dart:typed_data types are supported |
| 29553 * on this browser. If false, using these types will generate a runtime |
| 29554 * error. |
| 29555 */ |
| 29556 static final supportsSimd = false; |
| 29545 } | 29557 } |
| 29546 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 29558 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 29547 // for details. All rights reserved. Use of this source code is governed by a | 29559 // for details. All rights reserved. Use of this source code is governed by a |
| 29548 // BSD-style license that can be found in the LICENSE file. | 29560 // BSD-style license that can be found in the LICENSE file. |
| 29549 | 29561 |
| 29550 | 29562 |
| 29551 // Iterator for arrays with fixed size. | 29563 // Iterator for arrays with fixed size. |
| 29552 class FixedSizeListIterator<T> implements Iterator<T> { | 29564 class FixedSizeListIterator<T> implements Iterator<T> { |
| 29553 final List<T> _array; | 29565 final List<T> _array; |
| 29554 final int _length; // Cache array length for faster access. | 29566 final int _length; // Cache array length for faster access. |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 29592 _position = nextPosition; | 29604 _position = nextPosition; |
| 29593 return true; | 29605 return true; |
| 29594 } | 29606 } |
| 29595 _current = null; | 29607 _current = null; |
| 29596 _position = _array.length; | 29608 _position = _array.length; |
| 29597 return false; | 29609 return false; |
| 29598 } | 29610 } |
| 29599 | 29611 |
| 29600 T get current => _current; | 29612 T get current => _current; |
| 29601 } | 29613 } |
| OLD | NEW |