| 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..bd0bd0ff0f39b3fea7e830e0a8e5d1d4e040b86e 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.path = {'16': foo}'"
|
| },
|
| "iconIndex": {
|
| "type": "integer",
|
|
|