Index: chrome/common/extensions/api/wallpaper_private.json |
diff --git a/chrome/common/extensions/api/wallpaper_private.json b/chrome/common/extensions/api/wallpaper_private.json |
index ebdf1a326e4e694d733b0272d6d7d9e67c10d946..24afab953144199367d14b26c755363b3724cb46 100644 |
--- a/chrome/common/extensions/api/wallpaper_private.json |
+++ b/chrome/common/extensions/api/wallpaper_private.json |
@@ -87,6 +87,67 @@ |
"description": "Restores all previously minimized windows.", |
"nodoc": "true", |
"parameters": [] |
+ }, |
+ { |
+ "name": "getThumbnail", |
+ "type": "function", |
+ "description": "Gets thumbnail of wallpaper from thumbnail directory.", |
+ "nodoc": "true", |
+ "parameters": [ |
+ { |
+ "type": "string", |
+ "name": "url", |
+ "description": "Wallpaper url." |
+ }, |
+ { |
+ "type": "function", |
+ "name": "callback", |
+ "description": "Function called upon completion.", |
+ "parameters": [ |
+ { |
+ "type": "object", |
+ "name": "results", |
+ "description": "Results of the method.", |
+ "properties": { |
+ "success": { |
+ "type": "boolean", |
+ "description": "Is the requested thumbnail found and loaded." |
+ }, |
+ "data": { |
+ "type": "binary", |
+ "optional": true, |
+ "description": "The binary data of loaded thumbnail." |
+ } |
+ } |
+ } |
+ ] |
+ } |
+ ] |
+ }, |
+ { |
+ "name": "saveThumbnail", |
+ "type": "function", |
+ "description": "Saves thumbnail to thumbnail directory.", |
+ "nodoc": "true", |
+ "parameters": [ |
+ { |
+ "type": "binary", |
+ "name": "data", |
+ "description": "The binary data of downloaded thumbnail." |
+ }, |
+ { |
+ "type": "string", |
+ "name": "url", |
+ "description": "Wallpaper url." |
flackr
2012/11/27 22:04:36
Just out of convention I think the url "key" shoul
bshe
2012/11/28 18:54:26
Done.
|
+ }, |
+ { |
+ "type": "function", |
+ "name": "callback", |
+ "description": "Function called upon completion.", |
+ "parameters": [], |
flackr
2012/11/27 22:04:36
Saving the thumbnail can also fail, you may want t
bshe
2012/11/28 18:54:26
I believe the convention for extension function is
flackr
2012/12/03 19:02:30
But this is an asynchronous call, you wouldn't kno
bshe
2012/12/03 19:39:32
Maybe I understand you wrong. But you should be ab
flackr
2012/12/03 20:03:46
Ah, I follow. So in theory the success parameter i
bshe
2012/12/03 22:18:01
Right. Sorry for confusion. For the case thumbnail
|
+ "optional": true |
+ } |
+ ] |
} |
] |
} |