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 777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
788 class _ClipboardJs extends _DOMTypeJs implements Clipboard native "*Clipboard" { | 788 class _ClipboardJs extends _DOMTypeJs implements Clipboard native "*Clipboard" { |
789 | 789 |
790 String dropEffect; | 790 String dropEffect; |
791 | 791 |
792 String effectAllowed; | 792 String effectAllowed; |
793 | 793 |
794 final _FileListJs files; | 794 final _FileListJs files; |
795 | 795 |
796 final _DataTransferItemListJs items; | 796 final _DataTransferItemListJs items; |
797 | 797 |
798 final List types; | |
799 | |
800 void clearData([String type = null]) native; | 798 void clearData([String type = null]) native; |
801 | 799 |
802 void getData(String type) native; | 800 void getData(String type) native; |
803 | 801 |
804 bool setData(String type, String data) native; | 802 bool setData(String type, String data) native; |
805 | 803 |
806 void setDragImage(_HTMLImageElementJs image, int x, int y) native; | 804 void setDragImage(_HTMLImageElementJs image, int x, int y) native; |
807 } | 805 } |
808 | 806 |
809 class _CloseEventJs extends _EventJs implements CloseEvent native "*CloseEvent"
{ | 807 class _CloseEventJs extends _EventJs implements CloseEvent native "*CloseEvent"
{ |
(...skipping 2010 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2820 String outerHTML; | 2818 String outerHTML; |
2821 | 2819 |
2822 String outerText; | 2820 String outerText; |
2823 | 2821 |
2824 bool spellcheck; | 2822 bool spellcheck; |
2825 | 2823 |
2826 int tabIndex; | 2824 int tabIndex; |
2827 | 2825 |
2828 String title; | 2826 String title; |
2829 | 2827 |
| 2828 bool translate; |
| 2829 |
2830 String webkitdropzone; | 2830 String webkitdropzone; |
2831 | 2831 |
2832 void click() native; | 2832 void click() native; |
2833 | 2833 |
2834 _ElementJs insertAdjacentElement(String where, _ElementJs element) native; | 2834 _ElementJs insertAdjacentElement(String where, _ElementJs element) native; |
2835 | 2835 |
2836 void insertAdjacentHTML(String where, String html) native; | 2836 void insertAdjacentHTML(String where, String html) native; |
2837 | 2837 |
2838 void insertAdjacentText(String where, String text) native; | 2838 void insertAdjacentText(String where, String text) native; |
2839 } | 2839 } |
(...skipping 1198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4038 _IDBObjectStoreJs createObjectStore(String name) native; | 4038 _IDBObjectStoreJs createObjectStore(String name) native; |
4039 | 4039 |
4040 void deleteObjectStore(String name) native; | 4040 void deleteObjectStore(String name) native; |
4041 | 4041 |
4042 bool dispatchEvent(_EventJs evt) native; | 4042 bool dispatchEvent(_EventJs evt) native; |
4043 | 4043 |
4044 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 4044 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
4045 | 4045 |
4046 _IDBVersionChangeRequestJs setVersion(String version) native; | 4046 _IDBVersionChangeRequestJs setVersion(String version) native; |
4047 | 4047 |
4048 _IDBTransactionJs transaction(String storeName, int mode) native; | 4048 _IDBTransactionJs transaction(String storeName, [int mode = null]) native; |
4049 } | 4049 } |
4050 | 4050 |
4051 class _IDBDatabaseErrorJs extends _DOMTypeJs implements IDBDatabaseError native
"*IDBDatabaseError" { | 4051 class _IDBDatabaseErrorJs extends _DOMTypeJs implements IDBDatabaseError native
"*IDBDatabaseError" { |
4052 | 4052 |
4053 int code; | 4053 int code; |
4054 | 4054 |
4055 String message; | 4055 String message; |
4056 } | 4056 } |
4057 | 4057 |
4058 class _IDBDatabaseExceptionJs extends _DOMTypeJs implements IDBDatabaseException
native "*IDBDatabaseException" { | 4058 class _IDBDatabaseExceptionJs extends _DOMTypeJs implements IDBDatabaseException
native "*IDBDatabaseException" { |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4157 final _IDBTransactionJs transaction; | 4157 final _IDBTransactionJs transaction; |
4158 | 4158 |
4159 _IDBRequestJs add(Dynamic value, [_IDBKeyJs key = null]) native; | 4159 _IDBRequestJs add(Dynamic value, [_IDBKeyJs key = null]) native; |
4160 | 4160 |
4161 _IDBRequestJs clear() native; | 4161 _IDBRequestJs clear() native; |
4162 | 4162 |
4163 _IDBRequestJs count([_IDBKeyRangeJs range = null]) native; | 4163 _IDBRequestJs count([_IDBKeyRangeJs range = null]) native; |
4164 | 4164 |
4165 _IDBIndexJs createIndex(String name, String keyPath) native; | 4165 _IDBIndexJs createIndex(String name, String keyPath) native; |
4166 | 4166 |
4167 _IDBRequestJs delete(_IDBKeyJs key) native; | 4167 _IDBRequestJs delete(var key_OR_keyRange) native; |
4168 | 4168 |
4169 void deleteIndex(String name) native; | 4169 void deleteIndex(String name) native; |
4170 | 4170 |
4171 _IDBRequestJs getObject(_IDBKeyJs key) native '''return this.get(key);'''; | 4171 _IDBRequestJs getObject(_IDBKeyJs key) native '''return this.get(key);'''; |
4172 | 4172 |
4173 _IDBIndexJs index(String name) native; | 4173 _IDBIndexJs index(String name) native; |
4174 | 4174 |
4175 _IDBRequestJs openCursor([_IDBKeyRangeJs range = null, int direction = null])
native; | 4175 _IDBRequestJs openCursor([_IDBKeyRangeJs range = null, int direction = null])
native; |
4176 | 4176 |
4177 _IDBRequestJs put(Dynamic value, [_IDBKeyJs key = null]) native; | 4177 _IDBRequestJs put(Dynamic value, [_IDBKeyJs key = null]) native; |
(...skipping 6936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11114 static final int CSS_TRANSLATEX = 2; | 11114 static final int CSS_TRANSLATEX = 2; |
11115 | 11115 |
11116 static final int CSS_TRANSLATEY = 3; | 11116 static final int CSS_TRANSLATEY = 3; |
11117 | 11117 |
11118 static final int CSS_TRANSLATEZ = 12; | 11118 static final int CSS_TRANSLATEZ = 12; |
11119 | 11119 |
11120 final int operationType; | 11120 final int operationType; |
11121 } | 11121 } |
11122 | 11122 |
11123 class _WebKitNamedFlowJs extends _DOMTypeJs implements WebKitNamedFlow native "*
WebKitNamedFlow" { | 11123 class _WebKitNamedFlowJs extends _DOMTypeJs implements WebKitNamedFlow native "*
WebKitNamedFlow" { |
| 11124 |
| 11125 final bool overflow; |
11124 } | 11126 } |
11125 | 11127 |
11126 class _WebKitPointJs extends _DOMTypeJs implements WebKitPoint native "*WebKitPo
int" { | 11128 class _WebKitPointJs extends _DOMTypeJs implements WebKitPoint native "*WebKitPo
int" { |
11127 | 11129 |
11128 num x; | 11130 num x; |
11129 | 11131 |
11130 num y; | 11132 num y; |
11131 } | 11133 } |
11132 | 11134 |
11133 class _WebKitTransitionEventJs extends _EventJs implements WebKitTransitionEvent
native "*WebKitTransitionEvent" { | 11135 class _WebKitTransitionEventJs extends _EventJs implements WebKitTransitionEvent
native "*WebKitTransitionEvent" { |
(...skipping 1486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12620 interface Clipboard { | 12622 interface Clipboard { |
12621 | 12623 |
12622 String dropEffect; | 12624 String dropEffect; |
12623 | 12625 |
12624 String effectAllowed; | 12626 String effectAllowed; |
12625 | 12627 |
12626 final FileList files; | 12628 final FileList files; |
12627 | 12629 |
12628 final DataTransferItemList items; | 12630 final DataTransferItemList items; |
12629 | 12631 |
12630 final List types; | |
12631 | |
12632 void clearData([String type]); | 12632 void clearData([String type]); |
12633 | 12633 |
12634 void getData(String type); | 12634 void getData(String type); |
12635 | 12635 |
12636 bool setData(String type, String data); | 12636 bool setData(String type, String data); |
12637 | 12637 |
12638 void setDragImage(HTMLImageElement image, int x, int y); | 12638 void setDragImage(HTMLImageElement image, int x, int y); |
12639 } | 12639 } |
12640 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12640 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12641 // for details. All rights reserved. Use of this source code is governed by a | 12641 // for details. All rights reserved. Use of this source code is governed by a |
(...skipping 2294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14936 String outerHTML; | 14936 String outerHTML; |
14937 | 14937 |
14938 String outerText; | 14938 String outerText; |
14939 | 14939 |
14940 bool spellcheck; | 14940 bool spellcheck; |
14941 | 14941 |
14942 int tabIndex; | 14942 int tabIndex; |
14943 | 14943 |
14944 String title; | 14944 String title; |
14945 | 14945 |
| 14946 bool translate; |
| 14947 |
14946 String webkitdropzone; | 14948 String webkitdropzone; |
14947 | 14949 |
14948 void click(); | 14950 void click(); |
14949 | 14951 |
14950 Element insertAdjacentElement(String where, Element element); | 14952 Element insertAdjacentElement(String where, Element element); |
14951 | 14953 |
14952 void insertAdjacentHTML(String where, String html); | 14954 void insertAdjacentHTML(String where, String html); |
14953 | 14955 |
14954 void insertAdjacentText(String where, String text); | 14956 void insertAdjacentText(String where, String text); |
14955 } | 14957 } |
(...skipping 1500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16456 IDBObjectStore createObjectStore(String name); | 16458 IDBObjectStore createObjectStore(String name); |
16457 | 16459 |
16458 void deleteObjectStore(String name); | 16460 void deleteObjectStore(String name); |
16459 | 16461 |
16460 bool dispatchEvent(Event evt); | 16462 bool dispatchEvent(Event evt); |
16461 | 16463 |
16462 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | 16464 void removeEventListener(String type, EventListener listener, [bool useCapture
]); |
16463 | 16465 |
16464 IDBVersionChangeRequest setVersion(String version); | 16466 IDBVersionChangeRequest setVersion(String version); |
16465 | 16467 |
16466 IDBTransaction transaction(String storeName, int mode); | 16468 IDBTransaction transaction(String storeName, [int mode]); |
16467 } | 16469 } |
16468 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16470 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
16469 // for details. All rights reserved. Use of this source code is governed by a | 16471 // for details. All rights reserved. Use of this source code is governed by a |
16470 // BSD-style license that can be found in the LICENSE file. | 16472 // BSD-style license that can be found in the LICENSE file. |
16471 | 16473 |
16472 // WARNING: Do not edit - generated code. | 16474 // WARNING: Do not edit - generated code. |
16473 | 16475 |
16474 interface IDBDatabaseError { | 16476 interface IDBDatabaseError { |
16475 | 16477 |
16476 int code; | 16478 int code; |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16610 final IDBTransaction transaction; | 16612 final IDBTransaction transaction; |
16611 | 16613 |
16612 IDBRequest add(Dynamic value, [IDBKey key]); | 16614 IDBRequest add(Dynamic value, [IDBKey key]); |
16613 | 16615 |
16614 IDBRequest clear(); | 16616 IDBRequest clear(); |
16615 | 16617 |
16616 IDBRequest count([IDBKeyRange range]); | 16618 IDBRequest count([IDBKeyRange range]); |
16617 | 16619 |
16618 IDBIndex createIndex(String name, String keyPath); | 16620 IDBIndex createIndex(String name, String keyPath); |
16619 | 16621 |
16620 IDBRequest delete(IDBKey key); | 16622 IDBRequest delete(var key_OR_keyRange); |
16621 | 16623 |
16622 void deleteIndex(String name); | 16624 void deleteIndex(String name); |
16623 | 16625 |
16624 IDBRequest getObject(IDBKey key); | 16626 IDBRequest getObject(IDBKey key); |
16625 | 16627 |
16626 IDBIndex index(String name); | 16628 IDBIndex index(String name); |
16627 | 16629 |
16628 IDBRequest openCursor([IDBKeyRange range, int direction]); | 16630 IDBRequest openCursor([IDBKeyRange range, int direction]); |
16629 | 16631 |
16630 IDBRequest put(Dynamic value, [IDBKey key]); | 16632 IDBRequest put(Dynamic value, [IDBKey key]); |
(...skipping 6148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
22779 | 22781 |
22780 final int operationType; | 22782 final int operationType; |
22781 } | 22783 } |
22782 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22784 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
22783 // for details. All rights reserved. Use of this source code is governed by a | 22785 // for details. All rights reserved. Use of this source code is governed by a |
22784 // BSD-style license that can be found in the LICENSE file. | 22786 // BSD-style license that can be found in the LICENSE file. |
22785 | 22787 |
22786 // WARNING: Do not edit - generated code. | 22788 // WARNING: Do not edit - generated code. |
22787 | 22789 |
22788 interface WebKitNamedFlow { | 22790 interface WebKitNamedFlow { |
| 22791 |
| 22792 final bool overflow; |
22789 } | 22793 } |
22790 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22794 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
22791 // for details. All rights reserved. Use of this source code is governed by a | 22795 // for details. All rights reserved. Use of this source code is governed by a |
22792 // BSD-style license that can be found in the LICENSE file. | 22796 // BSD-style license that can be found in the LICENSE file. |
22793 | 22797 |
22794 // WARNING: Do not edit - generated code. | 22798 // WARNING: Do not edit - generated code. |
22795 | 22799 |
22796 interface WebKitPoint default _WebKitPointFactoryProvider { | 22800 interface WebKitPoint default _WebKitPointFactoryProvider { |
22797 | 22801 |
22798 WebKitPoint(num x, num y); | 22802 WebKitPoint(num x, num y); |
(...skipping 1273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
24072 if (length < 0) throw new IllegalArgumentException('length'); | 24076 if (length < 0) throw new IllegalArgumentException('length'); |
24073 if (start < 0) throw new IndexOutOfRangeException(start); | 24077 if (start < 0) throw new IndexOutOfRangeException(start); |
24074 int end = start + length; | 24078 int end = start + length; |
24075 if (end > a.length) throw new IndexOutOfRangeException(end); | 24079 if (end > a.length) throw new IndexOutOfRangeException(end); |
24076 for (int i = start; i < end; i++) { | 24080 for (int i = start; i < end; i++) { |
24077 accumulator.add(a[i]); | 24081 accumulator.add(a[i]); |
24078 } | 24082 } |
24079 return accumulator; | 24083 return accumulator; |
24080 } | 24084 } |
24081 } | 24085 } |
OLD | NEW |