| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
| 6 | 6 |
| 7 class _IDBObjectStoreWrappingImplementation extends DOMWrapperBase implements ID
BObjectStore { | 7 class _IDBObjectStoreWrappingImplementation extends DOMWrapperBase implements ID
BObjectStore { |
| 8 _IDBObjectStoreWrappingImplementation() : super() {} | 8 _IDBObjectStoreWrappingImplementation() : super() {} |
| 9 | 9 |
| 10 static create__IDBObjectStoreWrappingImplementation() native { | 10 static create__IDBObjectStoreWrappingImplementation() native { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 } | 28 } |
| 29 } | 29 } |
| 30 static IDBRequest _add(receiver, value) native; | 30 static IDBRequest _add(receiver, value) native; |
| 31 static IDBRequest _add_2(receiver, value, key) native; | 31 static IDBRequest _add_2(receiver, value, key) native; |
| 32 | 32 |
| 33 IDBRequest clear() { | 33 IDBRequest clear() { |
| 34 return _clear(this); | 34 return _clear(this); |
| 35 } | 35 } |
| 36 static IDBRequest _clear(receiver) native; | 36 static IDBRequest _clear(receiver) native; |
| 37 | 37 |
| 38 IDBRequest count([IDBKeyRange range = null]) { |
| 39 if (range === null) { |
| 40 return _count(this); |
| 41 } else { |
| 42 return _count_2(this, range); |
| 43 } |
| 44 } |
| 45 static IDBRequest _count(receiver) native; |
| 46 static IDBRequest _count_2(receiver, range) native; |
| 47 |
| 38 IDBIndex createIndex(String name, String keyPath) { | 48 IDBIndex createIndex(String name, String keyPath) { |
| 39 return _createIndex(this, name, keyPath); | 49 return _createIndex(this, name, keyPath); |
| 40 } | 50 } |
| 41 static IDBIndex _createIndex(receiver, name, keyPath) native; | 51 static IDBIndex _createIndex(receiver, name, keyPath) native; |
| 42 | 52 |
| 43 IDBRequest delete(IDBKey key) { | 53 IDBRequest delete(IDBKey key) { |
| 44 return _delete(this, key); | 54 return _delete(this, key); |
| 45 } | 55 } |
| 46 static IDBRequest _delete(receiver, key) native; | 56 static IDBRequest _delete(receiver, key) native; |
| 47 | 57 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 return _put(this, value); | 94 return _put(this, value); |
| 85 } else { | 95 } else { |
| 86 return _put_2(this, value, key); | 96 return _put_2(this, value, key); |
| 87 } | 97 } |
| 88 } | 98 } |
| 89 static IDBRequest _put(receiver, value) native; | 99 static IDBRequest _put(receiver, value) native; |
| 90 static IDBRequest _put_2(receiver, value, key) native; | 100 static IDBRequest _put_2(receiver, value, key) native; |
| 91 | 101 |
| 92 String get typeName() { return "IDBObjectStore"; } | 102 String get typeName() { return "IDBObjectStore"; } |
| 93 } | 103 } |
| OLD | NEW |