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

Unified Diff: tools/dom/templates/html/impl/impl_IDBDatabase.darttemplate

Issue 2978213002: Removed DARTIUM codegen for IDLS (sdk/lib/dartium) (Closed)
Patch Set: Update generated darttemplate Created 3 years, 5 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: tools/dom/templates/html/impl/impl_IDBDatabase.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_IDBDatabase.darttemplate b/tools/dom/templates/html/impl/impl_IDBDatabase.darttemplate
index 3d396ef698399b472137bde13247fb6db1ebcd43..0485ff31c911cf5063807cf59782ad4ddba4229b 100644
--- a/tools/dom/templates/html/impl/impl_IDBDatabase.darttemplate
+++ b/tools/dom/templates/html/impl/impl_IDBDatabase.darttemplate
@@ -21,7 +21,6 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
return _createObjectStore(name, options);
}
-$if DART2JS
Transaction transaction(storeName_OR_storeNames, String mode) {
if (mode != 'readonly' && mode != 'readwrite') {
throw new ArgumentError(mode);
@@ -63,28 +62,5 @@ $if DART2JS
@JSName('transaction')
Transaction _transaction(stores, mode) native;
-$else
- Transaction transaction(storeName_OR_storeNames, String mode) {
- if (mode != 'readonly' && mode != 'readwrite') {
- throw new ArgumentError("Invalid transaction mode $mode");
- }
- var names;
- if (storeName_OR_storeNames == null) {
- throw new ArgumentError("stores may not be null in transaction");
- } else if (storeName_OR_storeNames is String || storeName_OR_storeNames is DomStringList) {
- names = storeName_OR_storeNames;
- } else if (storeName_OR_storeNames is List<String>) {
- names = convertDartToNative_List(storeName_OR_storeNames);
- } else {
- throw new ArgumentError("Invalid store(s) $store_Name_OR_storeNames");
- }
-
- return _blink.BlinkIDBDatabase.instance.transaction_Callback_2_(this, names, mode);
- }
-
- Transaction transactionList(List<String> storeNames, String mode) => transaction(storeNames, mode);
- Transaction transactionStores(List<String> storeNames, String mode) => transaction(storeNames, mode);
- Transaction transactionStore(String storeName, String mode) => transaction(storeName, mode);
-$endif
$!MEMBERS}
« no previous file with comments | « tools/dom/templates/html/impl/impl_IDBCursor.darttemplate ('k') | tools/dom/templates/html/impl/impl_IDBFactory.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698