| 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 1479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1490 class _DataViewJs extends _ArrayBufferViewJs implements DataView native "*DataVi
ew" { | 1490 class _DataViewJs extends _ArrayBufferViewJs implements DataView native "*DataVi
ew" { |
| 1491 | 1491 |
| 1492 num getFloat32(int byteOffset, [bool littleEndian = null]) native; | 1492 num getFloat32(int byteOffset, [bool littleEndian = null]) native; |
| 1493 | 1493 |
| 1494 num getFloat64(int byteOffset, [bool littleEndian = null]) native; | 1494 num getFloat64(int byteOffset, [bool littleEndian = null]) native; |
| 1495 | 1495 |
| 1496 int getInt16(int byteOffset, [bool littleEndian = null]) native; | 1496 int getInt16(int byteOffset, [bool littleEndian = null]) native; |
| 1497 | 1497 |
| 1498 int getInt32(int byteOffset, [bool littleEndian = null]) native; | 1498 int getInt32(int byteOffset, [bool littleEndian = null]) native; |
| 1499 | 1499 |
| 1500 Object getInt8() native; | 1500 int getInt8(int byteOffset) native; |
| 1501 | 1501 |
| 1502 int getUint16(int byteOffset, [bool littleEndian = null]) native; | 1502 int getUint16(int byteOffset, [bool littleEndian = null]) native; |
| 1503 | 1503 |
| 1504 int getUint32(int byteOffset, [bool littleEndian = null]) native; | 1504 int getUint32(int byteOffset, [bool littleEndian = null]) native; |
| 1505 | 1505 |
| 1506 Object getUint8() native; | 1506 int getUint8(int byteOffset) native; |
| 1507 | 1507 |
| 1508 void setFloat32(int byteOffset, num value, [bool littleEndian = null]) native; | 1508 void setFloat32(int byteOffset, num value, [bool littleEndian = null]) native; |
| 1509 | 1509 |
| 1510 void setFloat64(int byteOffset, num value, [bool littleEndian = null]) native; | 1510 void setFloat64(int byteOffset, num value, [bool littleEndian = null]) native; |
| 1511 | 1511 |
| 1512 void setInt16(int byteOffset, int value, [bool littleEndian = null]) native; | 1512 void setInt16(int byteOffset, int value, [bool littleEndian = null]) native; |
| 1513 | 1513 |
| 1514 void setInt32(int byteOffset, int value, [bool littleEndian = null]) native; | 1514 void setInt32(int byteOffset, int value, [bool littleEndian = null]) native; |
| 1515 | 1515 |
| 1516 void setInt8() native; | 1516 void setInt8(int byteOffset, int value) native; |
| 1517 | 1517 |
| 1518 void setUint16(int byteOffset, int value, [bool littleEndian = null]) native; | 1518 void setUint16(int byteOffset, int value, [bool littleEndian = null]) native; |
| 1519 | 1519 |
| 1520 void setUint32(int byteOffset, int value, [bool littleEndian = null]) native; | 1520 void setUint32(int byteOffset, int value, [bool littleEndian = null]) native; |
| 1521 | 1521 |
| 1522 void setUint8() native; | 1522 void setUint8(int byteOffset, int value) native; |
| 1523 } | 1523 } |
| 1524 | 1524 |
| 1525 class _DatabaseJs extends _DOMTypeJs implements Database native "*Database" { | 1525 class _DatabaseJs extends _DOMTypeJs implements Database native "*Database" { |
| 1526 | 1526 |
| 1527 final String version; | 1527 final String version; |
| 1528 | 1528 |
| 1529 void changeVersion(String oldVersion, String newVersion, [SQLTransactionCallba
ck callback = null, SQLTransactionErrorCallback errorCallback = null, VoidCallba
ck successCallback = null]) native; | 1529 void changeVersion(String oldVersion, String newVersion, [SQLTransactionCallba
ck callback = null, SQLTransactionErrorCallback errorCallback = null, VoidCallba
ck successCallback = null]) native; |
| 1530 | 1530 |
| 1531 void readTransaction(SQLTransactionCallback callback, [SQLTransactionErrorCall
back errorCallback = null, VoidCallback successCallback = null]) native; | 1531 void readTransaction(SQLTransactionCallback callback, [SQLTransactionErrorCall
back errorCallback = null, VoidCallback successCallback = null]) native; |
| 1532 | 1532 |
| (...skipping 10407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11940 // BSD-style license that can be found in the LICENSE file. | 11940 // BSD-style license that can be found in the LICENSE file. |
| 11941 | 11941 |
| 11942 class _DOMURLFactoryProvider { | 11942 class _DOMURLFactoryProvider { |
| 11943 factory DOMURL() native | 11943 factory DOMURL() native |
| 11944 '''return new DOMURL();'''; | 11944 '''return new DOMURL();'''; |
| 11945 } | 11945 } |
| 11946 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11946 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11947 // for details. All rights reserved. Use of this source code is governed by a | 11947 // for details. All rights reserved. Use of this source code is governed by a |
| 11948 // BSD-style license that can be found in the LICENSE file. | 11948 // BSD-style license that can be found in the LICENSE file. |
| 11949 | 11949 |
| 11950 class _DataViewFactoryProvider { |
| 11951 factory DataView(ArrayBuffer buffer, [int byteOffset = null, int byteLength =
null]) native |
| 11952 '''return new DataView(buffer, byteOffset, byteLength);'''; |
| 11953 } |
| 11954 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11955 // for details. All rights reserved. Use of this source code is governed by a |
| 11956 // BSD-style license that can be found in the LICENSE file. |
| 11957 |
| 11950 class _DeprecatedPeerConnectionFactoryProvider { | 11958 class _DeprecatedPeerConnectionFactoryProvider { |
| 11951 factory DeprecatedPeerConnection(String serverConfiguration, SignalingCallback
signalingCallback) native | 11959 factory DeprecatedPeerConnection(String serverConfiguration, SignalingCallback
signalingCallback) native |
| 11952 '''return new DeprecatedPeerConnection(serverConfiguration, signalingCallb
ack);'''; | 11960 '''return new DeprecatedPeerConnection(serverConfiguration, signalingCallb
ack);'''; |
| 11953 } | 11961 } |
| 11954 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11962 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11955 // for details. All rights reserved. Use of this source code is governed by a | 11963 // for details. All rights reserved. Use of this source code is governed by a |
| 11956 // BSD-style license that can be found in the LICENSE file. | 11964 // BSD-style license that can be found in the LICENSE file. |
| 11957 | 11965 |
| 11958 class _EventSourceFactoryProvider { | 11966 class _EventSourceFactoryProvider { |
| 11959 factory EventSource(String scriptUrl) native | 11967 factory EventSource(String scriptUrl) native |
| (...skipping 1962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13922 void clear(); | 13930 void clear(); |
| 13923 | 13931 |
| 13924 DataTransferItem item(int index); | 13932 DataTransferItem item(int index); |
| 13925 } | 13933 } |
| 13926 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13934 // 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 | 13935 // 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. | 13936 // BSD-style license that can be found in the LICENSE file. |
| 13929 | 13937 |
| 13930 // WARNING: Do not edit - generated code. | 13938 // WARNING: Do not edit - generated code. |
| 13931 | 13939 |
| 13932 interface DataView extends ArrayBufferView { | 13940 interface DataView extends ArrayBufferView default _DataViewFactoryProvider { |
| 13941 |
| 13942 DataView(ArrayBuffer buffer, [int byteOffset, int byteLength]); |
| 13933 | 13943 |
| 13934 num getFloat32(int byteOffset, [bool littleEndian]); | 13944 num getFloat32(int byteOffset, [bool littleEndian]); |
| 13935 | 13945 |
| 13936 num getFloat64(int byteOffset, [bool littleEndian]); | 13946 num getFloat64(int byteOffset, [bool littleEndian]); |
| 13937 | 13947 |
| 13938 int getInt16(int byteOffset, [bool littleEndian]); | 13948 int getInt16(int byteOffset, [bool littleEndian]); |
| 13939 | 13949 |
| 13940 int getInt32(int byteOffset, [bool littleEndian]); | 13950 int getInt32(int byteOffset, [bool littleEndian]); |
| 13941 | 13951 |
| 13942 Object getInt8(); | 13952 int getInt8(int byteOffset); |
| 13943 | 13953 |
| 13944 int getUint16(int byteOffset, [bool littleEndian]); | 13954 int getUint16(int byteOffset, [bool littleEndian]); |
| 13945 | 13955 |
| 13946 int getUint32(int byteOffset, [bool littleEndian]); | 13956 int getUint32(int byteOffset, [bool littleEndian]); |
| 13947 | 13957 |
| 13948 Object getUint8(); | 13958 int getUint8(int byteOffset); |
| 13949 | 13959 |
| 13950 void setFloat32(int byteOffset, num value, [bool littleEndian]); | 13960 void setFloat32(int byteOffset, num value, [bool littleEndian]); |
| 13951 | 13961 |
| 13952 void setFloat64(int byteOffset, num value, [bool littleEndian]); | 13962 void setFloat64(int byteOffset, num value, [bool littleEndian]); |
| 13953 | 13963 |
| 13954 void setInt16(int byteOffset, int value, [bool littleEndian]); | 13964 void setInt16(int byteOffset, int value, [bool littleEndian]); |
| 13955 | 13965 |
| 13956 void setInt32(int byteOffset, int value, [bool littleEndian]); | 13966 void setInt32(int byteOffset, int value, [bool littleEndian]); |
| 13957 | 13967 |
| 13958 void setInt8(); | 13968 void setInt8(int byteOffset, int value); |
| 13959 | 13969 |
| 13960 void setUint16(int byteOffset, int value, [bool littleEndian]); | 13970 void setUint16(int byteOffset, int value, [bool littleEndian]); |
| 13961 | 13971 |
| 13962 void setUint32(int byteOffset, int value, [bool littleEndian]); | 13972 void setUint32(int byteOffset, int value, [bool littleEndian]); |
| 13963 | 13973 |
| 13964 void setUint8(); | 13974 void setUint8(int byteOffset, int value); |
| 13965 } | 13975 } |
| 13966 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13976 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 13967 // for details. All rights reserved. Use of this source code is governed by a | 13977 // for details. All rights reserved. Use of this source code is governed by a |
| 13968 // BSD-style license that can be found in the LICENSE file. | 13978 // BSD-style license that can be found in the LICENSE file. |
| 13969 | 13979 |
| 13970 // WARNING: Do not edit - generated code. | 13980 // WARNING: Do not edit - generated code. |
| 13971 | 13981 |
| 13972 interface Database { | 13982 interface Database { |
| 13973 | 13983 |
| 13974 final String version; | 13984 final String version; |
| (...skipping 11245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25220 if (length < 0) throw new IllegalArgumentException('length'); | 25230 if (length < 0) throw new IllegalArgumentException('length'); |
| 25221 if (start < 0) throw new IndexOutOfRangeException(start); | 25231 if (start < 0) throw new IndexOutOfRangeException(start); |
| 25222 int end = start + length; | 25232 int end = start + length; |
| 25223 if (end > a.length) throw new IndexOutOfRangeException(end); | 25233 if (end > a.length) throw new IndexOutOfRangeException(end); |
| 25224 for (int i = start; i < end; i++) { | 25234 for (int i = start; i < end; i++) { |
| 25225 accumulator.add(a[i]); | 25235 accumulator.add(a[i]); |
| 25226 } | 25236 } |
| 25227 return accumulator; | 25237 return accumulator; |
| 25228 } | 25238 } |
| 25229 } | 25239 } |
| OLD | NEW |