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 987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
998 }, | 998 }, |
999 { | 999 { |
1000 "name": "onStop", | 1000 "name": "onStop", |
1001 "type": "function", | 1001 "type": "function", |
1002 "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)." | 1002 "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)." |
1003 } | 1003 } |
1004 ] | 1004 ] |
1005 }, | 1005 }, |
1006 { | 1006 { |
1007 "namespace": "experimental.settings", | 1007 "namespace": "experimental.settings", |
1008 "types": [], | 1008 "types": [ |
| 1009 { |
| 1010 "id": "SettingChange", |
| 1011 "type": "object", |
| 1012 "properties": { |
| 1013 "key": {"type": "string", "description": "The ID of the setting which
changed."}, |
| 1014 "oldValue": { |
| 1015 "type": "any", |
| 1016 "description": "The old value of the setting, before it changed.", |
| 1017 "optional": true |
| 1018 }, |
| 1019 "newValue": { |
| 1020 "type": "any", |
| 1021 "description": "The new value of the setting.", |
| 1022 "optional": true |
| 1023 } |
| 1024 } |
| 1025 } |
| 1026 ], |
1009 "functions": [ | 1027 "functions": [ |
1010 { | 1028 { |
1011 "name": "get", | 1029 "name": "get", |
1012 "type": "function", | 1030 "type": "function", |
1013 "description": "Gets one or more values from settings.", | 1031 "description": "Gets one or more values from settings.", |
1014 "parameters": [ | 1032 "parameters": [ |
1015 { | 1033 { |
1016 "name": "keys", | 1034 "name": "keys", |
1017 "choices": [ | 1035 "choices": [ |
1018 {"type": "string"}, | 1036 {"type": "string"}, |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1096 { | 1114 { |
1097 "name": "callback", | 1115 "name": "callback", |
1098 "type": "function", | 1116 "type": "function", |
1099 "description": "Callback on success, or on failure (in which case la
stError will be set).", | 1117 "description": "Callback on success, or on failure (in which case la
stError will be set).", |
1100 "parameters": [], | 1118 "parameters": [], |
1101 "optional": true | 1119 "optional": true |
1102 } | 1120 } |
1103 ] | 1121 ] |
1104 } | 1122 } |
1105 ], | 1123 ], |
1106 "events": [] | 1124 "events": [ |
| 1125 { |
| 1126 "name": "onChanged", |
| 1127 "type": "function", |
| 1128 "description": "Fired when one or more settings change.", |
| 1129 "parameters": [ |
| 1130 { |
| 1131 "name": "changes", |
| 1132 "type": "array", |
| 1133 "items": {"$ref": "SettingChange"} |
| 1134 } |
| 1135 ] |
| 1136 } |
| 1137 ] |
1107 }, | 1138 }, |
1108 { | 1139 { |
1109 "namespace": "windows", | 1140 "namespace": "windows", |
1110 "types": [ | 1141 "types": [ |
1111 { | 1142 { |
1112 "id": "Window", | 1143 "id": "Window", |
1113 "type": "object", | 1144 "type": "object", |
1114 "properties": { | 1145 "properties": { |
1115 "id": {"type": "integer", "minimum": 0, "description": "The ID of the
window. Window IDs are unique within a browser session."}, | 1146 "id": {"type": "integer", "minimum": 0, "description": "The ID of the
window. Window IDs are unique within a browser session."}, |
1116 "focused": {"type": "boolean", "description": "Whether the window is c
urrently the focused window."}, | 1147 "focused": {"type": "boolean", "description": "Whether the window is c
urrently the focused window."}, |
(...skipping 7966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9083 "type": "array", | 9114 "type": "array", |
9084 "items": { "$ref": "mimeTypeEnum" } | 9115 "items": { "$ref": "mimeTypeEnum" } |
9085 } | 9116 } |
9086 ] | 9117 ] |
9087 } | 9118 } |
9088 ] | 9119 ] |
9089 } | 9120 } |
9090 ] | 9121 ] |
9091 } | 9122 } |
9092 ] | 9123 ] |
OLD | NEW |