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

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

Issue 9466036: Fix parsing of DOMString[] in IDL (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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 c802fafb2ba3be5dfe5a5922e01e363039cf924e..bc73ddab55eb690cf8541255253dfb7a02e9ec8d 100644
--- a/client/dom/generated/src/wrapping/_IDBObjectStoreWrappingImplementation.dart
+++ b/client/dom/generated/src/wrapping/_IDBObjectStoreWrappingImplementation.dart
@@ -50,10 +50,18 @@ class _IDBObjectStoreWrappingImplementation extends DOMWrapperBase implements ID
}
static IDBIndex _createIndex(receiver, name, keyPath) native;
- IDBRequest delete(IDBKey key) {
- return _delete(this, key);
+ IDBRequest delete(var key_OR_keyRange) {
+ if (key_OR_keyRange is IDBKeyRange) {
+ return _delete(this, key_OR_keyRange);
+ } else {
+ if (key_OR_keyRange is IDBKey) {
+ return _delete_2(this, key_OR_keyRange);
+ }
+ }
+ throw "Incorrect number or type of arguments";
}
- static IDBRequest _delete(receiver, key) native;
+ static IDBRequest _delete(receiver, key_OR_keyRange) native;
+ static IDBRequest _delete_2(receiver, key_OR_keyRange) native;
void deleteIndex(String name) {
_deleteIndex(this, name);

Powered by Google App Engine
This is Rietveld 408576698