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

Side by Side Diff: chrome/common/extensions/api/wallpaper.json

Issue 559583002: change chrome.wallpaper.setWallpaper api (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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":"wallpaper", 7 "namespace":"wallpaper",
8 "compiler_options": { 8 "compiler_options": {
9 "implemented_in": "chrome/browser/chromeos/extensions/wallpaper_api.h" 9 "implemented_in": "chrome/browser/chromeos/extensions/wallpaper_api.h"
10 }, 10 },
11 "platforms": ["chromeos"], 11 "platforms": ["chromeos"],
12 "description": "Use the <code>chrome.wallpaper</code> API to change the Chro meOS wallpaper.", 12 "description": "Use the <code>chrome.wallpaper</code> API to change the Chro meOS wallpaper.",
13 "functions": [ 13 "functions": [
14 { 14 {
15 "name": "setWallpaper", 15 "name": "setWallpaper",
16 "type": "function", 16 "type": "function",
17 "description": "Sets wallpaper to the image at <em>url</em> or <em>wallpap erData</em> with the specified <em>layout</em>", 17 "description": "Sets wallpaper to the image at <em>url</em> or <em>wallpap erData</em> with the specified <em>layout</em>",
18 "parameters": [ 18 "parameters": [
19 { 19 {
20 "name": "details", 20 "name": "details",
21 "type": "object", 21 "type": "object",
22 "properties": { 22 "properties": {
23 "wallpaperData": { 23 "data": {
24 "type": "binary", 24 "type": "binary",
25 "optional": true, 25 "optional": true,
26 "description": "The jpeg or png encoded wallpaper image." 26 "description": "The jpeg or png encoded wallpaper image."
27 }, 27 },
28 "url": { 28 "url": {
29 "type": "string", 29 "type": "string",
30 "optional": true, 30 "optional": true,
31 "description": "The URL of the wallpaper to be set." 31 "description": "The URL of the wallpaper to be set."
32 }, 32 },
33 "layout": { 33 "layout": {
34 "type": "string", 34 "type": "string",
35 "enum": [ "STRETCH", "CENTER", "CENTER_CROPPED" ], 35 "enum": [ "STRETCH", "CENTER", "CENTER_CROPPED" ],
36 "description": "The supported wallpaper layouts." 36 "description": "The supported wallpaper layouts."
37 }, 37 },
38 "name": { 38 "filename": {
39 "type": "string", 39 "type": "string",
40 "description": "The file name of the saved wallpaper." 40 "description": "The file name of the saved wallpaper."
41 }, 41 },
42 "thumbnail": { 42 "thumbnail": {
43 "type": "boolean", 43 "type": "boolean",
44 "optional": true, 44 "optional": true,
45 "description": "True if a 128x60 thumbnail should be generated." 45 "description": "True if a 128x60 thumbnail should be generated."
46 } 46 }
47 } 47 }
48 }, 48 },
49 { 49 {
50 "type": "function", 50 "type": "function",
51 "name": "callback", 51 "name": "callback",
52 "parameters": [ 52 "parameters": [
53 { 53 {
54 "type": "binary", 54 "type": "binary",
55 "optional": true, 55 "optional": true,
56 "name": "thumbnail", 56 "name": "thumbnail",
57 "description": "The jpeg encoded wallpaper thumbnail. It is genera ted by resizing the wallpaper to 128x60." 57 "description": "The jpeg encoded wallpaper thumbnail. It is genera ted by resizing the wallpaper to 128x60."
58 } 58 }
59 ] 59 ]
60 } 60 }
61 ] 61 ]
62 } 62 }
63 ] 63 ]
64 } 64 }
65 ] 65 ]
66 66
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/extensions/wallpaper_api.cc ('k') | chrome/common/extensions/docs/templates/intros/wallpaper.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698