| 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 _IDBDatabaseWrappingImplementation extends DOMWrapperBase implements IDBDa
tabase { | 7 class _IDBDatabaseWrappingImplementation extends DOMWrapperBase implements IDBDa
tabase { |
| 8 _IDBDatabaseWrappingImplementation() : super() {} | 8 _IDBDatabaseWrappingImplementation() : super() {} |
| 9 | 9 |
| 10 static create__IDBDatabaseWrappingImplementation() native { | 10 static create__IDBDatabaseWrappingImplementation() native { |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 } | 82 } |
| 83 } | 83 } |
| 84 static void _removeEventListener(receiver, type, listener) native; | 84 static void _removeEventListener(receiver, type, listener) native; |
| 85 static void _removeEventListener_2(receiver, type, listener, useCapture) nativ
e; | 85 static void _removeEventListener_2(receiver, type, listener, useCapture) nativ
e; |
| 86 | 86 |
| 87 IDBVersionChangeRequest setVersion(String version) { | 87 IDBVersionChangeRequest setVersion(String version) { |
| 88 return _setVersion(this, version); | 88 return _setVersion(this, version); |
| 89 } | 89 } |
| 90 static IDBVersionChangeRequest _setVersion(receiver, version) native; | 90 static IDBVersionChangeRequest _setVersion(receiver, version) native; |
| 91 | 91 |
| 92 IDBTransaction transaction(var storeName_OR_storeNames, int mode) { | 92 IDBTransaction transaction(var storeName_OR_storeNames, [int mode = null]) { |
| 93 if (storeName_OR_storeNames is List<String>) { | 93 if (storeName_OR_storeNames is List<String>) { |
| 94 return _transaction(this, storeName_OR_storeNames, mode); | 94 return _transaction(this, storeName_OR_storeNames, mode); |
| 95 } else { | 95 } else { |
| 96 if (storeName_OR_storeNames is String) { | 96 if (storeName_OR_storeNames is String) { |
| 97 return _transaction_2(this, storeName_OR_storeNames, mode); | 97 return _transaction_2(this, storeName_OR_storeNames, mode); |
| 98 } | 98 } |
| 99 } | 99 } |
| 100 throw "Incorrect number or type of arguments"; | 100 throw "Incorrect number or type of arguments"; |
| 101 } | 101 } |
| 102 static IDBTransaction _transaction(receiver, storeName_OR_storeNames, mode) na
tive; | 102 static IDBTransaction _transaction(receiver, storeName_OR_storeNames, mode) na
tive; |
| 103 static IDBTransaction _transaction_2(receiver, storeName_OR_storeNames, mode)
native; | 103 static IDBTransaction _transaction_2(receiver, storeName_OR_storeNames, mode)
native; |
| 104 | 104 |
| 105 String get typeName() { return "IDBDatabase"; } | 105 String get typeName() { return "IDBDatabase"; } |
| 106 } | 106 } |
| OLD | NEW |