Chromium Code Reviews| Index: chrome/common/extensions/api/devtools_api.json |
| diff --git a/chrome/common/extensions/api/devtools_api.json b/chrome/common/extensions/api/devtools_api.json |
| index 5d0c1628f62840a0be9dbdf42ded1e544edbfad2..eba5fef0a5feeccf24177041104d9370da34649b 100644 |
| --- a/chrome/common/extensions/api/devtools_api.json |
| +++ b/chrome/common/extensions/api/devtools_api.json |
| @@ -226,6 +226,30 @@ |
| "id": "ExtensionPanel", |
| "type": "object", |
| "description": "Represents a panel created by extension.", |
| + "functions": [ |
| + { |
| + "name": "createStatusBarButton", |
| + "description": "Appends a button to the status bar of the panel.", |
| + "parameters": [ |
| + { |
| + "name": "iconPath", |
| + "type": "string", |
| + "description": "Path to the icon of the button. The file should contain a 64x24 pixels image composed of two 32x24 icons. The left icon is used for inactive state of the button and the right one is displayed while the button is depressed." |
| + }, |
| + { |
| + "name": "tooltipText", |
| + "type": "string", |
| + "description": "Text shown as a tooltip when user hovers the mouse over the button." |
| + }, |
| + { |
| + "name": "disabled", |
| + "type": "boolean", |
| + "description": "Whether the button is disabled." |
| + } |
| + ], |
| + "returns": { "$ref": "Button" } |
| + } |
| + ], |
| "events": [ |
| { |
| "name": "onSearch", |
| @@ -276,7 +300,7 @@ |
| { |
| "name": "height", |
| "type": "string", |
| - "description": "A CSS-like size specification, e.g. '10px' or '12pt'." |
| + "description": "A CSS-like size specification, such as <code>'100px'</code> or <code>'12ex'</code>." |
| } |
| ] |
| }, |
| @@ -295,6 +319,12 @@ |
| "type": "string", |
| "optional": true, |
| "description": "An optional title for the root of the expression tree." |
| + }, |
| + { |
| + "name": "callback", |
| + "type": "function", |
| + "optional": true, |
| + "description": "A callback invoked after the sidebar pane is updated with the the expression evaluation results." |
|
mkearney
2011/11/18 18:56:52
Remove extra 'the'.
|
| } |
| ] |
| }, |
| @@ -313,6 +343,12 @@ |
| "type": "string", |
| "optional": true, |
| "description": "An optional title for the root of the expression tree." |
| + }, |
| + { |
| + "name": "callback", |
| + "type": "function", |
| + "optional": true, |
| + "description": "A callback invoked after the sidebar is updated with the object." |
| } |
| ] |
| }, |
| @@ -349,6 +385,44 @@ |
| "description": "Fired when the sidebar pane becomes hidden as a result of the user switching away from the panel that hosts the sidebar pane." |
| } |
| ] |
| + }, |
| + { |
| + "id": "Button", |
| + "type": "object", |
| + "description": "A button created by the extension.", |
| + "functions": [ |
| + { |
| + "name": "update", |
| + "description": "Updates the attributes of the button. If some of the arguments are omitted or <code>null</code>, the corresponding attributes are not updated.", |
| + "parameters": [ |
| + { |
| + "name": "iconPath", |
| + "type": "string", |
| + "optional": true, |
| + "description": "Path to the new icon of the button." |
| + }, |
| + { |
| + "name": "tooltipText", |
| + "type": "string", |
| + "optional": true, |
| + "description": "Text shown as a tooltip when user hovers the mouse over the button." |
| + }, |
| + { |
| + "name": "disabled", |
| + "type": "boolean", |
| + "optional": true, |
| + "description": "Whether the button is disabled." |
| + } |
| + ] |
| + } |
| + ], |
| + "events": [ |
| + { |
| + "name": "onClicked", |
| + "type": "function", |
| + "description": "Fired when the button is clicked." |
| + } |
| + ] |
| } |
| ], |
| "properties": { |