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 6154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6165 "description": "Fired when browser terminates debugging session for the tab.", | 6165 "description": "Fired when browser terminates debugging session for the tab.", |
| 6166 "parameters": [ | 6166 "parameters": [ |
| 6167 { | 6167 { |
| 6168 "type": "integer", | 6168 "type": "integer", |
| 6169 "name": "tabId", | 6169 "name": "tabId", |
| 6170 "description": "The id of the tab that was detached." | 6170 "description": "The id of the tab that was detached." |
| 6171 } | 6171 } |
| 6172 ] | 6172 ] |
| 6173 } | 6173 } |
| 6174 ] | 6174 ] |
| 6175 }, | |
| 6176 { | |
| 6177 "namespace":"experimental.app", | |
| 6178 "functions": [ | |
| 6179 { | |
| 6180 "name": "notify", | |
| 6181 "type": "function", | |
| 6182 "description": "Creates a notification from this app.", | |
| 6183 "parameters": [ | |
| 6184 { | |
| 6185 "type": "object", | |
| 6186 "name": "details", | |
| 6187 "properties": { | |
| 6188 "passive": { | |
| 6189 "type": "boolean", | |
| 6190 "optional": "true", | |
| 6191 "description": "Whether the notification should be passive (true ) or active (false). The default value is true." | |
| 6192 }, | |
| 6193 "title": { | |
| 6194 "type": "string", | |
| 6195 "optional": true, | |
| 6196 "description": "The title of the notification. The first several characters of this will appear underneath the icon on the new tab page." | |
|
Finnur
2011/06/20 12:21:46
nit: Try to phrase it without design details such
asargent_no_longer_on_chrome
2011/06/21 18:10:11
Done.
| |
| 6197 }, | |
| 6198 "bodyText": { | |
| 6199 "type": "string", | |
| 6200 "optional": true, | |
| 6201 "description": "The text content of the notification." | |
| 6202 }, | |
| 6203 "linkUrl": { | |
| 6204 "type": "string", | |
| 6205 "optional": true, | |
| 6206 "description": "The URL for an optional link to show at the bott om of the notification. See also linkText." | |
|
Finnur
2011/06/20 12:21:46
nit: same here.
asargent_no_longer_on_chrome
2011/06/21 18:10:11
Done.
| |
| 6207 }, | |
| 6208 "linkText": { | |
| 6209 "type": "string", | |
| 6210 "optional": true, | |
| 6211 "description": "If a linkURL is provided, this will be used as t he linkified text. It should be very short, and will be displayed truncated if t oo long (details TBD)." | |
|
Finnur
2011/06/20 12:21:46
"details TBD"? What details?
Finnur
2011/06/20 12:21:46
nit: URL is not uppercase above (linkUrl).
asargent_no_longer_on_chrome
2011/06/21 18:10:11
Done.
asargent_no_longer_on_chrome
2011/06/21 18:10:11
I just removed this for now. Eventually when we se
| |
| 6212 }, | |
| 6213 "iconData": { | |
| 6214 "type": "object", | |
| 6215 "isInstanceOf": "ImageData", | |
| 6216 "optional": true, | |
| 6217 "properties": {}, | |
| 6218 "additionalProperties": { "type": "any" }, | |
| 6219 "description": "Pixel data for an image to use as the icon for t his notification. Must be an ImageData object (for example, from a canvas elemen t)." | |
| 6220 } | |
| 6221 } | |
| 6222 }, | |
| 6223 { | |
| 6224 "type": "function", | |
| 6225 "name": "callback", | |
| 6226 "optional": true, | |
| 6227 "parameters": [], | |
| 6228 "description": "A callback when the function is complete. Any errors will be reported in <a href='extension.html#property-lastError'>chrome.extensio n.lastError</a>." | |
| 6229 } | |
| 6230 ] | |
| 6231 }, | |
| 6232 { | |
| 6233 "name": "clearAllNotifications", | |
|
Finnur
2011/06/20 12:21:46
This function got me thinking... We have passive a
asargent_no_longer_on_chrome
2011/06/21 18:10:11
Interesting. Perhaps we'd want to add a "clearOthe
Finnur
2011/06/22 10:40:23
Well, that's kind of the inverse of what I was tal
asargent_no_longer_on_chrome
2011/06/22 17:36:36
Ok, I'll keep thinking about this but not make any
| |
| 6234 "type": "function", | |
| 6235 "description": "Clears all previously sent notifications.", | |
| 6236 "parameters": [ | |
| 6237 { | |
| 6238 "type": "function", | |
| 6239 "name": "callback", | |
| 6240 "optional": true, | |
| 6241 "description": "A callback when the function is complete. Any errors will be reported in <a href='extension.html#property-lastError'>chrome.extensio n.lastError</a>." | |
| 6242 } | |
| 6243 ] | |
| 6244 }, | |
| 6245 { | |
| 6246 "name": "setLaunchIcon", | |
| 6247 "type": "function", | |
| 6248 "parameters": [ | |
| 6249 { | |
| 6250 "type": "object", | |
| 6251 "name": "iconData", | |
| 6252 "isInstanceOf": "ImageData", | |
| 6253 "optional": true, | |
| 6254 "properties": {}, | |
| 6255 "additionalProperties": { "type": "any" }, | |
| 6256 "description": "Pixel data for an image to replace the launch icon o n the New Tab Page. Must be an ImageData object (for example, from a canvas elem ent). See http://code.google.com/chrome/webstore/docs/images.html for more detai ls." | |
| 6257 }, | |
| 6258 { | |
| 6259 "type": "function", | |
| 6260 "name": "callback", | |
| 6261 "optional": true, | |
| 6262 "description": "A callback when the function is complete. Any errors will be reported in <a href='extension.html#property-lastError'>chrome.extensio n.lastError</a>." | |
| 6263 } | |
| 6264 ] | |
| 6265 }, | |
| 6266 { | |
| 6267 "name": "resetLaunchIcon", | |
| 6268 "type": "function", | |
| 6269 "description": "Resets the app's launch icon to its default value as spe cified in the manifest.json file.", | |
| 6270 "parameters": [ | |
| 6271 { | |
| 6272 "type": "function", | |
| 6273 "name": "callback", | |
| 6274 "optional": true, | |
| 6275 "description": "A callback when the function is complete. Any errors will be reported in <a href='extension.html#property-lastError'>chrome.extensio n.lastError</a>." | |
| 6276 } | |
| 6277 ] | |
| 6278 } | |
| 6279 ] | |
| 6175 } | 6280 } |
| 6176 ] | 6281 ] |
| OLD | NEW |