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 { |
11 return new _IDBObjectStoreWrappingImplementation(); | 11 return new _IDBObjectStoreWrappingImplementation(); |
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 String get name() { return _get_name(this); } | 17 String get name() { return _get_name(this); } |
18 static String _get_name(var _this) native; | 18 static String _get_name(var _this) native; |
19 | 19 |
20 IDBTransaction get transaction() { return _get_transaction(this); } | 20 IDBTransaction get transaction() { return _get_transaction(this); } |
21 static IDBTransaction _get_transaction(var _this) native; | 21 static IDBTransaction _get_transaction(var _this) native; |
22 | 22 |
23 IDBRequest add(String value, [IDBKey key = null]) { | 23 IDBRequest add(Dynamic value, [IDBKey key = null]) { |
24 if (key === null) { | 24 if (key === null) { |
25 return _add(this, value); | 25 return _add(this, value); |
26 } else { | 26 } else { |
27 return _add_2(this, value, key); | 27 return _add_2(this, value, key); |
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() { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 } else { | 82 } else { |
83 return _openCursor_3(this, range, direction); | 83 return _openCursor_3(this, range, direction); |
84 } | 84 } |
85 } | 85 } |
86 throw "Incorrect number or type of arguments"; | 86 throw "Incorrect number or type of arguments"; |
87 } | 87 } |
88 static IDBRequest _openCursor(receiver) native; | 88 static IDBRequest _openCursor(receiver) native; |
89 static IDBRequest _openCursor_2(receiver, range) native; | 89 static IDBRequest _openCursor_2(receiver, range) native; |
90 static IDBRequest _openCursor_3(receiver, range, direction) native; | 90 static IDBRequest _openCursor_3(receiver, range, direction) native; |
91 | 91 |
92 IDBRequest put(String value, [IDBKey key = null]) { | 92 IDBRequest put(Dynamic value, [IDBKey key = null]) { |
93 if (key === null) { | 93 if (key === null) { |
94 return _put(this, value); | 94 return _put(this, value); |
95 } else { | 95 } else { |
96 return _put_2(this, value, key); | 96 return _put_2(this, value, key); |
97 } | 97 } |
98 } | 98 } |
99 static IDBRequest _put(receiver, value) native; | 99 static IDBRequest _put(receiver, value) native; |
100 static IDBRequest _put_2(receiver, value, key) native; | 100 static IDBRequest _put_2(receiver, value, key) native; |
101 | 101 |
102 String get typeName() { return "IDBObjectStore"; } | 102 String get typeName() { return "IDBObjectStore"; } |
103 } | 103 } |
OLD | NEW |