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

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

Issue 10754014: Wallpaper manager backend APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix a crash when try to cancel previous request which had finished. Add more error message. 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/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."
+ }
+ }
+ }
+ ]
+ }
+ ]
+ }
+]

Powered by Google App Engine
This is Rietveld 408576698