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

Side by Side Diff: client/html/frog/html_frog.dart

Issue 9464002: Implement automatically generated constructors for frog and dartium dart:html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fixes Created 8 years, 9 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
OLDNEW
1 #library('html'); 1 #library('html');
2 2
3 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3 // Copyright (c) 2012, 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:html library. 8 // Auto-generated dart:html library.
9 9
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 } 48 }
49 return _cachedDocument; 49 return _cachedDocument;
50 } 50 }
51 51
52 _DocumentImpl get _document() native "return window.document.documentElement;"; 52 _DocumentImpl get _document() native "return window.document.documentElement;";
53 53
54 // Workaround for tags like <cite> that lack their own Element subclass -- 54 // Workaround for tags like <cite> that lack their own Element subclass --
55 // Dart issue 1990. 55 // Dart issue 1990.
56 class _HTMLElementImpl extends _ElementImpl native "*HTMLElement" { 56 class _HTMLElementImpl extends _ElementImpl native "*HTMLElement" {
57 } 57 }
58
58 class _AbstractWorkerImpl extends _EventTargetImpl implements AbstractWorker nat ive "*AbstractWorker" { 59 class _AbstractWorkerImpl extends _EventTargetImpl implements AbstractWorker nat ive "*AbstractWorker" {
59 60
60 _AbstractWorkerEventsImpl get on() => 61 _AbstractWorkerEventsImpl get on() =>
61 new _AbstractWorkerEventsImpl(this); 62 new _AbstractWorkerEventsImpl(this);
62 63
63 void _addEventListener(String type, EventListener listener, [bool useCapture = null]) native "this.addEventListener(type, listener, useCapture);"; 64 void _addEventListener(String type, EventListener listener, [bool useCapture = null]) native "this.addEventListener(type, listener, useCapture);";
64 65
65 bool _dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt);"; 66 bool _dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt);";
66 67
67 void _removeEventListener(String type, EventListener listener, [bool useCaptur e = null]) native "this.removeEventListener(type, listener, useCapture);"; 68 void _removeEventListener(String type, EventListener listener, [bool useCaptur e = null]) native "this.removeEventListener(type, listener, useCapture);";
(...skipping 15441 matching lines...) Expand 10 before | Expand all | Expand 10 after
15509 _DocumentImpl transformToDocument(_NodeImpl source) => _FixHtmlDocumentReferen ce(_transformToDocument(source)); 15510 _DocumentImpl transformToDocument(_NodeImpl source) => _FixHtmlDocumentReferen ce(_transformToDocument(source));
15510 15511
15511 _EventTargetImpl _transformToDocument(_NodeImpl source) native "return this.tr ansformToDocument(source);"; 15512 _EventTargetImpl _transformToDocument(_NodeImpl source) native "return this.tr ansformToDocument(source);";
15512 15513
15513 _DocumentFragmentImpl transformToFragment(_NodeImpl source, _DocumentImpl docV al) native; 15514 _DocumentFragmentImpl transformToFragment(_NodeImpl source, _DocumentImpl docV al) native;
15514 } 15515 }
15515 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15516 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15516 // for details. All rights reserved. Use of this source code is governed by a 15517 // for details. All rights reserved. Use of this source code is governed by a
15517 // BSD-style license that can be found in the LICENSE file. 15518 // BSD-style license that can be found in the LICENSE file.
15518 15519
15520 class _AudioElementFactoryProvider {
15521 factory AudioElement([String src = null]) native
15522 '''
15523 if (src == null) return new Audio();
15524 return new Audio(src);
15525 ''';
15526 }
15527 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15528 // for details. All rights reserved. Use of this source code is governed by a
15529 // BSD-style license that can be found in the LICENSE file.
15530
15531 class _BlobBuilderFactoryProvider {
15532 factory BlobBuilder() native
15533 '''return new BlobBuilder();''';
15534 }
15535 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15536 // for details. All rights reserved. Use of this source code is governed by a
15537 // BSD-style license that can be found in the LICENSE file.
15538
15539 class _CSSMatrixFactoryProvider {
15540 factory CSSMatrix([String cssValue = '']) native
15541 'return new WebKitCSSMatrix(cssValue);';
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 class _DOMParserFactoryProvider {
15548 factory DOMParser() native
15549 '''return new DOMParser();''';
15550 }
15551 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15552 // for details. All rights reserved. Use of this source code is governed by a
15553 // BSD-style license that can be found in the LICENSE file.
15554
15555 class _DOMURLFactoryProvider {
15556 factory DOMURL() native
15557 '''return new DOMURL();''';
15558 }
15559 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15560 // for details. All rights reserved. Use of this source code is governed by a
15561 // BSD-style license that can be found in the LICENSE file.
15562
15563 class _EventSourceFactoryProvider {
15564 factory EventSource(String scriptUrl) native
15565 '''return new EventSource(scriptUrl);''';
15566 }
15567 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15568 // for details. All rights reserved. Use of this source code is governed by a
15569 // BSD-style license that can be found in the LICENSE file.
15570
15571 class _FileReaderFactoryProvider {
15572 factory FileReader() native
15573 '''return new FileReader();''';
15574 }
15575 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15576 // for details. All rights reserved. Use of this source code is governed by a
15577 // BSD-style license that can be found in the LICENSE file.
15578
15579 class _FileReaderSyncFactoryProvider {
15580 factory FileReaderSync() native
15581 '''return new FileReaderSync();''';
15582 }
15583 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15584 // for details. All rights reserved. Use of this source code is governed by a
15585 // BSD-style license that can be found in the LICENSE file.
15586
15587 class _MediaControllerFactoryProvider {
15588 factory MediaController() native
15589 '''return new MediaController();''';
15590 }
15591 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15592 // for details. All rights reserved. Use of this source code is governed by a
15593 // BSD-style license that can be found in the LICENSE file.
15594
15595 class _MediaStreamFactoryProvider {
15596 factory MediaStream(MediaStreamTrackList audioTracks, MediaStreamTrackList vid eoTracks) native
15597 '''return new MediaStream(audioTracks, videoTracks);''';
15598 }
15599 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15600 // for details. All rights reserved. Use of this source code is governed by a
15601 // BSD-style license that can be found in the LICENSE file.
15602
15603 class _MessageChannelFactoryProvider {
15604 factory MessageChannel() native
15605 '''return new MessageChannel();''';
15606 }
15607 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15608 // for details. All rights reserved. Use of this source code is governed by a
15609 // BSD-style license that can be found in the LICENSE file.
15610
15611 class _OptionElementFactoryProvider {
15612 factory OptionElement([String data = null, String value = null,
15613 bool defaultSelected = null, bool selected = null])
15614 native
15615 '''
15616 if (data == null) return new Option();
15617 if (value == null) return new Option(data);
15618 if (defaultSelected == null) return new Option(data, value);
15619 if (selected == null) return new Option(data, value, defaultSelected);
15620 return new Option(data, value, defaultSelected, selected);
15621 ''';
15622 }
15623 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15624 // for details. All rights reserved. Use of this source code is governed by a
15625 // BSD-style license that can be found in the LICENSE file.
15626
15627 class _PeerConnectionFactoryProvider {
15628 factory PeerConnection(String serverConfiguration, SignalingCallback signaling Callback) native
15629 '''return new PeerConnection(serverConfiguration, signalingCallback);''';
15630 }
15631 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15632 // for details. All rights reserved. Use of this source code is governed by a
15633 // BSD-style license that can be found in the LICENSE file.
15634
15635 class _ShadowRootFactoryProvider {
15636 factory ShadowRoot(Element host) native
15637 '''return new ShadowRoot(host);''';
15638 }
15639 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15640 // for details. All rights reserved. Use of this source code is governed by a
15641 // BSD-style license that can be found in the LICENSE file.
15642
15643 class _SharedWorkerFactoryProvider {
15644 factory SharedWorker(String scriptURL, [String name]) native
15645 '''
15646 if (name == null) return new SharedWorker(scriptURL);
15647 return new SharedWorker(scriptURL, name);
15648 ''';
15649 }
15650 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15651 // for details. All rights reserved. Use of this source code is governed by a
15652 // BSD-style license that can be found in the LICENSE file.
15653
15654 class _TextTrackCueFactoryProvider {
15655 factory TextTrackCue(String id, num startTime, num endTime, String text,
15656 [String settings, bool pauseOnExit]) native
15657 '''
15658 if (settings == null)
15659 return new TextTrackCue(id, startTime, endTime, text);
15660 if (pauseOnExit == null)
15661 return new TextTrackCue(id, startTime, endTime, text, settings);
15662 return new TextTrackCue(id, startTime, endTime, text, settings, pauseOnExit);
15663 ''';
15664 }
15665 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15666 // for details. All rights reserved. Use of this source code is governed by a
15667 // BSD-style license that can be found in the LICENSE file.
15668
15669 class _WorkerFactoryProvider {
15670 factory Worker(String scriptUrl) native
15671 '''return new Worker(scriptUrl);''';
15672 }
15673 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15674 // for details. All rights reserved. Use of this source code is governed by a
15675 // BSD-style license that can be found in the LICENSE file.
15676
15677 class _XMLHttpRequestFactoryProvider {
15678 factory XMLHttpRequest() native 'return new XMLHttpRequest();';
15679
15680 factory XMLHttpRequest.getTEMPNAME(String url,
15681 onSuccess(XMLHttpRequest request)) =>
15682 _XMLHttpRequestUtils.getTEMPNAME(url, onSuccess);
15683 }
15684 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15685 // for details. All rights reserved. Use of this source code is governed by a
15686 // BSD-style license that can be found in the LICENSE file.
15687
15688 class _XMLSerializerFactoryProvider {
15689 factory XMLSerializer() native
15690 '''return new XMLSerializer();''';
15691 }
15692 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15693 // for details. All rights reserved. Use of this source code is governed by a
15694 // BSD-style license that can be found in the LICENSE file.
15695
15696 class _XPathEvaluatorFactoryProvider {
15697 factory XPathEvaluator() native
15698 '''return new XPathEvaluator();''';
15699 }
15700 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15701 // for details. All rights reserved. Use of this source code is governed by a
15702 // BSD-style license that can be found in the LICENSE file.
15703
15704 class _XSLTProcessorFactoryProvider {
15705 factory XSLTProcessor() native
15706 '''return new XSLTProcessor();''';
15707 }
15708 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15709 // for details. All rights reserved. Use of this source code is governed by a
15710 // BSD-style license that can be found in the LICENSE file.
15711
15519 // WARNING: Do not edit - generated code. 15712 // WARNING: Do not edit - generated code.
15520 15713
15521 interface AbstractWorker extends EventTarget { 15714 interface AbstractWorker extends EventTarget {
15522 15715
15523 AbstractWorkerEvents get on(); 15716 AbstractWorkerEvents get on();
15524 15717
15525 void _addEventListener(String type, EventListener listener, [bool useCapture]) ; 15718 void _addEventListener(String type, EventListener listener, [bool useCapture]) ;
15526 15719
15527 bool _dispatchEvent(Event evt); 15720 bool _dispatchEvent(Event evt);
15528 15721
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
15889 interface AudioDestinationNode extends AudioNode { 16082 interface AudioDestinationNode extends AudioNode {
15890 16083
15891 final int numberOfChannels; 16084 final int numberOfChannels;
15892 } 16085 }
15893 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16086 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15894 // for details. All rights reserved. Use of this source code is governed by a 16087 // for details. All rights reserved. Use of this source code is governed by a
15895 // BSD-style license that can be found in the LICENSE file. 16088 // BSD-style license that can be found in the LICENSE file.
15896 16089
15897 // WARNING: Do not edit - generated code. 16090 // WARNING: Do not edit - generated code.
15898 16091
15899 interface AudioElement extends MediaElement { 16092 interface AudioElement extends MediaElement default _AudioElementFactoryProvider {
16093
16094 AudioElement([String src]);
15900 } 16095 }
15901 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16096 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15902 // for details. All rights reserved. Use of this source code is governed by a 16097 // for details. All rights reserved. Use of this source code is governed by a
15903 // BSD-style license that can be found in the LICENSE file. 16098 // BSD-style license that can be found in the LICENSE file.
15904 16099
15905 // WARNING: Do not edit - generated code. 16100 // WARNING: Do not edit - generated code.
15906 16101
15907 interface AudioGain extends AudioParam { 16102 interface AudioGain extends AudioParam {
15908 } 16103 }
15909 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16104 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
16153 final String type; 16348 final String type;
16154 16349
16155 Blob webkitSlice([int start, int end, String contentType]); 16350 Blob webkitSlice([int start, int end, String contentType]);
16156 } 16351 }
16157 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16352 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16158 // for details. All rights reserved. Use of this source code is governed by a 16353 // for details. All rights reserved. Use of this source code is governed by a
16159 // BSD-style license that can be found in the LICENSE file. 16354 // BSD-style license that can be found in the LICENSE file.
16160 16355
16161 // WARNING: Do not edit - generated code. 16356 // WARNING: Do not edit - generated code.
16162 16357
16163 interface BlobBuilder { 16358 interface BlobBuilder default _BlobBuilderFactoryProvider {
16359
16360 BlobBuilder();
16164 16361
16165 void append(var arrayBuffer_OR_blob_OR_value, [String endings]); 16362 void append(var arrayBuffer_OR_blob_OR_value, [String endings]);
16166 16363
16167 Blob getBlob([String contentType]); 16364 Blob getBlob([String contentType]);
16168 } 16365 }
16169 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16366 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16170 // for details. All rights reserved. Use of this source code is governed by a 16367 // for details. All rights reserved. Use of this source code is governed by a
16171 // BSD-style license that can be found in the LICENSE file. 16368 // BSD-style license that can be found in the LICENSE file.
16172 16369
16173 // WARNING: Do not edit - generated code. 16370 // WARNING: Do not edit - generated code.
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
16328 CSSKeyframeRule findRule(String key); 16525 CSSKeyframeRule findRule(String key);
16329 16526
16330 void insertRule(String rule); 16527 void insertRule(String rule);
16331 } 16528 }
16332 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16529 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16333 // for details. All rights reserved. Use of this source code is governed by a 16530 // for details. All rights reserved. Use of this source code is governed by a
16334 // BSD-style license that can be found in the LICENSE file. 16531 // BSD-style license that can be found in the LICENSE file.
16335 16532
16336 // WARNING: Do not edit - generated code. 16533 // WARNING: Do not edit - generated code.
16337 16534
16338 interface CSSMatrix { 16535 interface CSSMatrix default _CSSMatrixFactoryProvider {
16536
16537 CSSMatrix([String cssValue]);
16339 16538
16340 num a; 16539 num a;
16341 16540
16342 num b; 16541 num b;
16343 16542
16344 num c; 16543 num c;
16345 16544
16346 num d; 16545 num d;
16347 16546
16348 num e; 16547 num e;
(...skipping 2846 matching lines...) Expand 10 before | Expand all | Expand 10 after
19195 DOMMimeType item(int index); 19394 DOMMimeType item(int index);
19196 19395
19197 DOMMimeType namedItem(String name); 19396 DOMMimeType namedItem(String name);
19198 } 19397 }
19199 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19398 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19200 // for details. All rights reserved. Use of this source code is governed by a 19399 // for details. All rights reserved. Use of this source code is governed by a
19201 // BSD-style license that can be found in the LICENSE file. 19400 // BSD-style license that can be found in the LICENSE file.
19202 19401
19203 // WARNING: Do not edit - generated code. 19402 // WARNING: Do not edit - generated code.
19204 19403
19205 interface DOMParser { 19404 interface DOMParser default _DOMParserFactoryProvider {
19405
19406 DOMParser();
19206 19407
19207 Document parseFromString(String str, String contentType); 19408 Document parseFromString(String str, String contentType);
19208 } 19409 }
19209 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19410 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19210 // for details. All rights reserved. Use of this source code is governed by a 19411 // for details. All rights reserved. Use of this source code is governed by a
19211 // BSD-style license that can be found in the LICENSE file. 19412 // BSD-style license that can be found in the LICENSE file.
19212 19413
19213 // WARNING: Do not edit - generated code. 19414 // WARNING: Do not edit - generated code.
19214 19415
19215 interface DOMPlugin { 19416 interface DOMPlugin {
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
19333 String toString(); 19534 String toString();
19334 19535
19335 bool toggle(String token); 19536 bool toggle(String token);
19336 } 19537 }
19337 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19538 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19338 // for details. All rights reserved. Use of this source code is governed by a 19539 // for details. All rights reserved. Use of this source code is governed by a
19339 // BSD-style license that can be found in the LICENSE file. 19540 // BSD-style license that can be found in the LICENSE file.
19340 19541
19341 // WARNING: Do not edit - generated code. 19542 // WARNING: Do not edit - generated code.
19342 19543
19343 interface DOMURL { 19544 interface DOMURL default _DOMURLFactoryProvider {
19545
19546 DOMURL();
19344 } 19547 }
19345 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19548 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19346 // for details. All rights reserved. Use of this source code is governed by a 19549 // for details. All rights reserved. Use of this source code is governed by a
19347 // BSD-style license that can be found in the LICENSE file. 19550 // BSD-style license that can be found in the LICENSE file.
19348 19551
19349 // WARNING: Do not edit - generated code. 19552 // WARNING: Do not edit - generated code.
19350 19553
19351 interface DataTransferItem { 19554 interface DataTransferItem {
19352 19555
19353 final String kind; 19556 final String kind;
(...skipping 1275 matching lines...) Expand 10 before | Expand all | Expand 10 after
20629 final String name; 20832 final String name;
20630 20833
20631 String toString(); 20834 String toString();
20632 } 20835 }
20633 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20836 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20634 // for details. All rights reserved. Use of this source code is governed by a 20837 // for details. All rights reserved. Use of this source code is governed by a
20635 // BSD-style license that can be found in the LICENSE file. 20838 // BSD-style license that can be found in the LICENSE file.
20636 20839
20637 // WARNING: Do not edit - generated code. 20840 // WARNING: Do not edit - generated code.
20638 20841
20639 interface EventSource extends EventTarget { 20842 interface EventSource extends EventTarget default _EventSourceFactoryProvider {
20843
20844 EventSource(String scriptUrl);
20640 20845
20641 static final int CLOSED = 2; 20846 static final int CLOSED = 2;
20642 20847
20643 static final int CONNECTING = 0; 20848 static final int CONNECTING = 0;
20644 20849
20645 static final int OPEN = 1; 20850 static final int OPEN = 1;
20646 20851
20647 final String URL; 20852 final String URL;
20648 20853
20649 final int readyState; 20854 final int readyState;
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
20852 final int length; 21057 final int length;
20853 21058
20854 File item(int index); 21059 File item(int index);
20855 } 21060 }
20856 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21061 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20857 // for details. All rights reserved. Use of this source code is governed by a 21062 // for details. All rights reserved. Use of this source code is governed by a
20858 // BSD-style license that can be found in the LICENSE file. 21063 // BSD-style license that can be found in the LICENSE file.
20859 21064
20860 // WARNING: Do not edit - generated code. 21065 // WARNING: Do not edit - generated code.
20861 21066
20862 interface FileReader { 21067 interface FileReader default _FileReaderFactoryProvider {
21068
21069 FileReader();
20863 21070
20864 static final int DONE = 2; 21071 static final int DONE = 2;
20865 21072
20866 static final int EMPTY = 0; 21073 static final int EMPTY = 0;
20867 21074
20868 static final int LOADING = 1; 21075 static final int LOADING = 1;
20869 21076
20870 final FileError error; 21077 final FileError error;
20871 21078
20872 EventListener onabort; 21079 EventListener onabort;
(...skipping 27 matching lines...) Expand all
20900 void readAsText(Blob blob, [String encoding]); 21107 void readAsText(Blob blob, [String encoding]);
20901 21108
20902 void removeEventListener(String type, EventListener listener, [bool useCapture ]); 21109 void removeEventListener(String type, EventListener listener, [bool useCapture ]);
20903 } 21110 }
20904 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21111 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20905 // for details. All rights reserved. Use of this source code is governed by a 21112 // for details. All rights reserved. Use of this source code is governed by a
20906 // BSD-style license that can be found in the LICENSE file. 21113 // BSD-style license that can be found in the LICENSE file.
20907 21114
20908 // WARNING: Do not edit - generated code. 21115 // WARNING: Do not edit - generated code.
20909 21116
20910 interface FileReaderSync { 21117 interface FileReaderSync default _FileReaderSyncFactoryProvider {
21118
21119 FileReaderSync();
20911 21120
20912 ArrayBuffer readAsArrayBuffer(Blob blob); 21121 ArrayBuffer readAsArrayBuffer(Blob blob);
20913 21122
20914 String readAsBinaryString(Blob blob); 21123 String readAsBinaryString(Blob blob);
20915 21124
20916 String readAsDataURL(Blob blob); 21125 String readAsDataURL(Blob blob);
20917 21126
20918 String readAsText(Blob blob, [String encoding]); 21127 String readAsText(Blob blob, [String encoding]);
20919 } 21128 }
20920 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 21129 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
(...skipping 1297 matching lines...) Expand 10 before | Expand all | Expand 10 after
22218 void start(); 22427 void start();
22219 22428
22220 void stop(); 22429 void stop();
22221 } 22430 }
22222 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22431 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22223 // for details. All rights reserved. Use of this source code is governed by a 22432 // for details. All rights reserved. Use of this source code is governed by a
22224 // BSD-style license that can be found in the LICENSE file. 22433 // BSD-style license that can be found in the LICENSE file.
22225 22434
22226 // WARNING: Do not edit - generated code. 22435 // WARNING: Do not edit - generated code.
22227 22436
22228 interface MediaController { 22437 interface MediaController default _MediaControllerFactoryProvider {
22438
22439 MediaController();
22229 22440
22230 final TimeRanges buffered; 22441 final TimeRanges buffered;
22231 22442
22232 num currentTime; 22443 num currentTime;
22233 22444
22234 num defaultPlaybackRate; 22445 num defaultPlaybackRate;
22235 22446
22236 final num duration; 22447 final num duration;
22237 22448
22238 bool muted; 22449 bool muted;
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
22448 interface MediaQueryListListener { 22659 interface MediaQueryListListener {
22449 22660
22450 void queryChanged(MediaQueryList list); 22661 void queryChanged(MediaQueryList list);
22451 } 22662 }
22452 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22663 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22453 // for details. All rights reserved. Use of this source code is governed by a 22664 // for details. All rights reserved. Use of this source code is governed by a
22454 // BSD-style license that can be found in the LICENSE file. 22665 // BSD-style license that can be found in the LICENSE file.
22455 22666
22456 // WARNING: Do not edit - generated code. 22667 // WARNING: Do not edit - generated code.
22457 22668
22458 interface MediaStream { 22669 interface MediaStream default _MediaStreamFactoryProvider {
22670
22671 MediaStream(MediaStreamTrackList audioTracks, MediaStreamTrackList videoTracks );
22459 22672
22460 static final int ENDED = 2; 22673 static final int ENDED = 2;
22461 22674
22462 static final int LIVE = 1; 22675 static final int LIVE = 1;
22463 22676
22464 final MediaStreamTrackList audioTracks; 22677 final MediaStreamTrackList audioTracks;
22465 22678
22466 final String label; 22679 final String label;
22467 22680
22468 EventListener onended; 22681 EventListener onended;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
22548 interface MenuElement extends Element { 22761 interface MenuElement extends Element {
22549 22762
22550 bool compact; 22763 bool compact;
22551 } 22764 }
22552 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22765 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22553 // for details. All rights reserved. Use of this source code is governed by a 22766 // for details. All rights reserved. Use of this source code is governed by a
22554 // BSD-style license that can be found in the LICENSE file. 22767 // BSD-style license that can be found in the LICENSE file.
22555 22768
22556 // WARNING: Do not edit - generated code. 22769 // WARNING: Do not edit - generated code.
22557 22770
22558 interface MessageChannel { 22771 interface MessageChannel default _MessageChannelFactoryProvider {
22772
22773 MessageChannel();
22559 22774
22560 final MessagePort port1; 22775 final MessagePort port1;
22561 22776
22562 final MessagePort port2; 22777 final MessagePort port2;
22563 } 22778 }
22564 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22779 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22565 // for details. All rights reserved. Use of this source code is governed by a 22780 // for details. All rights reserved. Use of this source code is governed by a
22566 // BSD-style license that can be found in the LICENSE file. 22781 // BSD-style license that can be found in the LICENSE file.
22567 22782
22568 // WARNING: Do not edit - generated code. 22783 // WARNING: Do not edit - generated code.
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
23242 bool disabled; 23457 bool disabled;
23243 23458
23244 String label; 23459 String label;
23245 } 23460 }
23246 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23461 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23247 // for details. All rights reserved. Use of this source code is governed by a 23462 // for details. All rights reserved. Use of this source code is governed by a
23248 // BSD-style license that can be found in the LICENSE file. 23463 // BSD-style license that can be found in the LICENSE file.
23249 23464
23250 // WARNING: Do not edit - generated code. 23465 // WARNING: Do not edit - generated code.
23251 23466
23252 interface OptionElement extends Element { 23467 interface OptionElement extends Element default _OptionElementFactoryProvider {
23468
23469 OptionElement([String data, String value, bool defaultSelected, bool selected] );
23253 23470
23254 bool defaultSelected; 23471 bool defaultSelected;
23255 23472
23256 bool disabled; 23473 bool disabled;
23257 23474
23258 final FormElement form; 23475 final FormElement form;
23259 23476
23260 final int index; 23477 final int index;
23261 23478
23262 String label; 23479 String label;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
23352 String value; 23569 String value;
23353 23570
23354 String valueType; 23571 String valueType;
23355 } 23572 }
23356 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23573 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23357 // for details. All rights reserved. Use of this source code is governed by a 23574 // for details. All rights reserved. Use of this source code is governed by a
23358 // BSD-style license that can be found in the LICENSE file. 23575 // BSD-style license that can be found in the LICENSE file.
23359 23576
23360 // WARNING: Do not edit - generated code. 23577 // WARNING: Do not edit - generated code.
23361 23578
23362 interface PeerConnection { 23579 interface PeerConnection default _PeerConnectionFactoryProvider {
23580
23581 PeerConnection(String serverConfiguration, SignalingCallback signalingCallback );
23363 23582
23364 static final int ACTIVE = 2; 23583 static final int ACTIVE = 2;
23365 23584
23366 static final int CLOSED = 3; 23585 static final int CLOSED = 3;
23367 23586
23368 static final int NEGOTIATING = 1; 23587 static final int NEGOTIATING = 1;
23369 23588
23370 static final int NEW = 0; 23589 static final int NEW = 0;
23371 23590
23372 final MediaStreamList localStreams; 23591 final MediaStreamList localStreams;
(...skipping 3322 matching lines...) Expand 10 before | Expand all | Expand 10 after
26695 // WARNING: Do not edit - generated code. 26914 // WARNING: Do not edit - generated code.
26696 26915
26697 interface ShadowElement extends Element { 26916 interface ShadowElement extends Element {
26698 } 26917 }
26699 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 26918 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26700 // for details. All rights reserved. Use of this source code is governed by a 26919 // for details. All rights reserved. Use of this source code is governed by a
26701 // BSD-style license that can be found in the LICENSE file. 26920 // BSD-style license that can be found in the LICENSE file.
26702 26921
26703 // WARNING: Do not edit - generated code. 26922 // WARNING: Do not edit - generated code.
26704 26923
26705 interface ShadowRoot extends DocumentFragment { 26924 interface ShadowRoot extends DocumentFragment default _ShadowRootFactoryProvider {
26925
26926 ShadowRoot(Element host);
26706 26927
26707 final Element host; 26928 final Element host;
26708 26929
26709 Element getElementById(String elementId); 26930 Element getElementById(String elementId);
26710 26931
26711 NodeList getElementsByClassName(String className); 26932 NodeList getElementsByClassName(String className);
26712 26933
26713 NodeList getElementsByTagName(String tagName); 26934 NodeList getElementsByTagName(String tagName);
26714 26935
26715 NodeList getElementsByTagNameNS(String namespaceURI, String localName); 26936 NodeList getElementsByTagNameNS(String namespaceURI, String localName);
26716 } 26937 }
26717 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 26938 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26718 // for details. All rights reserved. Use of this source code is governed by a 26939 // for details. All rights reserved. Use of this source code is governed by a
26719 // BSD-style license that can be found in the LICENSE file. 26940 // BSD-style license that can be found in the LICENSE file.
26720 26941
26721 // WARNING: Do not edit - generated code. 26942 // WARNING: Do not edit - generated code.
26722 26943
26723 interface SharedWorker extends AbstractWorker { 26944 interface SharedWorker extends AbstractWorker default _SharedWorkerFactoryProvid er {
26945
26946 SharedWorker(String scriptURL, [String name]);
26724 26947
26725 final MessagePort port; 26948 final MessagePort port;
26726 } 26949 }
26727 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 26950 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26728 // for details. All rights reserved. Use of this source code is governed by a 26951 // for details. All rights reserved. Use of this source code is governed by a
26729 // BSD-style license that can be found in the LICENSE file. 26952 // BSD-style license that can be found in the LICENSE file.
26730 26953
26731 // WARNING: Do not edit - generated code. 26954 // WARNING: Do not edit - generated code.
26732 26955
26733 interface SharedWorkerContext extends WorkerContext { 26956 interface SharedWorkerContext extends WorkerContext {
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
27250 void removeCue(TextTrackCue cue); 27473 void removeCue(TextTrackCue cue);
27251 27474
27252 void removeEventListener(String type, EventListener listener, [bool useCapture ]); 27475 void removeEventListener(String type, EventListener listener, [bool useCapture ]);
27253 } 27476 }
27254 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 27477 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27255 // for details. All rights reserved. Use of this source code is governed by a 27478 // for details. All rights reserved. Use of this source code is governed by a
27256 // BSD-style license that can be found in the LICENSE file. 27479 // BSD-style license that can be found in the LICENSE file.
27257 27480
27258 // WARNING: Do not edit - generated code. 27481 // WARNING: Do not edit - generated code.
27259 27482
27260 interface TextTrackCue { 27483 interface TextTrackCue default _TextTrackCueFactoryProvider {
27484
27485 TextTrackCue(String id, num startTime, num endTime, String text, [String setti ngs, bool pauseOnExit]);
27261 27486
27262 String alignment; 27487 String alignment;
27263 27488
27264 String direction; 27489 String direction;
27265 27490
27266 num endTime; 27491 num endTime;
27267 27492
27268 String id; 27493 String id;
27269 27494
27270 int linePosition; 27495 int linePosition;
(...skipping 1949 matching lines...) Expand 10 before | Expand all | Expand 10 after
29220 EventListenerList get volumeChange(); 29445 EventListenerList get volumeChange();
29221 29446
29222 EventListenerList get waiting(); 29447 EventListenerList get waiting();
29223 } 29448 }
29224 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 29449 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
29225 // for details. All rights reserved. Use of this source code is governed by a 29450 // for details. All rights reserved. Use of this source code is governed by a
29226 // BSD-style license that can be found in the LICENSE file. 29451 // BSD-style license that can be found in the LICENSE file.
29227 29452
29228 // WARNING: Do not edit - generated code. 29453 // WARNING: Do not edit - generated code.
29229 29454
29230 interface Worker extends AbstractWorker { 29455 interface Worker extends AbstractWorker default _WorkerFactoryProvider {
29456
29457 Worker(String scriptUrl);
29231 29458
29232 WorkerEvents get on(); 29459 WorkerEvents get on();
29233 29460
29234 void postMessage(Dynamic message, [List messagePorts]); 29461 void postMessage(Dynamic message, [List messagePorts]);
29235 29462
29236 void terminate(); 29463 void terminate();
29237 29464
29238 void webkitPostMessage(Dynamic message, [List messagePorts]); 29465 void webkitPostMessage(Dynamic message, [List messagePorts]);
29239 } 29466 }
29240 29467
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
29340 29567
29341 final String userAgent; 29568 final String userAgent;
29342 } 29569 }
29343 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 29570 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
29344 // for details. All rights reserved. Use of this source code is governed by a 29571 // for details. All rights reserved. Use of this source code is governed by a
29345 // BSD-style license that can be found in the LICENSE file. 29572 // BSD-style license that can be found in the LICENSE file.
29346 29573
29347 // WARNING: Do not edit - generated code. 29574 // WARNING: Do not edit - generated code.
29348 29575
29349 interface XMLHttpRequest extends EventTarget default _XMLHttpRequestFactoryProvi der { 29576 interface XMLHttpRequest extends EventTarget default _XMLHttpRequestFactoryProvi der {
29350
29351 XMLHttpRequest();
29352
29353 // TODO(rnystrom): This name should just be "get" which is valid in Dart, but 29577 // TODO(rnystrom): This name should just be "get" which is valid in Dart, but
29354 // not correctly implemented yet. (b/4970173) 29578 // not correctly implemented yet. (b/4970173)
29355 XMLHttpRequest.getTEMPNAME(String url, onSuccess(XMLHttpRequest request)); 29579 XMLHttpRequest.getTEMPNAME(String url, onSuccess(XMLHttpRequest request));
29356 29580
29581 XMLHttpRequest();
29582
29357 static final int DONE = 4; 29583 static final int DONE = 4;
29358 29584
29359 static final int HEADERS_RECEIVED = 2; 29585 static final int HEADERS_RECEIVED = 2;
29360 29586
29361 static final int LOADING = 3; 29587 static final int LOADING = 3;
29362 29588
29363 static final int OPENED = 1; 29589 static final int OPENED = 1;
29364 29590
29365 static final int UNSENT = 0; 29591 static final int UNSENT = 0;
29366 29592
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
29487 EventListenerList get loadStart(); 29713 EventListenerList get loadStart();
29488 29714
29489 EventListenerList get progress(); 29715 EventListenerList get progress();
29490 } 29716 }
29491 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 29717 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
29492 // for details. All rights reserved. Use of this source code is governed by a 29718 // for details. All rights reserved. Use of this source code is governed by a
29493 // BSD-style license that can be found in the LICENSE file. 29719 // BSD-style license that can be found in the LICENSE file.
29494 29720
29495 // WARNING: Do not edit - generated code. 29721 // WARNING: Do not edit - generated code.
29496 29722
29497 interface XMLSerializer { 29723 interface XMLSerializer default _XMLSerializerFactoryProvider {
29724
29725 XMLSerializer();
29498 29726
29499 String serializeToString(Node node); 29727 String serializeToString(Node node);
29500 } 29728 }
29501 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 29729 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
29502 // for details. All rights reserved. Use of this source code is governed by a 29730 // for details. All rights reserved. Use of this source code is governed by a
29503 // BSD-style license that can be found in the LICENSE file. 29731 // BSD-style license that can be found in the LICENSE file.
29504 29732
29505 // WARNING: Do not edit - generated code. 29733 // WARNING: Do not edit - generated code.
29506 29734
29507 interface XPathEvaluator { 29735 interface XPathEvaluator default _XPathEvaluatorFactoryProvider {
29736
29737 XPathEvaluator();
29508 29738
29509 XPathExpression createExpression(String expression, XPathNSResolver resolver); 29739 XPathExpression createExpression(String expression, XPathNSResolver resolver);
29510 29740
29511 XPathNSResolver createNSResolver(Node nodeResolver); 29741 XPathNSResolver createNSResolver(Node nodeResolver);
29512 29742
29513 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso lver, int type, XPathResult inResult); 29743 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso lver, int type, XPathResult inResult);
29514 } 29744 }
29515 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 29745 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
29516 // for details. All rights reserved. Use of this source code is governed by a 29746 // for details. All rights reserved. Use of this source code is governed by a
29517 // BSD-style license that can be found in the LICENSE file. 29747 // BSD-style license that can be found in the LICENSE file.
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
29597 Node iterateNext(); 29827 Node iterateNext();
29598 29828
29599 Node snapshotItem(int index); 29829 Node snapshotItem(int index);
29600 } 29830 }
29601 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 29831 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
29602 // for details. All rights reserved. Use of this source code is governed by a 29832 // for details. All rights reserved. Use of this source code is governed by a
29603 // BSD-style license that can be found in the LICENSE file. 29833 // BSD-style license that can be found in the LICENSE file.
29604 29834
29605 // WARNING: Do not edit - generated code. 29835 // WARNING: Do not edit - generated code.
29606 29836
29607 interface XSLTProcessor { 29837 interface XSLTProcessor default _XSLTProcessorFactoryProvider {
29838
29839 XSLTProcessor();
29608 29840
29609 void clearParameters(); 29841 void clearParameters();
29610 29842
29611 String getParameter(String namespaceURI, String localName); 29843 String getParameter(String namespaceURI, String localName);
29612 29844
29613 void importStylesheet(Node stylesheet); 29845 void importStylesheet(Node stylesheet);
29614 29846
29615 void removeParameter(String namespaceURI, String localName); 29847 void removeParameter(String namespaceURI, String localName);
29616 29848
29617 void reset(); 29849 void reset();
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
30243 } 30475 }
30244 30476
30245 static bool isEmpty(Iterable<Object> iterable) { 30477 static bool isEmpty(Iterable<Object> iterable) {
30246 return !iterable.iterator().hasNext(); 30478 return !iterable.iterator().hasNext();
30247 } 30479 }
30248 } 30480 }
30249 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 30481 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
30250 // for details. All rights reserved. Use of this source code is governed by a 30482 // for details. All rights reserved. Use of this source code is governed by a
30251 // BSD-style license that can be found in the LICENSE file. 30483 // BSD-style license that can be found in the LICENSE file.
30252 30484
30485 class _XMLHttpRequestUtils {
30486
30487 // Helper for factory XMLHttpRequest.getTEMPNAME
30488 static XMLHttpRequest getTEMPNAME(String url,
30489 onSuccess(XMLHttpRequest request)) {
30490 final request = new XMLHttpRequest();
30491 request.open('GET', url, true);
30492
30493 // TODO(terry): Validate after client login added if necessary to forward
30494 // cookies to server.
30495 request.withCredentials = true;
30496
30497 // Status 0 is for local XHR request.
30498 request.on.readyStateChange.add((e) {
30499 if (request.readyState == XMLHttpRequest.DONE &&
30500 (request.status == 200 || request.status == 0)) {
30501 onSuccess(request);
30502 }
30503 });
30504
30505 request.send();
30506
30507 return request;
30508 }
30509 }
30510 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
30511 // for details. All rights reserved. Use of this source code is governed by a
30512 // BSD-style license that can be found in the LICENSE file.
30513
30253 typedef Object ComputeValue(); 30514 typedef Object ComputeValue();
30254 30515
30255 class _MeasurementRequest<T> { 30516 class _MeasurementRequest<T> {
30256 final ComputeValue computeValue; 30517 final ComputeValue computeValue;
30257 final Completer<T> completer; 30518 final Completer<T> completer;
30258 Object value; 30519 Object value;
30259 bool exception = false; 30520 bool exception = false;
30260 _MeasurementRequest(this.computeValue, this.completer); 30521 _MeasurementRequest(this.computeValue, this.completer);
30261 } 30522 }
30262 30523
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
30473 // BSD-style license that can be found in the LICENSE file. 30734 // BSD-style license that can be found in the LICENSE file.
30474 30735
30475 class _AudioContextFactoryProvider { 30736 class _AudioContextFactoryProvider {
30476 30737
30477 factory AudioContext() native ''' 30738 factory AudioContext() native '''
30478 var constructor = window.AudioContext || window.webkitAudioContext; 30739 var constructor = window.AudioContext || window.webkitAudioContext;
30479 return new constructor(); 30740 return new constructor();
30480 '''; 30741 ''';
30481 } 30742 }
30482 30743
30483 class _DOMParserFactoryProvider {
30484
30485 factory DOMParser() native 'return new DOMParser();';
30486 }
30487
30488 class _FileReaderFactoryProvider {
30489
30490 factory FileReader() native 'return new FileReader();';
30491 }
30492
30493 class _TypedArrayFactoryProvider { 30744 class _TypedArrayFactoryProvider {
30494 30745
30495 factory Float32Array(int length) => _F32(length); 30746 factory Float32Array(int length) => _F32(length);
30496 factory Float32Array.fromList(List<num> list) => _F32(ensureNative(list)); 30747 factory Float32Array.fromList(List<num> list) => _F32(ensureNative(list));
30497 factory Float32Array.fromBuffer(ArrayBuffer buffer) => _F32(buffer); 30748 factory Float32Array.fromBuffer(ArrayBuffer buffer) => _F32(buffer);
30498 30749
30499 factory Float64Array(int length) => _F64(length); 30750 factory Float64Array(int length) => _F64(length);
30500 factory Float64Array.fromList(List<num> list) => _F64(ensureNative(list)); 30751 factory Float64Array.fromList(List<num> list) => _F64(ensureNative(list));
30501 factory Float64Array.fromBuffer(ArrayBuffer buffer) => _F64(buffer); 30752 factory Float64Array.fromBuffer(ArrayBuffer buffer) => _F64(buffer);
30502 30753
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
30534 static Int16Array _I16(arg) native 'return new Int16Array(arg);'; 30785 static Int16Array _I16(arg) native 'return new Int16Array(arg);';
30535 static Int32Array _I32(arg) native 'return new Int32Array(arg);'; 30786 static Int32Array _I32(arg) native 'return new Int32Array(arg);';
30536 static Uint8Array _U8(arg) native 'return new Uint8Array(arg);'; 30787 static Uint8Array _U8(arg) native 'return new Uint8Array(arg);';
30537 static Uint16Array _U16(arg) native 'return new Uint16Array(arg);'; 30788 static Uint16Array _U16(arg) native 'return new Uint16Array(arg);';
30538 static Uint32Array _U32(arg) native 'return new Uint32Array(arg);'; 30789 static Uint32Array _U32(arg) native 'return new Uint32Array(arg);';
30539 static Uint8ClampedArray _U8C(arg) native 'return new Uint8ClampedArray(arg);' ; 30790 static Uint8ClampedArray _U8C(arg) native 'return new Uint8ClampedArray(arg);' ;
30540 30791
30541 static ensureNative(List list) => list; // TODO: make sure. 30792 static ensureNative(List list) => list; // TODO: make sure.
30542 } 30793 }
30543 30794
30544 class _CSSMatrixFactoryProvider {
30545
30546 factory CSSMatrix([String spec = '']) native
30547 'return new WebKitCSSMatrix(spec);';
30548 }
30549
30550 class _PointFactoryProvider { 30795 class _PointFactoryProvider {
30551 30796
30552 factory Point(num x, num y) native 'return new WebKitPoint(x, y);'; 30797 factory Point(num x, num y) native 'return new WebKitPoint(x, y);';
30553 } 30798 }
30554
30555 class _WebSocketFactoryProvider {
30556
30557 factory WebSocket(String url) native 'return new WebSocket(url);';
30558 }
30559
30560 class _XMLHttpRequestFactoryProvider {
30561 factory XMLHttpRequest() native 'return new XMLHttpRequest();';
30562
30563 factory XMLHttpRequest.getTEMPNAME(String url,
30564 onSuccess(XMLHttpRequest request)) {
30565 final request = new XMLHttpRequest();
30566 request.open('GET', url, true);
30567
30568 // TODO(terry): Validate after client login added if necessary to forward
30569 // cookies to server.
30570 request.withCredentials = true;
30571
30572 // Status 0 is for local XHR request.
30573 request.on.readyStateChange.add((e) {
30574 if (request.readyState == XMLHttpRequest.DONE &&
30575 (request.status == 200 || request.status == 0)) {
30576 onSuccess(request);
30577 }
30578 });
30579
30580 request.send();
30581
30582 return request;
30583 }
30584 }
30585 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 30799 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
30586 // for details. All rights reserved. Use of this source code is governed by a 30800 // for details. All rights reserved. Use of this source code is governed by a
30587 // BSD-style license that can be found in the LICENSE file. 30801 // BSD-style license that can be found in the LICENSE file.
30588 30802
30589 // TODO(rnystrom): add a way to supress public classes from DartDoc output. 30803 // TODO(rnystrom): add a way to supress public classes from DartDoc output.
30590 /** 30804 /**
30591 * This class is intended for testing purposes only. 30805 * This class is intended for testing purposes only.
30592 */ 30806 */
30593 class Testing { 30807 class Testing {
30594 static void addEventListener(EventTarget target, String type, EventListener li stener, bool useCapture) { 30808 static void addEventListener(EventTarget target, String type, EventListener li stener, bool useCapture) {
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
30712 if (length < 0) throw new IllegalArgumentException('length'); 30926 if (length < 0) throw new IllegalArgumentException('length');
30713 if (start < 0) throw new IndexOutOfRangeException(start); 30927 if (start < 0) throw new IndexOutOfRangeException(start);
30714 int end = start + length; 30928 int end = start + length;
30715 if (end > a.length) throw new IndexOutOfRangeException(end); 30929 if (end > a.length) throw new IndexOutOfRangeException(end);
30716 for (int i = start; i < end; i++) { 30930 for (int i = start; i < end; i++) {
30717 accumulator.add(a[i]); 30931 accumulator.add(a[i]);
30718 } 30932 }
30719 return accumulator; 30933 return accumulator;
30720 } 30934 }
30721 } 30935 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698