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

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: rerun script Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
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 15650 matching lines...) Expand 10 before | Expand all | Expand 10 after
15661 void setParameter(String namespaceURI, String localName, String value) native; 15661 void setParameter(String namespaceURI, String localName, String value) native;
15662 15662
15663 _DocumentJs transformToDocument(_NodeJs source) native; 15663 _DocumentJs transformToDocument(_NodeJs source) native;
15664 15664
15665 _DocumentFragmentJs transformToFragment(_NodeJs source, _DocumentJs docVal) na tive; 15665 _DocumentFragmentJs transformToFragment(_NodeJs source, _DocumentJs docVal) na tive;
15666 } 15666 }
15667 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15667 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15668 // for details. All rights reserved. Use of this source code is governed by a 15668 // for details. All rights reserved. Use of this source code is governed by a
15669 // BSD-style license that can be found in the LICENSE file. 15669 // BSD-style license that can be found in the LICENSE file.
15670 15670
15671 class _AudioElementFactoryProvider {
15672 factory AudioElement([String src = null]) native
15673 '''
15674 if (src == null) return new Audio();
15675 return new Audio(src);
15676 ''';
15677 }
15678 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15679 // for details. All rights reserved. Use of this source code is governed by a
15680 // BSD-style license that can be found in the LICENSE file.
15681
15682 class _BlobBuilderFactoryProvider {
15683 factory BlobBuilder() native
15684 '''return new BlobBuilder();''';
15685 }
15686 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15687 // for details. All rights reserved. Use of this source code is governed by a
15688 // BSD-style license that can be found in the LICENSE file.
15689
15690 class _CSSMatrixFactoryProvider {
15691 factory CSSMatrix([String cssValue = '']) native
15692 'return new WebKitCSSMatrix(cssValue);';
15693 }
15694 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15695 // for details. All rights reserved. Use of this source code is governed by a
15696 // BSD-style license that can be found in the LICENSE file.
15697
15698 class _DOMParserFactoryProvider {
15699 factory DOMParser() native
15700 '''return new DOMParser();''';
15701 }
15702 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15703 // for details. All rights reserved. Use of this source code is governed by a
15704 // BSD-style license that can be found in the LICENSE file.
15705
15706 class _DOMURLFactoryProvider {
15707 factory DOMURL() native
15708 '''return new DOMURL();''';
15709 }
15710 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15711 // for details. All rights reserved. Use of this source code is governed by a
15712 // BSD-style license that can be found in the LICENSE file.
15713
15714 class _EventSourceFactoryProvider {
15715 factory EventSource(String scriptUrl) native
15716 '''return new EventSource(scriptUrl);''';
15717 }
15718 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15719 // for details. All rights reserved. Use of this source code is governed by a
15720 // BSD-style license that can be found in the LICENSE file.
15721
15722 class _FileReaderFactoryProvider {
15723 factory FileReader() native
15724 '''return new FileReader();''';
15725 }
15726 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15727 // for details. All rights reserved. Use of this source code is governed by a
15728 // BSD-style license that can be found in the LICENSE file.
15729
15730 class _FileReaderSyncFactoryProvider {
15731 factory FileReaderSync() native
15732 '''return new FileReaderSync();''';
15733 }
15734 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15735 // for details. All rights reserved. Use of this source code is governed by a
15736 // BSD-style license that can be found in the LICENSE file.
15737
15738 class _MediaControllerFactoryProvider {
15739 factory MediaController() native
15740 '''return new MediaController();''';
15741 }
15742 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15743 // for details. All rights reserved. Use of this source code is governed by a
15744 // BSD-style license that can be found in the LICENSE file.
15745
15746 class _MediaStreamFactoryProvider {
15747 factory MediaStream(MediaStreamTrackList audioTracks, MediaStreamTrackList vid eoTracks) native
15748 '''return new MediaStream(audioTracks, videoTracks);''';
15749 }
15750 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15751 // for details. All rights reserved. Use of this source code is governed by a
15752 // BSD-style license that can be found in the LICENSE file.
15753
15754 class _MessageChannelFactoryProvider {
15755 factory MessageChannel() native
15756 '''return new MessageChannel();''';
15757 }
15758 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15759 // for details. All rights reserved. Use of this source code is governed by a
15760 // BSD-style license that can be found in the LICENSE file.
15761
15762 class _OptionElementFactoryProvider {
15763 factory OptionElement([String data = null, String value = null,
15764 bool defaultSelected = null, bool selected = null])
15765 native
15766 '''
15767 if (data == null) return new Option();
15768 if (value == null) return new Option(data);
15769 if (defaultSelected == null) return new Option(data, value);
15770 if (selected == null) return new Option(data, value, defaultSelected);
15771 return new Option(data, value, defaultSelected, selected);
15772 ''';
15773 }
15774 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15775 // for details. All rights reserved. Use of this source code is governed by a
15776 // BSD-style license that can be found in the LICENSE file.
15777
15778 class _PeerConnectionFactoryProvider {
15779 factory PeerConnection(String serverConfiguration, SignalingCallback signaling Callback) native
15780 '''return new PeerConnection(serverConfiguration, signalingCallback);''';
15781 }
15782 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15783 // for details. All rights reserved. Use of this source code is governed by a
15784 // BSD-style license that can be found in the LICENSE file.
15785
15786 class _ShadowRootFactoryProvider {
15787 factory ShadowRoot(Element host) native
15788 '''return new ShadowRoot(host);''';
15789 }
15790 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15791 // for details. All rights reserved. Use of this source code is governed by a
15792 // BSD-style license that can be found in the LICENSE file.
15793
15794 class _SharedWorkerFactoryProvider {
15795 factory SharedWorker(String scriptURL, [String name]) native
15796 '''
15797 if (name == null) return new SharedWorker(scriptURL);
15798 return new SharedWorker(scriptURL, name);
15799 ''';
15800 }
15801 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15802 // for details. All rights reserved. Use of this source code is governed by a
15803 // BSD-style license that can be found in the LICENSE file.
15804
15805 class _TextTrackCueFactoryProvider {
15806 factory TextTrackCue(String id, num startTime, num endTime, String text,
15807 [String settings, bool pauseOnExit]) native
15808 '''
15809 if (settings == null)
15810 return new TextTrackCue(id, startTime, endTime, text);
15811 if (pauseOnExit == null)
15812 return new TextTrackCue(id, startTime, endTime, text, settings);
15813 return new TextTrackCue(id, startTime, endTime, text, settings, pauseOnExit);
15814 ''';
15815 }
15816 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15817 // for details. All rights reserved. Use of this source code is governed by a
15818 // BSD-style license that can be found in the LICENSE file.
15819
15820 class _WorkerFactoryProvider {
15821 factory Worker(String scriptUrl) native
15822 '''return new Worker(scriptUrl);''';
15823 }
15824
15825 class _XMLHttpRequestFactoryProvider {
15826 factory XMLHttpRequest() native 'return new XMLHttpRequest();';
15827
15828 factory XMLHttpRequest.getTEMPNAME(String url,
15829 onSuccess(XMLHttpRequest request)) {
15830 final request = new XMLHttpRequest();
15831 request.open('GET', url, true);
15832
15833 // TODO(terry): Validate after client login added if necessary to forward
15834 // cookies to server.
15835 request.withCredentials = true;
15836
15837 // Status 0 is for local XHR request.
15838 request.on.readyStateChange.add((e) {
15839 if (request.readyState == XMLHttpRequest.DONE &&
15840 (request.status == 200 || request.status == 0)) {
15841 onSuccess(request);
15842 }
15843 });
15844
15845 request.send();
15846
15847 return request;
15848 }
15849 }
15850 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15851 // for details. All rights reserved. Use of this source code is governed by a
15852 // BSD-style license that can be found in the LICENSE file.
15853
15854 class _XMLSerializerFactoryProvider {
15855 factory XMLSerializer() native
15856 '''return new XMLSerializer();''';
15857 }
15858 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15859 // for details. All rights reserved. Use of this source code is governed by a
15860 // BSD-style license that can be found in the LICENSE file.
15861
15862 class _XPathEvaluatorFactoryProvider {
15863 factory XPathEvaluator() native
15864 '''return new XPathEvaluator();''';
15865 }
15866 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15867 // for details. All rights reserved. Use of this source code is governed by a
15868 // BSD-style license that can be found in the LICENSE file.
15869
15870 class _XSLTProcessorFactoryProvider {
15871 factory XSLTProcessor() native
15872 '''return new XSLTProcessor();''';
15873 }
15874 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15875 // for details. All rights reserved. Use of this source code is governed by a
15876 // BSD-style license that can be found in the LICENSE file.
15877
15671 // WARNING: Do not edit - generated code. 15878 // WARNING: Do not edit - generated code.
15672 15879
15673 interface AbstractWorker extends EventTarget { 15880 interface AbstractWorker extends EventTarget {
15674 15881
15675 AbstractWorkerEvents get on(); 15882 AbstractWorkerEvents get on();
15676 } 15883 }
15677 15884
15678 interface AbstractWorkerEvents extends Events { 15885 interface AbstractWorkerEvents extends Events {
15679 15886
15680 EventListenerList get error(); 15887 EventListenerList get error();
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
16037 interface AudioDestinationNode extends AudioNode { 16244 interface AudioDestinationNode extends AudioNode {
16038 16245
16039 final int numberOfChannels; 16246 final int numberOfChannels;
16040 } 16247 }
16041 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16248 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16042 // for details. All rights reserved. Use of this source code is governed by a 16249 // for details. All rights reserved. Use of this source code is governed by a
16043 // BSD-style license that can be found in the LICENSE file. 16250 // BSD-style license that can be found in the LICENSE file.
16044 16251
16045 // WARNING: Do not edit - generated code. 16252 // WARNING: Do not edit - generated code.
16046 16253
16047 interface AudioElement extends MediaElement { 16254 interface AudioElement extends MediaElement default _AudioElementFactoryProvider {
16255
16256 AudioElement([String src]);
16048 } 16257 }
16049 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16258 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16050 // for details. All rights reserved. Use of this source code is governed by a 16259 // for details. All rights reserved. Use of this source code is governed by a
16051 // BSD-style license that can be found in the LICENSE file. 16260 // BSD-style license that can be found in the LICENSE file.
16052 16261
16053 // WARNING: Do not edit - generated code. 16262 // WARNING: Do not edit - generated code.
16054 16263
16055 interface AudioGain extends AudioParam { 16264 interface AudioGain extends AudioParam {
16056 } 16265 }
16057 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16266 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
16301 final String type; 16510 final String type;
16302 16511
16303 Blob webkitSlice([int start, int end, String contentType]); 16512 Blob webkitSlice([int start, int end, String contentType]);
16304 } 16513 }
16305 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16514 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16306 // for details. All rights reserved. Use of this source code is governed by a 16515 // for details. All rights reserved. Use of this source code is governed by a
16307 // BSD-style license that can be found in the LICENSE file. 16516 // BSD-style license that can be found in the LICENSE file.
16308 16517
16309 // WARNING: Do not edit - generated code. 16518 // WARNING: Do not edit - generated code.
16310 16519
16311 interface BlobBuilder { 16520 interface BlobBuilder default _BlobBuilderFactoryProvider {
16521
16522 BlobBuilder();
16312 16523
16313 void append(var arrayBuffer_OR_blob_OR_value, [String endings]); 16524 void append(var arrayBuffer_OR_blob_OR_value, [String endings]);
16314 16525
16315 Blob getBlob([String contentType]); 16526 Blob getBlob([String contentType]);
16316 } 16527 }
16317 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16528 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16318 // for details. All rights reserved. Use of this source code is governed by a 16529 // for details. All rights reserved. Use of this source code is governed by a
16319 // BSD-style license that can be found in the LICENSE file. 16530 // BSD-style license that can be found in the LICENSE file.
16320 16531
16321 // WARNING: Do not edit - generated code. 16532 // WARNING: Do not edit - generated code.
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
16478 CSSKeyframeRule findRule(String key); 16689 CSSKeyframeRule findRule(String key);
16479 16690
16480 void insertRule(String rule); 16691 void insertRule(String rule);
16481 } 16692 }
16482 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16693 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16483 // for details. All rights reserved. Use of this source code is governed by a 16694 // for details. All rights reserved. Use of this source code is governed by a
16484 // BSD-style license that can be found in the LICENSE file. 16695 // BSD-style license that can be found in the LICENSE file.
16485 16696
16486 // WARNING: Do not edit - generated code. 16697 // WARNING: Do not edit - generated code.
16487 16698
16488 interface CSSMatrix { 16699 interface CSSMatrix default _CSSMatrixFactoryProvider {
16700
16701 CSSMatrix([String cssValue]);
16489 16702
16490 num a; 16703 num a;
16491 16704
16492 num b; 16705 num b;
16493 16706
16494 num c; 16707 num c;
16495 16708
16496 num d; 16709 num d;
16497 16710
16498 num e; 16711 num e;
(...skipping 2841 matching lines...) Expand 10 before | Expand all | Expand 10 after
19340 DOMMimeType item(int index); 19553 DOMMimeType item(int index);
19341 19554
19342 DOMMimeType namedItem(String name); 19555 DOMMimeType namedItem(String name);
19343 } 19556 }
19344 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19557 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19345 // for details. All rights reserved. Use of this source code is governed by a 19558 // for details. All rights reserved. Use of this source code is governed by a
19346 // BSD-style license that can be found in the LICENSE file. 19559 // BSD-style license that can be found in the LICENSE file.
19347 19560
19348 // WARNING: Do not edit - generated code. 19561 // WARNING: Do not edit - generated code.
19349 19562
19350 interface DOMParser { 19563 interface DOMParser default _DOMParserFactoryProvider {
19564
19565 DOMParser();
19351 19566
19352 Document parseFromString(String str, String contentType); 19567 Document parseFromString(String str, String contentType);
19353 } 19568 }
19354 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19569 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19355 // for details. All rights reserved. Use of this source code is governed by a 19570 // for details. All rights reserved. Use of this source code is governed by a
19356 // BSD-style license that can be found in the LICENSE file. 19571 // BSD-style license that can be found in the LICENSE file.
19357 19572
19358 // WARNING: Do not edit - generated code. 19573 // WARNING: Do not edit - generated code.
19359 19574
19360 interface DOMPlugin { 19575 interface DOMPlugin {
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
19478 String toString(); 19693 String toString();
19479 19694
19480 bool toggle(String token); 19695 bool toggle(String token);
19481 } 19696 }
19482 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19697 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19483 // for details. All rights reserved. Use of this source code is governed by a 19698 // for details. All rights reserved. Use of this source code is governed by a
19484 // BSD-style license that can be found in the LICENSE file. 19699 // BSD-style license that can be found in the LICENSE file.
19485 19700
19486 // WARNING: Do not edit - generated code. 19701 // WARNING: Do not edit - generated code.
19487 19702
19488 interface DOMURL { 19703 interface DOMURL default _DOMURLFactoryProvider {
19704
19705 DOMURL();
19489 } 19706 }
19490 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19707 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19491 // for details. All rights reserved. Use of this source code is governed by a 19708 // for details. All rights reserved. Use of this source code is governed by a
19492 // BSD-style license that can be found in the LICENSE file. 19709 // BSD-style license that can be found in the LICENSE file.
19493 19710
19494 // WARNING: Do not edit - generated code. 19711 // WARNING: Do not edit - generated code.
19495 19712
19496 interface DataTransferItem { 19713 interface DataTransferItem {
19497 19714
19498 final String kind; 19715 final String kind;
(...skipping 1268 matching lines...) Expand 10 before | Expand all | Expand 10 after
20767 final String name; 20984 final String name;
20768 20985
20769 String toString(); 20986 String toString();
20770 } 20987 }
20771 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20988 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20772 // for details. All rights reserved. Use of this source code is governed by a 20989 // for details. All rights reserved. Use of this source code is governed by a
20773 // BSD-style license that can be found in the LICENSE file. 20990 // BSD-style license that can be found in the LICENSE file.
20774 20991
20775 // WARNING: Do not edit - generated code. 20992 // WARNING: Do not edit - generated code.
20776 20993
20777 interface EventSource extends EventTarget { 20994 interface EventSource extends EventTarget default _EventSourceFactoryProvider {
20995
20996 EventSource(String scriptUrl);
20778 20997
20779 static final int CLOSED = 2; 20998 static final int CLOSED = 2;
20780 20999
20781 static final int CONNECTING = 0; 21000 static final int CONNECTING = 0;
20782 21001
20783 static final int OPEN = 1; 21002 static final int OPEN = 1;
20784 21003
20785 final String URL; 21004 final String URL;
20786 21005
20787 final int readyState; 21006 final int readyState;
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
20978 final int length; 21197 final int length;
20979 21198
20980 File item(int index); 21199 File item(int index);
20981 } 21200 }
20982 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21201 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20983 // for details. All rights reserved. Use of this source code is governed by a 21202 // for details. All rights reserved. Use of this source code is governed by a
20984 // BSD-style license that can be found in the LICENSE file. 21203 // BSD-style license that can be found in the LICENSE file.
20985 21204
20986 // WARNING: Do not edit - generated code. 21205 // WARNING: Do not edit - generated code.
20987 21206
20988 interface FileReader { 21207 interface FileReader default _FileReaderFactoryProvider {
21208
21209 FileReader();
20989 21210
20990 static final int DONE = 2; 21211 static final int DONE = 2;
20991 21212
20992 static final int EMPTY = 0; 21213 static final int EMPTY = 0;
20993 21214
20994 static final int LOADING = 1; 21215 static final int LOADING = 1;
20995 21216
20996 final FileError error; 21217 final FileError error;
20997 21218
20998 EventListener onabort; 21219 EventListener onabort;
(...skipping 27 matching lines...) Expand all
21026 void readAsText(Blob blob, [String encoding]); 21247 void readAsText(Blob blob, [String encoding]);
21027 21248
21028 void removeEventListener(String type, EventListener listener, [bool useCapture ]); 21249 void removeEventListener(String type, EventListener listener, [bool useCapture ]);
21029 } 21250 }
21030 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21251 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21031 // for details. All rights reserved. Use of this source code is governed by a 21252 // for details. All rights reserved. Use of this source code is governed by a
21032 // BSD-style license that can be found in the LICENSE file. 21253 // BSD-style license that can be found in the LICENSE file.
21033 21254
21034 // WARNING: Do not edit - generated code. 21255 // WARNING: Do not edit - generated code.
21035 21256
21036 interface FileReaderSync { 21257 interface FileReaderSync default _FileReaderSyncFactoryProvider {
21258
21259 FileReaderSync();
21037 21260
21038 ArrayBuffer readAsArrayBuffer(Blob blob); 21261 ArrayBuffer readAsArrayBuffer(Blob blob);
21039 21262
21040 String readAsBinaryString(Blob blob); 21263 String readAsBinaryString(Blob blob);
21041 21264
21042 String readAsDataURL(Blob blob); 21265 String readAsDataURL(Blob blob);
21043 21266
21044 String readAsText(Blob blob, [String encoding]); 21267 String readAsText(Blob blob, [String encoding]);
21045 } 21268 }
21046 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 21269 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
(...skipping 1297 matching lines...) Expand 10 before | Expand all | Expand 10 after
22344 void start(); 22567 void start();
22345 22568
22346 void stop(); 22569 void stop();
22347 } 22570 }
22348 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22571 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22349 // for details. All rights reserved. Use of this source code is governed by a 22572 // for details. All rights reserved. Use of this source code is governed by a
22350 // BSD-style license that can be found in the LICENSE file. 22573 // BSD-style license that can be found in the LICENSE file.
22351 22574
22352 // WARNING: Do not edit - generated code. 22575 // WARNING: Do not edit - generated code.
22353 22576
22354 interface MediaController { 22577 interface MediaController default _MediaControllerFactoryProvider {
22578
22579 MediaController();
22355 22580
22356 final TimeRanges buffered; 22581 final TimeRanges buffered;
22357 22582
22358 num currentTime; 22583 num currentTime;
22359 22584
22360 num defaultPlaybackRate; 22585 num defaultPlaybackRate;
22361 22586
22362 final num duration; 22587 final num duration;
22363 22588
22364 bool muted; 22589 bool muted;
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
22574 interface MediaQueryListListener { 22799 interface MediaQueryListListener {
22575 22800
22576 void queryChanged(MediaQueryList list); 22801 void queryChanged(MediaQueryList list);
22577 } 22802 }
22578 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22803 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22579 // for details. All rights reserved. Use of this source code is governed by a 22804 // for details. All rights reserved. Use of this source code is governed by a
22580 // BSD-style license that can be found in the LICENSE file. 22805 // BSD-style license that can be found in the LICENSE file.
22581 22806
22582 // WARNING: Do not edit - generated code. 22807 // WARNING: Do not edit - generated code.
22583 22808
22584 interface MediaStream { 22809 interface MediaStream default _MediaStreamFactoryProvider {
22810
22811 MediaStream(MediaStreamTrackList audioTracks, MediaStreamTrackList videoTracks );
22585 22812
22586 static final int ENDED = 2; 22813 static final int ENDED = 2;
22587 22814
22588 static final int LIVE = 1; 22815 static final int LIVE = 1;
22589 22816
22590 final MediaStreamTrackList audioTracks; 22817 final MediaStreamTrackList audioTracks;
22591 22818
22592 final String label; 22819 final String label;
22593 22820
22594 EventListener onended; 22821 EventListener onended;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
22674 interface MenuElement extends Element { 22901 interface MenuElement extends Element {
22675 22902
22676 bool compact; 22903 bool compact;
22677 } 22904 }
22678 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22905 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22679 // for details. All rights reserved. Use of this source code is governed by a 22906 // for details. All rights reserved. Use of this source code is governed by a
22680 // BSD-style license that can be found in the LICENSE file. 22907 // BSD-style license that can be found in the LICENSE file.
22681 22908
22682 // WARNING: Do not edit - generated code. 22909 // WARNING: Do not edit - generated code.
22683 22910
22684 interface MessageChannel { 22911 interface MessageChannel default _MessageChannelFactoryProvider {
22912
22913 MessageChannel();
22685 22914
22686 final MessagePort port1; 22915 final MessagePort port1;
22687 22916
22688 final MessagePort port2; 22917 final MessagePort port2;
22689 } 22918 }
22690 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22919 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22691 // for details. All rights reserved. Use of this source code is governed by a 22920 // for details. All rights reserved. Use of this source code is governed by a
22692 // BSD-style license that can be found in the LICENSE file. 22921 // BSD-style license that can be found in the LICENSE file.
22693 22922
22694 // WARNING: Do not edit - generated code. 22923 // WARNING: Do not edit - generated code.
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
23353 bool disabled; 23582 bool disabled;
23354 23583
23355 String label; 23584 String label;
23356 } 23585 }
23357 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23586 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23358 // for details. All rights reserved. Use of this source code is governed by a 23587 // for details. All rights reserved. Use of this source code is governed by a
23359 // BSD-style license that can be found in the LICENSE file. 23588 // BSD-style license that can be found in the LICENSE file.
23360 23589
23361 // WARNING: Do not edit - generated code. 23590 // WARNING: Do not edit - generated code.
23362 23591
23363 interface OptionElement extends Element { 23592 interface OptionElement extends Element default _OptionElementFactoryProvider {
23593
23594 OptionElement([String data, String value, bool defaultSelected, bool selected] );
23364 23595
23365 bool defaultSelected; 23596 bool defaultSelected;
23366 23597
23367 bool disabled; 23598 bool disabled;
23368 23599
23369 final FormElement form; 23600 final FormElement form;
23370 23601
23371 final int index; 23602 final int index;
23372 23603
23373 String label; 23604 String label;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
23465 String value; 23696 String value;
23466 23697
23467 String valueType; 23698 String valueType;
23468 } 23699 }
23469 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23700 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23470 // for details. All rights reserved. Use of this source code is governed by a 23701 // for details. All rights reserved. Use of this source code is governed by a
23471 // BSD-style license that can be found in the LICENSE file. 23702 // BSD-style license that can be found in the LICENSE file.
23472 23703
23473 // WARNING: Do not edit - generated code. 23704 // WARNING: Do not edit - generated code.
23474 23705
23475 interface PeerConnection { 23706 interface PeerConnection default _PeerConnectionFactoryProvider {
23707
23708 PeerConnection(String serverConfiguration, SignalingCallback signalingCallback );
23476 23709
23477 static final int ACTIVE = 2; 23710 static final int ACTIVE = 2;
23478 23711
23479 static final int CLOSED = 3; 23712 static final int CLOSED = 3;
23480 23713
23481 static final int NEGOTIATING = 1; 23714 static final int NEGOTIATING = 1;
23482 23715
23483 static final int NEW = 0; 23716 static final int NEW = 0;
23484 23717
23485 final MediaStreamList localStreams; 23718 final MediaStreamList localStreams;
(...skipping 3316 matching lines...) Expand 10 before | Expand all | Expand 10 after
26802 // WARNING: Do not edit - generated code. 27035 // WARNING: Do not edit - generated code.
26803 27036
26804 interface ShadowElement extends Element { 27037 interface ShadowElement extends Element {
26805 } 27038 }
26806 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 27039 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26807 // for details. All rights reserved. Use of this source code is governed by a 27040 // for details. All rights reserved. Use of this source code is governed by a
26808 // BSD-style license that can be found in the LICENSE file. 27041 // BSD-style license that can be found in the LICENSE file.
26809 27042
26810 // WARNING: Do not edit - generated code. 27043 // WARNING: Do not edit - generated code.
26811 27044
26812 interface ShadowRoot extends DocumentFragment { 27045 interface ShadowRoot extends DocumentFragment default _ShadowRootFactoryProvider {
27046
27047 ShadowRoot(Element host);
26813 27048
26814 final Element host; 27049 final Element host;
26815 27050
26816 Element getElementById(String elementId); 27051 Element getElementById(String elementId);
26817 27052
26818 NodeList getElementsByClassName(String className); 27053 NodeList getElementsByClassName(String className);
26819 27054
26820 NodeList getElementsByTagName(String tagName); 27055 NodeList getElementsByTagName(String tagName);
26821 27056
26822 NodeList getElementsByTagNameNS(String namespaceURI, String localName); 27057 NodeList getElementsByTagNameNS(String namespaceURI, String localName);
26823 } 27058 }
26824 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 27059 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26825 // for details. All rights reserved. Use of this source code is governed by a 27060 // for details. All rights reserved. Use of this source code is governed by a
26826 // BSD-style license that can be found in the LICENSE file. 27061 // BSD-style license that can be found in the LICENSE file.
26827 27062
26828 // WARNING: Do not edit - generated code. 27063 // WARNING: Do not edit - generated code.
26829 27064
26830 interface SharedWorker extends AbstractWorker { 27065 interface SharedWorker extends AbstractWorker default _SharedWorkerFactoryProvid er {
27066
27067 SharedWorker(String scriptURL, [String name]);
26831 27068
26832 final MessagePort port; 27069 final MessagePort port;
26833 } 27070 }
26834 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 27071 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26835 // for details. All rights reserved. Use of this source code is governed by a 27072 // for details. All rights reserved. Use of this source code is governed by a
26836 // BSD-style license that can be found in the LICENSE file. 27073 // BSD-style license that can be found in the LICENSE file.
26837 27074
26838 // WARNING: Do not edit - generated code. 27075 // WARNING: Do not edit - generated code.
26839 27076
26840 interface SharedWorkerContext extends WorkerContext { 27077 interface SharedWorkerContext extends WorkerContext {
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
27355 void removeCue(TextTrackCue cue); 27592 void removeCue(TextTrackCue cue);
27356 27593
27357 void removeEventListener(String type, EventListener listener, [bool useCapture ]); 27594 void removeEventListener(String type, EventListener listener, [bool useCapture ]);
27358 } 27595 }
27359 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 27596 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27360 // for details. All rights reserved. Use of this source code is governed by a 27597 // for details. All rights reserved. Use of this source code is governed by a
27361 // BSD-style license that can be found in the LICENSE file. 27598 // BSD-style license that can be found in the LICENSE file.
27362 27599
27363 // WARNING: Do not edit - generated code. 27600 // WARNING: Do not edit - generated code.
27364 27601
27365 interface TextTrackCue { 27602 interface TextTrackCue default _TextTrackCueFactoryProvider {
27603
27604 TextTrackCue(String id, num startTime, num endTime, String text, [String setti ngs, bool pauseOnExit]);
27366 27605
27367 String alignment; 27606 String alignment;
27368 27607
27369 String direction; 27608 String direction;
27370 27609
27371 num endTime; 27610 num endTime;
27372 27611
27373 String id; 27612 String id;
27374 27613
27375 int linePosition; 27614 int linePosition;
(...skipping 1933 matching lines...) Expand 10 before | Expand all | Expand 10 after
29309 EventListenerList get volumeChange(); 29548 EventListenerList get volumeChange();
29310 29549
29311 EventListenerList get waiting(); 29550 EventListenerList get waiting();
29312 } 29551 }
29313 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 29552 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
29314 // for details. All rights reserved. Use of this source code is governed by a 29553 // for details. All rights reserved. Use of this source code is governed by a
29315 // BSD-style license that can be found in the LICENSE file. 29554 // BSD-style license that can be found in the LICENSE file.
29316 29555
29317 // WARNING: Do not edit - generated code. 29556 // WARNING: Do not edit - generated code.
29318 29557
29319 interface Worker extends AbstractWorker { 29558 interface Worker extends AbstractWorker default _WorkerFactoryProvider {
29559
29560 Worker(String scriptUrl);
29320 29561
29321 WorkerEvents get on(); 29562 WorkerEvents get on();
29322 29563
29323 void postMessage(Dynamic message, [List messagePorts]); 29564 void postMessage(Dynamic message, [List messagePorts]);
29324 29565
29325 void terminate(); 29566 void terminate();
29326 29567
29327 void webkitPostMessage(Dynamic message, [List messagePorts]); 29568 void webkitPostMessage(Dynamic message, [List messagePorts]);
29328 } 29569 }
29329 29570
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
29429 29670
29430 final String userAgent; 29671 final String userAgent;
29431 } 29672 }
29432 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 29673 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
29433 // for details. All rights reserved. Use of this source code is governed by a 29674 // for details. All rights reserved. Use of this source code is governed by a
29434 // BSD-style license that can be found in the LICENSE file. 29675 // BSD-style license that can be found in the LICENSE file.
29435 29676
29436 // WARNING: Do not edit - generated code. 29677 // WARNING: Do not edit - generated code.
29437 29678
29438 interface XMLHttpRequest extends EventTarget default _XMLHttpRequestFactoryProvi der { 29679 interface XMLHttpRequest extends EventTarget default _XMLHttpRequestFactoryProvi der {
29439
29440 XMLHttpRequest();
29441
29442 // TODO(rnystrom): This name should just be "get" which is valid in Dart, but 29680 // TODO(rnystrom): This name should just be "get" which is valid in Dart, but
29443 // not correctly implemented yet. (b/4970173) 29681 // not correctly implemented yet. (b/4970173)
29444 XMLHttpRequest.getTEMPNAME(String url, onSuccess(XMLHttpRequest request)); 29682 XMLHttpRequest.getTEMPNAME(String url, onSuccess(XMLHttpRequest request));
29445 29683
29684 XMLHttpRequest();
29685
29446 static final int DONE = 4; 29686 static final int DONE = 4;
29447 29687
29448 static final int HEADERS_RECEIVED = 2; 29688 static final int HEADERS_RECEIVED = 2;
29449 29689
29450 static final int LOADING = 3; 29690 static final int LOADING = 3;
29451 29691
29452 static final int OPENED = 1; 29692 static final int OPENED = 1;
29453 29693
29454 static final int UNSENT = 0; 29694 static final int UNSENT = 0;
29455 29695
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
29564 EventListenerList get loadStart(); 29804 EventListenerList get loadStart();
29565 29805
29566 EventListenerList get progress(); 29806 EventListenerList get progress();
29567 } 29807 }
29568 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 29808 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
29569 // for details. All rights reserved. Use of this source code is governed by a 29809 // for details. All rights reserved. Use of this source code is governed by a
29570 // BSD-style license that can be found in the LICENSE file. 29810 // BSD-style license that can be found in the LICENSE file.
29571 29811
29572 // WARNING: Do not edit - generated code. 29812 // WARNING: Do not edit - generated code.
29573 29813
29574 interface XMLSerializer { 29814 interface XMLSerializer default _XMLSerializerFactoryProvider {
29815
29816 XMLSerializer();
29575 29817
29576 String serializeToString(Node node); 29818 String serializeToString(Node node);
29577 } 29819 }
29578 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 29820 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
29579 // for details. All rights reserved. Use of this source code is governed by a 29821 // for details. All rights reserved. Use of this source code is governed by a
29580 // BSD-style license that can be found in the LICENSE file. 29822 // BSD-style license that can be found in the LICENSE file.
29581 29823
29582 // WARNING: Do not edit - generated code. 29824 // WARNING: Do not edit - generated code.
29583 29825
29584 interface XPathEvaluator { 29826 interface XPathEvaluator default _XPathEvaluatorFactoryProvider {
29827
29828 XPathEvaluator();
29585 29829
29586 XPathExpression createExpression(String expression, XPathNSResolver resolver); 29830 XPathExpression createExpression(String expression, XPathNSResolver resolver);
29587 29831
29588 XPathNSResolver createNSResolver(Node nodeResolver); 29832 XPathNSResolver createNSResolver(Node nodeResolver);
29589 29833
29590 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso lver, int type, XPathResult inResult); 29834 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso lver, int type, XPathResult inResult);
29591 } 29835 }
29592 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 29836 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
29593 // for details. All rights reserved. Use of this source code is governed by a 29837 // for details. All rights reserved. Use of this source code is governed by a
29594 // BSD-style license that can be found in the LICENSE file. 29838 // BSD-style license that can be found in the LICENSE file.
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
29674 Node iterateNext(); 29918 Node iterateNext();
29675 29919
29676 Node snapshotItem(int index); 29920 Node snapshotItem(int index);
29677 } 29921 }
29678 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 29922 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
29679 // for details. All rights reserved. Use of this source code is governed by a 29923 // for details. All rights reserved. Use of this source code is governed by a
29680 // BSD-style license that can be found in the LICENSE file. 29924 // BSD-style license that can be found in the LICENSE file.
29681 29925
29682 // WARNING: Do not edit - generated code. 29926 // WARNING: Do not edit - generated code.
29683 29927
29684 interface XSLTProcessor { 29928 interface XSLTProcessor default _XSLTProcessorFactoryProvider {
29929
29930 XSLTProcessor();
29685 29931
29686 void clearParameters(); 29932 void clearParameters();
29687 29933
29688 String getParameter(String namespaceURI, String localName); 29934 String getParameter(String namespaceURI, String localName);
29689 29935
29690 void importStylesheet(Node stylesheet); 29936 void importStylesheet(Node stylesheet);
29691 29937
29692 void removeParameter(String namespaceURI, String localName); 29938 void removeParameter(String namespaceURI, String localName);
29693 29939
29694 void reset(); 29940 void reset();
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
30328 // BSD-style license that can be found in the LICENSE file. 30574 // BSD-style license that can be found in the LICENSE file.
30329 30575
30330 class _AudioContextFactoryProvider { 30576 class _AudioContextFactoryProvider {
30331 30577
30332 factory AudioContext() native ''' 30578 factory AudioContext() native '''
30333 var constructor = window.AudioContext || window.webkitAudioContext; 30579 var constructor = window.AudioContext || window.webkitAudioContext;
30334 return new constructor(); 30580 return new constructor();
30335 '''; 30581 ''';
30336 } 30582 }
30337 30583
30338 class _DOMParserFactoryProvider {
30339
30340 factory DOMParser() native 'return new DOMParser();';
30341 }
30342
30343 class _FileReaderFactoryProvider {
30344
30345 factory FileReader() native 'return new FileReader();';
30346 }
30347
30348 class _TypedArrayFactoryProvider { 30584 class _TypedArrayFactoryProvider {
30349 30585
30350 factory Float32Array(int length) => _F32(length); 30586 factory Float32Array(int length) => _F32(length);
30351 factory Float32Array.fromList(List<num> list) => _F32(ensureNative(list)); 30587 factory Float32Array.fromList(List<num> list) => _F32(ensureNative(list));
30352 factory Float32Array.fromBuffer(ArrayBuffer buffer) => _F32(buffer); 30588 factory Float32Array.fromBuffer(ArrayBuffer buffer) => _F32(buffer);
30353 30589
30354 factory Float64Array(int length) => _F64(length); 30590 factory Float64Array(int length) => _F64(length);
30355 factory Float64Array.fromList(List<num> list) => _F64(ensureNative(list)); 30591 factory Float64Array.fromList(List<num> list) => _F64(ensureNative(list));
30356 factory Float64Array.fromBuffer(ArrayBuffer buffer) => _F64(buffer); 30592 factory Float64Array.fromBuffer(ArrayBuffer buffer) => _F64(buffer);
30357 30593
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
30389 static Int16Array _I16(arg) native 'return new Int16Array(arg);'; 30625 static Int16Array _I16(arg) native 'return new Int16Array(arg);';
30390 static Int32Array _I32(arg) native 'return new Int32Array(arg);'; 30626 static Int32Array _I32(arg) native 'return new Int32Array(arg);';
30391 static Uint8Array _U8(arg) native 'return new Uint8Array(arg);'; 30627 static Uint8Array _U8(arg) native 'return new Uint8Array(arg);';
30392 static Uint16Array _U16(arg) native 'return new Uint16Array(arg);'; 30628 static Uint16Array _U16(arg) native 'return new Uint16Array(arg);';
30393 static Uint32Array _U32(arg) native 'return new Uint32Array(arg);'; 30629 static Uint32Array _U32(arg) native 'return new Uint32Array(arg);';
30394 static Uint8ClampedArray _U8C(arg) native 'return new Uint8ClampedArray(arg);' ; 30630 static Uint8ClampedArray _U8C(arg) native 'return new Uint8ClampedArray(arg);' ;
30395 30631
30396 static ensureNative(List list) => list; // TODO: make sure. 30632 static ensureNative(List list) => list; // TODO: make sure.
30397 } 30633 }
30398 30634
30399 class _CSSMatrixFactoryProvider {
30400
30401 factory CSSMatrix([String spec = '']) native
30402 'return new WebKitCSSMatrix(spec);';
30403 }
30404
30405 // TODO(jacobr): this factory does not require any native code so move to a 30635 // TODO(jacobr): this factory does not require any native code so move to a
30406 // separate file so it can be shared between wrapper and wrapperless versions. 30636 // separate file so it can be shared between wrapper and wrapperless versions.
30407 class _EventFactoryProvider { 30637 class _EventFactoryProvider {
30408 factory Event(String type, [bool canBubble = true, 30638 factory Event(String type, [bool canBubble = true,
30409 bool cancelable = true]) { 30639 bool cancelable = true]) {
30410 _EventJs e = _document._createEvent("Event"); 30640 _EventJs e = _document._createEvent("Event");
30411 e._initEvent(type, canBubble, cancelable); 30641 e._initEvent(type, canBubble, cancelable);
30412 return e; 30642 return e;
30413 } 30643 }
30414 } 30644 }
30415 30645
30416 class _PointFactoryProvider { 30646 class _PointFactoryProvider {
30417 30647
30418 factory Point(num x, num y) native 'return new WebKitPoint(x, y);'; 30648 factory Point(num x, num y) native 'return new WebKitPoint(x, y);';
30419 } 30649 }
30420
30421 class _WebSocketFactoryProvider {
30422
30423 factory WebSocket(String url) native 'return new WebSocket(url);';
30424 }
30425
30426 class _XMLHttpRequestFactoryProvider {
30427 factory XMLHttpRequest() native 'return new XMLHttpRequest();';
30428
30429 factory XMLHttpRequest.getTEMPNAME(String url,
30430 onSuccess(XMLHttpRequest request)) {
30431 final request = new XMLHttpRequest();
30432 request.open('GET', url, true);
30433
30434 // TODO(terry): Validate after client login added if necessary to forward
30435 // cookies to server.
30436 request.withCredentials = true;
30437
30438 // Status 0 is for local XHR request.
30439 request.on.readyStateChange.add((e) {
30440 if (request.readyState == XMLHttpRequest.DONE &&
30441 (request.status == 200 || request.status == 0)) {
30442 onSuccess(request);
30443 }
30444 });
30445
30446 request.send();
30447
30448 return request;
30449 }
30450 }
30451 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 30650 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
30452 // for details. All rights reserved. Use of this source code is governed by a 30651 // for details. All rights reserved. Use of this source code is governed by a
30453 // BSD-style license that can be found in the LICENSE file. 30652 // BSD-style license that can be found in the LICENSE file.
30454 30653
30455 /** 30654 /**
30456 * Utils for device detection. 30655 * Utils for device detection.
30457 */ 30656 */
30458 class _Device { 30657 class _Device {
30459 /** 30658 /**
30460 * Gets the browser's user agent. Using this function allows tests to inject 30659 * Gets the browser's user agent. Using this function allows tests to inject
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
30562 if (length < 0) throw new IllegalArgumentException('length'); 30761 if (length < 0) throw new IllegalArgumentException('length');
30563 if (start < 0) throw new IndexOutOfRangeException(start); 30762 if (start < 0) throw new IndexOutOfRangeException(start);
30564 int end = start + length; 30763 int end = start + length;
30565 if (end > a.length) throw new IndexOutOfRangeException(end); 30764 if (end > a.length) throw new IndexOutOfRangeException(end);
30566 for (int i = start; i < end; i++) { 30765 for (int i = start; i < end; i++) {
30567 accumulator.add(a[i]); 30766 accumulator.add(a[i]);
30568 } 30767 }
30569 return accumulator; 30768 return accumulator;
30570 } 30769 }
30571 } 30770 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698