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 819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
830 ] | 830 ] |
831 }, | 831 }, |
832 { | 832 { |
833 "name": "onStop", | 833 "name": "onStop", |
834 "type": "function", | 834 "type": "function", |
835 "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)." | 835 "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)." |
836 } | 836 } |
837 ] | 837 ] |
838 }, | 838 }, |
839 { | 839 { |
| 840 "namespace": "experimental.settings", |
| 841 "types": [], |
| 842 "functions": [ |
| 843 { |
| 844 "name": "get", |
| 845 "type": "function", |
| 846 "description": "Gets one or more values from settings.", |
| 847 "parameters": [ |
| 848 { |
| 849 "name": "keys", |
| 850 "choices": [ |
| 851 {"type": "string"}, |
| 852 {"type": "array", "items": {"type": "string"}, "minItems": 1} |
| 853 ], |
| 854 "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.", |
| 855 "optional": true |
| 856 }, |
| 857 { |
| 858 "name": "callback", |
| 859 "type": "function", |
| 860 "description": "Callback with settings values, or on failure (in whi
ch case lastError will be set).", |
| 861 "parameters": [ |
| 862 { |
| 863 "name": "settings", |
| 864 "type": "object", |
| 865 "properties": {}, |
| 866 "additionalProperties": { "type": "any" }, |
| 867 "description": "Object with given keys set to settings values." |
| 868 } |
| 869 ] |
| 870 } |
| 871 ] |
| 872 }, |
| 873 { |
| 874 "name": "set", |
| 875 "type": "function", |
| 876 "description": "Sets multiple settings values.", |
| 877 "parameters": [ |
| 878 { |
| 879 "name": "settings", |
| 880 "type": "object", |
| 881 "properties": {}, |
| 882 "additionalProperties": { "type": "any" }, |
| 883 "description": "Object to augment settings with. Values that cannot
be serialized (functions, etc) will be ignored." |
| 884 }, |
| 885 { |
| 886 "name": "callback", |
| 887 "type": "function", |
| 888 "description": "Callback with settings values, or on failure (in whi
ch case lastError will be set).", |
| 889 "parameters": [ |
| 890 { |
| 891 "name": "settings", |
| 892 "type": "object", |
| 893 "properties": {}, |
| 894 "additionalProperties": { "type": "any" }, |
| 895 "description": "Object with given keys set to settings values." |
| 896 } |
| 897 ], |
| 898 "optional": true |
| 899 } |
| 900 ] |
| 901 }, |
| 902 { |
| 903 "name": "remove", |
| 904 "type": "function", |
| 905 "description": "Removes one or more values from settings.", |
| 906 "parameters": [ |
| 907 { |
| 908 "name": "keys", |
| 909 "choices": [ |
| 910 {"type": "string"}, |
| 911 {"type": "array", "items": {"type": "string"}, "minItems": 1} |
| 912 ], |
| 913 "description": "A single key or a list of keys to remove from settin
gs." |
| 914 }, |
| 915 { |
| 916 "name": "callback", |
| 917 "type": "function", |
| 918 "description": "Callback with an empty settings object, or on failur
e (in which case lastError will be set).", |
| 919 "parameters": [ |
| 920 { |
| 921 "name": "settings", |
| 922 "type": "object", |
| 923 "properties": {}, |
| 924 "additionalProperties": { "type": "any" }, |
| 925 "description": "An empty object." |
| 926 } |
| 927 ], |
| 928 "optional": true |
| 929 } |
| 930 ] |
| 931 }, |
| 932 { |
| 933 "name": "clear", |
| 934 "type": "function", |
| 935 "description": "Removes all values from settings.", |
| 936 "parameters": [ |
| 937 { |
| 938 "name": "callback", |
| 939 "type": "function", |
| 940 "description": "Callback with an empty settings object, or on failur
e (in which case lastError will be set).", |
| 941 "parameters": [ |
| 942 { |
| 943 "name": "settings", |
| 944 "type": "object", |
| 945 "properties": {}, |
| 946 "additionalProperties": { "type": "any" }, |
| 947 "description": "An empty object." |
| 948 } |
| 949 ], |
| 950 "optional": true |
| 951 } |
| 952 ] |
| 953 } |
| 954 ], |
| 955 "events": [] |
| 956 }, |
| 957 { |
840 "namespace": "windows", | 958 "namespace": "windows", |
841 "types": [ | 959 "types": [ |
842 { | 960 { |
843 "id": "Window", | 961 "id": "Window", |
844 "type": "object", | 962 "type": "object", |
845 "properties": { | 963 "properties": { |
846 "id": {"type": "integer", "minimum": 0, "description": "The ID of the
window. Window IDs are unique within a browser session."}, | 964 "id": {"type": "integer", "minimum": 0, "description": "The ID of the
window. Window IDs are unique within a browser session."}, |
847 "focused": {"type": "boolean", "description": "Whether the window is c
urrently the focused window."}, | 965 "focused": {"type": "boolean", "description": "Whether the window is c
urrently the focused window."}, |
848 "top": {"type": "integer", "description": "The offset of the window fr
om the top edge of the screen in pixels."}, | 966 "top": {"type": "integer", "description": "The offset of the window fr
om the top edge of the screen in pixels."}, |
849 "left": {"type": "integer", "description": "The offset of the window f
rom the left edge of the screen in pixels."}, | 967 "left": {"type": "integer", "description": "The offset of the window f
rom the left edge of the screen in pixels."}, |
(...skipping 6498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7348 "description": "A string result code. The value is non-empty on
success only in tests.", | 7466 "description": "A string result code. The value is non-empty on
success only in tests.", |
7349 "optional": "true" | 7467 "optional": "true" |
7350 } | 7468 } |
7351 ] | 7469 ] |
7352 } | 7470 } |
7353 ] | 7471 ] |
7354 } | 7472 } |
7355 ] | 7473 ] |
7356 } | 7474 } |
7357 ] | 7475 ] |
OLD | NEW |