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

Side by Side Diff: sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart

Issue 1473443003: Switch IDB Database.transaction to use a template to do the right type conversions (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
1 /** 1 /**
2 * A client-side key-value store with support for indexes. 2 * A client-side key-value store with support for indexes.
3 * 3 *
4 * Many browsers support IndexedDB—a web standard for 4 * Many browsers support IndexedDB—a web standard for
5 * an indexed database. 5 * an indexed database.
6 * By storing data on the client in an IndexedDB, 6 * By storing data on the client in an IndexedDB,
7 * a web app gets some advantages, such as faster performance and persistence. 7 * a web app gets some advantages, such as faster performance and persistence.
8 * To find out which browsers support IndexedDB, 8 * To find out which browsers support IndexedDB,
9 * refer to [Can I Use?](http://caniuse.com/#feat=indexeddb) 9 * refer to [Can I Use?](http://caniuse.com/#feat=indexeddb)
10 * 10 *
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 return _transaction(storeName, mode); 373 return _transaction(storeName, mode);
374 } 374 }
375 375
376 Transaction transactionList(List<String> storeNames, String mode) { 376 Transaction transactionList(List<String> storeNames, String mode) {
377 if (mode != 'readonly' && mode != 'readwrite') { 377 if (mode != 'readonly' && mode != 'readwrite') {
378 throw new ArgumentError(mode); 378 throw new ArgumentError(mode);
379 } 379 }
380 List storeNames_1 = convertDartToNative_StringArray(storeNames); 380 List storeNames_1 = convertDartToNative_StringArray(storeNames);
381 return _transaction(storeNames_1, mode); 381 return _transaction(storeNames_1, mode);
382 } 382 }
383 383
384 Transaction transactionStores(DomStringList storeNames, String mode) { 384 Transaction transactionStores(DomStringList storeNames, String mode) {
385 if (mode != 'readonly' && mode != 'readwrite') { 385 if (mode != 'readonly' && mode != 'readwrite') {
386 throw new ArgumentError(mode); 386 throw new ArgumentError(mode);
387 } 387 }
388 return _transaction(storeNames, mode); 388 return _transaction(storeNames, mode);
389 } 389 }
390 390
391 @JSName('transaction') 391 @JSName('transaction')
392 Transaction _transaction(stores, mode) native; 392 Transaction _transaction(stores, mode) native;
393 393
(...skipping 1052 matching lines...) Expand 10 before | Expand all | Expand 10 after
1446 @Creates('int|String|Null') 1446 @Creates('int|String|Null')
1447 @Returns('int|String|Null') 1447 @Returns('int|String|Null')
1448 final int newVersion; 1448 final int newVersion;
1449 1449
1450 @DomName('IDBVersionChangeEvent.oldVersion') 1450 @DomName('IDBVersionChangeEvent.oldVersion')
1451 @DocsEditable() 1451 @DocsEditable()
1452 @Creates('int|String|Null') 1452 @Creates('int|String|Null')
1453 @Returns('int|String|Null') 1453 @Returns('int|String|Null')
1454 final int oldVersion; 1454 final int oldVersion;
1455 } 1455 }
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/indexed_db/dartium/indexed_db_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698