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

Side by Side Diff: chrome/common/extensions/api/wallpaper_private.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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":"wallpaperPrivate", 7 "namespace":"wallpaperPrivate",
8 "compiler_options": { 8 "compiler_options": {
9 "implemented_in": "chrome/browser/chromeos/extensions/wallpaper_private_ap i.h" 9 "implemented_in": "chrome/browser/chromeos/extensions/wallpaper_private_ap i.h"
10 }, 10 },
11 "description": "none", 11 "description": "none",
12 "types": [ 12 "types": [
13 { 13 {
14 "id": "WallpaperLayout", 14 "id": "WallpaperSource",
15 "type": "string", 15 "type": "string",
16 "enum": [ "STRETCH", "CENTER", "CENTER_CROPPED" ] 16 "enum": [ "ONLINE", "OEM" ]
17 } 17 }
18 ], 18 ],
19 "functions": [ 19 "functions": [
20 { 20 {
21 "name": "getStrings", 21 "name": "getStrings",
22 "type": "function", 22 "type": "function",
23 "description": "Gets translated strings and initialization data.", 23 "description": "Gets translated strings and initialization data.",
24 "nodoc": "true", 24 "nodoc": "true",
25 "parameters": [ 25 "parameters": [
26 { 26 {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 "type": "function", 60 "type": "function",
61 "description": "Sets wallpaper if it exists in the local file system wit h specified layout", 61 "description": "Sets wallpaper if it exists in the local file system wit h specified layout",
62 "nodoc": "true", 62 "nodoc": "true",
63 "parameters": [ 63 "parameters": [
64 { 64 {
65 "type": "string", 65 "type": "string",
66 "name": "url" 66 "name": "url"
67 }, 67 },
68 { 68 {
69 "name": "layout", 69 "name": "layout",
70 "$ref": "WallpaperLayout" 70 "$ref": "wallpaper.WallpaperLayout"
71 }, 71 },
72 { 72 {
73 "type": "function", 73 "type": "function",
74 "name": "callback", 74 "name": "callback",
75 "parameters": [ 75 "parameters": [
76 { 76 {
77 "type": "boolean", 77 "type": "boolean",
78 "name": "exists" 78 "name": "exists"
79 } 79 }
80 ] 80 ]
81 } 81 }
82 ] 82 ]
83 }, 83 },
84 { 84 {
85 "name": "setWallpaper", 85 "name": "setWallpaper",
86 "type": "function", 86 "type": "function",
87 "description": "Sets wallpaper to the image from url with specified layo ut", 87 "description": "Sets wallpaper to the image from url with specified layo ut",
88 "nodoc": "true", 88 "nodoc": "true",
89 "parameters": [ 89 "parameters": [
90 { 90 {
91 "type": "binary", 91 "type": "binary",
92 "name": "wallpaper" 92 "name": "wallpaper"
93 }, 93 },
94 { 94 {
95 "name": "layout", 95 "name": "layout",
96 "$ref": "WallpaperLayout" 96 "$ref": "wallpaper.WallpaperLayout"
97 }, 97 },
98 { 98 {
99 "type": "string", 99 "type": "string",
100 "name": "url" 100 "name": "url"
101 }, 101 },
102 { 102 {
103 "type": "function", 103 "type": "function",
104 "name": "callback", 104 "name": "callback",
105 "parameters": [] 105 "parameters": []
106 } 106 }
(...skipping 11 matching lines...) Expand all
118 "type": "function", 118 "type": "function",
119 "description": "Sets wallpaper to the image from local file with specifi ed layout and returns thumbnail if needed.", 119 "description": "Sets wallpaper to the image from local file with specifi ed layout and returns thumbnail if needed.",
120 "nodoc": "true", 120 "nodoc": "true",
121 "parameters": [ 121 "parameters": [
122 { 122 {
123 "type": "binary", 123 "type": "binary",
124 "name": "wallpaper" 124 "name": "wallpaper"
125 }, 125 },
126 { 126 {
127 "name": "layout", 127 "name": "layout",
128 "$ref": "WallpaperLayout" 128 "$ref": "wallpaper.WallpaperLayout"
129 }, 129 },
130 { 130 {
131 "type": "boolean", 131 "type": "boolean",
132 "name": "generateThumbnail", 132 "name": "generateThumbnail",
133 "description": "If true, callback should have a binary thumbnail." 133 "description": "If true, callback should have a binary thumbnail."
134 }, 134 },
135 { 135 {
136 "type": "string", 136 "type": "string",
137 "name": "fileName" 137 "name": "fileName"
138 }, 138 },
(...skipping 11 matching lines...) Expand all
150 ] 150 ]
151 }, 151 },
152 { 152 {
153 "name": "setCustomWallpaperLayout", 153 "name": "setCustomWallpaperLayout",
154 "type": "function", 154 "type": "function",
155 "description": "Sets current custom wallpaper to the specified layout", 155 "description": "Sets current custom wallpaper to the specified layout",
156 "nodoc": "true", 156 "nodoc": "true",
157 "parameters": [ 157 "parameters": [
158 { 158 {
159 "name": "layout", 159 "name": "layout",
160 "$ref": "WallpaperLayout" 160 "$ref": "wallpaper.WallpaperLayout"
161 }, 161 },
162 { 162 {
163 "type": "function", 163 "type": "function",
164 "name": "callback", 164 "name": "callback",
165 "parameters": [] 165 "parameters": []
166 } 166 }
167 ] 167 ]
168 }, 168 },
169 { 169 {
170 "name": "minimizeInactiveWindows", 170 "name": "minimizeInactiveWindows",
(...skipping 15 matching lines...) Expand all
186 "description": "Gets thumbnail of wallpaper from thumbnail directory.", 186 "description": "Gets thumbnail of wallpaper from thumbnail directory.",
187 "nodoc": "true", 187 "nodoc": "true",
188 "parameters": [ 188 "parameters": [
189 { 189 {
190 "type": "string", 190 "type": "string",
191 "name": "urlOrFile", 191 "name": "urlOrFile",
192 "description": "URL of ONLINE wallpaper or file name of CUSTOM wallp aper" 192 "description": "URL of ONLINE wallpaper or file name of CUSTOM wallp aper"
193 }, 193 },
194 { 194 {
195 "name": "source", 195 "name": "source",
196 "type": "string", 196 "$ref": "WallpaperSource"
197 "enum": [ "ONLINE", "OEM" ]
198 }, 197 },
199 { 198 {
200 "type": "function", 199 "type": "function",
201 "name": "callback", 200 "name": "callback",
202 "description": "Function called upon completion.", 201 "description": "Function called upon completion.",
203 "parameters": [ 202 "parameters": [
204 { 203 {
205 "type": "binary", 204 "type": "binary",
206 "name": "data", 205 "name": "data",
207 "optional": true, 206 "optional": true,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 ], 258 ],
260 "events": [ 259 "events": [
261 { 260 {
262 "name": "onWallpaperChangedBy3rdParty", 261 "name": "onWallpaperChangedBy3rdParty",
263 "type": "function", 262 "type": "function",
264 "description": "This event is sent when the current wallpaper was set by a third party application." 263 "description": "This event is sent when the current wallpaper was set by a third party application."
265 } 264 }
266 ] 265 ]
267 } 266 }
268 ] 267 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698