| 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 IDBFactoryWrappingImplementation extends DOMWrapperBase implements IDBFact
ory { | 7 class IDBFactoryWrappingImplementation extends DOMWrapperBase implements IDBFact
ory { |
| 8 IDBFactoryWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | 8 IDBFactoryWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} |
| 9 | 9 |
| 10 int cmp(IDBKey first, IDBKey second) { |
| 11 return _ptr.cmp(LevelDom.unwrap(first), LevelDom.unwrap(second)); |
| 12 } |
| 13 |
| 14 IDBVersionChangeRequest deleteDatabase(String name) { |
| 15 return LevelDom.wrapIDBVersionChangeRequest(_ptr.deleteDatabase(name)); |
| 16 } |
| 17 |
| 10 IDBRequest getDatabaseNames() { | 18 IDBRequest getDatabaseNames() { |
| 11 return LevelDom.wrapIDBRequest(_ptr.getDatabaseNames()); | 19 return LevelDom.wrapIDBRequest(_ptr.getDatabaseNames()); |
| 12 } | 20 } |
| 13 | 21 |
| 14 IDBRequest open(String name) { | 22 IDBRequest open(String name) { |
| 15 return LevelDom.wrapIDBRequest(_ptr.open(name)); | 23 return LevelDom.wrapIDBRequest(_ptr.open(name)); |
| 16 } | 24 } |
| 17 } | 25 } |
| OLD | NEW |