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 IDBKe
yRange { | |
8 _IDBKeyRangeWrappingImplementation() : super() {} | |
9 | |
10 static create__IDBKeyRangeWrappingImplementation() native { | |
11 return new _IDBKeyRangeWrappingImplementation(); | |
12 } | |
13 | |
14 IDBKey get lower() { return _get_lower(this); } | |
15 static IDBKey _get_lower(var _this) native; | |
16 | |
17 bool get lowerOpen() { return _get_lowerOpen(this); } | |
18 static bool _get_lowerOpen(var _this) native; | |
19 | |
20 IDBKey get upper() { return _get_upper(this); } | |
21 static IDBKey _get_upper(var _this) native; | |
22 | |
23 bool get upperOpen() { return _get_upperOpen(this); } | |
24 static bool _get_upperOpen(var _this) native; | |
25 | |
26 IDBKeyRange bound(IDBKey lower, IDBKey upper, [bool lowerOpen = null, bool upp
erOpen = null]) { | |
27 if (lowerOpen === null) { | |
28 if (upperOpen === null) { | |
29 return _bound(this, lower, upper); | |
30 } | |
31 } else { | |
32 if (upperOpen === null) { | |
33 return _bound_2(this, lower, upper, lowerOpen); | |
34 } else { | |
35 return _bound_3(this, lower, upper, lowerOpen, upperOpen); | |
36 } | |
37 } | |
38 throw "Incorrect number or type of arguments"; | |
39 } | |
40 static IDBKeyRange _bound(receiver, lower, upper) native; | |
41 static IDBKeyRange _bound_2(receiver, lower, upper, lowerOpen) native; | |
42 static IDBKeyRange _bound_3(receiver, lower, upper, lowerOpen, upperOpen) nati
ve; | |
43 | |
44 IDBKeyRange lowerBound(IDBKey bound, [bool open = null]) { | |
45 if (open === null) { | |
46 return _lowerBound(this, bound); | |
47 } else { | |
48 return _lowerBound_2(this, bound, open); | |
49 } | |
50 } | |
51 static IDBKeyRange _lowerBound(receiver, bound) native; | |
52 static IDBKeyRange _lowerBound_2(receiver, bound, open) native; | |
53 | |
54 IDBKeyRange only(IDBKey value) { | |
55 return _only(this, value); | |
56 } | |
57 static IDBKeyRange _only(receiver, value) native; | |
58 | |
59 IDBKeyRange upperBound(IDBKey bound, [bool open = null]) { | |
60 if (open === null) { | |
61 return _upperBound(this, bound); | |
62 } else { | |
63 return _upperBound_2(this, bound, open); | |
64 } | |
65 } | |
66 static IDBKeyRange _upperBound(receiver, bound) native; | |
67 static IDBKeyRange _upperBound_2(receiver, bound, open) native; | |
68 | |
69 String get typeName() { return "IDBKeyRange"; } | |
70 } | |
OLD | NEW |