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

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: address code review comments 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 if (src == null) return new Audio();
15523 return new Audio(src);
15524 ''';
15525 }
15526 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15527 // for details. All rights reserved. Use of this source code is governed by a
15528 // BSD-style license that can be found in the LICENSE file.
15529
15530 class _BlobBuilderFactoryProvider {
15531 factory BlobBuilder() native
15532 '''return new BlobBuilder();''';
15533 }
15534 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15535 // for details. All rights reserved. Use of this source code is governed by a
15536 // BSD-style license that can be found in the LICENSE file.
15537
15538 class _CSSMatrixFactoryProvider {
15539 factory CSSMatrix([String cssValue = '']) native
15540 'return new WebKitCSSMatrix(cssValue);';
15541 }
15542 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15543 // for details. All rights reserved. Use of this source code is governed by a
15544 // BSD-style license that can be found in the LICENSE file.
15545
15546 class _DOMParserFactoryProvider {
15547 factory DOMParser() native
15548 '''return new DOMParser();''';
15549 }
15550 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15551 // for details. All rights reserved. Use of this source code is governed by a
15552 // BSD-style license that can be found in the LICENSE file.
15553
15554 class _DOMURLFactoryProvider {
15555 factory DOMURL() native
15556 '''return new DOMURL();''';
15557 }
15558 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15559 // for details. All rights reserved. Use of this source code is governed by a
15560 // BSD-style license that can be found in the LICENSE file.
15561
15562 class _EventSourceFactoryProvider {
15563 factory EventSource(String scriptUrl) native
15564 '''return new EventSource(scriptUrl);''';
15565 }
15566 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15567 // for details. All rights reserved. Use of this source code is governed by a
15568 // BSD-style license that can be found in the LICENSE file.
15569
15570 class _FileReaderFactoryProvider {
15571 factory FileReader() native
15572 '''return new FileReader();''';
15573 }
15574 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15575 // for details. All rights reserved. Use of this source code is governed by a
15576 // BSD-style license that can be found in the LICENSE file.
15577
15578 class _FileReaderSyncFactoryProvider {
15579 factory FileReaderSync() native
15580 '''return new FileReaderSync();''';
15581 }
15582 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15583 // for details. All rights reserved. Use of this source code is governed by a
15584 // BSD-style license that can be found in the LICENSE file.
15585
15586 class _MediaControllerFactoryProvider {
15587 factory MediaController() native
15588 '''return new MediaController();''';
15589 }
15590 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15591 // for details. All rights reserved. Use of this source code is governed by a
15592 // BSD-style license that can be found in the LICENSE file.
15593
15594 class _MediaStreamFactoryProvider {
15595 factory MediaStream(MediaStreamTrackList audioTracks, MediaStreamTrackList vid eoTracks) native
15596 '''return new MediaStream(audioTracks, videoTracks);''';
15597 }
15598 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15599 // for details. All rights reserved. Use of this source code is governed by a
15600 // BSD-style license that can be found in the LICENSE file.
15601
15602 class _MessageChannelFactoryProvider {
15603 factory MessageChannel() native
15604 '''return new MessageChannel();''';
15605 }
15606 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15607 // for details. All rights reserved. Use of this source code is governed by a
15608 // BSD-style license that can be found in the LICENSE file.
15609
15610 class _OptionElementFactoryProvider {
15611 factory OptionElement([String data = null, String value = null,
15612 bool defaultSelected = null, bool selected = null])
15613 native '''
15614 if (data == null) return new Option();
15615 if (value == null) return new Option(data);
15616 if (defaultSelected == null) return new Option(data, value);
15617 if (selected == null) return new Option(data, value, defaultSelected);
15618 return new Option(data, value, defaultSelected, selected);
15619 ''';
15620 }
15621 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15622 // for details. All rights reserved. Use of this source code is governed by a
15623 // BSD-style license that can be found in the LICENSE file.
15624
15625 class _PeerConnectionFactoryProvider {
15626 factory PeerConnection(String serverConfiguration, SignalingCallback signaling Callback) native
15627 '''return new PeerConnection(serverConfiguration, signalingCallback);''';
15628 }
15629 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15630 // for details. All rights reserved. Use of this source code is governed by a
15631 // BSD-style license that can be found in the LICENSE file.
15632
15633 class _ShadowRootFactoryProvider {
15634 factory ShadowRoot(Element host) native
15635 '''return new ShadowRoot(host);''';
15636 }
15637 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15638 // for details. All rights reserved. Use of this source code is governed by a
15639 // BSD-style license that can be found in the LICENSE file.
15640
15641 class _SharedWorkerFactoryProvider {
15642 factory SharedWorker(String scriptURL, [String name]) native '''
15643 if (name == null) return new SharedWorker(scriptURL);
15644 return new SharedWorker(scriptURL, name);
15645 ''';
15646 }
15647 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15648 // for details. All rights reserved. Use of this source code is governed by a
15649 // BSD-style license that can be found in the LICENSE file.
15650
15651 class _TextTrackCueFactoryProvider {
15652 factory TextTrackCue(String id, num startTime, num endTime, String text,
15653 [String settings, bool pauseOnExit]) native '''
15654 if (settings == null)
15655 return new TextTrackCue(id, startTime, endTime, text);
15656 if (pauseOnExit == null)
15657 return new TextTrackCue(id, startTime, endTime, text, settings);
15658 return new TextTrackCue(id, startTime, endTime, text, settings, pauseOnExit) ;
15659 ''';
15660 }
15661 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15662 // for details. All rights reserved. Use of this source code is governed by a
15663 // BSD-style license that can be found in the LICENSE file.
15664
15665 class _WorkerFactoryProvider {
15666 factory Worker(String scriptUrl) native
15667 '''return new Worker(scriptUrl);''';
15668 }
15669 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15670 // for details. All rights reserved. Use of this source code is governed by a
15671 // BSD-style license that can be found in the LICENSE file.
15672
15673 class _XMLHttpRequestFactoryProvider {
15674 factory XMLHttpRequest() native 'return new XMLHttpRequest();';
15675
15676 factory XMLHttpRequest.getTEMPNAME(String url,
15677 onSuccess(XMLHttpRequest request)) =>
15678 _XMLHttpRequestUtils.getTEMPNAME(url, onSuccess);
15679 }
15680 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15681 // for details. All rights reserved. Use of this source code is governed by a
15682 // BSD-style license that can be found in the LICENSE file.
15683
15684 class _XMLSerializerFactoryProvider {
15685 factory XMLSerializer() native
15686 '''return new XMLSerializer();''';
15687 }
15688 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15689 // for details. All rights reserved. Use of this source code is governed by a
15690 // BSD-style license that can be found in the LICENSE file.
15691
15692 class _XPathEvaluatorFactoryProvider {
15693 factory XPathEvaluator() native
15694 '''return new XPathEvaluator();''';
15695 }
15696 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15697 // for details. All rights reserved. Use of this source code is governed by a
15698 // BSD-style license that can be found in the LICENSE file.
15699
15700 class _XSLTProcessorFactoryProvider {
15701 factory XSLTProcessor() native
15702 '''return new XSLTProcessor();''';
15703 }
15704 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15705 // for details. All rights reserved. Use of this source code is governed by a
15706 // BSD-style license that can be found in the LICENSE file.
15707
15519 // WARNING: Do not edit - generated code. 15708 // WARNING: Do not edit - generated code.
15520 15709
15521 interface AbstractWorker extends EventTarget { 15710 interface AbstractWorker extends EventTarget {
15522 15711
15523 AbstractWorkerEvents get on(); 15712 AbstractWorkerEvents get on();
15524 15713
15525 void _addEventListener(String type, EventListener listener, [bool useCapture]) ; 15714 void _addEventListener(String type, EventListener listener, [bool useCapture]) ;
15526 15715
15527 bool _dispatchEvent(Event evt); 15716 bool _dispatchEvent(Event evt);
15528 15717
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
15889 interface AudioDestinationNode extends AudioNode { 16078 interface AudioDestinationNode extends AudioNode {
15890 16079
15891 final int numberOfChannels; 16080 final int numberOfChannels;
15892 } 16081 }
15893 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16082 // 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 16083 // 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. 16084 // BSD-style license that can be found in the LICENSE file.
15896 16085
15897 // WARNING: Do not edit - generated code. 16086 // WARNING: Do not edit - generated code.
15898 16087
15899 interface AudioElement extends MediaElement { 16088 interface AudioElement extends MediaElement default _AudioElementFactoryProvider {
16089
16090 AudioElement([String src]);
15900 } 16091 }
15901 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16092 // 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 16093 // 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. 16094 // BSD-style license that can be found in the LICENSE file.
15904 16095
15905 // WARNING: Do not edit - generated code. 16096 // WARNING: Do not edit - generated code.
15906 16097
15907 interface AudioGain extends AudioParam { 16098 interface AudioGain extends AudioParam {
15908 } 16099 }
15909 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16100 // 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; 16344 final String type;
16154 16345
16155 Blob webkitSlice([int start, int end, String contentType]); 16346 Blob webkitSlice([int start, int end, String contentType]);
16156 } 16347 }
16157 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16348 // 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 16349 // 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. 16350 // BSD-style license that can be found in the LICENSE file.
16160 16351
16161 // WARNING: Do not edit - generated code. 16352 // WARNING: Do not edit - generated code.
16162 16353
16163 interface BlobBuilder { 16354 interface BlobBuilder default _BlobBuilderFactoryProvider {
16355
16356 BlobBuilder();
16164 16357
16165 void append(var arrayBuffer_OR_blob_OR_value, [String endings]); 16358 void append(var arrayBuffer_OR_blob_OR_value, [String endings]);
16166 16359
16167 Blob getBlob([String contentType]); 16360 Blob getBlob([String contentType]);
16168 } 16361 }
16169 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16362 // 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 16363 // 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. 16364 // BSD-style license that can be found in the LICENSE file.
16172 16365
16173 // WARNING: Do not edit - generated code. 16366 // WARNING: Do not edit - generated code.
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
16328 CSSKeyframeRule findRule(String key); 16521 CSSKeyframeRule findRule(String key);
16329 16522
16330 void insertRule(String rule); 16523 void insertRule(String rule);
16331 } 16524 }
16332 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16525 // 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 16526 // 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. 16527 // BSD-style license that can be found in the LICENSE file.
16335 16528
16336 // WARNING: Do not edit - generated code. 16529 // WARNING: Do not edit - generated code.
16337 16530
16338 interface CSSMatrix { 16531 interface CSSMatrix default _CSSMatrixFactoryProvider {
16532
16533 CSSMatrix([String cssValue]);
16339 16534
16340 num a; 16535 num a;
16341 16536
16342 num b; 16537 num b;
16343 16538
16344 num c; 16539 num c;
16345 16540
16346 num d; 16541 num d;
16347 16542
16348 num e; 16543 num e;
(...skipping 2846 matching lines...) Expand 10 before | Expand all | Expand 10 after
19195 DOMMimeType item(int index); 19390 DOMMimeType item(int index);
19196 19391
19197 DOMMimeType namedItem(String name); 19392 DOMMimeType namedItem(String name);
19198 } 19393 }
19199 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19394 // 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 19395 // 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. 19396 // BSD-style license that can be found in the LICENSE file.
19202 19397
19203 // WARNING: Do not edit - generated code. 19398 // WARNING: Do not edit - generated code.
19204 19399
19205 interface DOMParser { 19400 interface DOMParser default _DOMParserFactoryProvider {
19401
19402 DOMParser();
19206 19403
19207 Document parseFromString(String str, String contentType); 19404 Document parseFromString(String str, String contentType);
19208 } 19405 }
19209 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19406 // 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 19407 // 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. 19408 // BSD-style license that can be found in the LICENSE file.
19212 19409
19213 // WARNING: Do not edit - generated code. 19410 // WARNING: Do not edit - generated code.
19214 19411
19215 interface DOMPlugin { 19412 interface DOMPlugin {
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
19333 String toString(); 19530 String toString();
19334 19531
19335 bool toggle(String token); 19532 bool toggle(String token);
19336 } 19533 }
19337 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19534 // 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 19535 // 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. 19536 // BSD-style license that can be found in the LICENSE file.
19340 19537
19341 // WARNING: Do not edit - generated code. 19538 // WARNING: Do not edit - generated code.
19342 19539
19343 interface DOMURL { 19540 interface DOMURL default _DOMURLFactoryProvider {
19541
19542 DOMURL();
19344 } 19543 }
19345 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19544 // 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 19545 // 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. 19546 // BSD-style license that can be found in the LICENSE file.
19348 19547
19349 // WARNING: Do not edit - generated code. 19548 // WARNING: Do not edit - generated code.
19350 19549
19351 interface DataTransferItem { 19550 interface DataTransferItem {
19352 19551
19353 final String kind; 19552 final String kind;
(...skipping 1275 matching lines...) Expand 10 before | Expand all | Expand 10 after
20629 final String name; 20828 final String name;
20630 20829
20631 String toString(); 20830 String toString();
20632 } 20831 }
20633 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20832 // 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 20833 // 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. 20834 // BSD-style license that can be found in the LICENSE file.
20636 20835
20637 // WARNING: Do not edit - generated code. 20836 // WARNING: Do not edit - generated code.
20638 20837
20639 interface EventSource extends EventTarget { 20838 interface EventSource extends EventTarget default _EventSourceFactoryProvider {
20839
20840 EventSource(String scriptUrl);
20640 20841
20641 static final int CLOSED = 2; 20842 static final int CLOSED = 2;
20642 20843
20643 static final int CONNECTING = 0; 20844 static final int CONNECTING = 0;
20644 20845
20645 static final int OPEN = 1; 20846 static final int OPEN = 1;
20646 20847
20647 final String URL; 20848 final String URL;
20648 20849
20649 final int readyState; 20850 final int readyState;
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
20852 final int length; 21053 final int length;
20853 21054
20854 File item(int index); 21055 File item(int index);
20855 } 21056 }
20856 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21057 // 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 21058 // 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. 21059 // BSD-style license that can be found in the LICENSE file.
20859 21060
20860 // WARNING: Do not edit - generated code. 21061 // WARNING: Do not edit - generated code.
20861 21062
20862 interface FileReader { 21063 interface FileReader default _FileReaderFactoryProvider {
21064
21065 FileReader();
20863 21066
20864 static final int DONE = 2; 21067 static final int DONE = 2;
20865 21068
20866 static final int EMPTY = 0; 21069 static final int EMPTY = 0;
20867 21070
20868 static final int LOADING = 1; 21071 static final int LOADING = 1;
20869 21072
20870 final FileError error; 21073 final FileError error;
20871 21074
20872 EventListener onabort; 21075 EventListener onabort;
(...skipping 27 matching lines...) Expand all
20900 void readAsText(Blob blob, [String encoding]); 21103 void readAsText(Blob blob, [String encoding]);
20901 21104
20902 void removeEventListener(String type, EventListener listener, [bool useCapture ]); 21105 void removeEventListener(String type, EventListener listener, [bool useCapture ]);
20903 } 21106 }
20904 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21107 // 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 21108 // 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. 21109 // BSD-style license that can be found in the LICENSE file.
20907 21110
20908 // WARNING: Do not edit - generated code. 21111 // WARNING: Do not edit - generated code.
20909 21112
20910 interface FileReaderSync { 21113 interface FileReaderSync default _FileReaderSyncFactoryProvider {
21114
21115 FileReaderSync();
20911 21116
20912 ArrayBuffer readAsArrayBuffer(Blob blob); 21117 ArrayBuffer readAsArrayBuffer(Blob blob);
20913 21118
20914 String readAsBinaryString(Blob blob); 21119 String readAsBinaryString(Blob blob);
20915 21120
20916 String readAsDataURL(Blob blob); 21121 String readAsDataURL(Blob blob);
20917 21122
20918 String readAsText(Blob blob, [String encoding]); 21123 String readAsText(Blob blob, [String encoding]);
20919 } 21124 }
20920 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 21125 // 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(); 22423 void start();
22219 22424
22220 void stop(); 22425 void stop();
22221 } 22426 }
22222 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22427 // 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 22428 // 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. 22429 // BSD-style license that can be found in the LICENSE file.
22225 22430
22226 // WARNING: Do not edit - generated code. 22431 // WARNING: Do not edit - generated code.
22227 22432
22228 interface MediaController { 22433 interface MediaController default _MediaControllerFactoryProvider {
22434
22435 MediaController();
22229 22436
22230 final TimeRanges buffered; 22437 final TimeRanges buffered;
22231 22438
22232 num currentTime; 22439 num currentTime;
22233 22440
22234 num defaultPlaybackRate; 22441 num defaultPlaybackRate;
22235 22442
22236 final num duration; 22443 final num duration;
22237 22444
22238 bool muted; 22445 bool muted;
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
22448 interface MediaQueryListListener { 22655 interface MediaQueryListListener {
22449 22656
22450 void queryChanged(MediaQueryList list); 22657 void queryChanged(MediaQueryList list);
22451 } 22658 }
22452 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22659 // 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 22660 // 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. 22661 // BSD-style license that can be found in the LICENSE file.
22455 22662
22456 // WARNING: Do not edit - generated code. 22663 // WARNING: Do not edit - generated code.
22457 22664
22458 interface MediaStream { 22665 interface MediaStream default _MediaStreamFactoryProvider {
22666
22667 MediaStream(MediaStreamTrackList audioTracks, MediaStreamTrackList videoTracks );
22459 22668
22460 static final int ENDED = 2; 22669 static final int ENDED = 2;
22461 22670
22462 static final int LIVE = 1; 22671 static final int LIVE = 1;
22463 22672
22464 final MediaStreamTrackList audioTracks; 22673 final MediaStreamTrackList audioTracks;
22465 22674
22466 final String label; 22675 final String label;
22467 22676
22468 EventListener onended; 22677 EventListener onended;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
22548 interface MenuElement extends Element { 22757 interface MenuElement extends Element {
22549 22758
22550 bool compact; 22759 bool compact;
22551 } 22760 }
22552 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22761 // 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 22762 // 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. 22763 // BSD-style license that can be found in the LICENSE file.
22555 22764
22556 // WARNING: Do not edit - generated code. 22765 // WARNING: Do not edit - generated code.
22557 22766
22558 interface MessageChannel { 22767 interface MessageChannel default _MessageChannelFactoryProvider {
22768
22769 MessageChannel();
22559 22770
22560 final MessagePort port1; 22771 final MessagePort port1;
22561 22772
22562 final MessagePort port2; 22773 final MessagePort port2;
22563 } 22774 }
22564 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22775 // 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 22776 // 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. 22777 // BSD-style license that can be found in the LICENSE file.
22567 22778
22568 // WARNING: Do not edit - generated code. 22779 // WARNING: Do not edit - generated code.
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
23242 bool disabled; 23453 bool disabled;
23243 23454
23244 String label; 23455 String label;
23245 } 23456 }
23246 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23457 // 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 23458 // 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. 23459 // BSD-style license that can be found in the LICENSE file.
23249 23460
23250 // WARNING: Do not edit - generated code. 23461 // WARNING: Do not edit - generated code.
23251 23462
23252 interface OptionElement extends Element { 23463 interface OptionElement extends Element default _OptionElementFactoryProvider {
23464
23465 OptionElement([String data, String value, bool defaultSelected, bool selected] );
23253 23466
23254 bool defaultSelected; 23467 bool defaultSelected;
23255 23468
23256 bool disabled; 23469 bool disabled;
23257 23470
23258 final FormElement form; 23471 final FormElement form;
23259 23472
23260 final int index; 23473 final int index;
23261 23474
23262 String label; 23475 String label;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
23352 String value; 23565 String value;
23353 23566
23354 String valueType; 23567 String valueType;
23355 } 23568 }
23356 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23569 // 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 23570 // 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. 23571 // BSD-style license that can be found in the LICENSE file.
23359 23572
23360 // WARNING: Do not edit - generated code. 23573 // WARNING: Do not edit - generated code.
23361 23574
23362 interface PeerConnection { 23575 interface PeerConnection default _PeerConnectionFactoryProvider {
23576
23577 PeerConnection(String serverConfiguration, SignalingCallback signalingCallback );
23363 23578
23364 static final int ACTIVE = 2; 23579 static final int ACTIVE = 2;
23365 23580
23366 static final int CLOSED = 3; 23581 static final int CLOSED = 3;
23367 23582
23368 static final int NEGOTIATING = 1; 23583 static final int NEGOTIATING = 1;
23369 23584
23370 static final int NEW = 0; 23585 static final int NEW = 0;
23371 23586
23372 final MediaStreamList localStreams; 23587 final MediaStreamList localStreams;
(...skipping 3322 matching lines...) Expand 10 before | Expand all | Expand 10 after
26695 // WARNING: Do not edit - generated code. 26910 // WARNING: Do not edit - generated code.
26696 26911
26697 interface ShadowElement extends Element { 26912 interface ShadowElement extends Element {
26698 } 26913 }
26699 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 26914 // 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 26915 // 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. 26916 // BSD-style license that can be found in the LICENSE file.
26702 26917
26703 // WARNING: Do not edit - generated code. 26918 // WARNING: Do not edit - generated code.
26704 26919
26705 interface ShadowRoot extends DocumentFragment { 26920 interface ShadowRoot extends DocumentFragment default _ShadowRootFactoryProvider {
26921
26922 ShadowRoot(Element host);
26706 26923
26707 final Element host; 26924 final Element host;
26708 26925
26709 Element getElementById(String elementId); 26926 Element getElementById(String elementId);
26710 26927
26711 NodeList getElementsByClassName(String className); 26928 NodeList getElementsByClassName(String className);
26712 26929
26713 NodeList getElementsByTagName(String tagName); 26930 NodeList getElementsByTagName(String tagName);
26714 26931
26715 NodeList getElementsByTagNameNS(String namespaceURI, String localName); 26932 NodeList getElementsByTagNameNS(String namespaceURI, String localName);
26716 } 26933 }
26717 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 26934 // 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 26935 // 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. 26936 // BSD-style license that can be found in the LICENSE file.
26720 26937
26721 // WARNING: Do not edit - generated code. 26938 // WARNING: Do not edit - generated code.
26722 26939
26723 interface SharedWorker extends AbstractWorker { 26940 interface SharedWorker extends AbstractWorker default _SharedWorkerFactoryProvid er {
26941
26942 SharedWorker(String scriptURL, [String name]);
26724 26943
26725 final MessagePort port; 26944 final MessagePort port;
26726 } 26945 }
26727 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 26946 // 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 26947 // 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. 26948 // BSD-style license that can be found in the LICENSE file.
26730 26949
26731 // WARNING: Do not edit - generated code. 26950 // WARNING: Do not edit - generated code.
26732 26951
26733 interface SharedWorkerContext extends WorkerContext { 26952 interface SharedWorkerContext extends WorkerContext {
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
27250 void removeCue(TextTrackCue cue); 27469 void removeCue(TextTrackCue cue);
27251 27470
27252 void removeEventListener(String type, EventListener listener, [bool useCapture ]); 27471 void removeEventListener(String type, EventListener listener, [bool useCapture ]);
27253 } 27472 }
27254 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 27473 // 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 27474 // 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. 27475 // BSD-style license that can be found in the LICENSE file.
27257 27476
27258 // WARNING: Do not edit - generated code. 27477 // WARNING: Do not edit - generated code.
27259 27478
27260 interface TextTrackCue { 27479 interface TextTrackCue default _TextTrackCueFactoryProvider {
27480
27481 TextTrackCue(String id, num startTime, num endTime, String text, [String setti ngs, bool pauseOnExit]);
27261 27482
27262 String alignment; 27483 String alignment;
27263 27484
27264 String direction; 27485 String direction;
27265 27486
27266 num endTime; 27487 num endTime;
27267 27488
27268 String id; 27489 String id;
27269 27490
27270 int linePosition; 27491 int linePosition;
(...skipping 1949 matching lines...) Expand 10 before | Expand all | Expand 10 after
29220 EventListenerList get volumeChange(); 29441 EventListenerList get volumeChange();
29221 29442
29222 EventListenerList get waiting(); 29443 EventListenerList get waiting();
29223 } 29444 }
29224 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 29445 // 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 29446 // 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. 29447 // BSD-style license that can be found in the LICENSE file.
29227 29448
29228 // WARNING: Do not edit - generated code. 29449 // WARNING: Do not edit - generated code.
29229 29450
29230 interface Worker extends AbstractWorker { 29451 interface Worker extends AbstractWorker default _WorkerFactoryProvider {
29452
29453 Worker(String scriptUrl);
29231 29454
29232 WorkerEvents get on(); 29455 WorkerEvents get on();
29233 29456
29234 void postMessage(Dynamic message, [List messagePorts]); 29457 void postMessage(Dynamic message, [List messagePorts]);
29235 29458
29236 void terminate(); 29459 void terminate();
29237 29460
29238 void webkitPostMessage(Dynamic message, [List messagePorts]); 29461 void webkitPostMessage(Dynamic message, [List messagePorts]);
29239 } 29462 }
29240 29463
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
29340 29563
29341 final String userAgent; 29564 final String userAgent;
29342 } 29565 }
29343 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 29566 // 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 29567 // 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. 29568 // BSD-style license that can be found in the LICENSE file.
29346 29569
29347 // WARNING: Do not edit - generated code. 29570 // WARNING: Do not edit - generated code.
29348 29571
29349 interface XMLHttpRequest extends EventTarget default _XMLHttpRequestFactoryProvi der { 29572 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 29573 // TODO(rnystrom): This name should just be "get" which is valid in Dart, but
29354 // not correctly implemented yet. (b/4970173) 29574 // not correctly implemented yet. (b/4970173)
29355 XMLHttpRequest.getTEMPNAME(String url, onSuccess(XMLHttpRequest request)); 29575 XMLHttpRequest.getTEMPNAME(String url, onSuccess(XMLHttpRequest request));
29356 29576
29577 XMLHttpRequest();
29578
29357 static final int DONE = 4; 29579 static final int DONE = 4;
29358 29580
29359 static final int HEADERS_RECEIVED = 2; 29581 static final int HEADERS_RECEIVED = 2;
29360 29582
29361 static final int LOADING = 3; 29583 static final int LOADING = 3;
29362 29584
29363 static final int OPENED = 1; 29585 static final int OPENED = 1;
29364 29586
29365 static final int UNSENT = 0; 29587 static final int UNSENT = 0;
29366 29588
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
29487 EventListenerList get loadStart(); 29709 EventListenerList get loadStart();
29488 29710
29489 EventListenerList get progress(); 29711 EventListenerList get progress();
29490 } 29712 }
29491 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 29713 // 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 29714 // 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. 29715 // BSD-style license that can be found in the LICENSE file.
29494 29716
29495 // WARNING: Do not edit - generated code. 29717 // WARNING: Do not edit - generated code.
29496 29718
29497 interface XMLSerializer { 29719 interface XMLSerializer default _XMLSerializerFactoryProvider {
29720
29721 XMLSerializer();
29498 29722
29499 String serializeToString(Node node); 29723 String serializeToString(Node node);
29500 } 29724 }
29501 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 29725 // 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 29726 // 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. 29727 // BSD-style license that can be found in the LICENSE file.
29504 29728
29505 // WARNING: Do not edit - generated code. 29729 // WARNING: Do not edit - generated code.
29506 29730
29507 interface XPathEvaluator { 29731 interface XPathEvaluator default _XPathEvaluatorFactoryProvider {
29732
29733 XPathEvaluator();
29508 29734
29509 XPathExpression createExpression(String expression, XPathNSResolver resolver); 29735 XPathExpression createExpression(String expression, XPathNSResolver resolver);
29510 29736
29511 XPathNSResolver createNSResolver(Node nodeResolver); 29737 XPathNSResolver createNSResolver(Node nodeResolver);
29512 29738
29513 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso lver, int type, XPathResult inResult); 29739 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso lver, int type, XPathResult inResult);
29514 } 29740 }
29515 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 29741 // 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 29742 // 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. 29743 // 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(); 29823 Node iterateNext();
29598 29824
29599 Node snapshotItem(int index); 29825 Node snapshotItem(int index);
29600 } 29826 }
29601 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 29827 // 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 29828 // 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. 29829 // BSD-style license that can be found in the LICENSE file.
29604 29830
29605 // WARNING: Do not edit - generated code. 29831 // WARNING: Do not edit - generated code.
29606 29832
29607 interface XSLTProcessor { 29833 interface XSLTProcessor default _XSLTProcessorFactoryProvider {
29834
29835 XSLTProcessor();
29608 29836
29609 void clearParameters(); 29837 void clearParameters();
29610 29838
29611 String getParameter(String namespaceURI, String localName); 29839 String getParameter(String namespaceURI, String localName);
29612 29840
29613 void importStylesheet(Node stylesheet); 29841 void importStylesheet(Node stylesheet);
29614 29842
29615 void removeParameter(String namespaceURI, String localName); 29843 void removeParameter(String namespaceURI, String localName);
29616 29844
29617 void reset(); 29845 void reset();
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
30243 } 30471 }
30244 30472
30245 static bool isEmpty(Iterable<Object> iterable) { 30473 static bool isEmpty(Iterable<Object> iterable) {
30246 return !iterable.iterator().hasNext(); 30474 return !iterable.iterator().hasNext();
30247 } 30475 }
30248 } 30476 }
30249 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 30477 // 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 30478 // 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. 30479 // BSD-style license that can be found in the LICENSE file.
30252 30480
30481 class _XMLHttpRequestUtils {
30482
30483 // Helper for factory XMLHttpRequest.getTEMPNAME
30484 static XMLHttpRequest getTEMPNAME(String url,
30485 onSuccess(XMLHttpRequest request)) {
30486 final request = new XMLHttpRequest();
30487 request.open('GET', url, true);
30488
30489 // TODO(terry): Validate after client login added if necessary to forward
30490 // cookies to server.
30491 request.withCredentials = true;
30492
30493 // Status 0 is for local XHR request.
30494 request.on.readyStateChange.add((e) {
30495 if (request.readyState == XMLHttpRequest.DONE &&
30496 (request.status == 200 || request.status == 0)) {
30497 onSuccess(request);
30498 }
30499 });
30500
30501 request.send();
30502
30503 return request;
30504 }
30505 }
30506 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
30507 // for details. All rights reserved. Use of this source code is governed by a
30508 // BSD-style license that can be found in the LICENSE file.
30509
30253 typedef Object ComputeValue(); 30510 typedef Object ComputeValue();
30254 30511
30255 class _MeasurementRequest<T> { 30512 class _MeasurementRequest<T> {
30256 final ComputeValue computeValue; 30513 final ComputeValue computeValue;
30257 final Completer<T> completer; 30514 final Completer<T> completer;
30258 Object value; 30515 Object value;
30259 bool exception = false; 30516 bool exception = false;
30260 _MeasurementRequest(this.computeValue, this.completer); 30517 _MeasurementRequest(this.computeValue, this.completer);
30261 } 30518 }
30262 30519
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
30473 // BSD-style license that can be found in the LICENSE file. 30730 // BSD-style license that can be found in the LICENSE file.
30474 30731
30475 class _AudioContextFactoryProvider { 30732 class _AudioContextFactoryProvider {
30476 30733
30477 factory AudioContext() native ''' 30734 factory AudioContext() native '''
30478 var constructor = window.AudioContext || window.webkitAudioContext; 30735 var constructor = window.AudioContext || window.webkitAudioContext;
30479 return new constructor(); 30736 return new constructor();
30480 '''; 30737 ''';
30481 } 30738 }
30482 30739
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 { 30740 class _TypedArrayFactoryProvider {
30494 30741
30495 factory Float32Array(int length) => _F32(length); 30742 factory Float32Array(int length) => _F32(length);
30496 factory Float32Array.fromList(List<num> list) => _F32(ensureNative(list)); 30743 factory Float32Array.fromList(List<num> list) => _F32(ensureNative(list));
30497 factory Float32Array.fromBuffer(ArrayBuffer buffer) => _F32(buffer); 30744 factory Float32Array.fromBuffer(ArrayBuffer buffer) => _F32(buffer);
30498 30745
30499 factory Float64Array(int length) => _F64(length); 30746 factory Float64Array(int length) => _F64(length);
30500 factory Float64Array.fromList(List<num> list) => _F64(ensureNative(list)); 30747 factory Float64Array.fromList(List<num> list) => _F64(ensureNative(list));
30501 factory Float64Array.fromBuffer(ArrayBuffer buffer) => _F64(buffer); 30748 factory Float64Array.fromBuffer(ArrayBuffer buffer) => _F64(buffer);
30502 30749
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
30534 static Int16Array _I16(arg) native 'return new Int16Array(arg);'; 30781 static Int16Array _I16(arg) native 'return new Int16Array(arg);';
30535 static Int32Array _I32(arg) native 'return new Int32Array(arg);'; 30782 static Int32Array _I32(arg) native 'return new Int32Array(arg);';
30536 static Uint8Array _U8(arg) native 'return new Uint8Array(arg);'; 30783 static Uint8Array _U8(arg) native 'return new Uint8Array(arg);';
30537 static Uint16Array _U16(arg) native 'return new Uint16Array(arg);'; 30784 static Uint16Array _U16(arg) native 'return new Uint16Array(arg);';
30538 static Uint32Array _U32(arg) native 'return new Uint32Array(arg);'; 30785 static Uint32Array _U32(arg) native 'return new Uint32Array(arg);';
30539 static Uint8ClampedArray _U8C(arg) native 'return new Uint8ClampedArray(arg);' ; 30786 static Uint8ClampedArray _U8C(arg) native 'return new Uint8ClampedArray(arg);' ;
30540 30787
30541 static ensureNative(List list) => list; // TODO: make sure. 30788 static ensureNative(List list) => list; // TODO: make sure.
30542 } 30789 }
30543 30790
30544 class _CSSMatrixFactoryProvider {
30545
30546 factory CSSMatrix([String spec = '']) native
30547 'return new WebKitCSSMatrix(spec);';
30548 }
30549
30550 class _PointFactoryProvider { 30791 class _PointFactoryProvider {
30551 30792
30552 factory Point(num x, num y) native 'return new WebKitPoint(x, y);'; 30793 factory Point(num x, num y) native 'return new WebKitPoint(x, y);';
30553 } 30794 }
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 30795 // 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 30796 // 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. 30797 // BSD-style license that can be found in the LICENSE file.
30588 30798
30589 // TODO(rnystrom): add a way to supress public classes from DartDoc output. 30799 // TODO(rnystrom): add a way to supress public classes from DartDoc output.
30590 /** 30800 /**
30591 * This class is intended for testing purposes only. 30801 * This class is intended for testing purposes only.
30592 */ 30802 */
30593 class Testing { 30803 class Testing {
30594 static void addEventListener(EventTarget target, String type, EventListener li stener, bool useCapture) { 30804 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'); 30922 if (length < 0) throw new IllegalArgumentException('length');
30713 if (start < 0) throw new IndexOutOfRangeException(start); 30923 if (start < 0) throw new IndexOutOfRangeException(start);
30714 int end = start + length; 30924 int end = start + length;
30715 if (end > a.length) throw new IndexOutOfRangeException(end); 30925 if (end > a.length) throw new IndexOutOfRangeException(end);
30716 for (int i = start; i < end; i++) { 30926 for (int i = start; i < end; i++) {
30717 accumulator.add(a[i]); 30927 accumulator.add(a[i]);
30718 } 30928 }
30719 return accumulator; 30929 return accumulator;
30720 } 30930 }
30721 } 30931 }
OLDNEW
« no previous file with comments | « client/html/dartium/html_dartium.dart ('k') | client/html/generated/html/dartium/_AudioElementFactoryProvider.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698