OLD | NEW |
| (Empty) |
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 | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 // WARNING: Do not edit - generated code. | |
6 | |
7 class IDBCursorWrappingImplementation extends DOMWrapperBase implements IDBCurso
r { | |
8 IDBCursorWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9 | |
10 int get direction() { return _ptr.direction; } | |
11 | |
12 IDBKey get key() { return LevelDom.wrapIDBKey(_ptr.key); } | |
13 | |
14 IDBKey get primaryKey() { return LevelDom.wrapIDBKey(_ptr.primaryKey); } | |
15 | |
16 IDBAny get source() { return LevelDom.wrapIDBAny(_ptr.source); } | |
17 | |
18 void continueFunction([IDBKey key]) { | |
19 if (key === null) { | |
20 _ptr.continueFunction(); | |
21 return; | |
22 } else { | |
23 _ptr.continueFunction(LevelDom.unwrap(key)); | |
24 return; | |
25 } | |
26 } | |
27 | |
28 IDBRequest delete() { | |
29 return LevelDom.wrapIDBRequest(_ptr.delete()); | |
30 } | |
31 | |
32 IDBRequest update(String value) { | |
33 return LevelDom.wrapIDBRequest(_ptr.update(value)); | |
34 } | |
35 } | |
OLD | NEW |