Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(639)

Side by Side Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 11610006: Revert revision 16240 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « samples/swarm/swarm_ui_lib/touch/FxUtil.dart ('k') | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
10626 10634
10627 /// @domName IceCandidate; @docsEditable true 10635 /// @domName IceCandidate; @docsEditable true
10628 class IceCandidate native "*IceCandidate" { 10636 class IceCandidate native "*IceCandidate" {
10629 10637
10630 ///@docsEditable true 10638 ///@docsEditable true
10631 factory IceCandidate(String label, String candidateLine) => _IceCandidateFacto ryProvider.createIceCandidate(label, candidateLine); 10639 factory IceCandidate(String label, String candidateLine) => _IceCandidateFacto ryProvider.createIceCandidate(label, candidateLine);
10632 10640
10633 /// @domName IceCandidate.label; @docsEditable true 10641 /// @domName IceCandidate.label; @docsEditable true
10634 final String label; 10642 final String label;
10635 10643
(...skipping 1936 matching lines...) Expand 10 before | Expand all | Expand 10 after
12572 12580
12573 /// @domName Window.setTimeout; @docsEditable true 12581 /// @domName Window.setTimeout; @docsEditable true
12574 int setTimeout(TimeoutHandler handler, int timeout) native; 12582 int setTimeout(TimeoutHandler handler, int timeout) native;
12575 12583
12576 /// @domName Window.showModalDialog; @docsEditable true 12584 /// @domName Window.showModalDialog; @docsEditable true
12577 Object showModalDialog(String url, [Object dialogArgs, String featureArgs]) na tive; 12585 Object showModalDialog(String url, [Object dialogArgs, String featureArgs]) na tive;
12578 12586
12579 /// @domName Window.stop; @docsEditable true 12587 /// @domName Window.stop; @docsEditable true
12580 void stop() native; 12588 void stop() native;
12581 12589
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
12582 /// @domName DOMWindow.webkitRequestFileSystem; @docsEditable true 12596 /// @domName DOMWindow.webkitRequestFileSystem; @docsEditable true
12583 void webkitRequestFileSystem(int type, int size, FileSystemCallback successCal lback, [ErrorCallback errorCallback]) native; 12597 void webkitRequestFileSystem(int type, int size, FileSystemCallback successCal lback, [ErrorCallback errorCallback]) native;
12584 12598
12585 /// @domName DOMWindow.webkitResolveLocalFileSystemURL; @docsEditable true 12599 /// @domName DOMWindow.webkitResolveLocalFileSystemURL; @docsEditable true
12586 @JSName('webkitResolveLocalFileSystemURL') 12600 @JSName('webkitResolveLocalFileSystemURL')
12587 void webkitResolveLocalFileSystemUrl(String url, EntryCallback successCallback , [ErrorCallback errorCallback]) native; 12601 void webkitResolveLocalFileSystemUrl(String url, EntryCallback successCallback , [ErrorCallback errorCallback]) native;
12588 12602
12589 } 12603 }
12590 12604
12591 /// @docsEditable true 12605 /// @docsEditable true
(...skipping 2634 matching lines...) Expand 10 before | Expand all | Expand 10 after
15226 String value; 15240 String value;
15227 15241
15228 /// @domName HTMLParamElement.valueType; @docsEditable true 15242 /// @domName HTMLParamElement.valueType; @docsEditable true
15229 String valueType; 15243 String valueType;
15230 } 15244 }
15231 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15245 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15232 // for details. All rights reserved. Use of this source code is governed by a 15246 // for details. All rights reserved. Use of this source code is governed by a
15233 // BSD-style license that can be found in the LICENSE file. 15247 // BSD-style license that can be found in the LICENSE file.
15234 15248
15235 15249
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
15236 /// @domName Performance; @docsEditable true 15417 /// @domName Performance; @docsEditable true
15237 class Performance extends EventTarget native "*Performance" { 15418 class Performance extends EventTarget native "*Performance" {
15238 15419
15239 /// @domName Performance.memory; @docsEditable true 15420 /// @domName Performance.memory; @docsEditable true
15240 final MemoryInfo memory; 15421 final MemoryInfo memory;
15241 15422
15242 /// @domName Performance.navigation; @docsEditable true 15423 /// @domName Performance.navigation; @docsEditable true
15243 final PerformanceNavigation navigation; 15424 final PerformanceNavigation navigation;
15244 15425
15245 /// @domName Performance.timing; @docsEditable true 15426 /// @domName Performance.timing; @docsEditable true
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
15338 /// @domName PerformanceTiming.unloadEventEnd; @docsEditable true 15519 /// @domName PerformanceTiming.unloadEventEnd; @docsEditable true
15339 final int unloadEventEnd; 15520 final int unloadEventEnd;
15340 15521
15341 /// @domName PerformanceTiming.unloadEventStart; @docsEditable true 15522 /// @domName PerformanceTiming.unloadEventStart; @docsEditable true
15342 final int unloadEventStart; 15523 final int unloadEventStart;
15343 } 15524 }
15344 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15525 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15345 // for details. All rights reserved. Use of this source code is governed by a 15526 // for details. All rights reserved. Use of this source code is governed by a
15346 // BSD-style license that can be found in the LICENSE file. 15527 // BSD-style license that can be found in the LICENSE file.
15347 15528
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
15348 15547
15349 /// @domName PopStateEvent; @docsEditable true 15548 /// @domName PopStateEvent; @docsEditable true
15350 class PopStateEvent extends Event native "*PopStateEvent" { 15549 class PopStateEvent extends Event native "*PopStateEvent" {
15351 15550
15352 /// @domName PopStateEvent.state; @docsEditable true 15551 /// @domName PopStateEvent.state; @docsEditable true
15353 dynamic get state => convertNativeToDart_SerializedScriptValue(this._state); 15552 dynamic get state => convertNativeToDart_SerializedScriptValue(this._state);
15354 @JSName('state') 15553 @JSName('state')
15355 @annotation_Creates_SerializedScriptValue @annotation_Returns_SerializedScript Value 15554 @annotation_Creates_SerializedScriptValue @annotation_Returns_SerializedScript Value
15356 final dynamic _state; 15555 final dynamic _state;
15357 } 15556 }
(...skipping 6690 matching lines...) Expand 10 before | Expand all | Expand 10 after
22048 } 22247 }
22049 return JS('OptionElement', 'new Option(#,#,#,#)', 22248 return JS('OptionElement', 'new Option(#,#,#,#)',
22050 data, value, defaultSelected, selected); 22249 data, value, defaultSelected, selected);
22051 } 22250 }
22052 } 22251 }
22053 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22252 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22054 // for details. All rights reserved. Use of this source code is governed by a 22253 // for details. All rights reserved. Use of this source code is governed by a
22055 // BSD-style license that can be found in the LICENSE file. 22254 // BSD-style license that can be found in the LICENSE file.
22056 22255
22057 22256
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
22058 class _RtcIceCandidateFactoryProvider { 22266 class _RtcIceCandidateFactoryProvider {
22059 static RtcIceCandidate createRtcIceCandidate(Map dictionary) => 22267 static RtcIceCandidate createRtcIceCandidate(Map dictionary) =>
22060 JS('RtcIceCandidate', 'new RTCIceCandidate(#)', dictionary); 22268 JS('RtcIceCandidate', 'new RTCIceCandidate(#)', dictionary);
22061 } 22269 }
22062 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22270 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22063 // for details. All rights reserved. Use of this source code is governed by a 22271 // for details. All rights reserved. Use of this source code is governed by a
22064 // BSD-style license that can be found in the LICENSE file. 22272 // BSD-style license that can be found in the LICENSE file.
22065 22273
22066 22274
22067 class _RtcPeerConnectionFactoryProvider { 22275 class _RtcPeerConnectionFactoryProvider {
(...skipping 3630 matching lines...) Expand 10 before | Expand all | Expand 10 after
25698 T next() { 25906 T next() {
25699 if (!hasNext) { 25907 if (!hasNext) {
25700 throw new StateError("No more elements"); 25908 throw new StateError("No more elements");
25701 } 25909 }
25702 return _array[_pos++]; 25910 return _array[_pos++];
25703 } 25911 }
25704 25912
25705 final List<T> _array; 25913 final List<T> _array;
25706 int _pos; 25914 int _pos;
25707 } 25915 }
OLDNEW
« no previous file with comments | « samples/swarm/swarm_ui_lib/touch/FxUtil.dart ('k') | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698