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 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": { | |
|
Matt Perry
2011/10/07 22:39:52
can you think of a use case for needing the old va
not at google - send to devlin
2011/10/10 01:00:16
I would expect that too. However... I made it thi
Matt Perry
2011/10/10 20:37:15
OK, fair enough.
| |
| 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 7817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 8948 "optional": "true", | 8979 "optional": "true", |
| 8949 "description": "The MHTML data as a Blob." | 8980 "description": "The MHTML data as a Blob." |
| 8950 } | 8981 } |
| 8951 ] | 8982 ] |
| 8952 } | 8983 } |
| 8953 ] | 8984 ] |
| 8954 } | 8985 } |
| 8955 ] | 8986 ] |
| 8956 } | 8987 } |
| 8957 ] | 8988 ] |
| OLD | NEW |