| 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 _IDBIndexWrappingImplementation extends DOMWrapperBase implements IDBIndex
{ | 7 class _IDBIndexWrappingImplementation extends DOMWrapperBase implements IDBIndex
{ |
| 8 _IDBIndexWrappingImplementation() : super() {} | 8 _IDBIndexWrappingImplementation() : super() {} |
| 9 | 9 |
| 10 static create__IDBIndexWrappingImplementation() native { | 10 static create__IDBIndexWrappingImplementation() native { |
| 11 return new _IDBIndexWrappingImplementation(); | 11 return new _IDBIndexWrappingImplementation(); |
| 12 } | 12 } |
| 13 | 13 |
| 14 String get keyPath() { return _get_keyPath(this); } | 14 String get keyPath() { return _get_keyPath(this); } |
| 15 static String _get_keyPath(var _this) native; | 15 static String _get_keyPath(var _this) native; |
| 16 | 16 |
| 17 bool get multiEntry() { return _get_multiEntry(this); } | |
| 18 static bool _get_multiEntry(var _this) native; | |
| 19 | |
| 20 String get name() { return _get_name(this); } | 17 String get name() { return _get_name(this); } |
| 21 static String _get_name(var _this) native; | 18 static String _get_name(var _this) native; |
| 22 | 19 |
| 23 IDBObjectStore get objectStore() { return _get_objectStore(this); } | 20 IDBObjectStore get objectStore() { return _get_objectStore(this); } |
| 24 static IDBObjectStore _get_objectStore(var _this) native; | 21 static IDBObjectStore _get_objectStore(var _this) native; |
| 25 | 22 |
| 26 bool get unique() { return _get_unique(this); } | 23 bool get unique() { return _get_unique(this); } |
| 27 static bool _get_unique(var _this) native; | 24 static bool _get_unique(var _this) native; |
| 28 | 25 |
| 29 IDBRequest count([IDBKeyRange range = null]) { | |
| 30 if (range === null) { | |
| 31 return _count(this); | |
| 32 } else { | |
| 33 return _count_2(this, range); | |
| 34 } | |
| 35 } | |
| 36 static IDBRequest _count(receiver) native; | |
| 37 static IDBRequest _count_2(receiver, range) native; | |
| 38 | |
| 39 IDBRequest getObject(IDBKey key) { | 26 IDBRequest getObject(IDBKey key) { |
| 40 return _getObject(this, key); | 27 return _getObject(this, key); |
| 41 } | 28 } |
| 42 static IDBRequest _getObject(receiver, key) native; | 29 static IDBRequest _getObject(receiver, key) native; |
| 43 | 30 |
| 44 IDBRequest getKey(IDBKey key) { | 31 IDBRequest getKey(IDBKey key) { |
| 45 return _getKey(this, key); | 32 return _getKey(this, key); |
| 46 } | 33 } |
| 47 static IDBRequest _getKey(receiver, key) native; | 34 static IDBRequest _getKey(receiver, key) native; |
| 48 | 35 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 77 } | 64 } |
| 78 } | 65 } |
| 79 throw "Incorrect number or type of arguments"; | 66 throw "Incorrect number or type of arguments"; |
| 80 } | 67 } |
| 81 static IDBRequest _openKeyCursor(receiver) native; | 68 static IDBRequest _openKeyCursor(receiver) native; |
| 82 static IDBRequest _openKeyCursor_2(receiver, range) native; | 69 static IDBRequest _openKeyCursor_2(receiver, range) native; |
| 83 static IDBRequest _openKeyCursor_3(receiver, range, direction) native; | 70 static IDBRequest _openKeyCursor_3(receiver, range, direction) native; |
| 84 | 71 |
| 85 String get typeName() { return "IDBIndex"; } | 72 String get typeName() { return "IDBIndex"; } |
| 86 } | 73 } |
| OLD | NEW |