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

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

Issue 1055673002: [Extensions API] Remove inline enums (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 "description": "Use the <code>chrome.wallpaper</code> API to change the Chro meOS wallpaper.", 11 "description": "Use the <code>chrome.wallpaper</code> API to change the Chro meOS wallpaper.",
12 "types":
13 [
14 {
15 "id": "WallpaperLayout",
16 "type": "string",
17 "enum": [ "STRETCH", "CENTER", "CENTER_CROPPED" ],
18 "description": "The supported wallpaper layouts."
19 }
20 ],
12 "functions": [ 21 "functions": [
13 { 22 {
14 "name": "setWallpaper", 23 "name": "setWallpaper",
15 "type": "function", 24 "type": "function",
16 "description": "Sets wallpaper to the image at <em>url</em> or <em>wallpap erData</em> with the specified <em>layout</em>", 25 "description": "Sets wallpaper to the image at <em>url</em> or <em>wallpap erData</em> with the specified <em>layout</em>",
17 "parameters": [ 26 "parameters": [
18 { 27 {
19 "name": "details", 28 "name": "details",
20 "type": "object", 29 "type": "object",
21 "properties": { 30 "properties": {
22 "data": { 31 "data": {
23 "type": "binary", 32 "type": "binary",
24 "optional": true, 33 "optional": true,
25 "description": "The jpeg or png encoded wallpaper image." 34 "description": "The jpeg or png encoded wallpaper image."
26 }, 35 },
27 "url": { 36 "url": {
28 "type": "string", 37 "type": "string",
29 "optional": true, 38 "optional": true,
30 "description": "The URL of the wallpaper to be set." 39 "description": "The URL of the wallpaper to be set."
31 }, 40 },
32 "layout": { 41 "layout": {
33 "type": "string", 42 "$ref": "WallpaperLayout",
34 "enum": [ "STRETCH", "CENTER", "CENTER_CROPPED" ],
35 "description": "The supported wallpaper layouts." 43 "description": "The supported wallpaper layouts."
36 }, 44 },
37 "filename": { 45 "filename": {
38 "type": "string", 46 "type": "string",
39 "description": "The file name of the saved wallpaper." 47 "description": "The file name of the saved wallpaper."
40 }, 48 },
41 "thumbnail": { 49 "thumbnail": {
42 "type": "boolean", 50 "type": "boolean",
43 "optional": true, 51 "optional": true,
44 "description": "True if a 128x60 thumbnail should be generated." 52 "description": "True if a 128x60 thumbnail should be generated."
(...skipping 11 matching lines...) Expand all
56 "description": "The jpeg encoded wallpaper thumbnail. It is genera ted by resizing the wallpaper to 128x60." 64 "description": "The jpeg encoded wallpaper thumbnail. It is genera ted by resizing the wallpaper to 128x60."
57 } 65 }
58 ] 66 ]
59 } 67 }
60 ] 68 ]
61 } 69 }
62 ] 70 ]
63 } 71 }
64 ] 72 ]
65 73
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698