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

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

Issue 9623013: Regenerate the wrapperless DOM again. (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
1 1
2 class _IDBIndexImpl extends _DOMTypeBase implements IDBIndex { 2 class _IDBIndexImpl extends _DOMTypeBase implements IDBIndex {
3 _IDBIndexImpl._wrap(ptr) : super._wrap(ptr); 3 _IDBIndexImpl._wrap(ptr) : super._wrap(ptr);
4 4
5 String get keyPath() => _wrap(_ptr.keyPath); 5 String get keyPath() => _wrap(_ptr.keyPath);
6 6
7 bool get multiEntry() => _wrap(_ptr.multiEntry); 7 bool get multiEntry() => _wrap(_ptr.multiEntry);
8 8
9 String get name() => _wrap(_ptr.name); 9 String get name() => _wrap(_ptr.name);
10 10
11 IDBObjectStore get objectStore() => _wrap(_ptr.objectStore); 11 IDBObjectStore get objectStore() => _wrap(_ptr.objectStore);
12 12
13 bool get unique() => _wrap(_ptr.unique); 13 bool get unique() => _wrap(_ptr.unique);
14 14
15 IDBRequest count([IDBKeyRange range = null]) { 15 IDBRequest count([var key_OR_range = null]) {
16 if (range === null) { 16 if (key_OR_range === null) {
17 return _wrap(_ptr.count()); 17 return _wrap(_ptr.count());
18 } else { 18 } else {
19 return _wrap(_ptr.count(_unwrap(range))); 19 if (key_OR_range is IDBKeyRange) {
20 return _wrap(_ptr.count(_unwrap(key_OR_range)));
21 } else {
22 if (key_OR_range is IDBKey) {
23 return _wrap(_ptr.count(_unwrap(key_OR_range)));
24 }
25 }
20 } 26 }
27 throw "Incorrect number or type of arguments";
21 } 28 }
22 29
23 IDBRequest getObject(IDBKey key) { 30 IDBRequest getObject(IDBKey key) {
24 return _wrap(_ptr.getObject(_unwrap(key))); 31 return _wrap(_ptr.getObject(_unwrap(key)));
25 } 32 }
26 33
27 IDBRequest getKey(IDBKey key) { 34 IDBRequest getKey(IDBKey key) {
28 return _wrap(_ptr.getKey(_unwrap(key))); 35 return _wrap(_ptr.getKey(_unwrap(key)));
29 } 36 }
30 37
(...skipping 20 matching lines...) Expand all
51 } else { 58 } else {
52 if (direction === null) { 59 if (direction === null) {
53 return _wrap(_ptr.openKeyCursor(_unwrap(range))); 60 return _wrap(_ptr.openKeyCursor(_unwrap(range)));
54 } else { 61 } else {
55 return _wrap(_ptr.openKeyCursor(_unwrap(range), _unwrap(direction))); 62 return _wrap(_ptr.openKeyCursor(_unwrap(range), _unwrap(direction)));
56 } 63 }
57 } 64 }
58 throw "Incorrect number or type of arguments"; 65 throw "Incorrect number or type of arguments";
59 } 66 }
60 } 67 }
OLDNEW
« no previous file with comments | « client/html/generated/html/dartium/DynamicsCompressorNode.dart ('k') | client/html/generated/html/dartium/IDBObjectStore.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698