Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4045)

Unified Diff: chrome/common/extensions/api/experimental_wallpaper_manager.json

Issue 10754014: Wallpaper manager backend APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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."
+ }
+ ]
+ }
+ ]
+ }
+]

Powered by Google App Engine
This is Rietveld 408576698