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

Unified 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: Latest master 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/api/types.json ('k') | chrome/common/extensions/api/wallpaper_private.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/wallpaper.json
diff --git a/chrome/common/extensions/api/wallpaper.json b/chrome/common/extensions/api/wallpaper.json
index 3b32abdb2eb07715ce96c97a6a677d9967c3d0b7..fef422ad7c30cc2ecdd52f3cdb25e21af9ee1e50 100644
--- a/chrome/common/extensions/api/wallpaper.json
+++ b/chrome/common/extensions/api/wallpaper.json
@@ -9,6 +9,15 @@
"implemented_in": "chrome/browser/chromeos/extensions/wallpaper_api.h"
},
"description": "Use the <code>chrome.wallpaper</code> API to change the ChromeOS wallpaper.",
+ "types":
+ [
+ {
+ "id": "WallpaperLayout",
+ "type": "string",
+ "enum": [ "STRETCH", "CENTER", "CENTER_CROPPED" ],
+ "description": "The supported wallpaper layouts."
+ }
+ ],
"functions": [
{
"name": "setWallpaper",
@@ -30,8 +39,7 @@
"description": "The URL of the wallpaper to be set."
},
"layout": {
- "type": "string",
- "enum": [ "STRETCH", "CENTER", "CENTER_CROPPED" ],
+ "$ref": "WallpaperLayout",
"description": "The supported wallpaper layouts."
},
"filename": {
« no previous file with comments | « chrome/common/extensions/api/types.json ('k') | chrome/common/extensions/api/wallpaper_private.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698