| 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 12040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12051 void stepUp([int n]) native; | 12051 void stepUp([int n]) native; |
| 12052 | 12052 |
| 12053 @DomName('HTMLInputElement.onwebkitSpeechChange') | 12053 @DomName('HTMLInputElement.onwebkitSpeechChange') |
| 12054 @DocsEditable | 12054 @DocsEditable |
| 12055 Stream<Event> get onSpeechChange => speechChangeEvent.forTarget(this); | 12055 Stream<Event> get onSpeechChange => speechChangeEvent.forTarget(this); |
| 12056 | 12056 |
| 12057 } | 12057 } |
| 12058 | 12058 |
| 12059 | 12059 |
| 12060 // Interfaces representing the InputElement APIs which are supported | 12060 // Interfaces representing the InputElement APIs which are supported |
| 12061 // for the various types of InputElement. | 12061 // for the various types of InputElement. From: |
| 12062 // From http://dev.w3.org/html5/spec/the-input-element.html#the-input-element. | 12062 // http://www.w3.org/html/wg/drafts/html/master/forms.html#the-input-element. |
| 12063 | 12063 |
| 12064 /** | 12064 /** |
| 12065 * Exposes the functionality common between all InputElement types. | 12065 * Exposes the functionality common between all InputElement types. |
| 12066 */ | 12066 */ |
| 12067 abstract class InputElementBase implements Element { | 12067 abstract class InputElementBase implements Element { |
| 12068 @DomName('HTMLInputElement.autofocus') | 12068 @DomName('HTMLInputElement.autofocus') |
| 12069 bool autofocus; | 12069 bool autofocus; |
| 12070 | 12070 |
| 12071 @DomName('HTMLInputElement.disabled') | 12071 @DomName('HTMLInputElement.disabled') |
| 12072 bool disabled; | 12072 bool disabled; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 12098 @DomName('HTMLInputElement.checkValidity') | 12098 @DomName('HTMLInputElement.checkValidity') |
| 12099 bool checkValidity(); | 12099 bool checkValidity(); |
| 12100 | 12100 |
| 12101 @DomName('HTMLInputElement.setCustomValidity') | 12101 @DomName('HTMLInputElement.setCustomValidity') |
| 12102 void setCustomValidity(String error); | 12102 void setCustomValidity(String error); |
| 12103 } | 12103 } |
| 12104 | 12104 |
| 12105 /** | 12105 /** |
| 12106 * Hidden input which is not intended to be seen or edited by the user. | 12106 * Hidden input which is not intended to be seen or edited by the user. |
| 12107 */ | 12107 */ |
| 12108 abstract class HiddenInputElement implements Element { | 12108 abstract class HiddenInputElement implements InputElementBase { |
| 12109 factory HiddenInputElement() => new InputElement(type: 'hidden'); | 12109 factory HiddenInputElement() => new InputElement(type: 'hidden'); |
| 12110 } | 12110 } |
| 12111 | 12111 |
| 12112 | 12112 |
| 12113 /** | 12113 /** |
| 12114 * Base interface for all inputs which involve text editing. | 12114 * Base interface for all inputs which involve text editing. |
| 12115 */ | 12115 */ |
| 12116 abstract class TextInputElementBase implements InputElementBase { | 12116 abstract class TextInputElementBase implements InputElementBase { |
| 12117 @DomName('HTMLInputElement.autocomplete') | 12117 @DomName('HTMLInputElement.autocomplete') |
| 12118 String autocomplete; | 12118 String autocomplete; |
| (...skipping 17433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 29552 _position = nextPosition; | 29552 _position = nextPosition; |
| 29553 return true; | 29553 return true; |
| 29554 } | 29554 } |
| 29555 _current = null; | 29555 _current = null; |
| 29556 _position = _array.length; | 29556 _position = _array.length; |
| 29557 return false; | 29557 return false; |
| 29558 } | 29558 } |
| 29559 | 29559 |
| 29560 T get current => _current; | 29560 T get current => _current; |
| 29561 } | 29561 } |
| OLD | NEW |