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

Side by Side Diff: sdk/lib/indexed_db/dartium/indexed_db_dartium.dart

Issue 1761973002: Updated status file changes for Dartium sdk/lib generated from 45 IDLs (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Updated Dartium sdk/lib regen'd from 45 IDLs Created 4 years, 9 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 unified diff | Download patch
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/svg/dartium/svg_dartium.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 bool get unique => _blink.BlinkIDBIndex.instance.unique_Getter_(unwrap_jso(thi s)); 697 bool get unique => _blink.BlinkIDBIndex.instance.unique_Getter_(unwrap_jso(thi s));
698 698
699 @DomName('IDBIndex.count') 699 @DomName('IDBIndex.count')
700 @DocsEditable() 700 @DocsEditable()
701 Request _count(Object key) => wrap_jso(_blink.BlinkIDBIndex.instance.count_Cal lback_1_(unwrap_jso(this), key)); 701 Request _count(Object key) => wrap_jso(_blink.BlinkIDBIndex.instance.count_Cal lback_1_(unwrap_jso(this), key));
702 702
703 @DomName('IDBIndex.get') 703 @DomName('IDBIndex.get')
704 @DocsEditable() 704 @DocsEditable()
705 Request _get(Object key) => wrap_jso(_blink.BlinkIDBIndex.instance.get_Callbac k_1_(unwrap_jso(this), key)); 705 Request _get(Object key) => wrap_jso(_blink.BlinkIDBIndex.instance.get_Callbac k_1_(unwrap_jso(this), key));
706 706
707 Request getAll(Object range, [int maxCount]) {
708 if (maxCount != null) {
709 return wrap_jso(_blink.BlinkIDBIndex.instance.getAll_Callback_2_(unwrap_js o(this), range, maxCount));
710 }
711 return wrap_jso(_blink.BlinkIDBIndex.instance.getAll_Callback_1_(unwrap_jso( this), range));
712 }
713
714 Request getAllKeys(Object range, [int maxCount]) {
715 if (maxCount != null) {
716 return wrap_jso(_blink.BlinkIDBIndex.instance.getAllKeys_Callback_2_(unwra p_jso(this), range, maxCount));
717 }
718 return wrap_jso(_blink.BlinkIDBIndex.instance.getAllKeys_Callback_1_(unwrap_ jso(this), range));
719 }
720
707 @DomName('IDBIndex.getKey') 721 @DomName('IDBIndex.getKey')
708 @DocsEditable() 722 @DocsEditable()
709 Request _getKey(Object key) => wrap_jso(_blink.BlinkIDBIndex.instance.getKey_C allback_1_(unwrap_jso(this), key)); 723 Request _getKey(Object key) => wrap_jso(_blink.BlinkIDBIndex.instance.getKey_C allback_1_(unwrap_jso(this), key));
710 724
711 Request _openCursor(Object range, [String direction]) { 725 Request _openCursor(Object range, [String direction]) {
712 if (direction != null) { 726 if (direction != null) {
713 return wrap_jso(_blink.BlinkIDBIndex.instance.openCursor_Callback_2_(unwra p_jso(this), range, direction)); 727 return wrap_jso(_blink.BlinkIDBIndex.instance.openCursor_Callback_2_(unwra p_jso(this), range, direction));
714 } 728 }
715 return wrap_jso(_blink.BlinkIDBIndex.instance.openCursor_Callback_1_(unwrap_ jso(this), range)); 729 return wrap_jso(_blink.BlinkIDBIndex.instance.openCursor_Callback_1_(unwrap_ jso(this), range));
716 } 730 }
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
994 } 1008 }
995 1009
996 @DomName('IDBObjectStore.clear') 1010 @DomName('IDBObjectStore.clear')
997 @DocsEditable() 1011 @DocsEditable()
998 Request _clear() => wrap_jso(_blink.BlinkIDBObjectStore.instance.clear_Callbac k_0_(unwrap_jso(this))); 1012 Request _clear() => wrap_jso(_blink.BlinkIDBObjectStore.instance.clear_Callbac k_0_(unwrap_jso(this)));
999 1013
1000 @DomName('IDBObjectStore.count') 1014 @DomName('IDBObjectStore.count')
1001 @DocsEditable() 1015 @DocsEditable()
1002 Request _count(Object key) => wrap_jso(_blink.BlinkIDBObjectStore.instance.cou nt_Callback_1_(unwrap_jso(this), key)); 1016 Request _count(Object key) => wrap_jso(_blink.BlinkIDBObjectStore.instance.cou nt_Callback_1_(unwrap_jso(this), key));
1003 1017
1004 Index _createIndex(String name, keyPath, [Map options]) { 1018 Index _createIndex(String name, Object keyPath, [Map options]) {
1005 if ((keyPath is String || keyPath == null) && (name is String || name == nul l) && options == null) { 1019 if (options != null) {
1006 return wrap_jso(_blink.BlinkIDBObjectStore.instance.createIndex_Callback_2 _(unwrap_jso(this), name, unwrap_jso(keyPath))); 1020 return wrap_jso(_blink.BlinkIDBObjectStore.instance.createIndex_Callback_3 _(unwrap_jso(this), name, keyPath, convertDartToNative_Dictionary(options)));
1007 } 1021 }
1008 if ((options is Map || options == null) && (keyPath is String || keyPath == null) && (name is String || name == null)) { 1022 return wrap_jso(_blink.BlinkIDBObjectStore.instance.createIndex_Callback_2_( unwrap_jso(this), name, keyPath));
1009 return wrap_jso(_blink.BlinkIDBObjectStore.instance.createIndex_Callback_3 _(unwrap_jso(this), name, unwrap_jso(keyPath), convertDartToNative_Dictionary(op tions)));
1010 }
1011 if ((keyPath is List<String> || keyPath == null) && (name is String || name == null) && options == null) {
1012 return wrap_jso(_blink.BlinkIDBObjectStore.instance.createIndex_Callback_2 _(unwrap_jso(this), name, unwrap_jso(keyPath)));
1013 }
1014 if ((options is Map || options == null) && (keyPath is List<String> || keyPa th == null) && (name is String || name == null)) {
1015 return wrap_jso(_blink.BlinkIDBObjectStore.instance.createIndex_Callback_3 _(unwrap_jso(this), name, unwrap_jso(keyPath), convertDartToNative_Dictionary(op tions)));
1016 }
1017 throw new ArgumentError("Incorrect number or type of arguments");
1018 } 1023 }
1019 1024
1020 @DomName('IDBObjectStore.delete') 1025 @DomName('IDBObjectStore.delete')
1021 @DocsEditable() 1026 @DocsEditable()
1022 Request _delete(Object key) => wrap_jso(_blink.BlinkIDBObjectStore.instance.de lete_Callback_1_(unwrap_jso(this), key)); 1027 Request _delete(Object key) => wrap_jso(_blink.BlinkIDBObjectStore.instance.de lete_Callback_1_(unwrap_jso(this), key));
1023 1028
1024 @DomName('IDBObjectStore.deleteIndex') 1029 @DomName('IDBObjectStore.deleteIndex')
1025 @DocsEditable() 1030 @DocsEditable()
1026 void deleteIndex(String name) => _blink.BlinkIDBObjectStore.instance.deleteInd ex_Callback_1_(unwrap_jso(this), name); 1031 void deleteIndex(String name) => _blink.BlinkIDBObjectStore.instance.deleteInd ex_Callback_1_(unwrap_jso(this), name);
1027 1032
1028 @DomName('IDBObjectStore.get') 1033 @DomName('IDBObjectStore.get')
1029 @DocsEditable() 1034 @DocsEditable()
1030 Request _get(Object key) => wrap_jso(_blink.BlinkIDBObjectStore.instance.get_C allback_1_(unwrap_jso(this), key)); 1035 Request _get(Object key) => wrap_jso(_blink.BlinkIDBObjectStore.instance.get_C allback_1_(unwrap_jso(this), key));
1031 1036
1037 Request getAll(Object range, [int maxCount]) {
1038 if (maxCount != null) {
1039 return wrap_jso(_blink.BlinkIDBObjectStore.instance.getAll_Callback_2_(unw rap_jso(this), range, maxCount));
1040 }
1041 return wrap_jso(_blink.BlinkIDBObjectStore.instance.getAll_Callback_1_(unwra p_jso(this), range));
1042 }
1043
1044 Request getAllKeys(Object range, [int maxCount]) {
1045 if (maxCount != null) {
1046 return wrap_jso(_blink.BlinkIDBObjectStore.instance.getAllKeys_Callback_2_ (unwrap_jso(this), range, maxCount));
1047 }
1048 return wrap_jso(_blink.BlinkIDBObjectStore.instance.getAllKeys_Callback_1_(u nwrap_jso(this), range));
1049 }
1050
1032 @DomName('IDBObjectStore.index') 1051 @DomName('IDBObjectStore.index')
1033 @DocsEditable() 1052 @DocsEditable()
1034 Index index(String name) => wrap_jso(_blink.BlinkIDBObjectStore.instance.index _Callback_1_(unwrap_jso(this), name)); 1053 Index index(String name) => wrap_jso(_blink.BlinkIDBObjectStore.instance.index _Callback_1_(unwrap_jso(this), name));
1035 1054
1036 Request _openCursor(Object range, [String direction]) { 1055 Request _openCursor(Object range, [String direction]) {
1037 if (direction != null) { 1056 if (direction != null) {
1038 return wrap_jso(_blink.BlinkIDBObjectStore.instance.openCursor_Callback_2_ (unwrap_jso(this), range, direction)); 1057 return wrap_jso(_blink.BlinkIDBObjectStore.instance.openCursor_Callback_2_ (unwrap_jso(this), range, direction));
1039 } 1058 }
1040 return wrap_jso(_blink.BlinkIDBObjectStore.instance.openCursor_Callback_1_(u nwrap_jso(this), range)); 1059 return wrap_jso(_blink.BlinkIDBObjectStore.instance.openCursor_Callback_1_(u nwrap_jso(this), range));
1041 } 1060 }
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
1303 Database get db => wrap_jso(_blink.BlinkIDBTransaction.instance.db_Getter_(unw rap_jso(this))); 1322 Database get db => wrap_jso(_blink.BlinkIDBTransaction.instance.db_Getter_(unw rap_jso(this)));
1304 1323
1305 @DomName('IDBTransaction.error') 1324 @DomName('IDBTransaction.error')
1306 @DocsEditable() 1325 @DocsEditable()
1307 DomError get error => wrap_jso(_blink.BlinkIDBTransaction.instance.error_Gette r_(unwrap_jso(this))); 1326 DomError get error => wrap_jso(_blink.BlinkIDBTransaction.instance.error_Gette r_(unwrap_jso(this)));
1308 1327
1309 @DomName('IDBTransaction.mode') 1328 @DomName('IDBTransaction.mode')
1310 @DocsEditable() 1329 @DocsEditable()
1311 String get mode => _blink.BlinkIDBTransaction.instance.mode_Getter_(unwrap_jso (this)); 1330 String get mode => _blink.BlinkIDBTransaction.instance.mode_Getter_(unwrap_jso (this));
1312 1331
1332 @DomName('IDBTransaction.objectStoreNames')
1333 @DocsEditable()
1334 @Experimental() // untriaged
1335 List<String> get objectStoreNames => wrap_jso(_blink.BlinkIDBTransaction.insta nce.objectStoreNames_Getter_(unwrap_jso(this)));
1336
1313 @DomName('IDBTransaction.abort') 1337 @DomName('IDBTransaction.abort')
1314 @DocsEditable() 1338 @DocsEditable()
1315 void abort() => _blink.BlinkIDBTransaction.instance.abort_Callback_0_(unwrap_j so(this)); 1339 void abort() => _blink.BlinkIDBTransaction.instance.abort_Callback_0_(unwrap_j so(this));
1316 1340
1317 @DomName('IDBTransaction.objectStore') 1341 @DomName('IDBTransaction.objectStore')
1318 @DocsEditable() 1342 @DocsEditable()
1319 ObjectStore objectStore(String name) => wrap_jso(_blink.BlinkIDBTransaction.in stance.objectStore_Callback_1_(unwrap_jso(this), name)); 1343 ObjectStore objectStore(String name) => wrap_jso(_blink.BlinkIDBTransaction.in stance.objectStore_Callback_1_(unwrap_jso(this), name));
1320 1344
1321 /// Stream of `abort` events handled by this [Transaction]. 1345 /// Stream of `abort` events handled by this [Transaction].
1322 @DomName('IDBTransaction.onabort') 1346 @DomName('IDBTransaction.onabort')
(...skipping 18 matching lines...) Expand all
1341 // WARNING: Do not edit - generated code. 1365 // WARNING: Do not edit - generated code.
1342 1366
1343 1367
1344 @DocsEditable() 1368 @DocsEditable()
1345 @DomName('IDBVersionChangeEvent') 1369 @DomName('IDBVersionChangeEvent')
1346 @Unstable() 1370 @Unstable()
1347 class VersionChangeEvent extends Event { 1371 class VersionChangeEvent extends Event {
1348 // To suppress missing implicit constructor warnings. 1372 // To suppress missing implicit constructor warnings.
1349 factory VersionChangeEvent._() { throw new UnsupportedError("Not supported"); } 1373 factory VersionChangeEvent._() { throw new UnsupportedError("Not supported"); }
1350 1374
1375 @DomName('IDBVersionChangeEvent.IDBVersionChangeEvent')
1376 @DocsEditable()
1377 factory VersionChangeEvent(String type, [Map eventInitDict]) {
1378 if (eventInitDict != null) {
1379 var eventInitDict_1 = convertDartToNative_Dictionary(eventInitDict);
1380 return wrap_jso(_blink.BlinkIDBVersionChangeEvent.instance.constructorCall back_2_(type, eventInitDict_1));
1381 }
1382 return wrap_jso(_blink.BlinkIDBVersionChangeEvent.instance.constructorCallba ck_1_(type));
1383 }
1384
1351 1385
1352 @Deprecated("Internal Use Only") 1386 @Deprecated("Internal Use Only")
1353 static VersionChangeEvent internalCreateVersionChangeEvent() { 1387 static VersionChangeEvent internalCreateVersionChangeEvent() {
1354 return new VersionChangeEvent._internalWrap(); 1388 return new VersionChangeEvent._internalWrap();
1355 } 1389 }
1356 1390
1357 external factory VersionChangeEvent._internalWrap(); 1391 external factory VersionChangeEvent._internalWrap();
1358 1392
1359 @Deprecated("Internal Use Only") 1393 @Deprecated("Internal Use Only")
1360 VersionChangeEvent.internal_() : super.internal_(); 1394 VersionChangeEvent.internal_() : super.internal_();
(...skipping 11 matching lines...) Expand all
1372 1406
1373 @DomName('IDBVersionChangeEvent.newVersion') 1407 @DomName('IDBVersionChangeEvent.newVersion')
1374 @DocsEditable() 1408 @DocsEditable()
1375 int get newVersion => _blink.BlinkIDBVersionChangeEvent.instance.newVersion_Ge tter_(unwrap_jso(this)); 1409 int get newVersion => _blink.BlinkIDBVersionChangeEvent.instance.newVersion_Ge tter_(unwrap_jso(this));
1376 1410
1377 @DomName('IDBVersionChangeEvent.oldVersion') 1411 @DomName('IDBVersionChangeEvent.oldVersion')
1378 @DocsEditable() 1412 @DocsEditable()
1379 int get oldVersion => _blink.BlinkIDBVersionChangeEvent.instance.oldVersion_Ge tter_(unwrap_jso(this)); 1413 int get oldVersion => _blink.BlinkIDBVersionChangeEvent.instance.oldVersion_Ge tter_(unwrap_jso(this));
1380 1414
1381 } 1415 }
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/svg/dartium/svg_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698