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

Side by Side Diff: client/dom/frog/dom_frog.dart

Issue 9428050: Automatically generate most constructors (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: add test Created 8 years, 10 months 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 | « client/dom/dom_frog.dart ('k') | client/dom/generated/src/dummy/RegularFactoryProviders.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('dom'); 1 #library('dom');
2 2
3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
4 // for details. All rights reserved. Use of this source code is governed by a 4 // for details. All rights reserved. Use of this source code is governed by a
5 // BSD-style license that can be found in the LICENSE file. 5 // BSD-style license that can be found in the LICENSE file.
6 6
7 // DO NOT EDIT 7 // DO NOT EDIT
8 // Auto-generated Dart DOM library. 8 // Auto-generated Dart DOM library.
9 9
10 10
(...skipping 11471 matching lines...) Expand 10 before | Expand all | Expand 10 after
11482 void setParameter(String namespaceURI, String localName, String value) native; 11482 void setParameter(String namespaceURI, String localName, String value) native;
11483 11483
11484 _DocumentJs transformToDocument(_NodeJs source) native; 11484 _DocumentJs transformToDocument(_NodeJs source) native;
11485 11485
11486 _DocumentFragmentJs transformToFragment(_NodeJs source, _DocumentJs docVal) na tive; 11486 _DocumentFragmentJs transformToFragment(_NodeJs source, _DocumentJs docVal) na tive;
11487 } 11487 }
11488 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11488 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11489 // for details. All rights reserved. Use of this source code is governed by a 11489 // for details. All rights reserved. Use of this source code is governed by a
11490 // BSD-style license that can be found in the LICENSE file. 11490 // BSD-style license that can be found in the LICENSE file.
11491 11491
11492 class _DOMParserFactoryProvider {
11493 factory DOMParser() native
11494 '''return new DOMParser();''';
11495 }
11496 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11497 // for details. All rights reserved. Use of this source code is governed by a
11498 // BSD-style license that can be found in the LICENSE file.
11499
11500 class _DOMURLFactoryProvider {
11501 factory DOMURL() native
11502 '''return new DOMURL();''';
11503 }
11504 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11505 // for details. All rights reserved. Use of this source code is governed by a
11506 // BSD-style license that can be found in the LICENSE file.
11507
11508 class _EventSourceFactoryProvider {
11509 factory EventSource(String scriptUrl) native
11510 '''return new EventSource(scriptUrl);''';
11511 }
11512 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11513 // for details. All rights reserved. Use of this source code is governed by a
11514 // BSD-style license that can be found in the LICENSE file.
11515
11516 class _FileReaderFactoryProvider {
11517 factory FileReader() native
11518 '''return new FileReader();''';
11519 }
11520 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11521 // for details. All rights reserved. Use of this source code is governed by a
11522 // BSD-style license that can be found in the LICENSE file.
11523
11524 class _FileReaderSyncFactoryProvider {
11525 factory FileReaderSync() native
11526 '''return new FileReaderSync();''';
11527 }
11528 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11529 // for details. All rights reserved. Use of this source code is governed by a
11530 // BSD-style license that can be found in the LICENSE file.
11531
11532 class _HTMLAudioElementFactoryProvider {
11533 factory HTMLAudioElement([String src = null]) native
11534 '''
11535 if (src == null) return new Audio();
11536 return new Audio(src);
11537 ''';
11538 }
11539 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11540 // for details. All rights reserved. Use of this source code is governed by a
11541 // BSD-style license that can be found in the LICENSE file.
11542
11543 class _HTMLOptionElementFactoryProvider {
11544 factory HTMLOptionElement([String data = null, String value = null,
11545 bool defaultSelected = null, bool selected = null])
11546 native
11547 '''
11548 if (data == null) return new Option();
11549 if (value == null) return new Option(data);
11550 if (defaultSelected == null) return new Option(data, value);
11551 if (selected == null) return new Option(data, value, defaultSelected);
11552 return new Option(data, value, defaultSelected, selected);
11553 ''';
11554 }
11555 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11556 // for details. All rights reserved. Use of this source code is governed by a
11557 // BSD-style license that can be found in the LICENSE file.
11558
11559 class _MediaControllerFactoryProvider {
11560 factory MediaController() native
11561 '''return new MediaController();''';
11562 }
11563 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11564 // for details. All rights reserved. Use of this source code is governed by a
11565 // BSD-style license that can be found in the LICENSE file.
11566
11567 class _MediaStreamFactoryProvider {
11568 factory MediaStream(MediaStreamTrackList audioTracks, MediaStreamTrackList vid eoTracks) native
11569 '''return new MediaStream(audioTracks, videoTracks);''';
11570 }
11571 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11572 // for details. All rights reserved. Use of this source code is governed by a
11573 // BSD-style license that can be found in the LICENSE file.
11574
11575 class _MessageChannelFactoryProvider {
11576 factory MessageChannel() native
11577 '''return new MessageChannel();''';
11578 }
11579 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11580 // for details. All rights reserved. Use of this source code is governed by a
11581 // BSD-style license that can be found in the LICENSE file.
11582
11583 class _PeerConnectionFactoryProvider {
11584 factory PeerConnection(String serverConfiguration, SignalingCallback signaling Callback) native
11585 '''return new PeerConnection(serverConfiguration, signalingCallback);''';
11586 }
11587 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11588 // for details. All rights reserved. Use of this source code is governed by a
11589 // BSD-style license that can be found in the LICENSE file.
11590
11591 class _ShadowRootFactoryProvider {
11592 factory ShadowRoot(Element host) native
11593 '''return new ShadowRoot(host);''';
11594 }
11595 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11596 // for details. All rights reserved. Use of this source code is governed by a
11597 // BSD-style license that can be found in the LICENSE file.
11598
11599 class _SharedWorkerFactoryProvider {
11600 factory SharedWorker(String scriptURL, [String name]) native
11601 '''
11602 if (name == null) return new SharedWorker(scriptURL);
11603 return new SharedWorker(scriptURL, name);
11604 ''';
11605 }
11606 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11607 // for details. All rights reserved. Use of this source code is governed by a
11608 // BSD-style license that can be found in the LICENSE file.
11609
11610 class _TextTrackCueFactoryProvider {
11611 factory TextTrackCue(String id, num startTime, num endTime, String text,
11612 [String settings, bool pauseOnExit]) native
11613 '''
11614 if (settings == null)
11615 return new TextTrackCue(id, startTime, endTime, text);
11616 if (pauseOnExit == null)
11617 return new TextTrackCue(id, startTime, endTime, text, settings);
11618 return new TextTrackCue(id, startTime, endTime, text, settings, pauseOnExit);
11619 ''';
11620 }
11621 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11622 // for details. All rights reserved. Use of this source code is governed by a
11623 // BSD-style license that can be found in the LICENSE file.
11624
11625 class _WebKitBlobBuilderFactoryProvider {
11626 factory WebKitBlobBuilder() native
11627 '''return new WebKitBlobBuilder();''';
11628 }
11629 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11630 // for details. All rights reserved. Use of this source code is governed by a
11631 // BSD-style license that can be found in the LICENSE file.
11632
11633 class _WebKitCSSMatrixFactoryProvider {
11634 factory WebKitCSSMatrix([String cssValue = null]) native
11635 '''
11636 if (cssValue == null) return new WebKitCSSMatrix();
11637 return new WebKitCSSMatrix(cssValue);
11638 ''';
11639 }
11640 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11641 // for details. All rights reserved. Use of this source code is governed by a
11642 // BSD-style license that can be found in the LICENSE file.
11643
11644 class _WorkerFactoryProvider {
11645 factory Worker(String scriptUrl) native
11646 '''return new Worker(scriptUrl);''';
11647 }
11648 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11649 // for details. All rights reserved. Use of this source code is governed by a
11650 // BSD-style license that can be found in the LICENSE file.
11651
11652 class _XMLHttpRequestFactoryProvider {
11653 factory XMLHttpRequest() native
11654 '''return new XMLHttpRequest();''';
11655 }
11656 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11657 // for details. All rights reserved. Use of this source code is governed by a
11658 // BSD-style license that can be found in the LICENSE file.
11659
11660 class _XMLSerializerFactoryProvider {
11661 factory XMLSerializer() native
11662 '''return new XMLSerializer();''';
11663 }
11664 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11665 // for details. All rights reserved. Use of this source code is governed by a
11666 // BSD-style license that can be found in the LICENSE file.
11667
11668 class _XPathEvaluatorFactoryProvider {
11669 factory XPathEvaluator() native
11670 '''return new XPathEvaluator();''';
11671 }
11672 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11673 // for details. All rights reserved. Use of this source code is governed by a
11674 // BSD-style license that can be found in the LICENSE file.
11675
11676 class _XSLTProcessorFactoryProvider {
11677 factory XSLTProcessor() native
11678 '''return new XSLTProcessor();''';
11679 }
11680 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11681 // for details. All rights reserved. Use of this source code is governed by a
11682 // BSD-style license that can be found in the LICENSE file.
11683
11492 // WARNING: Do not edit - generated code. 11684 // WARNING: Do not edit - generated code.
11493 11685
11494 interface AbstractWorker extends EventTarget { 11686 interface AbstractWorker extends EventTarget {
11495 11687
11496 void addEventListener(String type, EventListener listener, [bool useCapture]); 11688 void addEventListener(String type, EventListener listener, [bool useCapture]);
11497 11689
11498 bool dispatchEvent(Event evt); 11690 bool dispatchEvent(Event evt);
11499 11691
11500 void removeEventListener(String type, EventListener listener, [bool useCapture ]); 11692 void removeEventListener(String type, EventListener listener, [bool useCapture ]);
11501 } 11693 }
(...skipping 1427 matching lines...) Expand 10 before | Expand all | Expand 10 after
12929 String toString(); 13121 String toString();
12930 13122
12931 bool toggle(String token); 13123 bool toggle(String token);
12932 } 13124 }
12933 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13125 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12934 // for details. All rights reserved. Use of this source code is governed by a 13126 // for details. All rights reserved. Use of this source code is governed by a
12935 // BSD-style license that can be found in the LICENSE file. 13127 // BSD-style license that can be found in the LICENSE file.
12936 13128
12937 // WARNING: Do not edit - generated code. 13129 // WARNING: Do not edit - generated code.
12938 13130
12939 interface DOMURL { 13131 interface DOMURL default _DOMURLFactoryProvider {
13132
13133 DOMURL();
12940 } 13134 }
12941 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13135 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12942 // for details. All rights reserved. Use of this source code is governed by a 13136 // for details. All rights reserved. Use of this source code is governed by a
12943 // BSD-style license that can be found in the LICENSE file. 13137 // BSD-style license that can be found in the LICENSE file.
12944 13138
12945 // WARNING: Do not edit - generated code. 13139 // WARNING: Do not edit - generated code.
12946 13140
12947 interface Window extends EventTarget { 13141 interface Window extends EventTarget {
12948 13142
12949 final DOMApplicationCache applicationCache; 13143 final DOMApplicationCache applicationCache;
(...skipping 991 matching lines...) Expand 10 before | Expand all | Expand 10 after
13941 final String name; 14135 final String name;
13942 14136
13943 String toString(); 14137 String toString();
13944 } 14138 }
13945 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14139 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13946 // for details. All rights reserved. Use of this source code is governed by a 14140 // for details. All rights reserved. Use of this source code is governed by a
13947 // BSD-style license that can be found in the LICENSE file. 14141 // BSD-style license that can be found in the LICENSE file.
13948 14142
13949 // WARNING: Do not edit - generated code. 14143 // WARNING: Do not edit - generated code.
13950 14144
13951 interface EventSource extends EventTarget { 14145 interface EventSource extends EventTarget default _EventSourceFactoryProvider {
14146
14147 EventSource(String scriptUrl);
13952 14148
13953 static final int CLOSED = 2; 14149 static final int CLOSED = 2;
13954 14150
13955 static final int CONNECTING = 0; 14151 static final int CONNECTING = 0;
13956 14152
13957 static final int OPEN = 1; 14153 static final int OPEN = 1;
13958 14154
13959 final String URL; 14155 final String URL;
13960 14156
13961 final int readyState; 14157 final int readyState;
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
14168 void readAsText(Blob blob, [String encoding]); 14364 void readAsText(Blob blob, [String encoding]);
14169 14365
14170 void removeEventListener(String type, EventListener listener, [bool useCapture ]); 14366 void removeEventListener(String type, EventListener listener, [bool useCapture ]);
14171 } 14367 }
14172 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14368 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14173 // for details. All rights reserved. Use of this source code is governed by a 14369 // for details. All rights reserved. Use of this source code is governed by a
14174 // BSD-style license that can be found in the LICENSE file. 14370 // BSD-style license that can be found in the LICENSE file.
14175 14371
14176 // WARNING: Do not edit - generated code. 14372 // WARNING: Do not edit - generated code.
14177 14373
14178 interface FileReaderSync { 14374 interface FileReaderSync default _FileReaderSyncFactoryProvider {
14375
14376 FileReaderSync();
14179 14377
14180 ArrayBuffer readAsArrayBuffer(Blob blob); 14378 ArrayBuffer readAsArrayBuffer(Blob blob);
14181 14379
14182 String readAsBinaryString(Blob blob); 14380 String readAsBinaryString(Blob blob);
14183 14381
14184 String readAsDataURL(Blob blob); 14382 String readAsDataURL(Blob blob);
14185 14383
14186 String readAsText(Blob blob, [String encoding]); 14384 String readAsText(Blob blob, [String encoding]);
14187 } 14385 }
14188 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 14386 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
14462 String shape; 14660 String shape;
14463 14661
14464 String target; 14662 String target;
14465 } 14663 }
14466 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14664 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14467 // for details. All rights reserved. Use of this source code is governed by a 14665 // for details. All rights reserved. Use of this source code is governed by a
14468 // BSD-style license that can be found in the LICENSE file. 14666 // BSD-style license that can be found in the LICENSE file.
14469 14667
14470 // WARNING: Do not edit - generated code. 14668 // WARNING: Do not edit - generated code.
14471 14669
14472 interface HTMLAudioElement extends HTMLMediaElement { 14670 interface HTMLAudioElement extends HTMLMediaElement default _HTMLAudioElementFac toryProvider {
14671
14672 HTMLAudioElement([String src]);
14473 } 14673 }
14474 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14674 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14475 // for details. All rights reserved. Use of this source code is governed by a 14675 // for details. All rights reserved. Use of this source code is governed by a
14476 // BSD-style license that can be found in the LICENSE file. 14676 // BSD-style license that can be found in the LICENSE file.
14477 14677
14478 // WARNING: Do not edit - generated code. 14678 // WARNING: Do not edit - generated code.
14479 14679
14480 interface HTMLBRElement extends HTMLElement { 14680 interface HTMLBRElement extends HTMLElement {
14481 14681
14482 String clear; 14682 String clear;
(...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after
15548 bool disabled; 15748 bool disabled;
15549 15749
15550 String label; 15750 String label;
15551 } 15751 }
15552 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15752 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15553 // for details. All rights reserved. Use of this source code is governed by a 15753 // for details. All rights reserved. Use of this source code is governed by a
15554 // BSD-style license that can be found in the LICENSE file. 15754 // BSD-style license that can be found in the LICENSE file.
15555 15755
15556 // WARNING: Do not edit - generated code. 15756 // WARNING: Do not edit - generated code.
15557 15757
15558 interface HTMLOptionElement extends HTMLElement { 15758 interface HTMLOptionElement extends HTMLElement default _HTMLOptionElementFactor yProvider {
15759
15760 HTMLOptionElement([String data, String value, bool defaultSelected, bool selec ted]);
15559 15761
15560 bool defaultSelected; 15762 bool defaultSelected;
15561 15763
15562 bool disabled; 15764 bool disabled;
15563 15765
15564 final HTMLFormElement form; 15766 final HTMLFormElement form;
15565 15767
15566 final int index; 15768 final int index;
15567 15769
15568 String label; 15770 String label;
(...skipping 1155 matching lines...) Expand 10 before | Expand all | Expand 10 after
16724 final AudioParam cutoff; 16926 final AudioParam cutoff;
16725 16927
16726 final AudioParam resonance; 16928 final AudioParam resonance;
16727 } 16929 }
16728 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16930 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16729 // for details. All rights reserved. Use of this source code is governed by a 16931 // for details. All rights reserved. Use of this source code is governed by a
16730 // BSD-style license that can be found in the LICENSE file. 16932 // BSD-style license that can be found in the LICENSE file.
16731 16933
16732 // WARNING: Do not edit - generated code. 16934 // WARNING: Do not edit - generated code.
16733 16935
16734 interface MediaController { 16936 interface MediaController default _MediaControllerFactoryProvider {
16937
16938 MediaController();
16735 16939
16736 final TimeRanges buffered; 16940 final TimeRanges buffered;
16737 16941
16738 num currentTime; 16942 num currentTime;
16739 16943
16740 num defaultPlaybackRate; 16944 num defaultPlaybackRate;
16741 16945
16742 final num duration; 16946 final num duration;
16743 16947
16744 bool muted; 16948 bool muted;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
16834 interface MediaQueryListListener { 17038 interface MediaQueryListListener {
16835 17039
16836 void queryChanged(MediaQueryList list); 17040 void queryChanged(MediaQueryList list);
16837 } 17041 }
16838 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17042 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16839 // for details. All rights reserved. Use of this source code is governed by a 17043 // for details. All rights reserved. Use of this source code is governed by a
16840 // BSD-style license that can be found in the LICENSE file. 17044 // BSD-style license that can be found in the LICENSE file.
16841 17045
16842 // WARNING: Do not edit - generated code. 17046 // WARNING: Do not edit - generated code.
16843 17047
16844 interface MediaStream { 17048 interface MediaStream default _MediaStreamFactoryProvider {
17049
17050 MediaStream(MediaStreamTrackList audioTracks, MediaStreamTrackList videoTracks );
16845 17051
16846 static final int ENDED = 2; 17052 static final int ENDED = 2;
16847 17053
16848 static final int LIVE = 1; 17054 static final int LIVE = 1;
16849 17055
16850 final MediaStreamTrackList audioTracks; 17056 final MediaStreamTrackList audioTracks;
16851 17057
16852 final String label; 17058 final String label;
16853 17059
16854 EventListener onended; 17060 EventListener onended;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
16924 final int totalJSHeapSize; 17130 final int totalJSHeapSize;
16925 17131
16926 final int usedJSHeapSize; 17132 final int usedJSHeapSize;
16927 } 17133 }
16928 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17134 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16929 // for details. All rights reserved. Use of this source code is governed by a 17135 // for details. All rights reserved. Use of this source code is governed by a
16930 // BSD-style license that can be found in the LICENSE file. 17136 // BSD-style license that can be found in the LICENSE file.
16931 17137
16932 // WARNING: Do not edit - generated code. 17138 // WARNING: Do not edit - generated code.
16933 17139
16934 interface MessageChannel { 17140 interface MessageChannel default _MessageChannelFactoryProvider {
17141
17142 MessageChannel();
16935 17143
16936 final MessagePort port1; 17144 final MessagePort port1;
16937 17145
16938 final MessagePort port2; 17146 final MessagePort port2;
16939 } 17147 }
16940 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17148 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16941 // for details. All rights reserved. Use of this source code is governed by a 17149 // for details. All rights reserved. Use of this source code is governed by a
16942 // BSD-style license that can be found in the LICENSE file. 17150 // BSD-style license that can be found in the LICENSE file.
16943 17151
16944 // WARNING: Do not edit - generated code. 17152 // WARNING: Do not edit - generated code.
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
17515 interface PageTransitionEvent extends Event { 17723 interface PageTransitionEvent extends Event {
17516 17724
17517 final bool persisted; 17725 final bool persisted;
17518 } 17726 }
17519 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17727 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17520 // for details. All rights reserved. Use of this source code is governed by a 17728 // for details. All rights reserved. Use of this source code is governed by a
17521 // BSD-style license that can be found in the LICENSE file. 17729 // BSD-style license that can be found in the LICENSE file.
17522 17730
17523 // WARNING: Do not edit - generated code. 17731 // WARNING: Do not edit - generated code.
17524 17732
17525 interface PeerConnection { 17733 interface PeerConnection default _PeerConnectionFactoryProvider {
17734
17735 PeerConnection(String serverConfiguration, SignalingCallback signalingCallback );
17526 17736
17527 static final int ACTIVE = 2; 17737 static final int ACTIVE = 2;
17528 17738
17529 static final int CLOSED = 3; 17739 static final int CLOSED = 3;
17530 17740
17531 static final int NEGOTIATING = 1; 17741 static final int NEGOTIATING = 1;
17532 17742
17533 static final int NEW = 0; 17743 static final int NEW = 0;
17534 17744
17535 final MediaStreamList localStreams; 17745 final MediaStreamList localStreams;
(...skipping 3103 matching lines...) Expand 10 before | Expand all | Expand 10 after
20639 final String url; 20849 final String url;
20640 20850
20641 final bool visible; 20851 final bool visible;
20642 } 20852 }
20643 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20853 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20644 // for details. All rights reserved. Use of this source code is governed by a 20854 // for details. All rights reserved. Use of this source code is governed by a
20645 // BSD-style license that can be found in the LICENSE file. 20855 // BSD-style license that can be found in the LICENSE file.
20646 20856
20647 // WARNING: Do not edit - generated code. 20857 // WARNING: Do not edit - generated code.
20648 20858
20649 interface ShadowRoot extends DocumentFragment { 20859 interface ShadowRoot extends DocumentFragment default _ShadowRootFactoryProvider {
20860
20861 ShadowRoot(Element host);
20650 20862
20651 final Element host; 20863 final Element host;
20652 20864
20653 Element getElementById(String elementId); 20865 Element getElementById(String elementId);
20654 20866
20655 NodeList getElementsByClassName(String className); 20867 NodeList getElementsByClassName(String className);
20656 20868
20657 NodeList getElementsByTagName(String tagName); 20869 NodeList getElementsByTagName(String tagName);
20658 20870
20659 NodeList getElementsByTagNameNS(String namespaceURI, String localName); 20871 NodeList getElementsByTagNameNS(String namespaceURI, String localName);
20660 } 20872 }
20661 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20873 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20662 // for details. All rights reserved. Use of this source code is governed by a 20874 // for details. All rights reserved. Use of this source code is governed by a
20663 // BSD-style license that can be found in the LICENSE file. 20875 // BSD-style license that can be found in the LICENSE file.
20664 20876
20665 // WARNING: Do not edit - generated code. 20877 // WARNING: Do not edit - generated code.
20666 20878
20667 interface SharedWorker extends AbstractWorker { 20879 interface SharedWorker extends AbstractWorker default _SharedWorkerFactoryProvid er {
20880
20881 SharedWorker(String scriptURL, [String name]);
20668 20882
20669 final MessagePort port; 20883 final MessagePort port;
20670 } 20884 }
20671 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20885 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20672 // for details. All rights reserved. Use of this source code is governed by a 20886 // for details. All rights reserved. Use of this source code is governed by a
20673 // BSD-style license that can be found in the LICENSE file. 20887 // BSD-style license that can be found in the LICENSE file.
20674 20888
20675 // WARNING: Do not edit - generated code. 20889 // WARNING: Do not edit - generated code.
20676 20890
20677 interface SharedWorkerGlobalScope extends WorkerContext { 20891 interface SharedWorkerGlobalScope extends WorkerContext {
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
20927 void removeCue(TextTrackCue cue); 21141 void removeCue(TextTrackCue cue);
20928 21142
20929 void removeEventListener(String type, EventListener listener, [bool useCapture ]); 21143 void removeEventListener(String type, EventListener listener, [bool useCapture ]);
20930 } 21144 }
20931 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21145 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20932 // for details. All rights reserved. Use of this source code is governed by a 21146 // for details. All rights reserved. Use of this source code is governed by a
20933 // BSD-style license that can be found in the LICENSE file. 21147 // BSD-style license that can be found in the LICENSE file.
20934 21148
20935 // WARNING: Do not edit - generated code. 21149 // WARNING: Do not edit - generated code.
20936 21150
20937 interface TextTrackCue { 21151 interface TextTrackCue default _TextTrackCueFactoryProvider {
21152
21153 TextTrackCue(String id, num startTime, num endTime, String text, [String setti ngs, bool pauseOnExit]);
20938 21154
20939 String alignment; 21155 String alignment;
20940 21156
20941 String direction; 21157 String direction;
20942 21158
20943 num endTime; 21159 num endTime;
20944 21160
20945 String id; 21161 String id;
20946 21162
20947 int linePosition; 21163 int linePosition;
(...skipping 1434 matching lines...) Expand 10 before | Expand all | Expand 10 after
22382 final int length; 22598 final int length;
22383 22599
22384 WebKitAnimation item(int index); 22600 WebKitAnimation item(int index);
22385 } 22601 }
22386 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22602 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22387 // for details. All rights reserved. Use of this source code is governed by a 22603 // for details. All rights reserved. Use of this source code is governed by a
22388 // BSD-style license that can be found in the LICENSE file. 22604 // BSD-style license that can be found in the LICENSE file.
22389 22605
22390 // WARNING: Do not edit - generated code. 22606 // WARNING: Do not edit - generated code.
22391 22607
22392 interface WebKitBlobBuilder { 22608 interface WebKitBlobBuilder default _WebKitBlobBuilderFactoryProvider {
22609
22610 WebKitBlobBuilder();
22393 22611
22394 void append(var arrayBuffer_OR_blob_OR_value, [String endings]); 22612 void append(var arrayBuffer_OR_blob_OR_value, [String endings]);
22395 22613
22396 Blob getBlob([String contentType]); 22614 Blob getBlob([String contentType]);
22397 } 22615 }
22398 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22616 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22399 // for details. All rights reserved. Use of this source code is governed by a 22617 // for details. All rights reserved. Use of this source code is governed by a
22400 // BSD-style license that can be found in the LICENSE file. 22618 // BSD-style license that can be found in the LICENSE file.
22401 22619
22402 // WARNING: Do not edit - generated code. 22620 // WARNING: Do not edit - generated code.
(...skipping 23 matching lines...) Expand all
22426 void insertRule(String rule); 22644 void insertRule(String rule);
22427 } 22645 }
22428 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22646 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22429 // for details. All rights reserved. Use of this source code is governed by a 22647 // for details. All rights reserved. Use of this source code is governed by a
22430 // BSD-style license that can be found in the LICENSE file. 22648 // BSD-style license that can be found in the LICENSE file.
22431 22649
22432 // WARNING: Do not edit - generated code. 22650 // WARNING: Do not edit - generated code.
22433 22651
22434 interface WebKitCSSMatrix default _WebKitCSSMatrixFactoryProvider { 22652 interface WebKitCSSMatrix default _WebKitCSSMatrixFactoryProvider {
22435 22653
22436 WebKitCSSMatrix([String spec]); 22654 WebKitCSSMatrix([String cssValue]);
22437 22655
22438 num a; 22656 num a;
22439 22657
22440 num b; 22658 num b;
22441 22659
22442 num c; 22660 num c;
22443 22661
22444 num d; 22662 num d;
22445 22663
22446 num e; 22664 num e;
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
22678 final int y; 22896 final int y;
22679 22897
22680 void initWebKitWheelEvent(int wheelDeltaX, int wheelDeltaY, DOMWindow view, in t screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, boo l shiftKey, bool metaKey); 22898 void initWebKitWheelEvent(int wheelDeltaX, int wheelDeltaY, DOMWindow view, in t screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, boo l shiftKey, bool metaKey);
22681 } 22899 }
22682 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22900 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22683 // for details. All rights reserved. Use of this source code is governed by a 22901 // for details. All rights reserved. Use of this source code is governed by a
22684 // BSD-style license that can be found in the LICENSE file. 22902 // BSD-style license that can be found in the LICENSE file.
22685 22903
22686 // WARNING: Do not edit - generated code. 22904 // WARNING: Do not edit - generated code.
22687 22905
22688 interface Worker extends AbstractWorker { 22906 interface Worker extends AbstractWorker default _WorkerFactoryProvider {
22907
22908 Worker(String scriptUrl);
22689 22909
22690 void postMessage(Dynamic message, [List messagePorts]); 22910 void postMessage(Dynamic message, [List messagePorts]);
22691 22911
22692 void terminate(); 22912 void terminate();
22693 22913
22694 void webkitPostMessage(Dynamic message, [List messagePorts]); 22914 void webkitPostMessage(Dynamic message, [List messagePorts]);
22695 } 22915 }
22696 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22916 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22697 // for details. All rights reserved. Use of this source code is governed by a 22917 // for details. All rights reserved. Use of this source code is governed by a
22698 // BSD-style license that can be found in the LICENSE file. 22918 // BSD-style license that can be found in the LICENSE file.
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
22797 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23017 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22798 // for details. All rights reserved. Use of this source code is governed by a 23018 // for details. All rights reserved. Use of this source code is governed by a
22799 // BSD-style license that can be found in the LICENSE file. 23019 // BSD-style license that can be found in the LICENSE file.
22800 23020
22801 // WARNING: Do not edit - generated code. 23021 // WARNING: Do not edit - generated code.
22802 23022
22803 interface XMLHttpRequest extends EventTarget default _XMLHttpRequestFactoryProvi der { 23023 interface XMLHttpRequest extends EventTarget default _XMLHttpRequestFactoryProvi der {
22804 23024
22805 XMLHttpRequest(); 23025 XMLHttpRequest();
22806 23026
22807
22808 static final int DONE = 4; 23027 static final int DONE = 4;
22809 23028
22810 static final int HEADERS_RECEIVED = 2; 23029 static final int HEADERS_RECEIVED = 2;
22811 23030
22812 static final int LOADING = 3; 23031 static final int LOADING = 3;
22813 23032
22814 static final int OPENED = 1; 23033 static final int OPENED = 1;
22815 23034
22816 static final int UNSENT = 0; 23035 static final int UNSENT = 0;
22817 23036
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
22902 bool dispatchEvent(Event evt); 23121 bool dispatchEvent(Event evt);
22903 23122
22904 void removeEventListener(String type, EventListener listener, [bool useCapture ]); 23123 void removeEventListener(String type, EventListener listener, [bool useCapture ]);
22905 } 23124 }
22906 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23125 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22907 // for details. All rights reserved. Use of this source code is governed by a 23126 // for details. All rights reserved. Use of this source code is governed by a
22908 // BSD-style license that can be found in the LICENSE file. 23127 // BSD-style license that can be found in the LICENSE file.
22909 23128
22910 // WARNING: Do not edit - generated code. 23129 // WARNING: Do not edit - generated code.
22911 23130
22912 interface XMLSerializer { 23131 interface XMLSerializer default _XMLSerializerFactoryProvider {
23132
23133 XMLSerializer();
22913 23134
22914 String serializeToString(Node node); 23135 String serializeToString(Node node);
22915 } 23136 }
22916 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23137 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22917 // for details. All rights reserved. Use of this source code is governed by a 23138 // for details. All rights reserved. Use of this source code is governed by a
22918 // BSD-style license that can be found in the LICENSE file. 23139 // BSD-style license that can be found in the LICENSE file.
22919 23140
22920 // WARNING: Do not edit - generated code. 23141 // WARNING: Do not edit - generated code.
22921 23142
22922 interface XPathEvaluator { 23143 interface XPathEvaluator default _XPathEvaluatorFactoryProvider {
23144
23145 XPathEvaluator();
22923 23146
22924 XPathExpression createExpression(String expression, XPathNSResolver resolver); 23147 XPathExpression createExpression(String expression, XPathNSResolver resolver);
22925 23148
22926 XPathNSResolver createNSResolver(Node nodeResolver); 23149 XPathNSResolver createNSResolver(Node nodeResolver);
22927 23150
22928 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso lver, int type, XPathResult inResult); 23151 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso lver, int type, XPathResult inResult);
22929 } 23152 }
22930 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23153 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22931 // for details. All rights reserved. Use of this source code is governed by a 23154 // for details. All rights reserved. Use of this source code is governed by a
22932 // BSD-style license that can be found in the LICENSE file. 23155 // BSD-style license that can be found in the LICENSE file.
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after
23688 // BSD-style license that can be found in the LICENSE file. 23911 // BSD-style license that can be found in the LICENSE file.
23689 23912
23690 class _AudioContextFactoryProvider { 23913 class _AudioContextFactoryProvider {
23691 23914
23692 factory AudioContext() native ''' 23915 factory AudioContext() native '''
23693 var constructor = window.AudioContext || window.webkitAudioContext; 23916 var constructor = window.AudioContext || window.webkitAudioContext;
23694 return new constructor(); 23917 return new constructor();
23695 '''; 23918 ''';
23696 } 23919 }
23697 23920
23698 class _DOMParserFactoryProvider {
23699
23700 factory DOMParser() native '''return new DOMParser();''';
23701 }
23702
23703 class _FileReaderFactoryProvider {
23704
23705 factory FileReader() native '''return new FileReader();''';
23706 }
23707
23708 class _TypedArrayFactoryProvider { 23921 class _TypedArrayFactoryProvider {
23709 23922
23710 factory Float32Array(int length) => _F32(length); 23923 factory Float32Array(int length) => _F32(length);
23711 factory Float32Array.fromList(List<num> list) => _F32(ensureNative(list)); 23924 factory Float32Array.fromList(List<num> list) => _F32(ensureNative(list));
23712 factory Float32Array.fromBuffer(ArrayBuffer buffer) => _F32(buffer); 23925 factory Float32Array.fromBuffer(ArrayBuffer buffer) => _F32(buffer);
23713 23926
23714 factory Float64Array(int length) => _F64(length); 23927 factory Float64Array(int length) => _F64(length);
23715 factory Float64Array.fromList(List<num> list) => _F64(ensureNative(list)); 23928 factory Float64Array.fromList(List<num> list) => _F64(ensureNative(list));
23716 factory Float64Array.fromBuffer(ArrayBuffer buffer) => _F64(buffer); 23929 factory Float64Array.fromBuffer(ArrayBuffer buffer) => _F64(buffer);
23717 23930
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
23749 static Int16Array _I16(arg) native 'return new Int16Array(arg);'; 23962 static Int16Array _I16(arg) native 'return new Int16Array(arg);';
23750 static Int32Array _I32(arg) native 'return new Int32Array(arg);'; 23963 static Int32Array _I32(arg) native 'return new Int32Array(arg);';
23751 static Uint8Array _U8(arg) native 'return new Uint8Array(arg);'; 23964 static Uint8Array _U8(arg) native 'return new Uint8Array(arg);';
23752 static Uint16Array _U16(arg) native 'return new Uint16Array(arg);'; 23965 static Uint16Array _U16(arg) native 'return new Uint16Array(arg);';
23753 static Uint32Array _U32(arg) native 'return new Uint32Array(arg);'; 23966 static Uint32Array _U32(arg) native 'return new Uint32Array(arg);';
23754 static Uint8ClampedArray _U8C(arg) native 'return new Uint8ClampedArray(arg);' ; 23967 static Uint8ClampedArray _U8C(arg) native 'return new Uint8ClampedArray(arg);' ;
23755 23968
23756 static ensureNative(List list) => list; // TODO: make sure. 23969 static ensureNative(List list) => list; // TODO: make sure.
23757 } 23970 }
23758 23971
23759 class _WebKitCSSMatrixFactoryProvider {
23760
23761 factory WebKitCSSMatrix([String spec = '']) native
23762 '''return new WebKitCSSMatrix(spec);''';
23763 }
23764
23765 class _WebKitPointFactoryProvider { 23972 class _WebKitPointFactoryProvider {
23766 23973
23767 factory WebKitPoint(num x, num y) native '''return new WebKitPoint(x, y);'''; 23974 factory WebKitPoint(num x, num y) native '''return new WebKitPoint(x, y);''';
23768 } 23975 }
23769 23976
23770 class _WebSocketFactoryProvider { 23977 class _WebSocketFactoryProvider {
23771 23978
23772 factory WebSocket(String url) native '''return new WebSocket(url);'''; 23979 factory WebSocket(String url) native '''return new WebSocket(url);''';
23773 } 23980 }
23774
23775 class _XMLHttpRequestFactoryProvider {
23776
23777 factory XMLHttpRequest() native '''return new XMLHttpRequest();''';
23778 }
23779
23780 class _XSLTProcessorFactoryProvider {
23781
23782 factory XSLTProcessor() native '''return new XSLTProcessor();''';
23783 }
23784 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 23981 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
23785 // for details. All rights reserved. Use of this source code is governed by a 23982 // for details. All rights reserved. Use of this source code is governed by a
23786 // BSD-style license that can be found in the LICENSE file. 23983 // BSD-style license that can be found in the LICENSE file.
23787 23984
23788 // Iterator for arrays with fixed size. 23985 // Iterator for arrays with fixed size.
23789 class _FixedSizeListIterator<T> extends _VariableSizeListIterator<T> { 23986 class _FixedSizeListIterator<T> extends _VariableSizeListIterator<T> {
23790 _FixedSizeListIterator(List<T> array) 23987 _FixedSizeListIterator(List<T> array)
23791 : super(array), 23988 : super(array),
23792 _length = array.length; 23989 _length = array.length;
23793 23990
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
23875 if (length < 0) throw new IllegalArgumentException('length'); 24072 if (length < 0) throw new IllegalArgumentException('length');
23876 if (start < 0) throw new IndexOutOfRangeException(start); 24073 if (start < 0) throw new IndexOutOfRangeException(start);
23877 int end = start + length; 24074 int end = start + length;
23878 if (end > a.length) throw new IndexOutOfRangeException(end); 24075 if (end > a.length) throw new IndexOutOfRangeException(end);
23879 for (int i = start; i < end; i++) { 24076 for (int i = start; i < end; i++) {
23880 accumulator.add(a[i]); 24077 accumulator.add(a[i]);
23881 } 24078 }
23882 return accumulator; 24079 return accumulator;
23883 } 24080 }
23884 } 24081 }
OLDNEW
« no previous file with comments | « client/dom/dom_frog.dart ('k') | client/dom/generated/src/dummy/RegularFactoryProviders.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698