Index: chrome/common/extensions/api/experimental_wallpaper_manager.json |
diff --git a/chrome/common/extensions/api/experimental_wallpaper_manager.json b/chrome/common/extensions/api/experimental_wallpaper_manager.json |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1a1d9fa73b906ddaf1cbafe0b29e05123bbc6c87 |
--- /dev/null |
+++ b/chrome/common/extensions/api/experimental_wallpaper_manager.json |
@@ -0,0 +1,79 @@ |
+// 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":"experimental.wallpaperManager", |
+ "nodoc": "true", |
+ "functions": [ |
+ { |
+ "name": "getStrings", |
+ "type": "function", |
+ "description": "Gets translated strings.", |
+ "nodoc": "true", |
+ "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" |
+ }, |
+ { |
+ "type": "string", |
+ "name": "layout" |
flackr
2012/07/12 19:26:12
Add "enum": ["list", "of", "acceptable", "values"]
bshe
2012/07/13 19:28:57
Done.
|
+ } |
+ ] |
+ } |
+ ], |
+ "events": [ |
+ { |
+ "name": "onDownloadProgress", |
+ "type": "function", |
+ "description": "Fired when wallpaper downloading is in progress.", |
+ "parameters": [ |
+ { |
+ "name": "event", |
+ "type": "object", |
+ "description": "A simple event." |
flackr
2012/07/12 19:26:12
This description is somewhat vague, see experiment
|
+ } |
+ ] |
+ }, |
+ { |
+ "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", |
+ "description": "A simple event." |
+ } |
+ ] |
+ } |
+ ] |
+ } |
+] |