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 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1012 }, | 1012 }, |
1013 { | 1013 { |
1014 "name": "onStop", | 1014 "name": "onStop", |
1015 "type": "function", | 1015 "type": "function", |
1016 "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)." | 1016 "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)." |
1017 } | 1017 } |
1018 ] | 1018 ] |
1019 }, | 1019 }, |
1020 { | 1020 { |
1021 "namespace": "experimental.settings", | 1021 "namespace": "experimental.settings", |
1022 "types": [], | 1022 "types": [ |
| 1023 { |
| 1024 "id": "SettingChange", |
| 1025 "type": "object", |
| 1026 "properties": { |
| 1027 "key": {"type": "string", "description": "The ID of the setting which
changed."}, |
| 1028 "oldValue": { |
| 1029 "type": "any", |
| 1030 "description": "The old value of the setting, before it changed.", |
| 1031 "optional": true |
| 1032 }, |
| 1033 "newValue": { |
| 1034 "type": "any", |
| 1035 "description": "The new value of the setting.", |
| 1036 "optional": true |
| 1037 } |
| 1038 } |
| 1039 } |
| 1040 ], |
1023 "functions": [ | 1041 "functions": [ |
1024 { | 1042 { |
1025 "name": "get", | 1043 "name": "get", |
1026 "type": "function", | 1044 "type": "function", |
1027 "description": "Gets one or more values from settings.", | 1045 "description": "Gets one or more values from settings.", |
1028 "parameters": [ | 1046 "parameters": [ |
1029 { | 1047 { |
1030 "name": "keys", | 1048 "name": "keys", |
1031 "choices": [ | 1049 "choices": [ |
1032 {"type": "string"}, | 1050 {"type": "string"}, |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1110 { | 1128 { |
1111 "name": "callback", | 1129 "name": "callback", |
1112 "type": "function", | 1130 "type": "function", |
1113 "description": "Callback on success, or on failure (in which case la
stError will be set).", | 1131 "description": "Callback on success, or on failure (in which case la
stError will be set).", |
1114 "parameters": [], | 1132 "parameters": [], |
1115 "optional": true | 1133 "optional": true |
1116 } | 1134 } |
1117 ] | 1135 ] |
1118 } | 1136 } |
1119 ], | 1137 ], |
1120 "events": [] | 1138 "events": [ |
| 1139 { |
| 1140 "name": "onChanged", |
| 1141 "type": "function", |
| 1142 "description": "Fired when one or more settings change.", |
| 1143 "parameters": [ |
| 1144 { |
| 1145 "name": "changes", |
| 1146 "type": "array", |
| 1147 "items": {"$ref": "SettingChange"} |
| 1148 } |
| 1149 ] |
| 1150 } |
| 1151 ] |
1121 }, | 1152 }, |
1122 { | 1153 { |
1123 "namespace": "windows", | 1154 "namespace": "windows", |
1124 "types": [ | 1155 "types": [ |
1125 { | 1156 { |
1126 "id": "Window", | 1157 "id": "Window", |
1127 "type": "object", | 1158 "type": "object", |
1128 "properties": { | 1159 "properties": { |
1129 "id": {"type": "integer", "minimum": 0, "description": "The ID of the
window. Window IDs are unique within a browser session."}, | 1160 "id": {"type": "integer", "minimum": 0, "description": "The ID of the
window. Window IDs are unique within a browser session."}, |
1130 "focused": {"type": "boolean", "description": "Whether the window is c
urrently the focused window."}, | 1161 "focused": {"type": "boolean", "description": "Whether the window is c
urrently the focused window."}, |
(...skipping 7831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8962 "optional": "true", | 8993 "optional": "true", |
8963 "description": "The MHTML data as a Blob." | 8994 "description": "The MHTML data as a Blob." |
8964 } | 8995 } |
8965 ] | 8996 ] |
8966 } | 8997 } |
8967 ] | 8998 ] |
8968 } | 8999 } |
8969 ] | 9000 ] |
8970 } | 9001 } |
8971 ] | 9002 ] |
OLD | NEW |