| 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 /** @domName IDBIndex.unique */ | 275 /** @domName IDBIndex.unique */ |
| 276 bool get unique native "IDBIndex_unique_Getter"; | 276 bool get unique native "IDBIndex_unique_Getter"; |
| 277 | 277 |
| 278 Request count([key_OR_range]) { | 278 Request count([key_OR_range]) { |
| 279 if (!?key_OR_range) { | 279 if (!?key_OR_range) { |
| 280 return _count_1(); | 280 return _count_1(); |
| 281 } | 281 } |
| 282 if ((key_OR_range is KeyRange || key_OR_range == null)) { | 282 if ((key_OR_range is KeyRange || key_OR_range == null)) { |
| 283 return _count_2(key_OR_range); | 283 return _count_2(key_OR_range); |
| 284 } | 284 } |
| 285 return _count_3(key_OR_range); | 285 if (?key_OR_range) { |
| 286 return _count_3(key_OR_range); |
| 287 } |
| 286 throw "Incorrect number or type of arguments"; | 288 throw "Incorrect number or type of arguments"; |
| 287 } | 289 } |
| 288 | 290 |
| 289 | 291 |
| 290 /** @domName IDBIndex.count_1 */ | 292 /** @domName IDBIndex.count_1 */ |
| 291 Request _count_1() native "IDBIndex_count_1_Callback"; | 293 Request _count_1() native "IDBIndex_count_1_Callback"; |
| 292 | 294 |
| 293 | 295 |
| 294 /** @domName IDBIndex.count_2 */ | 296 /** @domName IDBIndex.count_2 */ |
| 295 Request _count_2(key_OR_range) native "IDBIndex_count_2_Callback"; | 297 Request _count_2(key_OR_range) native "IDBIndex_count_2_Callback"; |
| 296 | 298 |
| 297 | 299 |
| 298 /** @domName IDBIndex.count_3 */ | 300 /** @domName IDBIndex.count_3 */ |
| 299 Request _count_3(key_OR_range) native "IDBIndex_count_3_Callback"; | 301 Request _count_3(key_OR_range) native "IDBIndex_count_3_Callback"; |
| 300 | 302 |
| 301 Request get(key) { | 303 Request get(key) { |
| 302 if ((key is KeyRange || key == null)) { | 304 if ((key is KeyRange || key == null)) { |
| 303 return _get_1(key); | 305 return _get_1(key); |
| 304 } | 306 } |
| 305 return _get_2(key); | 307 if (?key) { |
| 308 return _get_2(key); |
| 309 } |
| 306 throw "Incorrect number or type of arguments"; | 310 throw "Incorrect number or type of arguments"; |
| 307 } | 311 } |
| 308 | 312 |
| 309 | 313 |
| 310 /** @domName IDBIndex.get_1 */ | 314 /** @domName IDBIndex.get_1 */ |
| 311 Request _get_1(key) native "IDBIndex_get_1_Callback"; | 315 Request _get_1(key) native "IDBIndex_get_1_Callback"; |
| 312 | 316 |
| 313 | 317 |
| 314 /** @domName IDBIndex.get_2 */ | 318 /** @domName IDBIndex.get_2 */ |
| 315 Request _get_2(key) native "IDBIndex_get_2_Callback"; | 319 Request _get_2(key) native "IDBIndex_get_2_Callback"; |
| 316 | 320 |
| 317 Request getKey(key) { | 321 Request getKey(key) { |
| 318 if ((key is KeyRange || key == null)) { | 322 if ((key is KeyRange || key == null)) { |
| 319 return _getKey_1(key); | 323 return _getKey_1(key); |
| 320 } | 324 } |
| 321 return _getKey_2(key); | 325 if (?key) { |
| 326 return _getKey_2(key); |
| 327 } |
| 322 throw "Incorrect number or type of arguments"; | 328 throw "Incorrect number or type of arguments"; |
| 323 } | 329 } |
| 324 | 330 |
| 325 | 331 |
| 326 /** @domName IDBIndex.getKey_1 */ | 332 /** @domName IDBIndex.getKey_1 */ |
| 327 Request _getKey_1(key) native "IDBIndex_getKey_1_Callback"; | 333 Request _getKey_1(key) native "IDBIndex_getKey_1_Callback"; |
| 328 | 334 |
| 329 | 335 |
| 330 /** @domName IDBIndex.getKey_2 */ | 336 /** @domName IDBIndex.getKey_2 */ |
| 331 Request _getKey_2(key) native "IDBIndex_getKey_2_Callback"; | 337 Request _getKey_2(key) native "IDBIndex_getKey_2_Callback"; |
| 332 | 338 |
| 333 Request openCursor([key_OR_range, /*DOMString*/ direction]) { | 339 Request openCursor([key_OR_range, /*DOMString*/ direction]) { |
| 334 if (!?key_OR_range && !?direction) { | 340 if (!?key_OR_range && !?direction) { |
| 335 return _openCursor_1(); | 341 return _openCursor_1(); |
| 336 } | 342 } |
| 337 if ((key_OR_range is KeyRange || key_OR_range == null) && !?direction) { | 343 if ((key_OR_range is KeyRange || key_OR_range == null) && !?direction) { |
| 338 return _openCursor_2(key_OR_range); | 344 return _openCursor_2(key_OR_range); |
| 339 } | 345 } |
| 340 if ((key_OR_range is KeyRange || key_OR_range == null) && (direction is Stri
ng || direction == null)) { | 346 if ((key_OR_range is KeyRange || key_OR_range == null) && (direction is Stri
ng || direction == null)) { |
| 341 return _openCursor_3(key_OR_range, direction); | 347 return _openCursor_3(key_OR_range, direction); |
| 342 } | 348 } |
| 343 if (!?direction) { | 349 if (?key_OR_range && !?direction) { |
| 344 return _openCursor_4(key_OR_range); | 350 return _openCursor_4(key_OR_range); |
| 345 } | 351 } |
| 346 if ((direction is String || direction == null)) { | 352 if (?key_OR_range && (direction is String || direction == null)) { |
| 347 return _openCursor_5(key_OR_range, direction); | 353 return _openCursor_5(key_OR_range, direction); |
| 348 } | 354 } |
| 349 throw "Incorrect number or type of arguments"; | 355 throw "Incorrect number or type of arguments"; |
| 350 } | 356 } |
| 351 | 357 |
| 352 | 358 |
| 353 /** @domName IDBIndex.openCursor_1 */ | 359 /** @domName IDBIndex.openCursor_1 */ |
| 354 Request _openCursor_1() native "IDBIndex_openCursor_1_Callback"; | 360 Request _openCursor_1() native "IDBIndex_openCursor_1_Callback"; |
| 355 | 361 |
| 356 | 362 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 372 Request openKeyCursor([key_OR_range, /*DOMString*/ direction]) { | 378 Request openKeyCursor([key_OR_range, /*DOMString*/ direction]) { |
| 373 if (!?key_OR_range && !?direction) { | 379 if (!?key_OR_range && !?direction) { |
| 374 return _openKeyCursor_1(); | 380 return _openKeyCursor_1(); |
| 375 } | 381 } |
| 376 if ((key_OR_range is KeyRange || key_OR_range == null) && !?direction) { | 382 if ((key_OR_range is KeyRange || key_OR_range == null) && !?direction) { |
| 377 return _openKeyCursor_2(key_OR_range); | 383 return _openKeyCursor_2(key_OR_range); |
| 378 } | 384 } |
| 379 if ((key_OR_range is KeyRange || key_OR_range == null) && (direction is Stri
ng || direction == null)) { | 385 if ((key_OR_range is KeyRange || key_OR_range == null) && (direction is Stri
ng || direction == null)) { |
| 380 return _openKeyCursor_3(key_OR_range, direction); | 386 return _openKeyCursor_3(key_OR_range, direction); |
| 381 } | 387 } |
| 382 if (!?direction) { | 388 if (?key_OR_range && !?direction) { |
| 383 return _openKeyCursor_4(key_OR_range); | 389 return _openKeyCursor_4(key_OR_range); |
| 384 } | 390 } |
| 385 if ((direction is String || direction == null)) { | 391 if (?key_OR_range && (direction is String || direction == null)) { |
| 386 return _openKeyCursor_5(key_OR_range, direction); | 392 return _openKeyCursor_5(key_OR_range, direction); |
| 387 } | 393 } |
| 388 throw "Incorrect number or type of arguments"; | 394 throw "Incorrect number or type of arguments"; |
| 389 } | 395 } |
| 390 | 396 |
| 391 | 397 |
| 392 /** @domName IDBIndex.openKeyCursor_1 */ | 398 /** @domName IDBIndex.openKeyCursor_1 */ |
| 393 Request _openKeyCursor_1() native "IDBIndex_openKeyCursor_1_Callback"; | 399 Request _openKeyCursor_1() native "IDBIndex_openKeyCursor_1_Callback"; |
| 394 | 400 |
| 395 | 401 |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 /** @domName IDBObjectStore.clear */ | 585 /** @domName IDBObjectStore.clear */ |
| 580 Request clear() native "IDBObjectStore_clear_Callback"; | 586 Request clear() native "IDBObjectStore_clear_Callback"; |
| 581 | 587 |
| 582 Request count([key_OR_range]) { | 588 Request count([key_OR_range]) { |
| 583 if (!?key_OR_range) { | 589 if (!?key_OR_range) { |
| 584 return _count_1(); | 590 return _count_1(); |
| 585 } | 591 } |
| 586 if ((key_OR_range is KeyRange || key_OR_range == null)) { | 592 if ((key_OR_range is KeyRange || key_OR_range == null)) { |
| 587 return _count_2(key_OR_range); | 593 return _count_2(key_OR_range); |
| 588 } | 594 } |
| 589 return _count_3(key_OR_range); | 595 if (?key_OR_range) { |
| 596 return _count_3(key_OR_range); |
| 597 } |
| 590 throw "Incorrect number or type of arguments"; | 598 throw "Incorrect number or type of arguments"; |
| 591 } | 599 } |
| 592 | 600 |
| 593 | 601 |
| 594 /** @domName IDBObjectStore.count_1 */ | 602 /** @domName IDBObjectStore.count_1 */ |
| 595 Request _count_1() native "IDBObjectStore_count_1_Callback"; | 603 Request _count_1() native "IDBObjectStore_count_1_Callback"; |
| 596 | 604 |
| 597 | 605 |
| 598 /** @domName IDBObjectStore.count_2 */ | 606 /** @domName IDBObjectStore.count_2 */ |
| 599 Request _count_2(key_OR_range) native "IDBObjectStore_count_2_Callback"; | 607 Request _count_2(key_OR_range) native "IDBObjectStore_count_2_Callback"; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 617 Index _createIndex_1(name, keyPath, options) native "IDBObjectStore_createInde
x_1_Callback"; | 625 Index _createIndex_1(name, keyPath, options) native "IDBObjectStore_createInde
x_1_Callback"; |
| 618 | 626 |
| 619 | 627 |
| 620 /** @domName IDBObjectStore.createIndex_2 */ | 628 /** @domName IDBObjectStore.createIndex_2 */ |
| 621 Index _createIndex_2(name, keyPath, options) native "IDBObjectStore_createInde
x_2_Callback"; | 629 Index _createIndex_2(name, keyPath, options) native "IDBObjectStore_createInde
x_2_Callback"; |
| 622 | 630 |
| 623 Request delete(key_OR_keyRange) { | 631 Request delete(key_OR_keyRange) { |
| 624 if ((key_OR_keyRange is KeyRange || key_OR_keyRange == null)) { | 632 if ((key_OR_keyRange is KeyRange || key_OR_keyRange == null)) { |
| 625 return _delete_1(key_OR_keyRange); | 633 return _delete_1(key_OR_keyRange); |
| 626 } | 634 } |
| 627 return _delete_2(key_OR_keyRange); | 635 if (?key_OR_keyRange) { |
| 636 return _delete_2(key_OR_keyRange); |
| 637 } |
| 628 throw "Incorrect number or type of arguments"; | 638 throw "Incorrect number or type of arguments"; |
| 629 } | 639 } |
| 630 | 640 |
| 631 | 641 |
| 632 /** @domName IDBObjectStore.delete_1 */ | 642 /** @domName IDBObjectStore.delete_1 */ |
| 633 Request _delete_1(key_OR_keyRange) native "IDBObjectStore_delete_1_Callback"; | 643 Request _delete_1(key_OR_keyRange) native "IDBObjectStore_delete_1_Callback"; |
| 634 | 644 |
| 635 | 645 |
| 636 /** @domName IDBObjectStore.delete_2 */ | 646 /** @domName IDBObjectStore.delete_2 */ |
| 637 Request _delete_2(key_OR_keyRange) native "IDBObjectStore_delete_2_Callback"; | 647 Request _delete_2(key_OR_keyRange) native "IDBObjectStore_delete_2_Callback"; |
| 638 | 648 |
| 639 | 649 |
| 640 /** @domName IDBObjectStore.deleteIndex */ | 650 /** @domName IDBObjectStore.deleteIndex */ |
| 641 void deleteIndex(String name) native "IDBObjectStore_deleteIndex_Callback"; | 651 void deleteIndex(String name) native "IDBObjectStore_deleteIndex_Callback"; |
| 642 | 652 |
| 643 Request getObject(key) { | 653 Request getObject(key) { |
| 644 if ((key is KeyRange || key == null)) { | 654 if ((key is KeyRange || key == null)) { |
| 645 return _get_1(key); | 655 return _get_1(key); |
| 646 } | 656 } |
| 647 return _get_2(key); | 657 if (?key) { |
| 658 return _get_2(key); |
| 659 } |
| 648 throw "Incorrect number or type of arguments"; | 660 throw "Incorrect number or type of arguments"; |
| 649 } | 661 } |
| 650 | 662 |
| 651 | 663 |
| 652 /** @domName IDBObjectStore.get_1 */ | 664 /** @domName IDBObjectStore.get_1 */ |
| 653 Request _get_1(key) native "IDBObjectStore_get_1_Callback"; | 665 Request _get_1(key) native "IDBObjectStore_get_1_Callback"; |
| 654 | 666 |
| 655 | 667 |
| 656 /** @domName IDBObjectStore.get_2 */ | 668 /** @domName IDBObjectStore.get_2 */ |
| 657 Request _get_2(key) native "IDBObjectStore_get_2_Callback"; | 669 Request _get_2(key) native "IDBObjectStore_get_2_Callback"; |
| 658 | 670 |
| 659 | 671 |
| 660 /** @domName IDBObjectStore.index */ | 672 /** @domName IDBObjectStore.index */ |
| 661 Index index(String name) native "IDBObjectStore_index_Callback"; | 673 Index index(String name) native "IDBObjectStore_index_Callback"; |
| 662 | 674 |
| 663 Request openCursor([key_OR_range, /*DOMString*/ direction]) { | 675 Request openCursor([key_OR_range, /*DOMString*/ direction]) { |
| 664 if (!?key_OR_range && !?direction) { | 676 if (!?key_OR_range && !?direction) { |
| 665 return _openCursor_1(); | 677 return _openCursor_1(); |
| 666 } | 678 } |
| 667 if ((key_OR_range is KeyRange || key_OR_range == null) && !?direction) { | 679 if ((key_OR_range is KeyRange || key_OR_range == null) && !?direction) { |
| 668 return _openCursor_2(key_OR_range); | 680 return _openCursor_2(key_OR_range); |
| 669 } | 681 } |
| 670 if ((key_OR_range is KeyRange || key_OR_range == null) && (direction is Stri
ng || direction == null)) { | 682 if ((key_OR_range is KeyRange || key_OR_range == null) && (direction is Stri
ng || direction == null)) { |
| 671 return _openCursor_3(key_OR_range, direction); | 683 return _openCursor_3(key_OR_range, direction); |
| 672 } | 684 } |
| 673 if (!?direction) { | 685 if (?key_OR_range && !?direction) { |
| 674 return _openCursor_4(key_OR_range); | 686 return _openCursor_4(key_OR_range); |
| 675 } | 687 } |
| 676 if ((direction is String || direction == null)) { | 688 if (?key_OR_range && (direction is String || direction == null)) { |
| 677 return _openCursor_5(key_OR_range, direction); | 689 return _openCursor_5(key_OR_range, direction); |
| 678 } | 690 } |
| 679 throw "Incorrect number or type of arguments"; | 691 throw "Incorrect number or type of arguments"; |
| 680 } | 692 } |
| 681 | 693 |
| 682 | 694 |
| 683 /** @domName IDBObjectStore.openCursor_1 */ | 695 /** @domName IDBObjectStore.openCursor_1 */ |
| 684 Request _openCursor_1() native "IDBObjectStore_openCursor_1_Callback"; | 696 Request _openCursor_1() native "IDBObjectStore_openCursor_1_Callback"; |
| 685 | 697 |
| 686 | 698 |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 940 // BSD-style license that can be found in the LICENSE file. | 952 // BSD-style license that can be found in the LICENSE file. |
| 941 | 953 |
| 942 // WARNING: Do not edit - generated code. | 954 // WARNING: Do not edit - generated code. |
| 943 | 955 |
| 944 | 956 |
| 945 /// @domName IDBAny | 957 /// @domName IDBAny |
| 946 class _Any extends NativeFieldWrapperClass1 { | 958 class _Any extends NativeFieldWrapperClass1 { |
| 947 _Any.internal(); | 959 _Any.internal(); |
| 948 | 960 |
| 949 } | 961 } |
| OLD | NEW |