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

Unified Diff: client/dom/generated/src/wrapping/_IDBObjectStoreWrappingImplementation.dart

Issue 9619015: Regenerate dart:dom and dart:html bindings (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/dom/generated/src/wrapping/_IDBObjectStoreWrappingImplementation.dart
diff --git a/client/dom/generated/src/wrapping/_IDBObjectStoreWrappingImplementation.dart b/client/dom/generated/src/wrapping/_IDBObjectStoreWrappingImplementation.dart
index 119f804634612c376a350dc59ec035d389dd5dbb..c7727d4230ad2332be4fd95506e902cf7115e6eb 100644
--- a/client/dom/generated/src/wrapping/_IDBObjectStoreWrappingImplementation.dart
+++ b/client/dom/generated/src/wrapping/_IDBObjectStoreWrappingImplementation.dart
@@ -38,15 +38,23 @@ class _IDBObjectStoreWrappingImplementation extends DOMWrapperBase implements ID
}
static IDBRequest _clear(receiver) native;
- IDBRequest count([IDBKeyRange range = null]) {
- if (range === null) {
+ IDBRequest count([var key_OR_range = null]) {
+ if (key_OR_range === null) {
return _count(this);
} else {
- return _count_2(this, range);
+ if (key_OR_range is IDBKeyRange) {
+ return _count_2(this, key_OR_range);
+ } else {
+ if (key_OR_range is IDBKey) {
+ return _count_3(this, key_OR_range);
+ }
+ }
}
+ throw "Incorrect number or type of arguments";
}
static IDBRequest _count(receiver) native;
- static IDBRequest _count_2(receiver, range) native;
+ static IDBRequest _count_2(receiver, key_OR_range) native;
+ static IDBRequest _count_3(receiver, key_OR_range) native;
IDBIndex createIndex(String name, String keyPath) {
return _createIndex(this, name, keyPath);

Powered by Google App Engine
This is Rietveld 408576698