| OLD | NEW |
| 1 library html; | 1 library html; |
| 2 | 2 |
| 3 import 'dart:collection'; | 3 import 'dart:collection'; |
| 4 import 'dart:html_common'; | 4 import 'dart:html_common'; |
| 5 import 'dart:indexed_db'; | 5 import 'dart:indexed_db'; |
| 6 import 'dart:isolate'; | 6 import 'dart:isolate'; |
| 7 import 'dart:json'; | 7 import 'dart:json'; |
| 8 import 'dart:svg' as svg; | 8 import 'dart:svg' as svg; |
| 9 import 'dart:web_audio' as web_audio; | 9 import 'dart:web_audio' as web_audio; |
| 10 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| (...skipping 11021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11032 /// @domName HTMLInputElement.selectionStart | 11032 /// @domName HTMLInputElement.selectionStart |
| 11033 int selectionStart; | 11033 int selectionStart; |
| 11034 | 11034 |
| 11035 /// @domName HTMLInputElement.setSelectionRange | 11035 /// @domName HTMLInputElement.setSelectionRange |
| 11036 void setSelectionRange(int start, int end, [String direction]); | 11036 void setSelectionRange(int start, int end, [String direction]); |
| 11037 } | 11037 } |
| 11038 | 11038 |
| 11039 /** | 11039 /** |
| 11040 * Similar to [TextInputElement], but on platforms where search is styled | 11040 * Similar to [TextInputElement], but on platforms where search is styled |
| 11041 * differently this will get the search style. | 11041 * differently this will get the search style. |
| 11042 * |
| 11043 * Use [supported] to check if this is supported on the current platform. |
| 11042 */ | 11044 */ |
| 11045 @SupportedBrowser(SupportedBrowser.CHROME) |
| 11046 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 11047 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 11048 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 11043 abstract class SearchInputElement implements TextInputElementBase { | 11049 abstract class SearchInputElement implements TextInputElementBase { |
| 11044 factory SearchInputElement() => new InputElement(type: 'search'); | 11050 factory SearchInputElement() => new InputElement(type: 'search'); |
| 11045 | 11051 |
| 11046 /// @domName HTMLInputElement.dirName; | 11052 /// @domName HTMLInputElement.dirName; |
| 11047 String dirName; | 11053 String dirName; |
| 11048 | 11054 |
| 11049 /// @domName HTMLInputElement.list; | 11055 /// @domName HTMLInputElement.list; |
| 11050 Element get list; | 11056 Element get list; |
| 11057 |
| 11058 /// Returns true if this input type is supported on the current platform. |
| 11059 static bool get supported { |
| 11060 return (new InputElement(type: 'search')).type == 'search'; |
| 11061 } |
| 11051 } | 11062 } |
| 11052 | 11063 |
| 11053 /** | 11064 /** |
| 11054 * A basic text input editor control. | 11065 * A basic text input editor control. |
| 11055 */ | 11066 */ |
| 11056 abstract class TextInputElement implements TextInputElementBase { | 11067 abstract class TextInputElement implements TextInputElementBase { |
| 11057 factory TextInputElement() => new InputElement(type: 'text'); | 11068 factory TextInputElement() => new InputElement(type: 'text'); |
| 11058 | 11069 |
| 11059 /// @domName HTMLInputElement.dirName; | 11070 /// @domName HTMLInputElement.dirName; |
| 11060 String dirName; | 11071 String dirName; |
| 11061 | 11072 |
| 11062 /// @domName HTMLInputElement.list; | 11073 /// @domName HTMLInputElement.list; |
| 11063 Element get list; | 11074 Element get list; |
| 11064 } | 11075 } |
| 11065 | 11076 |
| 11066 /** | 11077 /** |
| 11067 * A control for editing an absolute URL. | 11078 * A control for editing an absolute URL. |
| 11079 * |
| 11080 * Use [supported] to check if this is supported on the current platform. |
| 11068 */ | 11081 */ |
| 11082 @SupportedBrowser(SupportedBrowser.CHROME) |
| 11083 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 11084 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 11085 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 11069 abstract class UrlInputElement implements TextInputElementBase { | 11086 abstract class UrlInputElement implements TextInputElementBase { |
| 11070 factory UrlInputElement() => new InputElement(type: 'url'); | 11087 factory UrlInputElement() => new InputElement(type: 'url'); |
| 11071 | 11088 |
| 11072 /// @domName HTMLInputElement.list; | 11089 /// @domName HTMLInputElement.list; |
| 11073 Element get list; | 11090 Element get list; |
| 11091 |
| 11092 /// Returns true if this input type is supported on the current platform. |
| 11093 static bool get supported { |
| 11094 return (new InputElement(type: 'url')).type == 'url'; |
| 11095 } |
| 11074 } | 11096 } |
| 11075 | 11097 |
| 11076 /** | 11098 /** |
| 11077 * Represents a control for editing a telephone number. | 11099 * Represents a control for editing a telephone number. |
| 11078 * | 11100 * |
| 11079 * This provides a single line of text with minimal formatting help since | 11101 * This provides a single line of text with minimal formatting help since |
| 11080 * there is a wide variety of telephone numbers. | 11102 * there is a wide variety of telephone numbers. |
| 11103 * |
| 11104 * Use [supported] to check if this is supported on the current platform. |
| 11081 */ | 11105 */ |
| 11106 @SupportedBrowser(SupportedBrowser.CHROME) |
| 11107 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 11108 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 11109 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 11082 abstract class TelephoneInputElement implements TextInputElementBase { | 11110 abstract class TelephoneInputElement implements TextInputElementBase { |
| 11083 factory TelephoneInputElement() => new InputElement(type: 'tel'); | 11111 factory TelephoneInputElement() => new InputElement(type: 'tel'); |
| 11084 | 11112 |
| 11085 /// @domName HTMLInputElement.list; | 11113 /// @domName HTMLInputElement.list; |
| 11086 Element get list; | 11114 Element get list; |
| 11115 |
| 11116 /// Returns true if this input type is supported on the current platform. |
| 11117 static bool get supported { |
| 11118 return (new InputElement(type: 'tel')).type == 'tel'; |
| 11119 } |
| 11087 } | 11120 } |
| 11088 | 11121 |
| 11089 /** | 11122 /** |
| 11090 * An e-mail address or list of e-mail addresses. | 11123 * An e-mail address or list of e-mail addresses. |
| 11124 * |
| 11125 * Use [supported] to check if this is supported on the current platform. |
| 11091 */ | 11126 */ |
| 11127 @SupportedBrowser(SupportedBrowser.CHROME) |
| 11128 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 11129 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 11130 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 11092 abstract class EmailInputElement implements TextInputElementBase { | 11131 abstract class EmailInputElement implements TextInputElementBase { |
| 11093 factory EmailInputElement() => new InputElement(type: 'email'); | 11132 factory EmailInputElement() => new InputElement(type: 'email'); |
| 11094 | 11133 |
| 11095 /// @domName HTMLInputElement.autocomplete | 11134 /// @domName HTMLInputElement.autocomplete |
| 11096 String autocomplete; | 11135 String autocomplete; |
| 11097 | 11136 |
| 11098 /// @domName HTMLInputElement.autofocus | 11137 /// @domName HTMLInputElement.autofocus |
| 11099 bool autofocus; | 11138 bool autofocus; |
| 11100 | 11139 |
| 11101 /// @domName HTMLInputElement.list; | 11140 /// @domName HTMLInputElement.list; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 11114 String placeholder; | 11153 String placeholder; |
| 11115 | 11154 |
| 11116 /// @domName HTMLInputElement.readOnly | 11155 /// @domName HTMLInputElement.readOnly |
| 11117 bool readOnly; | 11156 bool readOnly; |
| 11118 | 11157 |
| 11119 /// @domName HTMLInputElement.required | 11158 /// @domName HTMLInputElement.required |
| 11120 bool required; | 11159 bool required; |
| 11121 | 11160 |
| 11122 /// @domName HTMLInputElement.size | 11161 /// @domName HTMLInputElement.size |
| 11123 int size; | 11162 int size; |
| 11163 |
| 11164 /// Returns true if this input type is supported on the current platform. |
| 11165 static bool get supported { |
| 11166 return (new InputElement(type: 'email')).type == 'email'; |
| 11167 } |
| 11124 } | 11168 } |
| 11125 | 11169 |
| 11126 /** | 11170 /** |
| 11127 * Text with no line breaks (sensitive information). | 11171 * Text with no line breaks (sensitive information). |
| 11128 */ | 11172 */ |
| 11129 abstract class PasswordInputElement implements TextInputElementBase { | 11173 abstract class PasswordInputElement implements TextInputElementBase { |
| 11130 factory PasswordInputElement() => new InputElement(type: 'password'); | 11174 factory PasswordInputElement() => new InputElement(type: 'password'); |
| 11131 } | 11175 } |
| 11132 | 11176 |
| 11133 /** | 11177 /** |
| (...skipping 14198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25332 T next() { | 25376 T next() { |
| 25333 if (!hasNext) { | 25377 if (!hasNext) { |
| 25334 throw new StateError("No more elements"); | 25378 throw new StateError("No more elements"); |
| 25335 } | 25379 } |
| 25336 return _array[_pos++]; | 25380 return _array[_pos++]; |
| 25337 } | 25381 } |
| 25338 | 25382 |
| 25339 final List<T> _array; | 25383 final List<T> _array; |
| 25340 int _pos; | 25384 int _pos; |
| 25341 } | 25385 } |
| OLD | NEW |