| OLD | NEW |
| 1 /// The Dart HTML library. | 1 /// The Dart HTML library. |
| 2 /// | 2 /// |
| 3 /// For examples, see | 3 /// For examples, see |
| 4 /// [Dart HTML5 Samples](https://github.com/dart-lang/dart-html5-samples) | 4 /// [Dart HTML5 Samples](https://github.com/dart-lang/dart-html5-samples) |
| 5 /// on Github. | 5 /// on Github. |
| 6 library dart.dom.html; | 6 library dart.dom.html; |
| 7 | 7 |
| 8 import 'dart:async'; | 8 import 'dart:async'; |
| 9 import 'dart:collection'; | 9 import 'dart:collection'; |
| 10 import 'dart:_collection-dev' hide Symbol, deprecated; | 10 import 'dart:_collection-dev' hide Symbol, deprecated; |
| (...skipping 6030 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6041 // BSD-style license that can be found in the LICENSE file. | 6041 // BSD-style license that can be found in the LICENSE file. |
| 6042 | 6042 |
| 6043 // WARNING: Do not edit - generated code. | 6043 // WARNING: Do not edit - generated code. |
| 6044 | 6044 |
| 6045 | 6045 |
| 6046 @DomName('CustomEvent') | 6046 @DomName('CustomEvent') |
| 6047 class CustomEvent extends Event native "CustomEvent" { | 6047 class CustomEvent extends Event native "CustomEvent" { |
| 6048 factory CustomEvent(String type, | 6048 factory CustomEvent(String type, |
| 6049 {bool canBubble: true, bool cancelable: true, Object detail}) { | 6049 {bool canBubble: true, bool cancelable: true, Object detail}) { |
| 6050 | 6050 |
| 6051 final CustomEvent e = document.$dom_createEvent("CustomEvent"); | 6051 final CustomEvent e = document.$dom_createEvent('CustomEvent'); |
| 6052 |
| 6053 detail = convertDartToNative_SerializedScriptValue(detail); |
| 6052 e.$dom_initCustomEvent(type, canBubble, cancelable, detail); | 6054 e.$dom_initCustomEvent(type, canBubble, cancelable, detail); |
| 6053 | 6055 |
| 6054 return e; | 6056 return e; |
| 6055 } | 6057 } |
| 6056 // To suppress missing implicit constructor warnings. | 6058 // To suppress missing implicit constructor warnings. |
| 6057 factory CustomEvent._() { throw new UnsupportedError("Not supported"); } | 6059 factory CustomEvent._() { throw new UnsupportedError("Not supported"); } |
| 6058 | 6060 |
| 6061 dynamic get detail => convertNativeToDart_SerializedScriptValue(this._get_deta
il); |
| 6062 @JSName('detail') |
| 6059 @DomName('CustomEvent.detail') | 6063 @DomName('CustomEvent.detail') |
| 6060 @DocsEditable() | 6064 @DocsEditable() |
| 6061 @Creates('Null') | 6065 @Creates('Null') |
| 6062 final Object detail; | 6066 final dynamic _get_detail; |
| 6063 | 6067 |
| 6064 @JSName('initCustomEvent') | 6068 @JSName('initCustomEvent') |
| 6065 @DomName('CustomEvent.initCustomEvent') | 6069 @DomName('CustomEvent.initCustomEvent') |
| 6066 @DocsEditable() | 6070 @DocsEditable() |
| 6067 void $dom_initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableAr
g, Object detailArg) native; | 6071 void $dom_initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableAr
g, Object detailArg) native; |
| 6068 | 6072 |
| 6069 } | 6073 } |
| 6070 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6074 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6071 // for details. All rights reserved. Use of this source code is governed by a | 6075 // for details. All rights reserved. Use of this source code is governed by a |
| 6072 // BSD-style license that can be found in the LICENSE file. | 6076 // BSD-style license that can be found in the LICENSE file. |
| (...skipping 23364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 29437 _position = nextPosition; | 29441 _position = nextPosition; |
| 29438 return true; | 29442 return true; |
| 29439 } | 29443 } |
| 29440 _current = null; | 29444 _current = null; |
| 29441 _position = _array.length; | 29445 _position = _array.length; |
| 29442 return false; | 29446 return false; |
| 29443 } | 29447 } |
| 29444 | 29448 |
| 29445 T get current => _current; | 29449 T get current => _current; |
| 29446 } | 29450 } |
| OLD | NEW |