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": { |