Chromium Code Reviews| Index: chrome/common/extensions/api/extension_api.json |
| diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json |
| index adb49126138d2bb806fab483b056a8825b159463..e3f9822034cc1824ed14db47f90ed3aa33dcb1a6 100644 |
| --- a/chrome/common/extensions/api/extension_api.json |
| +++ b/chrome/common/extensions/api/extension_api.json |
| @@ -382,6 +382,15 @@ |
| "selectionStart": {"type": "integer", "description": "The index of the character where the selection starts, if this control contains editable text."}, |
| "selectionEnd": {"type": "integer", "description": "The index of the character where the selection ends, if this control contains editable text."} |
| } |
| + }, |
| + { |
| + "id": "AccessibilityVolumeInfo", |
| + "type": "object", |
| + "description": "Information about the volume.", |
| + "properties": { |
| + "volume": {"type": "double", "description": "The value of the volume percent."}, |
|
Zachary Kuznia
2011/08/30 01:58:05
nit: Add a maximum and minimum to volume.
yoshiki
2011/08/30 06:43:30
Done.
|
| + "isVolumeMuted": {"type": "boolean", "description": "True if the volume is muted."}, |
| + } |
| } |
| ], |
| "functions": [ |
| @@ -503,6 +512,18 @@ |
| "description": "Information about the menu that was closed." |
| } |
| ] |
| + }, |
| + { |
| + "name": "onVolumeChanged", |
| + "type": "function", |
| + "description": "Fired when the volume is changed.", |
| + "parameters": [ |
| + { |
| + "$ref": "AccessibilityVolumeInfo", |
| + "name": "volume", |
| + "description": "Information about the current volume level and the volume being muted." |
| + } |
| + ] |
| } |
| ] |
| }, |