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

Unified Diff: sdk/lib/html/templates/html/dart2js/impl_IDBDatabase.darttemplate

Issue 11419300: Dartifying dart:html type names. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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/html/templates/html/dart2js/impl_IDBDatabase.darttemplate
diff --git a/sdk/lib/html/templates/html/dart2js/impl_IDBDatabase.darttemplate b/sdk/lib/html/templates/html/dart2js/impl_IDBDatabase.darttemplate
index f34af4ba602f2ddafce4839cf1f9d72bdd36c0a8..d2eee5ad6005e17387c50ba6961ab23f61c41533 100644
--- a/sdk/lib/html/templates/html/dart2js/impl_IDBDatabase.darttemplate
+++ b/sdk/lib/html/templates/html/dart2js/impl_IDBDatabase.darttemplate
@@ -2,12 +2,12 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-part of html;
+part of indexed_db;
/// @domName $DOMNAME
class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
- IDBTransaction transaction(storeName_OR_storeNames, String mode) {
+ Transaction transaction(storeName_OR_storeNames, String mode) {
if (mode != 'readonly' && mode != 'readwrite') {
throw new ArgumentError(mode);
}
@@ -32,19 +32,19 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
return txn;
}
- static IDBTransaction _transaction_string_mode($CLASSNAME db, stores, mode) {
+ static Transaction _transaction_string_mode($CLASSNAME db, stores, mode) {
return db._transaction(stores, mode);
}
- static IDBTransaction _transaction_numeric_mode($CLASSNAME db, stores, mode) {
+ static Transaction _transaction_numeric_mode($CLASSNAME db, stores, mode) {
int intMode;
- if (mode == 'readonly') intMode = IDBTransaction.READ_ONLY;
- if (mode == 'readwrite') intMode = IDBTransaction.READ_WRITE;
+ if (mode == 'readonly') intMode = Transaction.READ_ONLY;
+ if (mode == 'readwrite') intMode = Transaction.READ_WRITE;
return db._transaction(stores, intMode);
}
@JSName('transaction')
- IDBTransaction _transaction(stores, mode) native;
+ Transaction _transaction(stores, mode) native;
static bool _hasNumericMode(txn) =>
JS('bool', 'typeof(#.mode) === "number"', txn);

Powered by Google App Engine
This is Rietveld 408576698