Chromium Code Reviews| Index: chrome/common/extensions/api/wallpaper_manager_private.json |
| diff --git a/chrome/common/extensions/api/wallpaper_manager_private.json b/chrome/common/extensions/api/wallpaper_manager_private.json |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5699dd3a89ec96c3c38dd6a756e4a8682db7eaf7 |
| --- /dev/null |
| +++ b/chrome/common/extensions/api/wallpaper_manager_private.json |
| @@ -0,0 +1,100 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +[ |
| + { |
| + "namespace":"wallpaperManagerPrivate", |
| + "nodoc": "true", |
| + "functions": [ |
| + { |
| + "name": "getStrings", |
| + "type": "function", |
| + "description": "Gets translated strings.", |
| + "nodoc": "true", |
|
Mihai Parparita -not on Chrome
2012/07/16 23:14:25
Since the root namespace has nodoc, I believe you
bshe
2012/07/18 18:28:56
Done.
|
| + "parameters": [ |
| + { |
| + "type": "function", |
| + "name": "callback", |
| + "parameters": [ |
| + { |
| + "name": "result", |
| + "type": "object", |
| + "additionalProperties": {"type": "string"} |
| + } |
| + ] |
| + } |
| + ] |
| + }, |
| + { |
| + "name": "setWallpaper", |
| + "type": "function", |
| + "description": "Sets wallpaper to the image from url with specified layout", |
| + "nodoc": "true", |
| + "parameters": [ |
| + { |
| + "type": "string", |
| + "name": "url" |
|
Mihai Parparita -not on Chrome
2012/07/16 23:14:25
By making the API taken in a URL, you end up makin
bshe
2012/07/18 18:28:56
Done.
|
| + }, |
| + { |
| + "type": "string", |
| + "name": "layout", |
| + "enum": [ "STRETCH", "CENTER", "CENTER_CROPPED"] |
| + } |
| + ] |
| + } |
| + ], |
| + "events": [ |
| + { |
| + "name": "onDownloadStart", |
| + "type": "function", |
| + "description": "Fired when wallpaper downloading is started.", |
| + "parameters": [] |
| + }, |
| + { |
| + "name": "onDownloadProgress", |
| + "type": "function", |
| + "description": "Fired when wallpaper downloading is in progress.", |
| + "parameters": [ |
| + { |
| + "name": "event", |
| + "type": "object", |
| + "properties": { |
| + "remainingTime": { |
| + "type": "integer", |
| + "description": "The remaining download time in millseconds." |
| + }, |
| + "progress": { |
| + "type": "number", |
| + "description": "The downloading precentage." |
| + } |
| + } |
| + } |
| + ] |
| + }, |
| + { |
| + "name": "onDownloadDone", |
| + "type": "function", |
| + "description": "Fired when wallpaper downloading is finished.", |
| + "parameters": [] |
| + }, |
| + { |
| + "name": "onDownloadError", |
| + "type": "function", |
| + "description": "Fired when wallpaper downloading has an error.", |
| + "parameters": [ |
| + { |
| + "name": "event", |
| + "type": "object", |
| + "properties": { |
| + "errorMessageID": { |
| + "type": "string", |
| + "description": "The error message ID." |
| + } |
| + } |
| + } |
| + ] |
| + } |
| + ] |
| + } |
| +] |