| 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 11069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11080 return FormData._create_2(); | 11080 return FormData._create_2(); |
| 11081 } | 11081 } |
| 11082 static FormData _create_1(form) => JS('FormData', 'new FormData(#)', form); | 11082 static FormData _create_1(form) => JS('FormData', 'new FormData(#)', form); |
| 11083 static FormData _create_2() => JS('FormData', 'new FormData()'); | 11083 static FormData _create_2() => JS('FormData', 'new FormData()'); |
| 11084 | 11084 |
| 11085 /// Checks if this type is supported on the current platform. | 11085 /// Checks if this type is supported on the current platform. |
| 11086 static bool get supported => JS('bool', '!!(window.FormData)'); | 11086 static bool get supported => JS('bool', '!!(window.FormData)'); |
| 11087 | 11087 |
| 11088 @DomName('FormData.append') | 11088 @DomName('FormData.append') |
| 11089 @DocsEditable() | 11089 @DocsEditable() |
| 11090 void append(String name, value, [String filename]) native; | 11090 void append(String name, String value) native; |
| 11091 |
| 11092 @JSName('append') |
| 11093 @DomName('FormData.append') |
| 11094 @DocsEditable() |
| 11095 void appendBlob(String name, Blob value, [String filename]) native; |
| 11091 } | 11096 } |
| 11092 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11097 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11093 // for details. All rights reserved. Use of this source code is governed by a | 11098 // for details. All rights reserved. Use of this source code is governed by a |
| 11094 // BSD-style license that can be found in the LICENSE file. | 11099 // BSD-style license that can be found in the LICENSE file. |
| 11095 | 11100 |
| 11096 | 11101 |
| 11097 @DocsEditable() | 11102 @DocsEditable() |
| 11098 @DomName('HTMLFormElement') | 11103 @DomName('HTMLFormElement') |
| 11099 class FormElement extends _HTMLElement native "HTMLFormElement" { | 11104 class FormElement extends _HTMLElement native "HTMLFormElement" { |
| 11100 // To suppress missing implicit constructor warnings. | 11105 // To suppress missing implicit constructor warnings. |
| (...skipping 12059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23160 | 23165 |
| 23161 @JSName('removeEventListener') | 23166 @JSName('removeEventListener') |
| 23162 @DomName('WebSocket.removeEventListener') | 23167 @DomName('WebSocket.removeEventListener') |
| 23163 @DocsEditable() | 23168 @DocsEditable() |
| 23164 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 23169 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 23165 | 23170 |
| 23166 @DomName('WebSocket.send') | 23171 @DomName('WebSocket.send') |
| 23167 @DocsEditable() | 23172 @DocsEditable() |
| 23168 void send(data) native; | 23173 void send(data) native; |
| 23169 | 23174 |
| 23175 @JSName('send') |
| 23176 @DomName('WebSocket.send') |
| 23177 @DocsEditable() |
| 23178 void sendBlob(Blob data) native; |
| 23179 |
| 23180 @JSName('send') |
| 23181 @DomName('WebSocket.send') |
| 23182 @DocsEditable() |
| 23183 void sendByteBuffer(ByteBuffer data) native; |
| 23184 |
| 23185 @JSName('send') |
| 23186 @DomName('WebSocket.send') |
| 23187 @DocsEditable() |
| 23188 void sendString(String data) native; |
| 23189 |
| 23190 @JSName('send') |
| 23191 @DomName('WebSocket.send') |
| 23192 @DocsEditable() |
| 23193 void sendTypeData(TypedData data) native; |
| 23194 |
| 23170 @DomName('WebSocket.onclose') | 23195 @DomName('WebSocket.onclose') |
| 23171 @DocsEditable() | 23196 @DocsEditable() |
| 23172 Stream<CloseEvent> get onClose => closeEvent.forTarget(this); | 23197 Stream<CloseEvent> get onClose => closeEvent.forTarget(this); |
| 23173 | 23198 |
| 23174 @DomName('WebSocket.onerror') | 23199 @DomName('WebSocket.onerror') |
| 23175 @DocsEditable() | 23200 @DocsEditable() |
| 23176 Stream<Event> get onError => errorEvent.forTarget(this); | 23201 Stream<Event> get onError => errorEvent.forTarget(this); |
| 23177 | 23202 |
| 23178 @DomName('WebSocket.onmessage') | 23203 @DomName('WebSocket.onmessage') |
| 23179 @DocsEditable() | 23204 @DocsEditable() |
| (...skipping 6197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 29377 _position = nextPosition; | 29402 _position = nextPosition; |
| 29378 return true; | 29403 return true; |
| 29379 } | 29404 } |
| 29380 _current = null; | 29405 _current = null; |
| 29381 _position = _array.length; | 29406 _position = _array.length; |
| 29382 return false; | 29407 return false; |
| 29383 } | 29408 } |
| 29384 | 29409 |
| 29385 T get current => _current; | 29410 T get current => _current; |
| 29386 } | 29411 } |
| OLD | NEW |