Chromium Code Reviews| Index: chrome/common/extensions/api/page_action.json |
| diff --git a/chrome/common/extensions/api/page_action.json b/chrome/common/extensions/api/page_action.json |
| index 09c496431c0d53754c3b0e7727c01539d2913b50..3d6d84229e836f63bb0a0992a1b0bbca584c3b45 100644 |
| --- a/chrome/common/extensions/api/page_action.json |
| +++ b/chrome/common/extensions/api/page_action.json |
| @@ -89,28 +89,22 @@ |
| { "$ref": "ImageDataType" }, |
| { |
| "type": "object", |
| - "properties": { |
| - "19": {"$ref": "ImageDataType", "optional": true}, |
| - "38": {"$ref": "ImageDataType", "optional": true} |
| - } |
| + "additionalProperties": { "type": "any" } |
| } |
| ], |
| "optional": true, |
| - "description": "Either an ImageData object or a dictionary {size -> ImageData} representing icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pixel density. If the number of image pixels that fit into one screen space unit equals <code>scale</code>, then image with size <code>scale</code> * 19 will be selected. Initially only scales 1 and 2 will be supported. At least one image must be specified. Note that 'details.imageData = foo' is equivalent to 'details.imageData = {'19': foo}'" |
| + "description": "Either an ImageData object or a dictionary {size -> ImageData} representing icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pixel density. If the number of image pixels that fit into one screen space unit equals <code>scale</code>, then image with size <code>scale</code> * n will be selected, where n is the size of the icon in the UI. At least one image must be specified. Note that 'details.imageData = foo' is equivalent to 'details.imageData = {'16': foo}'" |
| }, |
| "path": { |
| "choices": [ |
| { "type": "string" }, |
| { |
| "type": "object", |
| - "properties": { |
| - "19": {"type": "string", "optional": true}, |
| - "38": {"type": "string", "optional": true} |
| - } |
| + "additionalProperties": { "type": "any" } |
| } |
| ], |
| "optional": true, |
| - "description": "Either a relative image path or a dictionary {size -> relative image path} pointing to icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pixel density. If the number of image pixels that fit into one screen space unit equals <code>scale</code>, then image with size <code>scale</code> * 19 will be selected. Initially only scales 1 and 2 will be supported. At least one image must be specified. Note that 'details.path = foo' is equivalent to 'details.imageData = {'19': foo}'" |
| + "description": "Either a relative image path or a dictionary {size -> relative image path} pointing to icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pixel density. If the number of image pixels that fit into one screen space unit equals <code>scale</code>, then image with size <code>scale</code> * n will be selected, where n is the size of the icon in the UI. At least one image must be specified. Note that 'details.path = foo' is equivalent to 'details.imageData = {'16': foo}'" |
|
varkha
2016/01/21 03:05:49
s/details.imageData/details.path ?
|
| }, |
| "iconIndex": { |
| "type": "integer", |