Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 [ | 5 [ |
| 6 { | 6 { |
| 7 "namespace":"wallpaperPrivate", | 7 "namespace":"wallpaperPrivate", |
| 8 "nodoc": "true", | 8 "nodoc": "true", |
| 9 "functions": [ | 9 "functions": [ |
| 10 { | 10 { |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 80 "description": "Minimizes all inactive open windows.", | 80 "description": "Minimizes all inactive open windows.", |
| 81 "nodoc": "true", | 81 "nodoc": "true", |
| 82 "parameters": [] | 82 "parameters": [] |
| 83 }, | 83 }, |
| 84 { | 84 { |
| 85 "name": "restoreMinimizedWindows", | 85 "name": "restoreMinimizedWindows", |
| 86 "type": "function", | 86 "type": "function", |
| 87 "description": "Restores all previously minimized windows.", | 87 "description": "Restores all previously minimized windows.", |
| 88 "nodoc": "true", | 88 "nodoc": "true", |
| 89 "parameters": [] | 89 "parameters": [] |
| 90 }, | |
| 91 { | |
| 92 "name": "getThumbnail", | |
| 93 "type": "function", | |
| 94 "description": "Gets thumbnail of wallpaper from thumbnail directory.", | |
| 95 "nodoc": "true", | |
| 96 "parameters": [ | |
| 97 { | |
| 98 "type": "string", | |
| 99 "name": "url", | |
| 100 "description": "Wallpaper url." | |
| 101 }, | |
| 102 { | |
| 103 "type": "function", | |
| 104 "name": "callback", | |
| 105 "description": "Function called upon completion.", | |
| 106 "parameters": [ | |
| 107 { | |
| 108 "type": "object", | |
| 109 "name": "results", | |
| 110 "description": "Results of the method.", | |
| 111 "properties": { | |
| 112 "success": { | |
| 113 "type": "boolean", | |
| 114 "description": "Is the requested thumbnail found and loaded. " | |
| 115 }, | |
| 116 "data": { | |
| 117 "type": "binary", | |
| 118 "optional": true, | |
| 119 "description": "The binary data of loaded thumbnail." | |
| 120 } | |
| 121 } | |
| 122 } | |
| 123 ] | |
| 124 } | |
| 125 ] | |
| 126 }, | |
| 127 { | |
| 128 "name": "saveThumbnail", | |
| 129 "type": "function", | |
| 130 "description": "Saves thumbnail to thumbnail directory.", | |
| 131 "nodoc": "true", | |
| 132 "parameters": [ | |
| 133 { | |
| 134 "type": "binary", | |
| 135 "name": "data", | |
| 136 "description": "The binary data of downloaded thumbnail." | |
| 137 }, | |
| 138 { | |
| 139 "type": "string", | |
| 140 "name": "url", | |
| 141 "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.
| |
| 142 }, | |
| 143 { | |
| 144 "type": "function", | |
| 145 "name": "callback", | |
| 146 "description": "Function called upon completion.", | |
| 147 "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
| |
| 148 "optional": true | |
| 149 } | |
| 150 ] | |
| 90 } | 151 } |
| 91 ] | 152 ] |
| 92 } | 153 } |
| 93 ] | 154 ] |
| OLD | NEW |