| OLD | NEW |
| 1 #library('dom'); | 1 #library('dom'); |
| 2 | 2 |
| 3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 4 // for details. All rights reserved. Use of this source code is governed by a | 4 // for details. All rights reserved. Use of this source code is governed by a |
| 5 // BSD-style license that can be found in the LICENSE file. | 5 // BSD-style license that can be found in the LICENSE file. |
| 6 | 6 |
| 7 // DO NOT EDIT | 7 // DO NOT EDIT |
| 8 // Auto-generated Dart DOM library. | 8 // Auto-generated Dart DOM library. |
| 9 | 9 |
| 10 | 10 |
| (...skipping 1156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1167 | 1167 |
| 1168 void remove(String token) native; | 1168 void remove(String token) native; |
| 1169 | 1169 |
| 1170 String toString() native; | 1170 String toString() native; |
| 1171 | 1171 |
| 1172 bool toggle(String token) native; | 1172 bool toggle(String token) native; |
| 1173 } | 1173 } |
| 1174 | 1174 |
| 1175 class _DOMURLJs extends _DOMTypeJs implements DOMURL native "*DOMURL" { | 1175 class _DOMURLJs extends _DOMTypeJs implements DOMURL native "*DOMURL" { |
| 1176 | 1176 |
| 1177 String createObjectURL(_BlobJs blob) native; | 1177 String createObjectURL(var blob_OR_stream) native; |
| 1178 | 1178 |
| 1179 void revokeObjectURL(String url) native; | 1179 void revokeObjectURL(String url) native; |
| 1180 } | 1180 } |
| 1181 | 1181 |
| 1182 class _DOMWindowJs extends _EventTargetJs implements DOMWindow native "@*DOMWind
ow" { | 1182 class _DOMWindowJs extends _EventTargetJs implements DOMWindow native "@*DOMWind
ow" { |
| 1183 | 1183 |
| 1184 static final int PERSISTENT = 1; | 1184 static final int PERSISTENT = 1; |
| 1185 | 1185 |
| 1186 static final int TEMPORARY = 0; | 1186 static final int TEMPORARY = 0; |
| 1187 | 1187 |
| (...skipping 1519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2707 List<Node> getRange(int start, int length) => | 2707 List<Node> getRange(int start, int length) => |
| 2708 _Lists.getRange(this, start, length, <Node>[]); | 2708 _Lists.getRange(this, start, length, <Node>[]); |
| 2709 | 2709 |
| 2710 // -- end List<Node> mixins. | 2710 // -- end List<Node> mixins. |
| 2711 | 2711 |
| 2712 _NodeJs item(int index) native; | 2712 _NodeJs item(int index) native; |
| 2713 | 2713 |
| 2714 _NodeJs namedItem(String name) native; | 2714 _NodeJs namedItem(String name) native; |
| 2715 } | 2715 } |
| 2716 | 2716 |
| 2717 class _HTMLContentElementJs extends _HTMLElementJs implements HTMLContentElement
native "*HTMLContentElement" { |
| 2718 |
| 2719 String select; |
| 2720 } |
| 2721 |
| 2717 class _HTMLDListElementJs extends _HTMLElementJs implements HTMLDListElement nat
ive "*HTMLDListElement" { | 2722 class _HTMLDListElementJs extends _HTMLElementJs implements HTMLDListElement nat
ive "*HTMLDListElement" { |
| 2718 | 2723 |
| 2719 bool compact; | 2724 bool compact; |
| 2720 } | 2725 } |
| 2721 | 2726 |
| 2722 class _HTMLDetailsElementJs extends _HTMLElementJs implements HTMLDetailsElement
native "*HTMLDetailsElement" { | 2727 class _HTMLDetailsElementJs extends _HTMLElementJs implements HTMLDetailsElement
native "*HTMLDetailsElement" { |
| 2723 | 2728 |
| 2724 bool open; | 2729 bool open; |
| 2725 } | 2730 } |
| 2726 | 2731 |
| (...skipping 1840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4567 | 4572 |
| 4568 final int keyLocation; | 4573 final int keyLocation; |
| 4569 | 4574 |
| 4570 final bool metaKey; | 4575 final bool metaKey; |
| 4571 | 4576 |
| 4572 final bool shiftKey; | 4577 final bool shiftKey; |
| 4573 | 4578 |
| 4574 void initKeyboardEvent(String type, bool canBubble, bool cancelable, _DOMWindo
wJs view, String keyIdentifier, int keyLocation, bool ctrlKey, bool altKey, bool
shiftKey, bool metaKey, bool altGraphKey) native; | 4579 void initKeyboardEvent(String type, bool canBubble, bool cancelable, _DOMWindo
wJs view, String keyIdentifier, int keyLocation, bool ctrlKey, bool altKey, bool
shiftKey, bool metaKey, bool altGraphKey) native; |
| 4575 } | 4580 } |
| 4576 | 4581 |
| 4582 class _LocalMediaStreamJs extends _MediaStreamJs implements LocalMediaStream nat
ive "*LocalMediaStream" { |
| 4583 |
| 4584 void stop() native; |
| 4585 } |
| 4586 |
| 4577 class _LocationJs extends _DOMTypeJs implements Location native "*Location" { | 4587 class _LocationJs extends _DOMTypeJs implements Location native "*Location" { |
| 4578 | 4588 |
| 4579 String hash; | 4589 String hash; |
| 4580 | 4590 |
| 4581 String host; | 4591 String host; |
| 4582 | 4592 |
| 4583 String hostname; | 4593 String hostname; |
| 4584 | 4594 |
| 4585 String href; | 4595 String href; |
| 4586 | 4596 |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4756 void addListener(_MediaQueryListListenerJs listener) native; | 4766 void addListener(_MediaQueryListListenerJs listener) native; |
| 4757 | 4767 |
| 4758 void removeListener(_MediaQueryListListenerJs listener) native; | 4768 void removeListener(_MediaQueryListListenerJs listener) native; |
| 4759 } | 4769 } |
| 4760 | 4770 |
| 4761 class _MediaQueryListListenerJs extends _DOMTypeJs implements MediaQueryListList
ener native "*MediaQueryListListener" { | 4771 class _MediaQueryListListenerJs extends _DOMTypeJs implements MediaQueryListList
ener native "*MediaQueryListListener" { |
| 4762 | 4772 |
| 4763 void queryChanged(_MediaQueryListJs list) native; | 4773 void queryChanged(_MediaQueryListJs list) native; |
| 4764 } | 4774 } |
| 4765 | 4775 |
| 4776 class _MediaStreamJs extends _DOMTypeJs implements MediaStream native "*MediaStr
eam" { |
| 4777 |
| 4778 static final int ENDED = 2; |
| 4779 |
| 4780 static final int LIVE = 1; |
| 4781 |
| 4782 final _MediaStreamTrackListJs audioTracks; |
| 4783 |
| 4784 final String label; |
| 4785 |
| 4786 EventListener onended; |
| 4787 |
| 4788 final int readyState; |
| 4789 |
| 4790 final _MediaStreamTrackListJs videoTracks; |
| 4791 |
| 4792 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
| 4793 |
| 4794 bool dispatchEvent(_EventJs event) native; |
| 4795 |
| 4796 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
| 4797 } |
| 4798 |
| 4799 class _MediaStreamEventJs extends _EventJs implements MediaStreamEvent native "*
MediaStreamEvent" { |
| 4800 |
| 4801 final _MediaStreamJs stream; |
| 4802 } |
| 4803 |
| 4804 class _MediaStreamListJs extends _DOMTypeJs implements MediaStreamList native "*
MediaStreamList" { |
| 4805 |
| 4806 final int length; |
| 4807 |
| 4808 _MediaStreamJs item(int index) native; |
| 4809 } |
| 4810 |
| 4811 class _MediaStreamTrackJs extends _DOMTypeJs implements MediaStreamTrack native
"*MediaStreamTrack" { |
| 4812 |
| 4813 bool enabled; |
| 4814 |
| 4815 final String kind; |
| 4816 |
| 4817 final String label; |
| 4818 } |
| 4819 |
| 4820 class _MediaStreamTrackListJs extends _DOMTypeJs implements MediaStreamTrackList
native "*MediaStreamTrackList" { |
| 4821 |
| 4822 final int length; |
| 4823 |
| 4824 _MediaStreamTrackJs item(int index) native; |
| 4825 } |
| 4826 |
| 4766 class _MemoryInfoJs extends _DOMTypeJs implements MemoryInfo native "*MemoryInfo
" { | 4827 class _MemoryInfoJs extends _DOMTypeJs implements MemoryInfo native "*MemoryInfo
" { |
| 4767 | 4828 |
| 4768 final int jsHeapSizeLimit; | 4829 final int jsHeapSizeLimit; |
| 4769 | 4830 |
| 4770 final int totalJSHeapSize; | 4831 final int totalJSHeapSize; |
| 4771 | 4832 |
| 4772 final int usedJSHeapSize; | 4833 final int usedJSHeapSize; |
| 4773 } | 4834 } |
| 4774 | 4835 |
| 4775 class _MessageChannelJs extends _DOMTypeJs implements MessageChannel native "*Me
ssageChannel" { | 4836 class _MessageChannelJs extends _DOMTypeJs implements MessageChannel native "*Me
ssageChannel" { |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5000 | 5061 |
| 5001 final String vendor; | 5062 final String vendor; |
| 5002 | 5063 |
| 5003 final String vendorSub; | 5064 final String vendorSub; |
| 5004 | 5065 |
| 5005 void getStorageUpdates() native; | 5066 void getStorageUpdates() native; |
| 5006 | 5067 |
| 5007 bool javaEnabled() native; | 5068 bool javaEnabled() native; |
| 5008 | 5069 |
| 5009 void registerProtocolHandler(String scheme, String url, String title) native; | 5070 void registerProtocolHandler(String scheme, String url, String title) native; |
| 5071 |
| 5072 void webkitGetUserMedia(String options, NavigatorUserMediaSuccessCallback succ
essCallback, [NavigatorUserMediaErrorCallback errorCallback = null]) native; |
| 5073 } |
| 5074 |
| 5075 class _NavigatorUserMediaErrorJs extends _DOMTypeJs implements NavigatorUserMedi
aError native "*NavigatorUserMediaError" { |
| 5076 |
| 5077 static final int PERMISSION_DENIED = 1; |
| 5078 |
| 5079 final int code; |
| 5010 } | 5080 } |
| 5011 | 5081 |
| 5012 class _NodeJs extends _EventTargetJs implements Node native "*Node" { | 5082 class _NodeJs extends _EventTargetJs implements Node native "*Node" { |
| 5013 | 5083 |
| 5014 static final int ATTRIBUTE_NODE = 2; | 5084 static final int ATTRIBUTE_NODE = 2; |
| 5015 | 5085 |
| 5016 static final int CDATA_SECTION_NODE = 4; | 5086 static final int CDATA_SECTION_NODE = 4; |
| 5017 | 5087 |
| 5018 static final int COMMENT_NODE = 8; | 5088 static final int COMMENT_NODE = 8; |
| 5019 | 5089 |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5352 final int orient; | 5422 final int orient; |
| 5353 | 5423 |
| 5354 final bool verticalOverflow; | 5424 final bool verticalOverflow; |
| 5355 } | 5425 } |
| 5356 | 5426 |
| 5357 class _PageTransitionEventJs extends _EventJs implements PageTransitionEvent nat
ive "*PageTransitionEvent" { | 5427 class _PageTransitionEventJs extends _EventJs implements PageTransitionEvent nat
ive "*PageTransitionEvent" { |
| 5358 | 5428 |
| 5359 final bool persisted; | 5429 final bool persisted; |
| 5360 } | 5430 } |
| 5361 | 5431 |
| 5432 class _PeerConnectionJs extends _DOMTypeJs implements PeerConnection native "*Pe
erConnection" { |
| 5433 |
| 5434 static final int ACTIVE = 2; |
| 5435 |
| 5436 static final int CLOSED = 3; |
| 5437 |
| 5438 static final int NEGOTIATING = 1; |
| 5439 |
| 5440 static final int NEW = 0; |
| 5441 |
| 5442 final _MediaStreamListJs localStreams; |
| 5443 |
| 5444 EventListener onaddstream; |
| 5445 |
| 5446 EventListener onconnecting; |
| 5447 |
| 5448 EventListener onmessage; |
| 5449 |
| 5450 EventListener onopen; |
| 5451 |
| 5452 EventListener onremovestream; |
| 5453 |
| 5454 final int readyState; |
| 5455 |
| 5456 final _MediaStreamListJs remoteStreams; |
| 5457 |
| 5458 void addEventListener(String type, EventListener listener, bool useCapture) na
tive; |
| 5459 |
| 5460 void addStream(_MediaStreamJs stream) native; |
| 5461 |
| 5462 void close() native; |
| 5463 |
| 5464 bool dispatchEvent(_EventJs event) native; |
| 5465 |
| 5466 void processSignalingMessage(String message) native; |
| 5467 |
| 5468 void removeEventListener(String type, EventListener listener, bool useCapture)
native; |
| 5469 |
| 5470 void removeStream(_MediaStreamJs stream) native; |
| 5471 |
| 5472 void send(String text) native; |
| 5473 } |
| 5474 |
| 5362 class _PerformanceJs extends _DOMTypeJs implements Performance native "*Performa
nce" { | 5475 class _PerformanceJs extends _DOMTypeJs implements Performance native "*Performa
nce" { |
| 5363 | 5476 |
| 5364 final _MemoryInfoJs memory; | 5477 final _MemoryInfoJs memory; |
| 5365 | 5478 |
| 5366 final _PerformanceNavigationJs navigation; | 5479 final _PerformanceNavigationJs navigation; |
| 5367 | 5480 |
| 5368 final _PerformanceTimingJs timing; | 5481 final _PerformanceTimingJs timing; |
| 5369 } | 5482 } |
| 5370 | 5483 |
| 5371 class _PerformanceNavigationJs extends _DOMTypeJs implements PerformanceNavigati
on native "*PerformanceNavigation" { | 5484 class _PerformanceNavigationJs extends _DOMTypeJs implements PerformanceNavigati
on native "*PerformanceNavigation" { |
| (...skipping 3625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8997 | 9110 |
| 8998 final num selfTime; | 9111 final num selfTime; |
| 8999 | 9112 |
| 9000 final num totalTime; | 9113 final num totalTime; |
| 9001 | 9114 |
| 9002 final String url; | 9115 final String url; |
| 9003 | 9116 |
| 9004 final bool visible; | 9117 final bool visible; |
| 9005 } | 9118 } |
| 9006 | 9119 |
| 9120 class _ShadowRootJs extends _NodeJs implements ShadowRoot native "*ShadowRoot" { |
| 9121 |
| 9122 final _ElementJs host; |
| 9123 } |
| 9124 |
| 9007 class _SharedWorkerJs extends _AbstractWorkerJs implements SharedWorker native "
*SharedWorker" { | 9125 class _SharedWorkerJs extends _AbstractWorkerJs implements SharedWorker native "
*SharedWorker" { |
| 9008 | 9126 |
| 9009 final _MessagePortJs port; | 9127 final _MessagePortJs port; |
| 9010 } | 9128 } |
| 9011 | 9129 |
| 9012 class _SharedWorkerContextJs extends _WorkerContextJs implements SharedWorkerCon
text native "*SharedWorkerContext" { | 9130 class _SharedWorkerContextJs extends _WorkerContextJs implements SharedWorkerCon
text native "*SharedWorkerContext" { |
| 9013 | 9131 |
| 9014 final String name; | 9132 final String name; |
| 9015 | 9133 |
| 9016 EventListener onconnect; | 9134 EventListener onconnect; |
| (...skipping 3774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12791 bool toggle(String token); | 12909 bool toggle(String token); |
| 12792 } | 12910 } |
| 12793 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12911 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 12794 // for details. All rights reserved. Use of this source code is governed by a | 12912 // for details. All rights reserved. Use of this source code is governed by a |
| 12795 // BSD-style license that can be found in the LICENSE file. | 12913 // BSD-style license that can be found in the LICENSE file. |
| 12796 | 12914 |
| 12797 // WARNING: Do not edit - generated code. | 12915 // WARNING: Do not edit - generated code. |
| 12798 | 12916 |
| 12799 interface DOMURL { | 12917 interface DOMURL { |
| 12800 | 12918 |
| 12801 String createObjectURL(Blob blob); | 12919 String createObjectURL(var blob_OR_stream); |
| 12802 | 12920 |
| 12803 void revokeObjectURL(String url); | 12921 void revokeObjectURL(String url); |
| 12804 } | 12922 } |
| 12805 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12923 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 12806 // for details. All rights reserved. Use of this source code is governed by a | 12924 // for details. All rights reserved. Use of this source code is governed by a |
| 12807 // BSD-style license that can be found in the LICENSE file. | 12925 // BSD-style license that can be found in the LICENSE file. |
| 12808 | 12926 |
| 12809 // WARNING: Do not edit - generated code. | 12927 // WARNING: Do not edit - generated code. |
| 12810 | 12928 |
| 12811 interface Window extends EventTarget { | 12929 interface Window extends EventTarget { |
| (...skipping 1652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14464 Node item(int index); | 14582 Node item(int index); |
| 14465 | 14583 |
| 14466 Node namedItem(String name); | 14584 Node namedItem(String name); |
| 14467 } | 14585 } |
| 14468 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14586 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 14469 // for details. All rights reserved. Use of this source code is governed by a | 14587 // for details. All rights reserved. Use of this source code is governed by a |
| 14470 // BSD-style license that can be found in the LICENSE file. | 14588 // BSD-style license that can be found in the LICENSE file. |
| 14471 | 14589 |
| 14472 // WARNING: Do not edit - generated code. | 14590 // WARNING: Do not edit - generated code. |
| 14473 | 14591 |
| 14592 interface HTMLContentElement extends HTMLElement { |
| 14593 |
| 14594 String select; |
| 14595 } |
| 14596 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 14597 // for details. All rights reserved. Use of this source code is governed by a |
| 14598 // BSD-style license that can be found in the LICENSE file. |
| 14599 |
| 14600 // WARNING: Do not edit - generated code. |
| 14601 |
| 14474 interface HTMLDListElement extends HTMLElement { | 14602 interface HTMLDListElement extends HTMLElement { |
| 14475 | 14603 |
| 14476 bool compact; | 14604 bool compact; |
| 14477 } | 14605 } |
| 14478 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14606 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 14479 // for details. All rights reserved. Use of this source code is governed by a | 14607 // for details. All rights reserved. Use of this source code is governed by a |
| 14480 // BSD-style license that can be found in the LICENSE file. | 14608 // BSD-style license that can be found in the LICENSE file. |
| 14481 | 14609 |
| 14482 // WARNING: Do not edit - generated code. | 14610 // WARNING: Do not edit - generated code. |
| 14483 | 14611 |
| (...skipping 2042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16526 final bool shiftKey; | 16654 final bool shiftKey; |
| 16527 | 16655 |
| 16528 void initKeyboardEvent(String type, bool canBubble, bool cancelable, DOMWindow
view, String keyIdentifier, int keyLocation, bool ctrlKey, bool altKey, bool sh
iftKey, bool metaKey, bool altGraphKey); | 16656 void initKeyboardEvent(String type, bool canBubble, bool cancelable, DOMWindow
view, String keyIdentifier, int keyLocation, bool ctrlKey, bool altKey, bool sh
iftKey, bool metaKey, bool altGraphKey); |
| 16529 } | 16657 } |
| 16530 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16658 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 16531 // for details. All rights reserved. Use of this source code is governed by a | 16659 // for details. All rights reserved. Use of this source code is governed by a |
| 16532 // BSD-style license that can be found in the LICENSE file. | 16660 // BSD-style license that can be found in the LICENSE file. |
| 16533 | 16661 |
| 16534 // WARNING: Do not edit - generated code. | 16662 // WARNING: Do not edit - generated code. |
| 16535 | 16663 |
| 16664 interface LocalMediaStream extends MediaStream { |
| 16665 |
| 16666 void stop(); |
| 16667 } |
| 16668 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 16669 // for details. All rights reserved. Use of this source code is governed by a |
| 16670 // BSD-style license that can be found in the LICENSE file. |
| 16671 |
| 16672 // WARNING: Do not edit - generated code. |
| 16673 |
| 16536 interface Location { | 16674 interface Location { |
| 16537 | 16675 |
| 16538 String hash; | 16676 String hash; |
| 16539 | 16677 |
| 16540 String host; | 16678 String host; |
| 16541 | 16679 |
| 16542 String hostname; | 16680 String hostname; |
| 16543 | 16681 |
| 16544 String href; | 16682 String href; |
| 16545 | 16683 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16682 interface MediaQueryListListener { | 16820 interface MediaQueryListListener { |
| 16683 | 16821 |
| 16684 void queryChanged(MediaQueryList list); | 16822 void queryChanged(MediaQueryList list); |
| 16685 } | 16823 } |
| 16686 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16824 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 16687 // for details. All rights reserved. Use of this source code is governed by a | 16825 // for details. All rights reserved. Use of this source code is governed by a |
| 16688 // BSD-style license that can be found in the LICENSE file. | 16826 // BSD-style license that can be found in the LICENSE file. |
| 16689 | 16827 |
| 16690 // WARNING: Do not edit - generated code. | 16828 // WARNING: Do not edit - generated code. |
| 16691 | 16829 |
| 16830 interface MediaStream { |
| 16831 |
| 16832 static final int ENDED = 2; |
| 16833 |
| 16834 static final int LIVE = 1; |
| 16835 |
| 16836 final MediaStreamTrackList audioTracks; |
| 16837 |
| 16838 final String label; |
| 16839 |
| 16840 EventListener onended; |
| 16841 |
| 16842 final int readyState; |
| 16843 |
| 16844 final MediaStreamTrackList videoTracks; |
| 16845 |
| 16846 void addEventListener(String type, EventListener listener, [bool useCapture]); |
| 16847 |
| 16848 bool dispatchEvent(Event event); |
| 16849 |
| 16850 void removeEventListener(String type, EventListener listener, [bool useCapture
]); |
| 16851 } |
| 16852 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 16853 // for details. All rights reserved. Use of this source code is governed by a |
| 16854 // BSD-style license that can be found in the LICENSE file. |
| 16855 |
| 16856 // WARNING: Do not edit - generated code. |
| 16857 |
| 16858 interface MediaStreamEvent extends Event { |
| 16859 |
| 16860 final MediaStream stream; |
| 16861 } |
| 16862 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 16863 // for details. All rights reserved. Use of this source code is governed by a |
| 16864 // BSD-style license that can be found in the LICENSE file. |
| 16865 |
| 16866 // WARNING: Do not edit - generated code. |
| 16867 |
| 16868 interface MediaStreamList { |
| 16869 |
| 16870 final int length; |
| 16871 |
| 16872 MediaStream item(int index); |
| 16873 } |
| 16874 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 16875 // for details. All rights reserved. Use of this source code is governed by a |
| 16876 // BSD-style license that can be found in the LICENSE file. |
| 16877 |
| 16878 // WARNING: Do not edit - generated code. |
| 16879 |
| 16880 interface MediaStreamTrack { |
| 16881 |
| 16882 bool enabled; |
| 16883 |
| 16884 final String kind; |
| 16885 |
| 16886 final String label; |
| 16887 } |
| 16888 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 16889 // for details. All rights reserved. Use of this source code is governed by a |
| 16890 // BSD-style license that can be found in the LICENSE file. |
| 16891 |
| 16892 // WARNING: Do not edit - generated code. |
| 16893 |
| 16894 interface MediaStreamTrackList { |
| 16895 |
| 16896 final int length; |
| 16897 |
| 16898 MediaStreamTrack item(int index); |
| 16899 } |
| 16900 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 16901 // for details. All rights reserved. Use of this source code is governed by a |
| 16902 // BSD-style license that can be found in the LICENSE file. |
| 16903 |
| 16904 // WARNING: Do not edit - generated code. |
| 16905 |
| 16692 interface MemoryInfo { | 16906 interface MemoryInfo { |
| 16693 | 16907 |
| 16694 final int jsHeapSizeLimit; | 16908 final int jsHeapSizeLimit; |
| 16695 | 16909 |
| 16696 final int totalJSHeapSize; | 16910 final int totalJSHeapSize; |
| 16697 | 16911 |
| 16698 final int usedJSHeapSize; | 16912 final int usedJSHeapSize; |
| 16699 } | 16913 } |
| 16700 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16914 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 16701 // for details. All rights reserved. Use of this source code is governed by a | 16915 // for details. All rights reserved. Use of this source code is governed by a |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16900 | 17114 |
| 16901 final String vendor; | 17115 final String vendor; |
| 16902 | 17116 |
| 16903 final String vendorSub; | 17117 final String vendorSub; |
| 16904 | 17118 |
| 16905 void getStorageUpdates(); | 17119 void getStorageUpdates(); |
| 16906 | 17120 |
| 16907 bool javaEnabled(); | 17121 bool javaEnabled(); |
| 16908 | 17122 |
| 16909 void registerProtocolHandler(String scheme, String url, String title); | 17123 void registerProtocolHandler(String scheme, String url, String title); |
| 17124 |
| 17125 void webkitGetUserMedia(String options, NavigatorUserMediaSuccessCallback succ
essCallback, [NavigatorUserMediaErrorCallback errorCallback]); |
| 16910 } | 17126 } |
| 16911 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17127 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 16912 // for details. All rights reserved. Use of this source code is governed by a | 17128 // for details. All rights reserved. Use of this source code is governed by a |
| 16913 // BSD-style license that can be found in the LICENSE file. | 17129 // BSD-style license that can be found in the LICENSE file. |
| 16914 | 17130 |
| 16915 // WARNING: Do not edit - generated code. | 17131 // WARNING: Do not edit - generated code. |
| 16916 | 17132 |
| 17133 interface NavigatorUserMediaError { |
| 17134 |
| 17135 static final int PERMISSION_DENIED = 1; |
| 17136 |
| 17137 final int code; |
| 17138 } |
| 17139 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 17140 // for details. All rights reserved. Use of this source code is governed by a |
| 17141 // BSD-style license that can be found in the LICENSE file. |
| 17142 |
| 17143 // WARNING: Do not edit - generated code. |
| 17144 |
| 17145 typedef bool NavigatorUserMediaErrorCallback(NavigatorUserMediaError error); |
| 17146 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 17147 // for details. All rights reserved. Use of this source code is governed by a |
| 17148 // BSD-style license that can be found in the LICENSE file. |
| 17149 |
| 17150 // WARNING: Do not edit - generated code. |
| 17151 |
| 17152 typedef bool NavigatorUserMediaSuccessCallback(LocalMediaStream stream); |
| 17153 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 17154 // for details. All rights reserved. Use of this source code is governed by a |
| 17155 // BSD-style license that can be found in the LICENSE file. |
| 17156 |
| 17157 // WARNING: Do not edit - generated code. |
| 17158 |
| 16917 interface Node extends EventTarget { | 17159 interface Node extends EventTarget { |
| 16918 | 17160 |
| 16919 static final int ATTRIBUTE_NODE = 2; | 17161 static final int ATTRIBUTE_NODE = 2; |
| 16920 | 17162 |
| 16921 static final int CDATA_SECTION_NODE = 4; | 17163 static final int CDATA_SECTION_NODE = 4; |
| 16922 | 17164 |
| 16923 static final int COMMENT_NODE = 8; | 17165 static final int COMMENT_NODE = 8; |
| 16924 | 17166 |
| 16925 static final int DOCUMENT_FRAGMENT_NODE = 11; | 17167 static final int DOCUMENT_FRAGMENT_NODE = 11; |
| 16926 | 17168 |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17259 interface PageTransitionEvent extends Event { | 17501 interface PageTransitionEvent extends Event { |
| 17260 | 17502 |
| 17261 final bool persisted; | 17503 final bool persisted; |
| 17262 } | 17504 } |
| 17263 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17505 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 17264 // for details. All rights reserved. Use of this source code is governed by a | 17506 // for details. All rights reserved. Use of this source code is governed by a |
| 17265 // BSD-style license that can be found in the LICENSE file. | 17507 // BSD-style license that can be found in the LICENSE file. |
| 17266 | 17508 |
| 17267 // WARNING: Do not edit - generated code. | 17509 // WARNING: Do not edit - generated code. |
| 17268 | 17510 |
| 17511 interface PeerConnection { |
| 17512 |
| 17513 static final int ACTIVE = 2; |
| 17514 |
| 17515 static final int CLOSED = 3; |
| 17516 |
| 17517 static final int NEGOTIATING = 1; |
| 17518 |
| 17519 static final int NEW = 0; |
| 17520 |
| 17521 final MediaStreamList localStreams; |
| 17522 |
| 17523 EventListener onaddstream; |
| 17524 |
| 17525 EventListener onconnecting; |
| 17526 |
| 17527 EventListener onmessage; |
| 17528 |
| 17529 EventListener onopen; |
| 17530 |
| 17531 EventListener onremovestream; |
| 17532 |
| 17533 final int readyState; |
| 17534 |
| 17535 final MediaStreamList remoteStreams; |
| 17536 |
| 17537 void addEventListener(String type, EventListener listener, bool useCapture); |
| 17538 |
| 17539 void addStream(MediaStream stream); |
| 17540 |
| 17541 void close(); |
| 17542 |
| 17543 bool dispatchEvent(Event event); |
| 17544 |
| 17545 void processSignalingMessage(String message); |
| 17546 |
| 17547 void removeEventListener(String type, EventListener listener, bool useCapture)
; |
| 17548 |
| 17549 void removeStream(MediaStream stream); |
| 17550 |
| 17551 void send(String text); |
| 17552 } |
| 17553 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 17554 // for details. All rights reserved. Use of this source code is governed by a |
| 17555 // BSD-style license that can be found in the LICENSE file. |
| 17556 |
| 17557 // WARNING: Do not edit - generated code. |
| 17558 |
| 17269 interface Performance { | 17559 interface Performance { |
| 17270 | 17560 |
| 17271 final MemoryInfo memory; | 17561 final MemoryInfo memory; |
| 17272 | 17562 |
| 17273 final PerformanceNavigation navigation; | 17563 final PerformanceNavigation navigation; |
| 17274 | 17564 |
| 17275 final PerformanceTiming timing; | 17565 final PerformanceTiming timing; |
| 17276 } | 17566 } |
| 17277 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17567 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 17278 // for details. All rights reserved. Use of this source code is governed by a | 17568 // for details. All rights reserved. Use of this source code is governed by a |
| (...skipping 3052 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20331 final String url; | 20621 final String url; |
| 20332 | 20622 |
| 20333 final bool visible; | 20623 final bool visible; |
| 20334 } | 20624 } |
| 20335 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20625 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 20336 // for details. All rights reserved. Use of this source code is governed by a | 20626 // for details. All rights reserved. Use of this source code is governed by a |
| 20337 // BSD-style license that can be found in the LICENSE file. | 20627 // BSD-style license that can be found in the LICENSE file. |
| 20338 | 20628 |
| 20339 // WARNING: Do not edit - generated code. | 20629 // WARNING: Do not edit - generated code. |
| 20340 | 20630 |
| 20631 interface ShadowRoot extends Node { |
| 20632 |
| 20633 final Element host; |
| 20634 } |
| 20635 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 20636 // for details. All rights reserved. Use of this source code is governed by a |
| 20637 // BSD-style license that can be found in the LICENSE file. |
| 20638 |
| 20639 // WARNING: Do not edit - generated code. |
| 20640 |
| 20341 interface SharedWorker extends AbstractWorker { | 20641 interface SharedWorker extends AbstractWorker { |
| 20342 | 20642 |
| 20343 final MessagePort port; | 20643 final MessagePort port; |
| 20344 } | 20644 } |
| 20345 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20645 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 20346 // for details. All rights reserved. Use of this source code is governed by a | 20646 // for details. All rights reserved. Use of this source code is governed by a |
| 20347 // BSD-style license that can be found in the LICENSE file. | 20647 // BSD-style license that can be found in the LICENSE file. |
| 20348 | 20648 |
| 20349 // WARNING: Do not edit - generated code. | 20649 // WARNING: Do not edit - generated code. |
| 20350 | 20650 |
| 20351 interface SharedWorkerGlobalScope extends WorkerContext { | 20651 interface SharedWorkerGlobalScope extends WorkerContext { |
| 20352 | 20652 |
| 20353 final String name; | 20653 final String name; |
| 20354 | 20654 |
| 20355 EventListener onconnect; | 20655 EventListener onconnect; |
| 20356 } | 20656 } |
| 20357 | 20657 |
| 20358 interface SharedWorkerContext extends SharedWorkerGlobalScope { | 20658 interface SharedWorkerContext extends SharedWorkerGlobalScope { |
| 20359 } | 20659 } |
| 20660 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 20661 // for details. All rights reserved. Use of this source code is governed by a |
| 20662 // BSD-style license that can be found in the LICENSE file. |
| 20663 |
| 20664 // WARNING: Do not edit - generated code. |
| 20665 |
| 20666 typedef bool SignalingCallback(String message, PeerConnection source); |
| 20360 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20667 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 20361 // for details. All rights reserved. Use of this source code is governed by a | 20668 // for details. All rights reserved. Use of this source code is governed by a |
| 20362 // BSD-style license that can be found in the LICENSE file. | 20669 // BSD-style license that can be found in the LICENSE file. |
| 20363 | 20670 |
| 20364 // WARNING: Do not edit - generated code. | 20671 // WARNING: Do not edit - generated code. |
| 20365 | 20672 |
| 20366 interface SpeechInputEvent extends Event { | 20673 interface SpeechInputEvent extends Event { |
| 20367 | 20674 |
| 20368 final SpeechInputResultList results; | 20675 final SpeechInputResultList results; |
| 20369 } | 20676 } |
| (...skipping 3184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23554 if (length < 0) throw new IllegalArgumentException('length'); | 23861 if (length < 0) throw new IllegalArgumentException('length'); |
| 23555 if (start < 0) throw new IndexOutOfRangeException(start); | 23862 if (start < 0) throw new IndexOutOfRangeException(start); |
| 23556 int end = start + length; | 23863 int end = start + length; |
| 23557 if (end > a.length) throw new IndexOutOfRangeException(end); | 23864 if (end > a.length) throw new IndexOutOfRangeException(end); |
| 23558 for (int i = start; i < end; i++) { | 23865 for (int i = start; i < end; i++) { |
| 23559 accumulator.add(a[i]); | 23866 accumulator.add(a[i]); |
| 23560 } | 23867 } |
| 23561 return accumulator; | 23868 return accumulator; |
| 23562 } | 23869 } |
| 23563 } | 23870 } |
| OLD | NEW |