| 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 10605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10616 /// @domName HTMLIFrameElement.srcdoc; @docsEditable true | 10616 /// @domName HTMLIFrameElement.srcdoc; @docsEditable true |
| 10617 String srcdoc; | 10617 String srcdoc; |
| 10618 | 10618 |
| 10619 /// @domName HTMLIFrameElement.width; @docsEditable true | 10619 /// @domName HTMLIFrameElement.width; @docsEditable true |
| 10620 String width; | 10620 String width; |
| 10621 } | 10621 } |
| 10622 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10622 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 10623 // for details. All rights reserved. Use of this source code is governed by a | 10623 // for details. All rights reserved. Use of this source code is governed by a |
| 10624 // BSD-style license that can be found in the LICENSE file. | 10624 // BSD-style license that can be found in the LICENSE file. |
| 10625 | 10625 |
| 10626 // WARNING: Do not edit - generated code. | |
| 10627 | |
| 10628 | |
| 10629 typedef void IceCallback(IceCandidate candidate, bool moreToFollow, PeerConnecti
on00 source); | |
| 10630 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 10631 // for details. All rights reserved. Use of this source code is governed by a | |
| 10632 // BSD-style license that can be found in the LICENSE file. | |
| 10633 | |
| 10634 | 10626 |
| 10635 /// @domName IceCandidate; @docsEditable true | 10627 /// @domName IceCandidate; @docsEditable true |
| 10636 class IceCandidate native "*IceCandidate" { | 10628 class IceCandidate native "*IceCandidate" { |
| 10637 | 10629 |
| 10638 ///@docsEditable true | 10630 ///@docsEditable true |
| 10639 factory IceCandidate(String label, String candidateLine) => _IceCandidateFacto
ryProvider.createIceCandidate(label, candidateLine); | 10631 factory IceCandidate(String label, String candidateLine) => _IceCandidateFacto
ryProvider.createIceCandidate(label, candidateLine); |
| 10640 | 10632 |
| 10641 /// @domName IceCandidate.label; @docsEditable true | 10633 /// @domName IceCandidate.label; @docsEditable true |
| 10642 final String label; | 10634 final String label; |
| 10643 | 10635 |
| (...skipping 1936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12580 | 12572 |
| 12581 /// @domName Window.setTimeout; @docsEditable true | 12573 /// @domName Window.setTimeout; @docsEditable true |
| 12582 int setTimeout(TimeoutHandler handler, int timeout) native; | 12574 int setTimeout(TimeoutHandler handler, int timeout) native; |
| 12583 | 12575 |
| 12584 /// @domName Window.showModalDialog; @docsEditable true | 12576 /// @domName Window.showModalDialog; @docsEditable true |
| 12585 Object showModalDialog(String url, [Object dialogArgs, String featureArgs]) na
tive; | 12577 Object showModalDialog(String url, [Object dialogArgs, String featureArgs]) na
tive; |
| 12586 | 12578 |
| 12587 /// @domName Window.stop; @docsEditable true | 12579 /// @domName Window.stop; @docsEditable true |
| 12588 void stop() native; | 12580 void stop() native; |
| 12589 | 12581 |
| 12590 /// @domName Window.webkitConvertPointFromNodeToPage; @docsEditable true | |
| 12591 Point webkitConvertPointFromNodeToPage(Node node, Point p) native; | |
| 12592 | |
| 12593 /// @domName Window.webkitConvertPointFromPageToNode; @docsEditable true | |
| 12594 Point webkitConvertPointFromPageToNode(Node node, Point p) native; | |
| 12595 | |
| 12596 /// @domName DOMWindow.webkitRequestFileSystem; @docsEditable true | 12582 /// @domName DOMWindow.webkitRequestFileSystem; @docsEditable true |
| 12597 void webkitRequestFileSystem(int type, int size, FileSystemCallback successCal
lback, [ErrorCallback errorCallback]) native; | 12583 void webkitRequestFileSystem(int type, int size, FileSystemCallback successCal
lback, [ErrorCallback errorCallback]) native; |
| 12598 | 12584 |
| 12599 /// @domName DOMWindow.webkitResolveLocalFileSystemURL; @docsEditable true | 12585 /// @domName DOMWindow.webkitResolveLocalFileSystemURL; @docsEditable true |
| 12600 @JSName('webkitResolveLocalFileSystemURL') | 12586 @JSName('webkitResolveLocalFileSystemURL') |
| 12601 void webkitResolveLocalFileSystemUrl(String url, EntryCallback successCallback
, [ErrorCallback errorCallback]) native; | 12587 void webkitResolveLocalFileSystemUrl(String url, EntryCallback successCallback
, [ErrorCallback errorCallback]) native; |
| 12602 | 12588 |
| 12603 } | 12589 } |
| 12604 | 12590 |
| 12605 /// @docsEditable true | 12591 /// @docsEditable true |
| (...skipping 2634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15240 String value; | 15226 String value; |
| 15241 | 15227 |
| 15242 /// @domName HTMLParamElement.valueType; @docsEditable true | 15228 /// @domName HTMLParamElement.valueType; @docsEditable true |
| 15243 String valueType; | 15229 String valueType; |
| 15244 } | 15230 } |
| 15245 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15231 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15246 // for details. All rights reserved. Use of this source code is governed by a | 15232 // for details. All rights reserved. Use of this source code is governed by a |
| 15247 // BSD-style license that can be found in the LICENSE file. | 15233 // BSD-style license that can be found in the LICENSE file. |
| 15248 | 15234 |
| 15249 | 15235 |
| 15250 /// @domName PeerConnection00; @docsEditable true | |
| 15251 class PeerConnection00 extends EventTarget native "*PeerConnection00" { | |
| 15252 | |
| 15253 ///@docsEditable true | |
| 15254 factory PeerConnection00(String serverConfiguration, IceCallback iceCallback)
=> _PeerConnection00FactoryProvider.createPeerConnection00(serverConfiguration,
iceCallback); | |
| 15255 | |
| 15256 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | |
| 15257 PeerConnection00Events get on => | |
| 15258 new PeerConnection00Events(this); | |
| 15259 | |
| 15260 static const int ACTIVE = 2; | |
| 15261 | |
| 15262 static const int CLOSED = 3; | |
| 15263 | |
| 15264 static const int ICE_CHECKING = 0x300; | |
| 15265 | |
| 15266 static const int ICE_CLOSED = 0x700; | |
| 15267 | |
| 15268 static const int ICE_COMPLETED = 0x500; | |
| 15269 | |
| 15270 static const int ICE_CONNECTED = 0x400; | |
| 15271 | |
| 15272 static const int ICE_FAILED = 0x600; | |
| 15273 | |
| 15274 static const int ICE_GATHERING = 0x100; | |
| 15275 | |
| 15276 static const int ICE_WAITING = 0x200; | |
| 15277 | |
| 15278 static const int NEW = 0; | |
| 15279 | |
| 15280 static const int OPENING = 1; | |
| 15281 | |
| 15282 static const int SDP_ANSWER = 0x300; | |
| 15283 | |
| 15284 static const int SDP_OFFER = 0x100; | |
| 15285 | |
| 15286 static const int SDP_PRANSWER = 0x200; | |
| 15287 | |
| 15288 /// @domName PeerConnection00.iceState; @docsEditable true | |
| 15289 final int iceState; | |
| 15290 | |
| 15291 /// @domName PeerConnection00.localDescription; @docsEditable true | |
| 15292 final SessionDescription localDescription; | |
| 15293 | |
| 15294 /// @domName PeerConnection00.localStreams; @docsEditable true | |
| 15295 @Returns('_MediaStreamList') @Creates('_MediaStreamList') | |
| 15296 final List<MediaStream> localStreams; | |
| 15297 | |
| 15298 /// @domName PeerConnection00.readyState; @docsEditable true | |
| 15299 final int readyState; | |
| 15300 | |
| 15301 /// @domName PeerConnection00.remoteDescription; @docsEditable true | |
| 15302 final SessionDescription remoteDescription; | |
| 15303 | |
| 15304 /// @domName PeerConnection00.remoteStreams; @docsEditable true | |
| 15305 @Returns('_MediaStreamList') @Creates('_MediaStreamList') | |
| 15306 final List<MediaStream> remoteStreams; | |
| 15307 | |
| 15308 /// @domName PeerConnection00.addEventListener; @docsEditable true | |
| 15309 @JSName('addEventListener') | |
| 15310 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | |
| 15311 | |
| 15312 /// @domName PeerConnection00.addStream; @docsEditable true | |
| 15313 void addStream(MediaStream stream, [Map mediaStreamHints]) { | |
| 15314 if (?mediaStreamHints) { | |
| 15315 var mediaStreamHints_1 = convertDartToNative_Dictionary(mediaStreamHints); | |
| 15316 _addStream_1(stream, mediaStreamHints_1); | |
| 15317 return; | |
| 15318 } | |
| 15319 _addStream_2(stream); | |
| 15320 return; | |
| 15321 } | |
| 15322 @JSName('addStream') | |
| 15323 void _addStream_1(MediaStream stream, mediaStreamHints) native; | |
| 15324 @JSName('addStream') | |
| 15325 void _addStream_2(MediaStream stream) native; | |
| 15326 | |
| 15327 /// @domName PeerConnection00.close; @docsEditable true | |
| 15328 void close() native; | |
| 15329 | |
| 15330 /// @domName PeerConnection00.createAnswer; @docsEditable true | |
| 15331 SessionDescription createAnswer(String offer, [Map mediaHints]) { | |
| 15332 if (?mediaHints) { | |
| 15333 var mediaHints_1 = convertDartToNative_Dictionary(mediaHints); | |
| 15334 return _createAnswer_1(offer, mediaHints_1); | |
| 15335 } | |
| 15336 return _createAnswer_2(offer); | |
| 15337 } | |
| 15338 @JSName('createAnswer') | |
| 15339 SessionDescription _createAnswer_1(offer, mediaHints) native; | |
| 15340 @JSName('createAnswer') | |
| 15341 SessionDescription _createAnswer_2(offer) native; | |
| 15342 | |
| 15343 /// @domName PeerConnection00.createOffer; @docsEditable true | |
| 15344 SessionDescription createOffer([Map mediaHints]) { | |
| 15345 if (?mediaHints) { | |
| 15346 var mediaHints_1 = convertDartToNative_Dictionary(mediaHints); | |
| 15347 return _createOffer_1(mediaHints_1); | |
| 15348 } | |
| 15349 return _createOffer_2(); | |
| 15350 } | |
| 15351 @JSName('createOffer') | |
| 15352 SessionDescription _createOffer_1(mediaHints) native; | |
| 15353 @JSName('createOffer') | |
| 15354 SessionDescription _createOffer_2() native; | |
| 15355 | |
| 15356 /// @domName PeerConnection00.dispatchEvent; @docsEditable true | |
| 15357 @JSName('dispatchEvent') | |
| 15358 bool $dom_dispatchEvent(Event event) native; | |
| 15359 | |
| 15360 /// @domName PeerConnection00.processIceMessage; @docsEditable true | |
| 15361 void processIceMessage(IceCandidate candidate) native; | |
| 15362 | |
| 15363 /// @domName PeerConnection00.removeEventListener; @docsEditable true | |
| 15364 @JSName('removeEventListener') | |
| 15365 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | |
| 15366 | |
| 15367 /// @domName PeerConnection00.removeStream; @docsEditable true | |
| 15368 void removeStream(MediaStream stream) native; | |
| 15369 | |
| 15370 /// @domName PeerConnection00.setLocalDescription; @docsEditable true | |
| 15371 void setLocalDescription(int action, SessionDescription desc) native; | |
| 15372 | |
| 15373 /// @domName PeerConnection00.setRemoteDescription; @docsEditable true | |
| 15374 void setRemoteDescription(int action, SessionDescription desc) native; | |
| 15375 | |
| 15376 /// @domName PeerConnection00.startIce; @docsEditable true | |
| 15377 void startIce([Map iceOptions]) { | |
| 15378 if (?iceOptions) { | |
| 15379 var iceOptions_1 = convertDartToNative_Dictionary(iceOptions); | |
| 15380 _startIce_1(iceOptions_1); | |
| 15381 return; | |
| 15382 } | |
| 15383 _startIce_2(); | |
| 15384 return; | |
| 15385 } | |
| 15386 @JSName('startIce') | |
| 15387 void _startIce_1(iceOptions) native; | |
| 15388 @JSName('startIce') | |
| 15389 void _startIce_2() native; | |
| 15390 } | |
| 15391 | |
| 15392 /// @docsEditable true | |
| 15393 class PeerConnection00Events extends Events { | |
| 15394 /// @docsEditable true | |
| 15395 PeerConnection00Events(EventTarget _ptr) : super(_ptr); | |
| 15396 | |
| 15397 /// @docsEditable true | |
| 15398 EventListenerList get addStream => this['addstream']; | |
| 15399 | |
| 15400 /// @docsEditable true | |
| 15401 EventListenerList get connecting => this['connecting']; | |
| 15402 | |
| 15403 /// @docsEditable true | |
| 15404 EventListenerList get open => this['open']; | |
| 15405 | |
| 15406 /// @docsEditable true | |
| 15407 EventListenerList get removeStream => this['removestream']; | |
| 15408 | |
| 15409 /// @docsEditable true | |
| 15410 EventListenerList get stateChange => this['statechange']; | |
| 15411 } | |
| 15412 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15413 // for details. All rights reserved. Use of this source code is governed by a | |
| 15414 // BSD-style license that can be found in the LICENSE file. | |
| 15415 | |
| 15416 | |
| 15417 /// @domName Performance; @docsEditable true | 15236 /// @domName Performance; @docsEditable true |
| 15418 class Performance extends EventTarget native "*Performance" { | 15237 class Performance extends EventTarget native "*Performance" { |
| 15419 | 15238 |
| 15420 /// @domName Performance.memory; @docsEditable true | 15239 /// @domName Performance.memory; @docsEditable true |
| 15421 final MemoryInfo memory; | 15240 final MemoryInfo memory; |
| 15422 | 15241 |
| 15423 /// @domName Performance.navigation; @docsEditable true | 15242 /// @domName Performance.navigation; @docsEditable true |
| 15424 final PerformanceNavigation navigation; | 15243 final PerformanceNavigation navigation; |
| 15425 | 15244 |
| 15426 /// @domName Performance.timing; @docsEditable true | 15245 /// @domName Performance.timing; @docsEditable true |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15519 /// @domName PerformanceTiming.unloadEventEnd; @docsEditable true | 15338 /// @domName PerformanceTiming.unloadEventEnd; @docsEditable true |
| 15520 final int unloadEventEnd; | 15339 final int unloadEventEnd; |
| 15521 | 15340 |
| 15522 /// @domName PerformanceTiming.unloadEventStart; @docsEditable true | 15341 /// @domName PerformanceTiming.unloadEventStart; @docsEditable true |
| 15523 final int unloadEventStart; | 15342 final int unloadEventStart; |
| 15524 } | 15343 } |
| 15525 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15344 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15526 // for details. All rights reserved. Use of this source code is governed by a | 15345 // for details. All rights reserved. Use of this source code is governed by a |
| 15527 // BSD-style license that can be found in the LICENSE file. | 15346 // BSD-style license that can be found in the LICENSE file. |
| 15528 | 15347 |
| 15529 // WARNING: Do not edit - generated code. | |
| 15530 | |
| 15531 | |
| 15532 /// @domName WebKitPoint | |
| 15533 class Point native "*WebKitPoint" { | |
| 15534 factory Point(num x, num y) => _PointFactoryProvider.createPoint(x, y); | |
| 15535 | |
| 15536 /// @domName WebKitPoint.x; @docsEditable true | |
| 15537 num x; | |
| 15538 | |
| 15539 /// @domName WebKitPoint.y; @docsEditable true | |
| 15540 num y; | |
| 15541 | |
| 15542 } | |
| 15543 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15544 // for details. All rights reserved. Use of this source code is governed by a | |
| 15545 // BSD-style license that can be found in the LICENSE file. | |
| 15546 | |
| 15547 | 15348 |
| 15548 /// @domName PopStateEvent; @docsEditable true | 15349 /// @domName PopStateEvent; @docsEditable true |
| 15549 class PopStateEvent extends Event native "*PopStateEvent" { | 15350 class PopStateEvent extends Event native "*PopStateEvent" { |
| 15550 | 15351 |
| 15551 /// @domName PopStateEvent.state; @docsEditable true | 15352 /// @domName PopStateEvent.state; @docsEditable true |
| 15552 dynamic get state => convertNativeToDart_SerializedScriptValue(this._state); | 15353 dynamic get state => convertNativeToDart_SerializedScriptValue(this._state); |
| 15553 @JSName('state') | 15354 @JSName('state') |
| 15554 @annotation_Creates_SerializedScriptValue @annotation_Returns_SerializedScript
Value | 15355 @annotation_Creates_SerializedScriptValue @annotation_Returns_SerializedScript
Value |
| 15555 final dynamic _state; | 15356 final dynamic _state; |
| 15556 } | 15357 } |
| (...skipping 6690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22247 } | 22048 } |
| 22248 return JS('OptionElement', 'new Option(#,#,#,#)', | 22049 return JS('OptionElement', 'new Option(#,#,#,#)', |
| 22249 data, value, defaultSelected, selected); | 22050 data, value, defaultSelected, selected); |
| 22250 } | 22051 } |
| 22251 } | 22052 } |
| 22252 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22053 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22253 // for details. All rights reserved. Use of this source code is governed by a | 22054 // for details. All rights reserved. Use of this source code is governed by a |
| 22254 // BSD-style license that can be found in the LICENSE file. | 22055 // BSD-style license that can be found in the LICENSE file. |
| 22255 | 22056 |
| 22256 | 22057 |
| 22257 class _PeerConnection00FactoryProvider { | |
| 22258 static PeerConnection00 createPeerConnection00(String serverConfiguration, Ice
Callback iceCallback) => | |
| 22259 JS('PeerConnection00', 'new PeerConnection00(#,#)', serverConfiguration, i
ceCallback); | |
| 22260 } | |
| 22261 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22262 // for details. All rights reserved. Use of this source code is governed by a | |
| 22263 // BSD-style license that can be found in the LICENSE file. | |
| 22264 | |
| 22265 | |
| 22266 class _RtcIceCandidateFactoryProvider { | 22058 class _RtcIceCandidateFactoryProvider { |
| 22267 static RtcIceCandidate createRtcIceCandidate(Map dictionary) => | 22059 static RtcIceCandidate createRtcIceCandidate(Map dictionary) => |
| 22268 JS('RtcIceCandidate', 'new RTCIceCandidate(#)', dictionary); | 22060 JS('RtcIceCandidate', 'new RTCIceCandidate(#)', dictionary); |
| 22269 } | 22061 } |
| 22270 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22062 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22271 // for details. All rights reserved. Use of this source code is governed by a | 22063 // for details. All rights reserved. Use of this source code is governed by a |
| 22272 // BSD-style license that can be found in the LICENSE file. | 22064 // BSD-style license that can be found in the LICENSE file. |
| 22273 | 22065 |
| 22274 | 22066 |
| 22275 class _RtcPeerConnectionFactoryProvider { | 22067 class _RtcPeerConnectionFactoryProvider { |
| (...skipping 3630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25906 T next() { | 25698 T next() { |
| 25907 if (!hasNext) { | 25699 if (!hasNext) { |
| 25908 throw new StateError("No more elements"); | 25700 throw new StateError("No more elements"); |
| 25909 } | 25701 } |
| 25910 return _array[_pos++]; | 25702 return _array[_pos++]; |
| 25911 } | 25703 } |
| 25912 | 25704 |
| 25913 final List<T> _array; | 25705 final List<T> _array; |
| 25914 int _pos; | 25706 int _pos; |
| 25915 } | 25707 } |
| OLD | NEW |