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

Side by Side Diff: chrome/common/extensions/api/extension_api.json

Issue 164219: Add return type parameters to Bookmark APIs (Closed)
Patch Set: pre commit Created 11 years, 4 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 | « chrome/common/common_resources.grd ('k') | chrome/common/extensions/docs/bookmarks.html » ('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 { 2 {
3 "namespace": "self", 3 "namespace": "self",
4 "types": [ 4 "types": [
5 ], 5 ],
6 "functions": [ 6 "functions": [
7 { 7 {
8 "name": "getViews", 8 "name": "getViews",
9 "type": "function", 9 "type": "function",
10 "description": "Returns an array of the global JavaScript objects for ea ch of the views running inside the current extension. This includes toolstrips, background pages, and tabs.", 10 "description": "Returns an array of the global JavaScript objects for ea ch of the views running inside the current extension. This includes toolstrips, background pages, and tabs.",
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 "optional": false 503 "optional": false
504 } 504 }
505 ] 505 ]
506 } 506 }
507 ], 507 ],
508 "events": [ 508 "events": [
509 ] 509 ]
510 }, 510 },
511 { 511 {
512 "namespace": "bookmarks", 512 "namespace": "bookmarks",
513 "types": [], 513 "types": [
514 {
515 "id": "BookmarkTreeNode",
516 "type": "object",
517 "properties": {
518 "id": {"type": "integer", "minimum": 0},
519 "index": {"type": "integer", "minimum": 0},
520 "windowId": {"type": "integer", "minimum": 0},
521 "selected": {"type": "boolean"},
522 "url": {"type": "string"},
523 "title": {"type": "string", "optional": true},
524 "favIconUrl": {"type": "string", "optional": true}
525 }
526 }
527 ],
514 "functions": [ 528 "functions": [
515 { 529 {
516 "name": "get", 530 "name": "get",
517 "type": "function", 531 "type": "function",
518 "description": "", 532 "description": "Retrieves the specified BookmarkTreeNode(s).",
519 "parameters": [ 533 "parameters": [
520 { 534 {
521 "name": "idOrIdList", 535 "name": "idOrIdList",
536 "description": "A single string-valued id, or an array of string-val ued ids",
522 "choices": [ 537 "choices": [
523 {"type": "string"}, 538 {"type": "string"},
524 {"type": "array", "items": {"type": "string"}, "minItems": 1} 539 {"type": "array", "items": {"type": "string"}, "minItems": 1}
525 ] 540 ]
526 }, 541 },
527 {"type": "function", "name": "callback"} 542 {
543 "type": "function",
544 "name": "callback",
545 "parameters": [
546 {"name": "results", "type": "array", "items": { "$ref": "BookmarkT reeNode"} }
547 ]
548 }
528 ] 549 ]
529 }, 550 },
530 { 551 {
531 "name": "getChildren", 552 "name": "getChildren",
532 "type": "function", 553 "type": "function",
533 "description": "", 554 "description": "Retrieves the children of the specified BookmarkTreeNode id.",
534 "parameters": [ 555 "parameters": [
535 {"type": "string", "name": "id"}, 556 {"type": "string", "name": "id"},
536 {"type": "function", "name": "callback"} 557 {
558 "type": "function",
559 "name": "callback",
560 "parameters": [
561 {"name": "results", "type": "array", "items": { "$ref": "BookmarkT reeNode"} }
562 ]
563 }
537 ] 564 ]
538 }, 565 },
539 { 566 {
540 "name": "getTree", 567 "name": "getTree",
541 "type": "function", 568 "type": "function",
542 "description": "", 569 "description": "Retrieves the entire Bookmarks hierarchy.",
543 "parameters": [ 570 "parameters": [
544 {"type": "function", "name": "callback"} 571 {
572 "type": "function",
573 "name": "callback",
574 "parameters": [
575 {"name": "results", "type": "array", "items": { "$ref": "BookmarkT reeNode"} }
576 ]
577 }
545 ] 578 ]
546 }, 579 },
547 { 580 {
548 "name": "search", 581 "name": "search",
549 "type": "function", 582 "type": "function",
550 "description": "", 583 "description": "Seaches for BookmarkTreeNodes matching the given query." ,
551 "parameters": [ 584 "parameters": [
552 {"type": "string", "name": "query"}, 585 {"type": "string", "name": "query"},
553 {"type": "function", "name": "callback"} 586 {
587 "type": "function",
588 "name": "callback",
589 "parameters": [
590 {"name": "results", "type": "array", "items": { "$ref": "BookmarkT reeNode"} }
591 ]
592 }
554 ] 593 ]
555 }, 594 },
556 { 595 {
557 "name": "create", 596 "name": "create",
558 "type": "function", 597 "type": "function",
559 "description": "", 598 "description": "",
560 "parameters": [ 599 "parameters": [
561 { 600 {
562 "type": "object", 601 "type": "object",
563 "name": "bookmark", 602 "name": "bookmark",
564 "properties": { 603 "properties": {
565 "parentId": {"type": "string"}, 604 "parentId": {"type": "string"},
566 "index": {"type": "integer", "minimum": 0, "optional": true}, 605 "index": {"type": "integer", "minimum": 0, "optional": true},
567 "title": {"type": "string", "optional": true}, 606 "title": {"type": "string", "optional": true},
568 "url": {"type": "string", "optional": true} 607 "url": {"type": "string", "optional": true}
569 } 608 }
570 }, 609 },
571 {"type": "function", "name": "callback", "optional": true} 610 {
611 "type": "function",
612 "name": "callback",
613 "optional": true,
614 "parameters": [
615 {"name": "result", "$ref": "BookmarkTreeNode" }
616 ]
617 }
572 ] 618 ]
573 }, 619 },
574 { 620 {
575 "name": "move", 621 "name": "move",
576 "type": "function", 622 "type": "function",
577 "description": "", 623 "description": "Moves the specified BookmarkTreeNode to the provided loc ation.",
578 "parameters": [ 624 "parameters": [
579 {"type": "string", "name": "id"}, 625 {"type": "string", "name": "id"},
580 { 626 {
581 "type": "object", 627 "type": "object",
582 "name": "destination", 628 "name": "destination",
583 "properties": { 629 "properties": {
584 "parentId": {"type": "string"}, 630 "parentId": {"type": "string"},
585 "index": {"type": "integer", "minimum": 0, "optional": true} 631 "index": {"type": "integer", "minimum": 0, "optional": true}
586 } 632 }
587 }, 633 },
588 {"type": "function", "name": "callback", "optional": true} 634 {"type": "function", "name": "callback", "optional": true, "parameters ": []}
589 ] 635 ]
590 }, 636 },
591 { 637 {
592 "name": "update", 638 "name": "update",
593 "type": "function", 639 "type": "function",
594 "description": "", 640 "description": "",
595 "parameters": [ 641 "parameters": [
596 {"type": "string", "name": "id"}, 642 {"type": "string", "name": "id"},
597 { 643 {
598 "type": "object", 644 "type": "object",
599 "name": "changes", 645 "name": "changes",
600 "properties": { 646 "properties": {
601 "title": {"type": "string", "optional": true} 647 "title": {"type": "string", "optional": true}
602 } 648 }
603 }, 649 },
604 {"type": "function", "name": "callback", "optional": true} 650 {
651 "type": "function",
652 "name": "callback",
653 "optional": true,
654 "parameters": [
655 {"name": "result", "$ref": "BookmarkTreeNode" }
656 ]
657 }
605 ] 658 ]
606 }, 659 },
607 { 660 {
608 "name": "remove", 661 "name": "remove",
609 "type": "function", 662 "type": "function",
610 "description": "", 663 "description": "",
611 "parameters": [ 664 "parameters": [
612 {"type": "string", "name": "id"}, 665 {"type": "string", "name": "id"},
613 {"type": "function", "name": "callback", "optional": true} 666 {"type": "function", "name": "callback", "optional": true, "parameters ": []}
614 ] 667 ]
615 }, 668 },
616 { 669 {
617 "name": "removeTree", 670 "name": "removeTree",
618 "type": "function", 671 "type": "function",
619 "description": "", 672 "description": "",
620 "parameters": [ 673 "parameters": [
621 {"type": "string", "name": "id"}, 674 {"type": "string", "name": "id"},
622 {"type": "function", "name": "callback", "optional": true} 675 {"type": "function", "name": "callback", "optional": true, "parameters ": []}
623 ] 676 ]
624 } 677 }
625 ], 678 ],
626 "events": [ 679 "events": [
627 { 680 {
628 "name": "onAdded", 681 "name": "onAdded",
629 "type": "function", 682 "type": "function",
630 "description": "", 683 "description": "",
631 "parameters": [ 684 "parameters": [
632 {"type": "string", "name": "id"}, 685 {"type": "string", "name": "id"},
633 { 686 {
634 "type": "object", 687 "$ref": "BookmarkTreeNode",
635 "name": "bookmark" 688 "name": "bookmark"
636 } 689 }
637 ] 690 ]
638 }, 691 },
639 { 692 {
640 "name": "onRemoved", 693 "name": "onRemoved",
641 "type": "function", 694 "type": "function",
642 "description": "", 695 "description": "",
643 "parameters": [ 696 "parameters": [
644 {"type": "string", "name": "id"}, 697 {"type": "string", "name": "id"},
645 { 698 {
646 "type": "object", 699 "type": "object",
647 "name": "RemoveInfo" 700 "name": "RemoveInfo",
701 "properties": {
702 "parentId": { "type": "integer" },
703 "index": { "type": "integer" }
704 }
648 } 705 }
649 ] 706 ]
650 }, 707 },
651 { 708 {
652 "name": "onChanged", 709 "name": "onChanged",
653 "type": "function", 710 "type": "function",
654 "description": "", 711 "description": "",
655 "parameters": [ 712 "parameters": [
656 {"type": "string", "name": "id"}, 713 {"type": "string", "name": "id"},
657 { 714 {
658 "type": "object", 715 "type": "object",
659 "name": "ChangeInfo" 716 "name": "ChangeInfo"
660 } 717 }
661 ] 718 ]
662 }, 719 },
663 { 720 {
664 "name": "onMoved", 721 "name": "onMoved",
665 "type": "function", 722 "type": "function",
666 "description": "", 723 "description": "",
667 "parameters": [ 724 "parameters": [
668 {"type": "string", "name": "id"}, 725 {"type": "string", "name": "id"},
669 { 726 {
670 "type": "object", 727 "type": "object",
671 "name": "MoveInfo" 728 "name": "MoveInfo",
729 "properties": {
730 "parentId": { "type": "integer" },
731 "index": { "type": "integer" },
732 "oldParentId": { "type": "integer" },
733 "oldIndex": { "type": "integer" }
734 }
672 } 735 }
673 ] 736 ]
674 }, 737 },
675 { 738 {
676 "name": "onChildrenReordered", 739 "name": "onChildrenReordered",
677 "type": "function", 740 "type": "function",
678 "description": "", 741 "description": "",
679 "parameters": [ 742 "parameters": [
680 {"type": "string", "name": "id"}, 743 {"type": "string", "name": "id"},
681 { 744 {
682 "type": "object", 745 "type": "arary",
683 "name": "childIds" 746 "name": "childIds",
747 "items": { "type": "integer" }
684 } 748 }
685 ] 749 ]
686 } 750 }
687 ] 751 ]
688 }, 752 },
689 { 753 {
690 "namespace": "toolstrip", 754 "namespace": "toolstrip",
691 "types": [], 755 "types": [],
692 "functions": [ 756 "functions": [
693 { 757 {
694 "name": "expand", 758 "name": "expand",
695 "type": "function", 759 "type": "function",
696 "description": "", 760 "description": "",
697 "parameters": [ 761 "parameters": [
698 {"type": "integer", "name": "height", "minimum": 0}, 762 {"type": "integer", "name": "height", "minimum": 0},
699 {"type": "string", "name": "url", "optional": true}, 763 {"type": "string", "name": "url", "optional": true},
700 {"type": "function", "name": "callback", "optional": true} 764 {"type": "function", "name": "callback", "optional": true, "parameters ": []}
701 ] 765 ]
702 }, 766 },
703 { 767 {
704 "name": "collapse", 768 "name": "collapse",
705 "type": "function", 769 "type": "function",
706 "description": "", 770 "description": "",
707 "parameters": [ 771 "parameters": [
708 {"type": "string", "name": "url", "optional": true}, 772 {"type": "string", "name": "url", "optional": true},
709 {"type": "function", "name": "callback", "optional": true} 773 {"type": "function", "name": "callback", "optional": true, "parameters ": []}
710 ] 774 ]
711 } 775 }
712 ], 776 ],
713 "events": [] 777 "events": []
714 } 778 }
715 ] 779 ]
OLDNEW
« no previous file with comments | « chrome/common/common_resources.grd ('k') | chrome/common/extensions/docs/bookmarks.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698