| 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 4263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4274 _IDBObjectStoreJs createObjectStore(String name, [Map options = null]) native; | 4274 _IDBObjectStoreJs createObjectStore(String name, [Map options = null]) native; |
| 4275 | 4275 |
| 4276 void deleteObjectStore(String name) native; | 4276 void deleteObjectStore(String name) native; |
| 4277 | 4277 |
| 4278 bool dispatchEvent(_EventJs evt) native; | 4278 bool dispatchEvent(_EventJs evt) native; |
| 4279 | 4279 |
| 4280 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 4280 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
| 4281 | 4281 |
| 4282 _IDBVersionChangeRequestJs setVersion(String version) native; | 4282 _IDBVersionChangeRequestJs setVersion(String version) native; |
| 4283 | 4283 |
| 4284 _IDBTransactionJs transaction(storeName_OR_storeNames, [int mode = null]) nati
ve; | 4284 _IDBTransactionJs transaction(storeName_OR_storeNames, int mode) native; |
| 4285 } | 4285 } |
| 4286 | 4286 |
| 4287 class _IDBDatabaseExceptionJs extends _DOMTypeJs implements IDBDatabaseException
native "*IDBDatabaseException" { | 4287 class _IDBDatabaseExceptionJs extends _DOMTypeJs implements IDBDatabaseException
native "*IDBDatabaseException" { |
| 4288 | 4288 |
| 4289 static final int ABORT_ERR = 8; | 4289 static final int ABORT_ERR = 8; |
| 4290 | 4290 |
| 4291 static final int CONSTRAINT_ERR = 4; | 4291 static final int CONSTRAINT_ERR = 4; |
| 4292 | 4292 |
| 4293 static final int DATA_ERR = 5; | 4293 static final int DATA_ERR = 5; |
| 4294 | 4294 |
| (...skipping 12942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17237 IDBObjectStore createObjectStore(String name, [Map options]); | 17237 IDBObjectStore createObjectStore(String name, [Map options]); |
| 17238 | 17238 |
| 17239 void deleteObjectStore(String name); | 17239 void deleteObjectStore(String name); |
| 17240 | 17240 |
| 17241 bool dispatchEvent(Event evt); | 17241 bool dispatchEvent(Event evt); |
| 17242 | 17242 |
| 17243 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | 17243 void removeEventListener(String type, EventListener listener, [bool useCapture
]); |
| 17244 | 17244 |
| 17245 IDBVersionChangeRequest setVersion(String version); | 17245 IDBVersionChangeRequest setVersion(String version); |
| 17246 | 17246 |
| 17247 IDBTransaction transaction(storeName_OR_storeNames, [int mode]); | 17247 IDBTransaction transaction(storeName_OR_storeNames, int mode); |
| 17248 } | 17248 } |
| 17249 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17249 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 17250 // for details. All rights reserved. Use of this source code is governed by a | 17250 // for details. All rights reserved. Use of this source code is governed by a |
| 17251 // BSD-style license that can be found in the LICENSE file. | 17251 // BSD-style license that can be found in the LICENSE file. |
| 17252 | 17252 |
| 17253 // WARNING: Do not edit - generated code. | 17253 // WARNING: Do not edit - generated code. |
| 17254 | 17254 |
| 17255 interface IDBDatabaseException { | 17255 interface IDBDatabaseException { |
| 17256 | 17256 |
| 17257 static final int ABORT_ERR = 8; | 17257 static final int ABORT_ERR = 8; |
| (...skipping 8118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25376 if (length < 0) throw new IllegalArgumentException('length'); | 25376 if (length < 0) throw new IllegalArgumentException('length'); |
| 25377 if (start < 0) throw new IndexOutOfRangeException(start); | 25377 if (start < 0) throw new IndexOutOfRangeException(start); |
| 25378 int end = start + length; | 25378 int end = start + length; |
| 25379 if (end > a.length) throw new IndexOutOfRangeException(end); | 25379 if (end > a.length) throw new IndexOutOfRangeException(end); |
| 25380 for (int i = start; i < end; i++) { | 25380 for (int i = start; i < end; i++) { |
| 25381 accumulator.add(a[i]); | 25381 accumulator.add(a[i]); |
| 25382 } | 25382 } |
| 25383 return accumulator; | 25383 return accumulator; |
| 25384 } | 25384 } |
| 25385 } | 25385 } |
| OLD | NEW |