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 11452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11463 void setParameter(String namespaceURI, String localName, String value) native; | 11463 void setParameter(String namespaceURI, String localName, String value) native; |
11464 | 11464 |
11465 _DocumentJs transformToDocument(_NodeJs source) native; | 11465 _DocumentJs transformToDocument(_NodeJs source) native; |
11466 | 11466 |
11467 _DocumentFragmentJs transformToFragment(_NodeJs source, _DocumentJs docVal) na
tive; | 11467 _DocumentFragmentJs transformToFragment(_NodeJs source, _DocumentJs docVal) na
tive; |
11468 } | 11468 } |
11469 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11469 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
11470 // for details. All rights reserved. Use of this source code is governed by a | 11470 // for details. All rights reserved. Use of this source code is governed by a |
11471 // BSD-style license that can be found in the LICENSE file. | 11471 // BSD-style license that can be found in the LICENSE file. |
11472 | 11472 |
| 11473 class _DOMParserFactoryProvider { |
| 11474 factory DOMParser() native |
| 11475 '''return new DOMParser();'''; |
| 11476 } |
| 11477 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11478 // for details. All rights reserved. Use of this source code is governed by a |
| 11479 // BSD-style license that can be found in the LICENSE file. |
| 11480 |
| 11481 class _DOMURLFactoryProvider { |
| 11482 factory DOMURL() native |
| 11483 '''return new DOMURL();'''; |
| 11484 } |
| 11485 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11486 // for details. All rights reserved. Use of this source code is governed by a |
| 11487 // BSD-style license that can be found in the LICENSE file. |
| 11488 |
| 11489 class _EventSourceFactoryProvider { |
| 11490 factory EventSource(String scriptUrl) native |
| 11491 '''return new EventSource(scriptUrl);'''; |
| 11492 } |
| 11493 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11494 // for details. All rights reserved. Use of this source code is governed by a |
| 11495 // BSD-style license that can be found in the LICENSE file. |
| 11496 |
| 11497 class _FileReaderFactoryProvider { |
| 11498 factory FileReader() native |
| 11499 '''return new FileReader();'''; |
| 11500 } |
| 11501 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11502 // for details. All rights reserved. Use of this source code is governed by a |
| 11503 // BSD-style license that can be found in the LICENSE file. |
| 11504 |
| 11505 class _FileReaderSyncFactoryProvider { |
| 11506 factory FileReaderSync() native |
| 11507 '''return new FileReaderSync();'''; |
| 11508 } |
| 11509 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11510 // for details. All rights reserved. Use of this source code is governed by a |
| 11511 // BSD-style license that can be found in the LICENSE file. |
| 11512 |
| 11513 class _HTMLAudioElementFactoryProvider { |
| 11514 factory HTMLAudioElement([String src = null]) native |
| 11515 ''' |
| 11516 if (src == null) return new Audio(); |
| 11517 return new Audio(src); |
| 11518 '''; |
| 11519 } |
| 11520 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11521 // for details. All rights reserved. Use of this source code is governed by a |
| 11522 // BSD-style license that can be found in the LICENSE file. |
| 11523 |
| 11524 class _HTMLOptionElementFactoryProvider { |
| 11525 factory HTMLOptionElement([String data = null, String value = null, |
| 11526 bool defaultSelected = null, bool selected = null]) |
| 11527 native |
| 11528 ''' |
| 11529 if (data == null) return new Option(); |
| 11530 if (value == null) return new Option(data); |
| 11531 if (defaultSelected == null) return new Option(data, value); |
| 11532 if (selected == null) return new Option(data, value, defaultSelected); |
| 11533 return new Option(data, value, defaultSelected, selected); |
| 11534 '''; |
| 11535 } |
| 11536 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11537 // for details. All rights reserved. Use of this source code is governed by a |
| 11538 // BSD-style license that can be found in the LICENSE file. |
| 11539 |
| 11540 class _MediaControllerFactoryProvider { |
| 11541 factory MediaController() native |
| 11542 '''return new MediaController();'''; |
| 11543 } |
| 11544 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11545 // for details. All rights reserved. Use of this source code is governed by a |
| 11546 // BSD-style license that can be found in the LICENSE file. |
| 11547 |
| 11548 class _MediaStreamFactoryProvider { |
| 11549 factory MediaStream(MediaStreamTrackList audioTracks, MediaStreamTrackList vid
eoTracks) native |
| 11550 '''return new MediaStream(audioTracks, videoTracks);'''; |
| 11551 } |
| 11552 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11553 // for details. All rights reserved. Use of this source code is governed by a |
| 11554 // BSD-style license that can be found in the LICENSE file. |
| 11555 |
| 11556 class _MessageChannelFactoryProvider { |
| 11557 factory MessageChannel() native |
| 11558 '''return new MessageChannel();'''; |
| 11559 } |
| 11560 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11561 // for details. All rights reserved. Use of this source code is governed by a |
| 11562 // BSD-style license that can be found in the LICENSE file. |
| 11563 |
| 11564 class _PeerConnectionFactoryProvider { |
| 11565 factory PeerConnection(String serverConfiguration, SignalingCallback signaling
Callback) native |
| 11566 '''return new PeerConnection(serverConfiguration, signalingCallback);'''; |
| 11567 } |
| 11568 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11569 // for details. All rights reserved. Use of this source code is governed by a |
| 11570 // BSD-style license that can be found in the LICENSE file. |
| 11571 |
| 11572 class _ShadowRootFactoryProvider { |
| 11573 factory ShadowRoot(Element host) native |
| 11574 '''return new ShadowRoot(host);'''; |
| 11575 } |
| 11576 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11577 // for details. All rights reserved. Use of this source code is governed by a |
| 11578 // BSD-style license that can be found in the LICENSE file. |
| 11579 |
| 11580 class _SharedWorkerFactoryProvider { |
| 11581 factory SharedWorker(String scriptURL, [String name]) native |
| 11582 ''' |
| 11583 if (name == null) return new SharedWorker(scriptURL); |
| 11584 return new SharedWorker(scriptURL, name); |
| 11585 '''; |
| 11586 } |
| 11587 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11588 // for details. All rights reserved. Use of this source code is governed by a |
| 11589 // BSD-style license that can be found in the LICENSE file. |
| 11590 |
| 11591 class _TextTrackCueFactoryProvider { |
| 11592 factory TextTrackCue(String id, num startTime, num endTime, String text, |
| 11593 [String settings, bool pauseOnExit]) native |
| 11594 ''' |
| 11595 if (settings == null) |
| 11596 return new TextTrackCue(id, startTime, endTime, text); |
| 11597 if (pauseOnExit == null) |
| 11598 return new TextTrackCue(id, startTime, endTime, text, settings); |
| 11599 return new TextTrackCue(id, startTime, endTime, text, settings, pauseOnExit); |
| 11600 '''; |
| 11601 } |
| 11602 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11603 // for details. All rights reserved. Use of this source code is governed by a |
| 11604 // BSD-style license that can be found in the LICENSE file. |
| 11605 |
| 11606 class _WebKitBlobBuilderFactoryProvider { |
| 11607 factory WebKitBlobBuilder() native |
| 11608 '''return new WebKitBlobBuilder();'''; |
| 11609 } |
| 11610 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11611 // for details. All rights reserved. Use of this source code is governed by a |
| 11612 // BSD-style license that can be found in the LICENSE file. |
| 11613 |
| 11614 class _WebKitCSSMatrixFactoryProvider { |
| 11615 factory WebKitCSSMatrix([String cssValue = null]) native |
| 11616 ''' |
| 11617 if (cssValue == null) return new WebKitCSSMatrix(); |
| 11618 return new WebKitCSSMatrix(cssValue); |
| 11619 '''; |
| 11620 } |
| 11621 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11622 // for details. All rights reserved. Use of this source code is governed by a |
| 11623 // BSD-style license that can be found in the LICENSE file. |
| 11624 |
| 11625 class _WorkerFactoryProvider { |
| 11626 factory Worker(String scriptUrl) native |
| 11627 '''return new Worker(scriptUrl);'''; |
| 11628 } |
| 11629 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11630 // for details. All rights reserved. Use of this source code is governed by a |
| 11631 // BSD-style license that can be found in the LICENSE file. |
| 11632 |
| 11633 class _XMLHttpRequestFactoryProvider { |
| 11634 factory XMLHttpRequest() native |
| 11635 '''return new XMLHttpRequest();'''; |
| 11636 } |
| 11637 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11638 // for details. All rights reserved. Use of this source code is governed by a |
| 11639 // BSD-style license that can be found in the LICENSE file. |
| 11640 |
| 11641 class _XMLSerializerFactoryProvider { |
| 11642 factory XMLSerializer() native |
| 11643 '''return new XMLSerializer();'''; |
| 11644 } |
| 11645 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11646 // for details. All rights reserved. Use of this source code is governed by a |
| 11647 // BSD-style license that can be found in the LICENSE file. |
| 11648 |
| 11649 class _XPathEvaluatorFactoryProvider { |
| 11650 factory XPathEvaluator() native |
| 11651 '''return new XPathEvaluator();'''; |
| 11652 } |
| 11653 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11654 // for details. All rights reserved. Use of this source code is governed by a |
| 11655 // BSD-style license that can be found in the LICENSE file. |
| 11656 |
| 11657 class _XSLTProcessorFactoryProvider { |
| 11658 factory XSLTProcessor() native |
| 11659 '''return new XSLTProcessor();'''; |
| 11660 } |
| 11661 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11662 // for details. All rights reserved. Use of this source code is governed by a |
| 11663 // BSD-style license that can be found in the LICENSE file. |
| 11664 |
11473 // WARNING: Do not edit - generated code. | 11665 // WARNING: Do not edit - generated code. |
11474 | 11666 |
11475 interface AbstractWorker extends EventTarget { | 11667 interface AbstractWorker extends EventTarget { |
11476 | 11668 |
11477 void addEventListener(String type, EventListener listener, [bool useCapture]); | 11669 void addEventListener(String type, EventListener listener, [bool useCapture]); |
11478 | 11670 |
11479 bool dispatchEvent(Event evt); | 11671 bool dispatchEvent(Event evt); |
11480 | 11672 |
11481 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | 11673 void removeEventListener(String type, EventListener listener, [bool useCapture
]); |
11482 } | 11674 } |
(...skipping 1427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12910 String toString(); | 13102 String toString(); |
12911 | 13103 |
12912 bool toggle(String token); | 13104 bool toggle(String token); |
12913 } | 13105 } |
12914 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13106 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12915 // for details. All rights reserved. Use of this source code is governed by a | 13107 // for details. All rights reserved. Use of this source code is governed by a |
12916 // BSD-style license that can be found in the LICENSE file. | 13108 // BSD-style license that can be found in the LICENSE file. |
12917 | 13109 |
12918 // WARNING: Do not edit - generated code. | 13110 // WARNING: Do not edit - generated code. |
12919 | 13111 |
12920 interface DOMURL { | 13112 interface DOMURL default _DOMURLFactoryProvider { |
| 13113 |
| 13114 DOMURL(); |
12921 } | 13115 } |
12922 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13116 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12923 // for details. All rights reserved. Use of this source code is governed by a | 13117 // for details. All rights reserved. Use of this source code is governed by a |
12924 // BSD-style license that can be found in the LICENSE file. | 13118 // BSD-style license that can be found in the LICENSE file. |
12925 | 13119 |
12926 // WARNING: Do not edit - generated code. | 13120 // WARNING: Do not edit - generated code. |
12927 | 13121 |
12928 interface Window extends EventTarget { | 13122 interface Window extends EventTarget { |
12929 | 13123 |
12930 final DOMApplicationCache applicationCache; | 13124 final DOMApplicationCache applicationCache; |
(...skipping 991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13922 final String name; | 14116 final String name; |
13923 | 14117 |
13924 String toString(); | 14118 String toString(); |
13925 } | 14119 } |
13926 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14120 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
13927 // for details. All rights reserved. Use of this source code is governed by a | 14121 // for details. All rights reserved. Use of this source code is governed by a |
13928 // BSD-style license that can be found in the LICENSE file. | 14122 // BSD-style license that can be found in the LICENSE file. |
13929 | 14123 |
13930 // WARNING: Do not edit - generated code. | 14124 // WARNING: Do not edit - generated code. |
13931 | 14125 |
13932 interface EventSource extends EventTarget { | 14126 interface EventSource extends EventTarget default _EventSourceFactoryProvider { |
| 14127 |
| 14128 EventSource(String scriptUrl); |
13933 | 14129 |
13934 static final int CLOSED = 2; | 14130 static final int CLOSED = 2; |
13935 | 14131 |
13936 static final int CONNECTING = 0; | 14132 static final int CONNECTING = 0; |
13937 | 14133 |
13938 static final int OPEN = 1; | 14134 static final int OPEN = 1; |
13939 | 14135 |
13940 final String URL; | 14136 final String URL; |
13941 | 14137 |
13942 final int readyState; | 14138 final int readyState; |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14149 void readAsText(Blob blob, [String encoding]); | 14345 void readAsText(Blob blob, [String encoding]); |
14150 | 14346 |
14151 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | 14347 void removeEventListener(String type, EventListener listener, [bool useCapture
]); |
14152 } | 14348 } |
14153 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14349 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
14154 // for details. All rights reserved. Use of this source code is governed by a | 14350 // for details. All rights reserved. Use of this source code is governed by a |
14155 // BSD-style license that can be found in the LICENSE file. | 14351 // BSD-style license that can be found in the LICENSE file. |
14156 | 14352 |
14157 // WARNING: Do not edit - generated code. | 14353 // WARNING: Do not edit - generated code. |
14158 | 14354 |
14159 interface FileReaderSync { | 14355 interface FileReaderSync default _FileReaderSyncFactoryProvider { |
| 14356 |
| 14357 FileReaderSync(); |
14160 | 14358 |
14161 ArrayBuffer readAsArrayBuffer(Blob blob); | 14359 ArrayBuffer readAsArrayBuffer(Blob blob); |
14162 | 14360 |
14163 String readAsBinaryString(Blob blob); | 14361 String readAsBinaryString(Blob blob); |
14164 | 14362 |
14165 String readAsDataURL(Blob blob); | 14363 String readAsDataURL(Blob blob); |
14166 | 14364 |
14167 String readAsText(Blob blob, [String encoding]); | 14365 String readAsText(Blob blob, [String encoding]); |
14168 } | 14366 } |
14169 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 14367 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
(...skipping 2535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16705 final AudioParam cutoff; | 16903 final AudioParam cutoff; |
16706 | 16904 |
16707 final AudioParam resonance; | 16905 final AudioParam resonance; |
16708 } | 16906 } |
16709 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16907 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16710 // for details. All rights reserved. Use of this source code is governed by a | 16908 // for details. All rights reserved. Use of this source code is governed by a |
16711 // BSD-style license that can be found in the LICENSE file. | 16909 // BSD-style license that can be found in the LICENSE file. |
16712 | 16910 |
16713 // WARNING: Do not edit - generated code. | 16911 // WARNING: Do not edit - generated code. |
16714 | 16912 |
16715 interface MediaController { | 16913 interface MediaController default _MediaControllerFactoryProvider { |
| 16914 |
| 16915 MediaController(); |
16716 | 16916 |
16717 final TimeRanges buffered; | 16917 final TimeRanges buffered; |
16718 | 16918 |
16719 num currentTime; | 16919 num currentTime; |
16720 | 16920 |
16721 num defaultPlaybackRate; | 16921 num defaultPlaybackRate; |
16722 | 16922 |
16723 final num duration; | 16923 final num duration; |
16724 | 16924 |
16725 bool muted; | 16925 bool muted; |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16815 interface MediaQueryListListener { | 17015 interface MediaQueryListListener { |
16816 | 17016 |
16817 void queryChanged(MediaQueryList list); | 17017 void queryChanged(MediaQueryList list); |
16818 } | 17018 } |
16819 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17019 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16820 // for details. All rights reserved. Use of this source code is governed by a | 17020 // for details. All rights reserved. Use of this source code is governed by a |
16821 // BSD-style license that can be found in the LICENSE file. | 17021 // BSD-style license that can be found in the LICENSE file. |
16822 | 17022 |
16823 // WARNING: Do not edit - generated code. | 17023 // WARNING: Do not edit - generated code. |
16824 | 17024 |
16825 interface MediaStream { | 17025 interface MediaStream default _MediaStreamFactoryProvider { |
| 17026 |
| 17027 MediaStream(MediaStreamTrackList audioTracks, MediaStreamTrackList videoTracks
); |
16826 | 17028 |
16827 static final int ENDED = 2; | 17029 static final int ENDED = 2; |
16828 | 17030 |
16829 static final int LIVE = 1; | 17031 static final int LIVE = 1; |
16830 | 17032 |
16831 final MediaStreamTrackList audioTracks; | 17033 final MediaStreamTrackList audioTracks; |
16832 | 17034 |
16833 final String label; | 17035 final String label; |
16834 | 17036 |
16835 EventListener onended; | 17037 EventListener onended; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16905 final int totalJSHeapSize; | 17107 final int totalJSHeapSize; |
16906 | 17108 |
16907 final int usedJSHeapSize; | 17109 final int usedJSHeapSize; |
16908 } | 17110 } |
16909 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17111 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16910 // for details. All rights reserved. Use of this source code is governed by a | 17112 // for details. All rights reserved. Use of this source code is governed by a |
16911 // BSD-style license that can be found in the LICENSE file. | 17113 // BSD-style license that can be found in the LICENSE file. |
16912 | 17114 |
16913 // WARNING: Do not edit - generated code. | 17115 // WARNING: Do not edit - generated code. |
16914 | 17116 |
16915 interface MessageChannel { | 17117 interface MessageChannel default _MessageChannelFactoryProvider { |
| 17118 |
| 17119 MessageChannel(); |
16916 | 17120 |
16917 final MessagePort port1; | 17121 final MessagePort port1; |
16918 | 17122 |
16919 final MessagePort port2; | 17123 final MessagePort port2; |
16920 } | 17124 } |
16921 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17125 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16922 // for details. All rights reserved. Use of this source code is governed by a | 17126 // for details. All rights reserved. Use of this source code is governed by a |
16923 // BSD-style license that can be found in the LICENSE file. | 17127 // BSD-style license that can be found in the LICENSE file. |
16924 | 17128 |
16925 // WARNING: Do not edit - generated code. | 17129 // WARNING: Do not edit - generated code. |
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17496 interface PageTransitionEvent extends Event { | 17700 interface PageTransitionEvent extends Event { |
17497 | 17701 |
17498 final bool persisted; | 17702 final bool persisted; |
17499 } | 17703 } |
17500 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17704 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
17501 // for details. All rights reserved. Use of this source code is governed by a | 17705 // for details. All rights reserved. Use of this source code is governed by a |
17502 // BSD-style license that can be found in the LICENSE file. | 17706 // BSD-style license that can be found in the LICENSE file. |
17503 | 17707 |
17504 // WARNING: Do not edit - generated code. | 17708 // WARNING: Do not edit - generated code. |
17505 | 17709 |
17506 interface PeerConnection { | 17710 interface PeerConnection default _PeerConnectionFactoryProvider { |
| 17711 |
| 17712 PeerConnection(String serverConfiguration, SignalingCallback signalingCallback
); |
17507 | 17713 |
17508 static final int ACTIVE = 2; | 17714 static final int ACTIVE = 2; |
17509 | 17715 |
17510 static final int CLOSED = 3; | 17716 static final int CLOSED = 3; |
17511 | 17717 |
17512 static final int NEGOTIATING = 1; | 17718 static final int NEGOTIATING = 1; |
17513 | 17719 |
17514 static final int NEW = 0; | 17720 static final int NEW = 0; |
17515 | 17721 |
17516 final MediaStreamList localStreams; | 17722 final MediaStreamList localStreams; |
(...skipping 3103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
20620 final String url; | 20826 final String url; |
20621 | 20827 |
20622 final bool visible; | 20828 final bool visible; |
20623 } | 20829 } |
20624 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20830 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
20625 // for details. All rights reserved. Use of this source code is governed by a | 20831 // for details. All rights reserved. Use of this source code is governed by a |
20626 // BSD-style license that can be found in the LICENSE file. | 20832 // BSD-style license that can be found in the LICENSE file. |
20627 | 20833 |
20628 // WARNING: Do not edit - generated code. | 20834 // WARNING: Do not edit - generated code. |
20629 | 20835 |
20630 interface ShadowRoot extends DocumentFragment { | 20836 interface ShadowRoot extends DocumentFragment default _ShadowRootFactoryProvider
{ |
| 20837 |
| 20838 ShadowRoot(Element host); |
20631 | 20839 |
20632 final Element host; | 20840 final Element host; |
20633 | 20841 |
20634 Element getElementById(String elementId); | 20842 Element getElementById(String elementId); |
20635 | 20843 |
20636 NodeList getElementsByClassName(String className); | 20844 NodeList getElementsByClassName(String className); |
20637 | 20845 |
20638 NodeList getElementsByTagName(String tagName); | 20846 NodeList getElementsByTagName(String tagName); |
20639 | 20847 |
20640 NodeList getElementsByTagNameNS(String namespaceURI, String localName); | 20848 NodeList getElementsByTagNameNS(String namespaceURI, String localName); |
20641 } | 20849 } |
20642 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20850 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
20643 // for details. All rights reserved. Use of this source code is governed by a | 20851 // for details. All rights reserved. Use of this source code is governed by a |
20644 // BSD-style license that can be found in the LICENSE file. | 20852 // BSD-style license that can be found in the LICENSE file. |
20645 | 20853 |
20646 // WARNING: Do not edit - generated code. | 20854 // WARNING: Do not edit - generated code. |
20647 | 20855 |
20648 interface SharedWorker extends AbstractWorker { | 20856 interface SharedWorker extends AbstractWorker default _SharedWorkerFactoryProvid
er { |
| 20857 |
| 20858 SharedWorker(String scriptURL, [String name]); |
20649 | 20859 |
20650 final MessagePort port; | 20860 final MessagePort port; |
20651 } | 20861 } |
20652 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20862 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
20653 // for details. All rights reserved. Use of this source code is governed by a | 20863 // for details. All rights reserved. Use of this source code is governed by a |
20654 // BSD-style license that can be found in the LICENSE file. | 20864 // BSD-style license that can be found in the LICENSE file. |
20655 | 20865 |
20656 // WARNING: Do not edit - generated code. | 20866 // WARNING: Do not edit - generated code. |
20657 | 20867 |
20658 interface SharedWorkerGlobalScope extends WorkerContext { | 20868 interface SharedWorkerGlobalScope extends WorkerContext { |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
20908 void removeCue(TextTrackCue cue); | 21118 void removeCue(TextTrackCue cue); |
20909 | 21119 |
20910 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | 21120 void removeEventListener(String type, EventListener listener, [bool useCapture
]); |
20911 } | 21121 } |
20912 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21122 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
20913 // for details. All rights reserved. Use of this source code is governed by a | 21123 // for details. All rights reserved. Use of this source code is governed by a |
20914 // BSD-style license that can be found in the LICENSE file. | 21124 // BSD-style license that can be found in the LICENSE file. |
20915 | 21125 |
20916 // WARNING: Do not edit - generated code. | 21126 // WARNING: Do not edit - generated code. |
20917 | 21127 |
20918 interface TextTrackCue { | 21128 interface TextTrackCue default _TextTrackCueFactoryProvider { |
| 21129 |
| 21130 TextTrackCue(String id, num startTime, num endTime, String text, [String setti
ngs, bool pauseOnExit]); |
20919 | 21131 |
20920 String alignment; | 21132 String alignment; |
20921 | 21133 |
20922 String direction; | 21134 String direction; |
20923 | 21135 |
20924 num endTime; | 21136 num endTime; |
20925 | 21137 |
20926 String id; | 21138 String id; |
20927 | 21139 |
20928 int linePosition; | 21140 int linePosition; |
(...skipping 1434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
22363 final int length; | 22575 final int length; |
22364 | 22576 |
22365 WebKitAnimation item(int index); | 22577 WebKitAnimation item(int index); |
22366 } | 22578 } |
22367 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22579 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
22368 // for details. All rights reserved. Use of this source code is governed by a | 22580 // for details. All rights reserved. Use of this source code is governed by a |
22369 // BSD-style license that can be found in the LICENSE file. | 22581 // BSD-style license that can be found in the LICENSE file. |
22370 | 22582 |
22371 // WARNING: Do not edit - generated code. | 22583 // WARNING: Do not edit - generated code. |
22372 | 22584 |
22373 interface WebKitBlobBuilder { | 22585 interface WebKitBlobBuilder default _WebKitBlobBuilderFactoryProvider { |
| 22586 |
| 22587 WebKitBlobBuilder(); |
22374 | 22588 |
22375 void append(var arrayBuffer_OR_blob_OR_value, [String endings]); | 22589 void append(var arrayBuffer_OR_blob_OR_value, [String endings]); |
22376 | 22590 |
22377 Blob getBlob([String contentType]); | 22591 Blob getBlob([String contentType]); |
22378 } | 22592 } |
22379 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22593 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
22380 // for details. All rights reserved. Use of this source code is governed by a | 22594 // for details. All rights reserved. Use of this source code is governed by a |
22381 // BSD-style license that can be found in the LICENSE file. | 22595 // BSD-style license that can be found in the LICENSE file. |
22382 | 22596 |
22383 // WARNING: Do not edit - generated code. | 22597 // WARNING: Do not edit - generated code. |
(...skipping 23 matching lines...) Expand all Loading... |
22407 void insertRule(String rule); | 22621 void insertRule(String rule); |
22408 } | 22622 } |
22409 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22623 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
22410 // for details. All rights reserved. Use of this source code is governed by a | 22624 // for details. All rights reserved. Use of this source code is governed by a |
22411 // BSD-style license that can be found in the LICENSE file. | 22625 // BSD-style license that can be found in the LICENSE file. |
22412 | 22626 |
22413 // WARNING: Do not edit - generated code. | 22627 // WARNING: Do not edit - generated code. |
22414 | 22628 |
22415 interface WebKitCSSMatrix default _WebKitCSSMatrixFactoryProvider { | 22629 interface WebKitCSSMatrix default _WebKitCSSMatrixFactoryProvider { |
22416 | 22630 |
22417 WebKitCSSMatrix([String spec]); | 22631 WebKitCSSMatrix([String cssValue]); |
22418 | 22632 |
22419 num a; | 22633 num a; |
22420 | 22634 |
22421 num b; | 22635 num b; |
22422 | 22636 |
22423 num c; | 22637 num c; |
22424 | 22638 |
22425 num d; | 22639 num d; |
22426 | 22640 |
22427 num e; | 22641 num e; |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
22659 final int y; | 22873 final int y; |
22660 | 22874 |
22661 void initWebKitWheelEvent(int wheelDeltaX, int wheelDeltaY, DOMWindow view, in
t screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, boo
l shiftKey, bool metaKey); | 22875 void initWebKitWheelEvent(int wheelDeltaX, int wheelDeltaY, DOMWindow view, in
t screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, boo
l shiftKey, bool metaKey); |
22662 } | 22876 } |
22663 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22877 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
22664 // for details. All rights reserved. Use of this source code is governed by a | 22878 // for details. All rights reserved. Use of this source code is governed by a |
22665 // BSD-style license that can be found in the LICENSE file. | 22879 // BSD-style license that can be found in the LICENSE file. |
22666 | 22880 |
22667 // WARNING: Do not edit - generated code. | 22881 // WARNING: Do not edit - generated code. |
22668 | 22882 |
22669 interface Worker extends AbstractWorker { | 22883 interface Worker extends AbstractWorker default _WorkerFactoryProvider { |
| 22884 |
| 22885 Worker(String scriptUrl); |
22670 | 22886 |
22671 void postMessage(Dynamic message, [List messagePorts]); | 22887 void postMessage(Dynamic message, [List messagePorts]); |
22672 | 22888 |
22673 void terminate(); | 22889 void terminate(); |
22674 | 22890 |
22675 void webkitPostMessage(Dynamic message, [List messagePorts]); | 22891 void webkitPostMessage(Dynamic message, [List messagePorts]); |
22676 } | 22892 } |
22677 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22893 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
22678 // for details. All rights reserved. Use of this source code is governed by a | 22894 // for details. All rights reserved. Use of this source code is governed by a |
22679 // BSD-style license that can be found in the LICENSE file. | 22895 // BSD-style license that can be found in the LICENSE file. |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
22778 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22994 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
22779 // for details. All rights reserved. Use of this source code is governed by a | 22995 // for details. All rights reserved. Use of this source code is governed by a |
22780 // BSD-style license that can be found in the LICENSE file. | 22996 // BSD-style license that can be found in the LICENSE file. |
22781 | 22997 |
22782 // WARNING: Do not edit - generated code. | 22998 // WARNING: Do not edit - generated code. |
22783 | 22999 |
22784 interface XMLHttpRequest extends EventTarget default _XMLHttpRequestFactoryProvi
der { | 23000 interface XMLHttpRequest extends EventTarget default _XMLHttpRequestFactoryProvi
der { |
22785 | 23001 |
22786 XMLHttpRequest(); | 23002 XMLHttpRequest(); |
22787 | 23003 |
22788 | |
22789 static final int DONE = 4; | 23004 static final int DONE = 4; |
22790 | 23005 |
22791 static final int HEADERS_RECEIVED = 2; | 23006 static final int HEADERS_RECEIVED = 2; |
22792 | 23007 |
22793 static final int LOADING = 3; | 23008 static final int LOADING = 3; |
22794 | 23009 |
22795 static final int OPENED = 1; | 23010 static final int OPENED = 1; |
22796 | 23011 |
22797 static final int UNSENT = 0; | 23012 static final int UNSENT = 0; |
22798 | 23013 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
22883 bool dispatchEvent(Event evt); | 23098 bool dispatchEvent(Event evt); |
22884 | 23099 |
22885 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | 23100 void removeEventListener(String type, EventListener listener, [bool useCapture
]); |
22886 } | 23101 } |
22887 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 23102 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
22888 // for details. All rights reserved. Use of this source code is governed by a | 23103 // for details. All rights reserved. Use of this source code is governed by a |
22889 // BSD-style license that can be found in the LICENSE file. | 23104 // BSD-style license that can be found in the LICENSE file. |
22890 | 23105 |
22891 // WARNING: Do not edit - generated code. | 23106 // WARNING: Do not edit - generated code. |
22892 | 23107 |
22893 interface XMLSerializer { | 23108 interface XMLSerializer default _XMLSerializerFactoryProvider { |
| 23109 |
| 23110 XMLSerializer(); |
22894 | 23111 |
22895 String serializeToString(Node node); | 23112 String serializeToString(Node node); |
22896 } | 23113 } |
22897 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 23114 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
22898 // for details. All rights reserved. Use of this source code is governed by a | 23115 // for details. All rights reserved. Use of this source code is governed by a |
22899 // BSD-style license that can be found in the LICENSE file. | 23116 // BSD-style license that can be found in the LICENSE file. |
22900 | 23117 |
22901 // WARNING: Do not edit - generated code. | 23118 // WARNING: Do not edit - generated code. |
22902 | 23119 |
22903 interface XPathEvaluator { | 23120 interface XPathEvaluator default _XPathEvaluatorFactoryProvider { |
| 23121 |
| 23122 XPathEvaluator(); |
22904 | 23123 |
22905 XPathExpression createExpression(String expression, XPathNSResolver resolver); | 23124 XPathExpression createExpression(String expression, XPathNSResolver resolver); |
22906 | 23125 |
22907 XPathNSResolver createNSResolver(Node nodeResolver); | 23126 XPathNSResolver createNSResolver(Node nodeResolver); |
22908 | 23127 |
22909 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso
lver, int type, XPathResult inResult); | 23128 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso
lver, int type, XPathResult inResult); |
22910 } | 23129 } |
22911 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 23130 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
22912 // for details. All rights reserved. Use of this source code is governed by a | 23131 // for details. All rights reserved. Use of this source code is governed by a |
22913 // BSD-style license that can be found in the LICENSE file. | 23132 // BSD-style license that can be found in the LICENSE file. |
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
23669 // BSD-style license that can be found in the LICENSE file. | 23888 // BSD-style license that can be found in the LICENSE file. |
23670 | 23889 |
23671 class _AudioContextFactoryProvider { | 23890 class _AudioContextFactoryProvider { |
23672 | 23891 |
23673 factory AudioContext() native ''' | 23892 factory AudioContext() native ''' |
23674 var constructor = window.AudioContext || window.webkitAudioContext; | 23893 var constructor = window.AudioContext || window.webkitAudioContext; |
23675 return new constructor(); | 23894 return new constructor(); |
23676 '''; | 23895 '''; |
23677 } | 23896 } |
23678 | 23897 |
23679 class _DOMParserFactoryProvider { | |
23680 | |
23681 factory DOMParser() native '''return new DOMParser();'''; | |
23682 } | |
23683 | |
23684 class _FileReaderFactoryProvider { | |
23685 | |
23686 factory FileReader() native '''return new FileReader();'''; | |
23687 } | |
23688 | |
23689 class _TypedArrayFactoryProvider { | 23898 class _TypedArrayFactoryProvider { |
23690 | 23899 |
23691 factory Float32Array(int length) => _F32(length); | 23900 factory Float32Array(int length) => _F32(length); |
23692 factory Float32Array.fromList(List<num> list) => _F32(ensureNative(list)); | 23901 factory Float32Array.fromList(List<num> list) => _F32(ensureNative(list)); |
23693 factory Float32Array.fromBuffer(ArrayBuffer buffer) => _F32(buffer); | 23902 factory Float32Array.fromBuffer(ArrayBuffer buffer) => _F32(buffer); |
23694 | 23903 |
23695 factory Float64Array(int length) => _F64(length); | 23904 factory Float64Array(int length) => _F64(length); |
23696 factory Float64Array.fromList(List<num> list) => _F64(ensureNative(list)); | 23905 factory Float64Array.fromList(List<num> list) => _F64(ensureNative(list)); |
23697 factory Float64Array.fromBuffer(ArrayBuffer buffer) => _F64(buffer); | 23906 factory Float64Array.fromBuffer(ArrayBuffer buffer) => _F64(buffer); |
23698 | 23907 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
23730 static Int16Array _I16(arg) native 'return new Int16Array(arg);'; | 23939 static Int16Array _I16(arg) native 'return new Int16Array(arg);'; |
23731 static Int32Array _I32(arg) native 'return new Int32Array(arg);'; | 23940 static Int32Array _I32(arg) native 'return new Int32Array(arg);'; |
23732 static Uint8Array _U8(arg) native 'return new Uint8Array(arg);'; | 23941 static Uint8Array _U8(arg) native 'return new Uint8Array(arg);'; |
23733 static Uint16Array _U16(arg) native 'return new Uint16Array(arg);'; | 23942 static Uint16Array _U16(arg) native 'return new Uint16Array(arg);'; |
23734 static Uint32Array _U32(arg) native 'return new Uint32Array(arg);'; | 23943 static Uint32Array _U32(arg) native 'return new Uint32Array(arg);'; |
23735 static Uint8ClampedArray _U8C(arg) native 'return new Uint8ClampedArray(arg);'
; | 23944 static Uint8ClampedArray _U8C(arg) native 'return new Uint8ClampedArray(arg);'
; |
23736 | 23945 |
23737 static ensureNative(List list) => list; // TODO: make sure. | 23946 static ensureNative(List list) => list; // TODO: make sure. |
23738 } | 23947 } |
23739 | 23948 |
23740 class _WebKitCSSMatrixFactoryProvider { | |
23741 | |
23742 factory WebKitCSSMatrix([String spec = '']) native | |
23743 '''return new WebKitCSSMatrix(spec);'''; | |
23744 } | |
23745 | |
23746 class _WebKitPointFactoryProvider { | 23949 class _WebKitPointFactoryProvider { |
23747 | 23950 |
23748 factory WebKitPoint(num x, num y) native '''return new WebKitPoint(x, y);'''; | 23951 factory WebKitPoint(num x, num y) native '''return new WebKitPoint(x, y);'''; |
23749 } | 23952 } |
23750 | 23953 |
23751 class _WebSocketFactoryProvider { | 23954 class _WebSocketFactoryProvider { |
23752 | 23955 |
23753 factory WebSocket(String url) native '''return new WebSocket(url);'''; | 23956 factory WebSocket(String url) native '''return new WebSocket(url);'''; |
23754 } | 23957 } |
23755 | |
23756 class _XMLHttpRequestFactoryProvider { | |
23757 | |
23758 factory XMLHttpRequest() native '''return new XMLHttpRequest();'''; | |
23759 } | |
23760 | |
23761 class _XSLTProcessorFactoryProvider { | |
23762 | |
23763 factory XSLTProcessor() native '''return new XSLTProcessor();'''; | |
23764 } | |
23765 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 23958 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
23766 // for details. All rights reserved. Use of this source code is governed by a | 23959 // for details. All rights reserved. Use of this source code is governed by a |
23767 // BSD-style license that can be found in the LICENSE file. | 23960 // BSD-style license that can be found in the LICENSE file. |
23768 | 23961 |
23769 // Iterator for arrays with fixed size. | 23962 // Iterator for arrays with fixed size. |
23770 class _FixedSizeListIterator<T> extends _VariableSizeListIterator<T> { | 23963 class _FixedSizeListIterator<T> extends _VariableSizeListIterator<T> { |
23771 _FixedSizeListIterator(List<T> array) | 23964 _FixedSizeListIterator(List<T> array) |
23772 : super(array), | 23965 : super(array), |
23773 _length = array.length; | 23966 _length = array.length; |
23774 | 23967 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
23856 if (length < 0) throw new IllegalArgumentException('length'); | 24049 if (length < 0) throw new IllegalArgumentException('length'); |
23857 if (start < 0) throw new IndexOutOfRangeException(start); | 24050 if (start < 0) throw new IndexOutOfRangeException(start); |
23858 int end = start + length; | 24051 int end = start + length; |
23859 if (end > a.length) throw new IndexOutOfRangeException(end); | 24052 if (end > a.length) throw new IndexOutOfRangeException(end); |
23860 for (int i = start; i < end; i++) { | 24053 for (int i = start; i < end; i++) { |
23861 accumulator.add(a[i]); | 24054 accumulator.add(a[i]); |
23862 } | 24055 } |
23863 return accumulator; | 24056 return accumulator; |
23864 } | 24057 } |
23865 } | 24058 } |
OLD | NEW |