| OLD | NEW |
| 1 library indexed_db; | 1 library indexed_db; |
| 2 | 2 |
| 3 import 'dart:html'; | 3 import 'dart:html'; |
| 4 import 'dart:html_common'; | 4 import 'dart:html_common'; |
| 5 import 'dart:nativewrappers'; | 5 import 'dart:nativewrappers'; |
| 6 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 7 // for details. All rights reserved. Use of this source code is governed by a | 7 // for details. All rights reserved. Use of this source code is governed by a |
| 8 // BSD-style license that can be found in the LICENSE file. | 8 // BSD-style license that can be found in the LICENSE file. |
| 9 | 9 |
| 10 // DO NOT EDIT | 10 // DO NOT EDIT |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 /** @domName IDBIndex.unique */ | 266 /** @domName IDBIndex.unique */ |
| 267 bool get unique native "IDBIndex_unique_Getter"; | 267 bool get unique native "IDBIndex_unique_Getter"; |
| 268 | 268 |
| 269 Request count([key_OR_range]) { | 269 Request count([key_OR_range]) { |
| 270 if (!?key_OR_range) { | 270 if (!?key_OR_range) { |
| 271 return _count_1(); | 271 return _count_1(); |
| 272 } | 272 } |
| 273 if ((key_OR_range is KeyRange || key_OR_range == null)) { | 273 if ((key_OR_range is KeyRange || key_OR_range == null)) { |
| 274 return _count_2(key_OR_range); | 274 return _count_2(key_OR_range); |
| 275 } | 275 } |
| 276 return _count_3(key_OR_range); | 276 if (?key_OR_range) { |
| 277 return _count_3(key_OR_range); |
| 278 } |
| 277 throw "Incorrect number or type of arguments"; | 279 throw "Incorrect number or type of arguments"; |
| 278 } | 280 } |
| 279 | 281 |
| 280 | 282 |
| 281 /** @domName IDBIndex.count_1 */ | 283 /** @domName IDBIndex.count_1 */ |
| 282 Request _count_1() native "IDBIndex_count_1_Callback"; | 284 Request _count_1() native "IDBIndex_count_1_Callback"; |
| 283 | 285 |
| 284 | 286 |
| 285 /** @domName IDBIndex.count_2 */ | 287 /** @domName IDBIndex.count_2 */ |
| 286 Request _count_2(key_OR_range) native "IDBIndex_count_2_Callback"; | 288 Request _count_2(key_OR_range) native "IDBIndex_count_2_Callback"; |
| 287 | 289 |
| 288 | 290 |
| 289 /** @domName IDBIndex.count_3 */ | 291 /** @domName IDBIndex.count_3 */ |
| 290 Request _count_3(key_OR_range) native "IDBIndex_count_3_Callback"; | 292 Request _count_3(key_OR_range) native "IDBIndex_count_3_Callback"; |
| 291 | 293 |
| 292 Request get(key) { | 294 Request get(key) { |
| 293 if ((key is KeyRange || key == null)) { | 295 if ((key is KeyRange || key == null)) { |
| 294 return _get_1(key); | 296 return _get_1(key); |
| 295 } | 297 } |
| 296 return _get_2(key); | 298 if (?key) { |
| 299 return _get_2(key); |
| 300 } |
| 297 throw "Incorrect number or type of arguments"; | 301 throw "Incorrect number or type of arguments"; |
| 298 } | 302 } |
| 299 | 303 |
| 300 | 304 |
| 301 /** @domName IDBIndex.get_1 */ | 305 /** @domName IDBIndex.get_1 */ |
| 302 Request _get_1(key) native "IDBIndex_get_1_Callback"; | 306 Request _get_1(key) native "IDBIndex_get_1_Callback"; |
| 303 | 307 |
| 304 | 308 |
| 305 /** @domName IDBIndex.get_2 */ | 309 /** @domName IDBIndex.get_2 */ |
| 306 Request _get_2(key) native "IDBIndex_get_2_Callback"; | 310 Request _get_2(key) native "IDBIndex_get_2_Callback"; |
| 307 | 311 |
| 308 Request getKey(key) { | 312 Request getKey(key) { |
| 309 if ((key is KeyRange || key == null)) { | 313 if ((key is KeyRange || key == null)) { |
| 310 return _getKey_1(key); | 314 return _getKey_1(key); |
| 311 } | 315 } |
| 312 return _getKey_2(key); | 316 if (?key) { |
| 317 return _getKey_2(key); |
| 318 } |
| 313 throw "Incorrect number or type of arguments"; | 319 throw "Incorrect number or type of arguments"; |
| 314 } | 320 } |
| 315 | 321 |
| 316 | 322 |
| 317 /** @domName IDBIndex.getKey_1 */ | 323 /** @domName IDBIndex.getKey_1 */ |
| 318 Request _getKey_1(key) native "IDBIndex_getKey_1_Callback"; | 324 Request _getKey_1(key) native "IDBIndex_getKey_1_Callback"; |
| 319 | 325 |
| 320 | 326 |
| 321 /** @domName IDBIndex.getKey_2 */ | 327 /** @domName IDBIndex.getKey_2 */ |
| 322 Request _getKey_2(key) native "IDBIndex_getKey_2_Callback"; | 328 Request _getKey_2(key) native "IDBIndex_getKey_2_Callback"; |
| 323 | 329 |
| 324 Request openCursor([key_OR_range, /*DOMString*/ direction]) { | 330 Request openCursor([key_OR_range, /*DOMString*/ direction]) { |
| 325 if (!?key_OR_range && !?direction) { | 331 if (!?key_OR_range && !?direction) { |
| 326 return _openCursor_1(); | 332 return _openCursor_1(); |
| 327 } | 333 } |
| 328 if ((key_OR_range is KeyRange || key_OR_range == null) && !?direction) { | 334 if ((key_OR_range is KeyRange || key_OR_range == null) && !?direction) { |
| 329 return _openCursor_2(key_OR_range); | 335 return _openCursor_2(key_OR_range); |
| 330 } | 336 } |
| 331 if ((key_OR_range is KeyRange || key_OR_range == null) && (direction is Stri
ng || direction == null)) { | 337 if ((key_OR_range is KeyRange || key_OR_range == null) && (direction is Stri
ng || direction == null)) { |
| 332 return _openCursor_3(key_OR_range, direction); | 338 return _openCursor_3(key_OR_range, direction); |
| 333 } | 339 } |
| 334 if (!?direction) { | 340 if (?key_OR_range && !?direction) { |
| 335 return _openCursor_4(key_OR_range); | 341 return _openCursor_4(key_OR_range); |
| 336 } | 342 } |
| 337 if ((direction is String || direction == null)) { | 343 if (?key_OR_range && (direction is String || direction == null)) { |
| 338 return _openCursor_5(key_OR_range, direction); | 344 return _openCursor_5(key_OR_range, direction); |
| 339 } | 345 } |
| 340 throw "Incorrect number or type of arguments"; | 346 throw "Incorrect number or type of arguments"; |
| 341 } | 347 } |
| 342 | 348 |
| 343 | 349 |
| 344 /** @domName IDBIndex.openCursor_1 */ | 350 /** @domName IDBIndex.openCursor_1 */ |
| 345 Request _openCursor_1() native "IDBIndex_openCursor_1_Callback"; | 351 Request _openCursor_1() native "IDBIndex_openCursor_1_Callback"; |
| 346 | 352 |
| 347 | 353 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 363 Request openKeyCursor([key_OR_range, /*DOMString*/ direction]) { | 369 Request openKeyCursor([key_OR_range, /*DOMString*/ direction]) { |
| 364 if (!?key_OR_range && !?direction) { | 370 if (!?key_OR_range && !?direction) { |
| 365 return _openKeyCursor_1(); | 371 return _openKeyCursor_1(); |
| 366 } | 372 } |
| 367 if ((key_OR_range is KeyRange || key_OR_range == null) && !?direction) { | 373 if ((key_OR_range is KeyRange || key_OR_range == null) && !?direction) { |
| 368 return _openKeyCursor_2(key_OR_range); | 374 return _openKeyCursor_2(key_OR_range); |
| 369 } | 375 } |
| 370 if ((key_OR_range is KeyRange || key_OR_range == null) && (direction is Stri
ng || direction == null)) { | 376 if ((key_OR_range is KeyRange || key_OR_range == null) && (direction is Stri
ng || direction == null)) { |
| 371 return _openKeyCursor_3(key_OR_range, direction); | 377 return _openKeyCursor_3(key_OR_range, direction); |
| 372 } | 378 } |
| 373 if (!?direction) { | 379 if (?key_OR_range && !?direction) { |
| 374 return _openKeyCursor_4(key_OR_range); | 380 return _openKeyCursor_4(key_OR_range); |
| 375 } | 381 } |
| 376 if ((direction is String || direction == null)) { | 382 if (?key_OR_range && (direction is String || direction == null)) { |
| 377 return _openKeyCursor_5(key_OR_range, direction); | 383 return _openKeyCursor_5(key_OR_range, direction); |
| 378 } | 384 } |
| 379 throw "Incorrect number or type of arguments"; | 385 throw "Incorrect number or type of arguments"; |
| 380 } | 386 } |
| 381 | 387 |
| 382 | 388 |
| 383 /** @domName IDBIndex.openKeyCursor_1 */ | 389 /** @domName IDBIndex.openKeyCursor_1 */ |
| 384 Request _openKeyCursor_1() native "IDBIndex_openKeyCursor_1_Callback"; | 390 Request _openKeyCursor_1() native "IDBIndex_openKeyCursor_1_Callback"; |
| 385 | 391 |
| 386 | 392 |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 570 /** @domName IDBObjectStore.clear */ | 576 /** @domName IDBObjectStore.clear */ |
| 571 Request clear() native "IDBObjectStore_clear_Callback"; | 577 Request clear() native "IDBObjectStore_clear_Callback"; |
| 572 | 578 |
| 573 Request count([key_OR_range]) { | 579 Request count([key_OR_range]) { |
| 574 if (!?key_OR_range) { | 580 if (!?key_OR_range) { |
| 575 return _count_1(); | 581 return _count_1(); |
| 576 } | 582 } |
| 577 if ((key_OR_range is KeyRange || key_OR_range == null)) { | 583 if ((key_OR_range is KeyRange || key_OR_range == null)) { |
| 578 return _count_2(key_OR_range); | 584 return _count_2(key_OR_range); |
| 579 } | 585 } |
| 580 return _count_3(key_OR_range); | 586 if (?key_OR_range) { |
| 587 return _count_3(key_OR_range); |
| 588 } |
| 581 throw "Incorrect number or type of arguments"; | 589 throw "Incorrect number or type of arguments"; |
| 582 } | 590 } |
| 583 | 591 |
| 584 | 592 |
| 585 /** @domName IDBObjectStore.count_1 */ | 593 /** @domName IDBObjectStore.count_1 */ |
| 586 Request _count_1() native "IDBObjectStore_count_1_Callback"; | 594 Request _count_1() native "IDBObjectStore_count_1_Callback"; |
| 587 | 595 |
| 588 | 596 |
| 589 /** @domName IDBObjectStore.count_2 */ | 597 /** @domName IDBObjectStore.count_2 */ |
| 590 Request _count_2(key_OR_range) native "IDBObjectStore_count_2_Callback"; | 598 Request _count_2(key_OR_range) native "IDBObjectStore_count_2_Callback"; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 608 Index _createIndex_1(name, keyPath, options) native "IDBObjectStore_createInde
x_1_Callback"; | 616 Index _createIndex_1(name, keyPath, options) native "IDBObjectStore_createInde
x_1_Callback"; |
| 609 | 617 |
| 610 | 618 |
| 611 /** @domName IDBObjectStore.createIndex_2 */ | 619 /** @domName IDBObjectStore.createIndex_2 */ |
| 612 Index _createIndex_2(name, keyPath, options) native "IDBObjectStore_createInde
x_2_Callback"; | 620 Index _createIndex_2(name, keyPath, options) native "IDBObjectStore_createInde
x_2_Callback"; |
| 613 | 621 |
| 614 Request delete(key_OR_keyRange) { | 622 Request delete(key_OR_keyRange) { |
| 615 if ((key_OR_keyRange is KeyRange || key_OR_keyRange == null)) { | 623 if ((key_OR_keyRange is KeyRange || key_OR_keyRange == null)) { |
| 616 return _delete_1(key_OR_keyRange); | 624 return _delete_1(key_OR_keyRange); |
| 617 } | 625 } |
| 618 return _delete_2(key_OR_keyRange); | 626 if (?key_OR_keyRange) { |
| 627 return _delete_2(key_OR_keyRange); |
| 628 } |
| 619 throw "Incorrect number or type of arguments"; | 629 throw "Incorrect number or type of arguments"; |
| 620 } | 630 } |
| 621 | 631 |
| 622 | 632 |
| 623 /** @domName IDBObjectStore.delete_1 */ | 633 /** @domName IDBObjectStore.delete_1 */ |
| 624 Request _delete_1(key_OR_keyRange) native "IDBObjectStore_delete_1_Callback"; | 634 Request _delete_1(key_OR_keyRange) native "IDBObjectStore_delete_1_Callback"; |
| 625 | 635 |
| 626 | 636 |
| 627 /** @domName IDBObjectStore.delete_2 */ | 637 /** @domName IDBObjectStore.delete_2 */ |
| 628 Request _delete_2(key_OR_keyRange) native "IDBObjectStore_delete_2_Callback"; | 638 Request _delete_2(key_OR_keyRange) native "IDBObjectStore_delete_2_Callback"; |
| 629 | 639 |
| 630 | 640 |
| 631 /** @domName IDBObjectStore.deleteIndex */ | 641 /** @domName IDBObjectStore.deleteIndex */ |
| 632 void deleteIndex(String name) native "IDBObjectStore_deleteIndex_Callback"; | 642 void deleteIndex(String name) native "IDBObjectStore_deleteIndex_Callback"; |
| 633 | 643 |
| 634 Request getObject(key) { | 644 Request getObject(key) { |
| 635 if ((key is KeyRange || key == null)) { | 645 if ((key is KeyRange || key == null)) { |
| 636 return _get_1(key); | 646 return _get_1(key); |
| 637 } | 647 } |
| 638 return _get_2(key); | 648 if (?key) { |
| 649 return _get_2(key); |
| 650 } |
| 639 throw "Incorrect number or type of arguments"; | 651 throw "Incorrect number or type of arguments"; |
| 640 } | 652 } |
| 641 | 653 |
| 642 | 654 |
| 643 /** @domName IDBObjectStore.get_1 */ | 655 /** @domName IDBObjectStore.get_1 */ |
| 644 Request _get_1(key) native "IDBObjectStore_get_1_Callback"; | 656 Request _get_1(key) native "IDBObjectStore_get_1_Callback"; |
| 645 | 657 |
| 646 | 658 |
| 647 /** @domName IDBObjectStore.get_2 */ | 659 /** @domName IDBObjectStore.get_2 */ |
| 648 Request _get_2(key) native "IDBObjectStore_get_2_Callback"; | 660 Request _get_2(key) native "IDBObjectStore_get_2_Callback"; |
| 649 | 661 |
| 650 | 662 |
| 651 /** @domName IDBObjectStore.index */ | 663 /** @domName IDBObjectStore.index */ |
| 652 Index index(String name) native "IDBObjectStore_index_Callback"; | 664 Index index(String name) native "IDBObjectStore_index_Callback"; |
| 653 | 665 |
| 654 Request openCursor([key_OR_range, /*DOMString*/ direction]) { | 666 Request openCursor([key_OR_range, /*DOMString*/ direction]) { |
| 655 if (!?key_OR_range && !?direction) { | 667 if (!?key_OR_range && !?direction) { |
| 656 return _openCursor_1(); | 668 return _openCursor_1(); |
| 657 } | 669 } |
| 658 if ((key_OR_range is KeyRange || key_OR_range == null) && !?direction) { | 670 if ((key_OR_range is KeyRange || key_OR_range == null) && !?direction) { |
| 659 return _openCursor_2(key_OR_range); | 671 return _openCursor_2(key_OR_range); |
| 660 } | 672 } |
| 661 if ((key_OR_range is KeyRange || key_OR_range == null) && (direction is Stri
ng || direction == null)) { | 673 if ((key_OR_range is KeyRange || key_OR_range == null) && (direction is Stri
ng || direction == null)) { |
| 662 return _openCursor_3(key_OR_range, direction); | 674 return _openCursor_3(key_OR_range, direction); |
| 663 } | 675 } |
| 664 if (!?direction) { | 676 if (?key_OR_range && !?direction) { |
| 665 return _openCursor_4(key_OR_range); | 677 return _openCursor_4(key_OR_range); |
| 666 } | 678 } |
| 667 if ((direction is String || direction == null)) { | 679 if (?key_OR_range && (direction is String || direction == null)) { |
| 668 return _openCursor_5(key_OR_range, direction); | 680 return _openCursor_5(key_OR_range, direction); |
| 669 } | 681 } |
| 670 throw "Incorrect number or type of arguments"; | 682 throw "Incorrect number or type of arguments"; |
| 671 } | 683 } |
| 672 | 684 |
| 673 | 685 |
| 674 /** @domName IDBObjectStore.openCursor_1 */ | 686 /** @domName IDBObjectStore.openCursor_1 */ |
| 675 Request _openCursor_1() native "IDBObjectStore_openCursor_1_Callback"; | 687 Request _openCursor_1() native "IDBObjectStore_openCursor_1_Callback"; |
| 676 | 688 |
| 677 | 689 |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 931 // BSD-style license that can be found in the LICENSE file. | 943 // BSD-style license that can be found in the LICENSE file. |
| 932 | 944 |
| 933 // WARNING: Do not edit - generated code. | 945 // WARNING: Do not edit - generated code. |
| 934 | 946 |
| 935 | 947 |
| 936 /// @domName IDBAny | 948 /// @domName IDBAny |
| 937 class _Any extends NativeFieldWrapperClass1 { | 949 class _Any extends NativeFieldWrapperClass1 { |
| 938 _Any.internal(); | 950 _Any.internal(); |
| 939 | 951 |
| 940 } | 952 } |
| OLD | NEW |