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

Unified Diff: sdk/lib/indexed_db/dartium/indexed_db_dartium.dart

Issue 16494002: Expand overloaded methods and optional parameters in the html library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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: sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
diff --git a/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart b/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
index d33a30ece459ecd7d6962f7f8e6b810e06804df0..ec478ed3fa7775945692fc57ce50a8faedd3eb7e 100644
--- a/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
+++ b/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
@@ -192,24 +192,17 @@ class Database extends EventTarget {
@DocsEditable
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "IDBDatabase_removeEventListener_Callback";
- Transaction transaction(storeName_OR_storeNames, String mode) {
- if ((mode is String || mode == null) && (storeName_OR_storeNames is List<String> || storeName_OR_storeNames == null)) {
- return _transaction_1(storeName_OR_storeNames, mode);
- }
- if ((mode is String || mode == null) && (storeName_OR_storeNames is List<String> || storeName_OR_storeNames == null)) {
- return _transaction_2(storeName_OR_storeNames, mode);
- }
- if ((mode is String || mode == null) && (storeName_OR_storeNames is String || storeName_OR_storeNames == null)) {
- return _transaction_3(storeName_OR_storeNames, mode);
- }
- throw new ArgumentError("Incorrect number or type of arguments");
- }
-
- Transaction _transaction_1(storeName_OR_storeNames, mode) native "IDBDatabase__transaction_1_Callback";
+ @DomName('IDBDatabase.transaction')
+ @DocsEditable
+ Transaction transaction(String storeName, String mode) native "IDBDatabase_transaction_Callback";
- Transaction _transaction_2(storeName_OR_storeNames, mode) native "IDBDatabase__transaction_2_Callback";
+ @DomName('IDBDatabase.transactionList')
+ @DocsEditable
+ Transaction transactionList(List<String> storeNames, String mode) native "IDBDatabase_transactionList_Callback";
- Transaction _transaction_3(storeName_OR_storeNames, mode) native "IDBDatabase__transaction_3_Callback";
+ @DomName('IDBDatabase.transactionStringList')
+ @DocsEditable
+ Transaction transactionStringList(List<String> storeNames, String mode) native "IDBDatabase_transactionStringList_Callback";
@DomName('IDBDatabase.onabort')
@DocsEditable

Powered by Google App Engine
This is Rietveld 408576698