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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 } | 79 } |
80 } | 80 } |
81 static void _removeEventListener(receiver, type, listener) native; | 81 static void _removeEventListener(receiver, type, listener) native; |
82 static void _removeEventListener_2(receiver, type, listener, useCapture) nativ
e; | 82 static void _removeEventListener_2(receiver, type, listener, useCapture) nativ
e; |
83 | 83 |
84 IDBVersionChangeRequest setVersion(String version) { | 84 IDBVersionChangeRequest setVersion(String version) { |
85 return _setVersion(this, version); | 85 return _setVersion(this, version); |
86 } | 86 } |
87 static IDBVersionChangeRequest _setVersion(receiver, version) native; | 87 static IDBVersionChangeRequest _setVersion(receiver, version) native; |
88 | 88 |
89 IDBTransaction transaction(String storeName, [int mode = null]) { | 89 IDBTransaction transaction(String storeName, int mode) { |
90 if (mode === null) { | 90 return _transaction(this, storeName, mode); |
91 return _transaction(this, storeName); | |
92 } else { | |
93 return _transaction_2(this, storeName, mode); | |
94 } | |
95 } | 91 } |
96 static IDBTransaction _transaction(receiver, storeName) native; | 92 static IDBTransaction _transaction(receiver, storeName, mode) native; |
97 static IDBTransaction _transaction_2(receiver, storeName, mode) native; | |
98 | 93 |
99 String get typeName() { return "IDBDatabase"; } | 94 String get typeName() { return "IDBDatabase"; } |
100 } | 95 } |
OLD | NEW |