Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1430)

Side by Side Diff: client/html/generated/html/dartium/IDBKeyRange.dart

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1
2 class _IDBKeyRangeImpl extends _DOMTypeBase implements IDBKeyRange {
3 _IDBKeyRangeImpl._wrap(ptr) : super._wrap(ptr);
4
5 IDBKey get lower() => _wrap(_ptr.lower);
6
7 bool get lowerOpen() => _wrap(_ptr.lowerOpen);
8
9 IDBKey get upper() => _wrap(_ptr.upper);
10
11 bool get upperOpen() => _wrap(_ptr.upperOpen);
12
13 IDBKeyRange bound(IDBKey lower, IDBKey upper, [bool lowerOpen = null, bool upp erOpen = null]) {
14 if (lowerOpen === null) {
15 if (upperOpen === null) {
16 return _wrap(_ptr.bound(_unwrap(lower), _unwrap(upper)));
17 }
18 } else {
19 if (upperOpen === null) {
20 return _wrap(_ptr.bound(_unwrap(lower), _unwrap(upper), _unwrap(lowerOpe n)));
21 } else {
22 return _wrap(_ptr.bound(_unwrap(lower), _unwrap(upper), _unwrap(lowerOpe n), _unwrap(upperOpen)));
23 }
24 }
25 throw "Incorrect number or type of arguments";
26 }
27
28 IDBKeyRange lowerBound(IDBKey bound, [bool open = null]) {
29 if (open === null) {
30 return _wrap(_ptr.lowerBound(_unwrap(bound)));
31 } else {
32 return _wrap(_ptr.lowerBound(_unwrap(bound), _unwrap(open)));
33 }
34 }
35
36 IDBKeyRange only(IDBKey value) {
37 return _wrap(_ptr.only(_unwrap(value)));
38 }
39
40 IDBKeyRange upperBound(IDBKey bound, [bool open = null]) {
41 if (open === null) {
42 return _wrap(_ptr.upperBound(_unwrap(bound)));
43 } else {
44 return _wrap(_ptr.upperBound(_unwrap(bound), _unwrap(open)));
45 }
46 }
47 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698