Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 [ | 1 [ |
| 2 { | 2 { |
| 3 "namespace": "extension", | 3 "namespace": "extension", |
| 4 "unprivileged": true, | 4 "unprivileged": true, |
| 5 "types": [ | 5 "types": [ |
| 6 { | 6 { |
| 7 "id": "MessageSender", | 7 "id": "MessageSender", |
| 8 "type": "object", | 8 "type": "object", |
| 9 "description": "An object containing information about the script contex t that sent a message or request.", | 9 "description": "An object containing information about the script contex t that sent a message or request.", |
| 10 "properties": { | 10 "properties": { |
| (...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 692 ] | 692 ] |
| 693 }, | 693 }, |
| 694 { | 694 { |
| 695 "name": "onStop", | 695 "name": "onStop", |
| 696 "type": "function", | 696 "type": "function", |
| 697 "description": "Fired when a call is made to tts.stop and this extension may be in the middle of speaking. If an extension receives a call to onStop and speech is already stopped, it should do nothing (not raise an error)." | 697 "description": "Fired when a call is made to tts.stop and this extension may be in the middle of speaking. If an extension receives a call to onStop and speech is already stopped, it should do nothing (not raise an error)." |
| 698 } | 698 } |
| 699 ] | 699 ] |
| 700 }, | 700 }, |
| 701 { | 701 { |
| 702 "namespace": "experimental.settings", | |
| 703 "types": [], | |
| 704 "functions": [ | |
| 705 { | |
| 706 "name": "get", | |
| 707 "type": "function", | |
| 708 "description": "Gets one or more values from settings.", | |
| 709 "parameters": [ | |
| 710 { | |
| 711 "name": "keys", | |
| 712 "choices": [ | |
| 713 {"type": "string"}, | |
| 714 {"type": "array", "items": {"type": "string"}, "minItems": 1} | |
| 715 ], | |
| 716 "description": "A single key or a list of keys to get from settings. Leave empty to get the entire contents of settings; this should only be used fo r debugging.", | |
| 717 "optional": true | |
| 718 }, | |
| 719 { | |
| 720 "name": "callback", | |
| 721 "type": "function", | |
| 722 "description": "Callback with settings values, or on failure (in whi ch case lastError will be set).", | |
| 723 "parameters": [ | |
| 724 { | |
| 725 "name": "settings", | |
| 726 "type": "object", | |
| 727 "properties": {}, | |
| 728 "additionalProperties": { "type": "any" }, | |
| 729 "description": "Object with given keys set to settings values." | |
| 730 } | |
| 731 ] | |
| 732 } | |
| 733 ] | |
| 734 }, | |
| 735 { | |
| 736 "name": "set", | |
| 737 "type": "function", | |
| 738 "description": "Sets multiple settings values.", | |
| 739 "parameters": [ | |
| 740 { | |
| 741 "name": "settings", | |
| 742 "type": "object", | |
| 743 "properties": {}, | |
| 744 "additionalProperties": { "type": "any" }, | |
| 745 "description": "Object to augment settings with. Values that cannot be serialized (functions, etc) will be ignored." | |
| 746 }, | |
| 747 { | |
| 748 "name": "callback", | |
| 749 "type": "function", | |
| 750 "description": "Callback with settings values, or on failure (in whi ch case lastError will be set).", | |
| 751 "parameters": [ | |
| 752 { | |
| 753 "name": "settings", | |
| 754 "type": "object", | |
| 755 "properties": {}, | |
| 756 "additionalProperties": { "type": "any" }, | |
| 757 "description": "Object with given keys set to settings values." | |
| 758 } | |
| 759 ], | |
| 760 "optional": true | |
| 761 } | |
| 762 ] | |
| 763 }, | |
| 764 { | |
| 765 "name": "remove", | |
| 766 "type": "function", | |
| 767 "description": "Removes one or more values from settings.", | |
| 768 "parameters": [ | |
| 769 { | |
| 770 "name": "keys", | |
| 771 "choices": [ | |
| 772 {"type": "string"}, | |
| 773 {"type": "array", "items": {"type": "string"}, "minItems": 1} | |
| 774 ], | |
| 775 "description": "A single key or a list of keys to remove from settin gs." | |
| 776 }, | |
| 777 { | |
| 778 "name": "callback", | |
| 779 "type": "function", | |
| 780 "description": "Callback with an empty settings object, or on failur e (in which case lastError will be set).", | |
|
Matt Perry
2011/06/29 18:08:11
I didn't notice this before, but why are we passin
not at google - send to devlin
2011/08/03 06:36:51
Initially so that, C++ implementation wise, all me
Matt Perry
2011/08/03 22:57:47
If you pass NULL to that callback (which then sets
not at google - send to devlin
2011/08/04 00:59:06
Done.
| |
| 781 "parameters": [ | |
| 782 { | |
| 783 "name": "settings", | |
| 784 "type": "object", | |
| 785 "properties": {}, | |
| 786 "additionalProperties": { "type": "any" }, | |
| 787 "description": "An empty object." | |
| 788 } | |
| 789 ], | |
| 790 "optional": true | |
| 791 } | |
| 792 ] | |
| 793 }, | |
| 794 { | |
| 795 "name": "clear", | |
| 796 "type": "function", | |
| 797 "description": "Removes all values from settings.", | |
| 798 "parameters": [ | |
| 799 { | |
| 800 "name": "callback", | |
| 801 "type": "function", | |
| 802 "description": "Callback with an empty settings object, or on failur e (in which case lastError will be set).", | |
|
Matt Perry
2011/06/29 18:08:11
ditto
not at google - send to devlin
2011/08/04 00:59:06
Done.
| |
| 803 "parameters": [ | |
| 804 { | |
| 805 "name": "settings", | |
| 806 "type": "object", | |
| 807 "properties": {}, | |
| 808 "additionalProperties": { "type": "any" }, | |
| 809 "description": "An empty object." | |
| 810 } | |
| 811 ], | |
| 812 "optional": true | |
| 813 } | |
| 814 ] | |
| 815 } | |
| 816 ], | |
| 817 "events": [] | |
| 818 }, | |
| 819 { | |
| 702 "namespace": "windows", | 820 "namespace": "windows", |
| 703 "types": [ | 821 "types": [ |
| 704 { | 822 { |
| 705 "id": "Window", | 823 "id": "Window", |
| 706 "type": "object", | 824 "type": "object", |
| 707 "properties": { | 825 "properties": { |
| 708 "id": {"type": "integer", "minimum": 0, "description": "The ID of the window. Window IDs are unique within a browser session."}, | 826 "id": {"type": "integer", "minimum": 0, "description": "The ID of the window. Window IDs are unique within a browser session."}, |
| 709 "focused": {"type": "boolean", "description": "Whether the window is c urrently the focused window."}, | 827 "focused": {"type": "boolean", "description": "Whether the window is c urrently the focused window."}, |
| 710 "top": {"type": "integer", "description": "The offset of the window fr om the top edge of the screen in pixels."}, | 828 "top": {"type": "integer", "description": "The offset of the window fr om the top edge of the screen in pixels."}, |
| 711 "left": {"type": "integer", "description": "The offset of the window f rom the left edge of the screen in pixels."}, | 829 "left": {"type": "integer", "description": "The offset of the window f rom the left edge of the screen in pixels."}, |
| (...skipping 5455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6167 { | 6285 { |
| 6168 "type": "integer", | 6286 "type": "integer", |
| 6169 "name": "tabId", | 6287 "name": "tabId", |
| 6170 "description": "The id of the tab that was detached." | 6288 "description": "The id of the tab that was detached." |
| 6171 } | 6289 } |
| 6172 ] | 6290 ] |
| 6173 } | 6291 } |
| 6174 ] | 6292 ] |
| 6175 } | 6293 } |
| 6176 ] | 6294 ] |
| OLD | NEW |