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 IDBKeyRangeWrappingImplementation extends DOMWrapperBase implements IDBKey
Range { | |
8 IDBKeyRangeWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9 | |
10 IDBKey get lower() { return LevelDom.wrapIDBKey(_ptr.lower); } | |
11 | |
12 bool get lowerOpen() { return _ptr.lowerOpen; } | |
13 | |
14 IDBKey get upper() { return LevelDom.wrapIDBKey(_ptr.upper); } | |
15 | |
16 bool get upperOpen() { return _ptr.upperOpen; } | |
17 | |
18 IDBKeyRange bound(IDBKey lower, IDBKey upper, [bool lowerOpen, bool upperOpen]
) { | |
19 if (lowerOpen === null) { | |
20 if (upperOpen === null) { | |
21 return LevelDom.wrapIDBKeyRange(_ptr.bound(LevelDom.unwrap(lower), Level
Dom.unwrap(upper))); | |
22 } | |
23 } else { | |
24 if (upperOpen === null) { | |
25 return LevelDom.wrapIDBKeyRange(_ptr.bound(LevelDom.unwrap(lower), Level
Dom.unwrap(upper), lowerOpen)); | |
26 } else { | |
27 return LevelDom.wrapIDBKeyRange(_ptr.bound(LevelDom.unwrap(lower), Level
Dom.unwrap(upper), lowerOpen, upperOpen)); | |
28 } | |
29 } | |
30 throw "Incorrect number or type of arguments"; | |
31 } | |
32 | |
33 IDBKeyRange lowerBound(IDBKey bound, [bool open]) { | |
34 if (open === null) { | |
35 return LevelDom.wrapIDBKeyRange(_ptr.lowerBound(LevelDom.unwrap(bound))); | |
36 } else { | |
37 return LevelDom.wrapIDBKeyRange(_ptr.lowerBound(LevelDom.unwrap(bound), op
en)); | |
38 } | |
39 } | |
40 | |
41 IDBKeyRange only(IDBKey value) { | |
42 return LevelDom.wrapIDBKeyRange(_ptr.only(LevelDom.unwrap(value))); | |
43 } | |
44 | |
45 IDBKeyRange upperBound(IDBKey bound, [bool open]) { | |
46 if (open === null) { | |
47 return LevelDom.wrapIDBKeyRange(_ptr.upperBound(LevelDom.unwrap(bound))); | |
48 } else { | |
49 return LevelDom.wrapIDBKeyRange(_ptr.upperBound(LevelDom.unwrap(bound), op
en)); | |
50 } | |
51 } | |
52 } | |
OLD | NEW |