Chromium Code Reviews| Index: chrome/common/extensions/api/browser_action.json |
| diff --git a/chrome/common/extensions/api/browser_action.json b/chrome/common/extensions/api/browser_action.json |
| index d7ff7438db65c837a8fc27d44dfc6c952cfe23c0..31b3ecbf95fd4cd5c5242aa7218dab5c7a9d5c3a 100644 |
| --- a/chrome/common/extensions/api/browser_action.json |
| +++ b/chrome/common/extensions/api/browser_action.json |
| @@ -91,28 +91,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
Is this a copy and paste typo? s/details.imageData
Evan Stade
2016/01/21 19:38:54
Done.
|
| }, |
| "tabId": { |
| "type": "integer", |