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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: client/html/generated/html/dartium/IDBIndex.dart
diff --git a/client/html/generated/html/dartium/IDBIndex.dart b/client/html/generated/html/dartium/IDBIndex.dart
index 5ee2081af33d06658a9c616bd2e625ba473f0b41..2820223ac3b976d3d0fc6a80043ad8b83e8ce029 100644
--- a/client/html/generated/html/dartium/IDBIndex.dart
+++ b/client/html/generated/html/dartium/IDBIndex.dart
@@ -12,12 +12,19 @@ class _IDBIndexImpl extends _DOMTypeBase implements IDBIndex {
bool get unique() => _wrap(_ptr.unique);
- IDBRequest count([IDBKeyRange range = null]) {
- if (range === null) {
+ IDBRequest count([var key_OR_range = null]) {
+ if (key_OR_range === null) {
return _wrap(_ptr.count());
} else {
- return _wrap(_ptr.count(_unwrap(range)));
+ if (key_OR_range is IDBKeyRange) {
+ return _wrap(_ptr.count(_unwrap(key_OR_range)));
+ } else {
+ if (key_OR_range is IDBKey) {
+ return _wrap(_ptr.count(_unwrap(key_OR_range)));
+ }
+ }
}
+ throw "Incorrect number or type of arguments";
}
IDBRequest getObject(IDBKey key) {
« 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