| 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 d507be19a632f916dd739361dde37adda10d8275..50b97f2abe58689b86d0305d474a642eefd37763 100644
|
| --- a/chrome/common/extensions/api/extension_api.json
|
| +++ b/chrome/common/extensions/api/extension_api.json
|
| @@ -6170,5 +6170,110 @@
|
| ]
|
| }
|
| ]
|
| + },
|
| + {
|
| + "namespace":"experimental.app",
|
| + "functions": [
|
| + {
|
| + "name": "notify",
|
| + "type": "function",
|
| + "description": "Creates a notification from this app.",
|
| + "parameters": [
|
| + {
|
| + "type": "object",
|
| + "name": "details",
|
| + "properties": {
|
| + "passive": {
|
| + "type": "boolean",
|
| + "optional": "true",
|
| + "description": "Whether the notification should be passive (true) or active (false). The default value is true."
|
| + },
|
| + "title": {
|
| + "type": "string",
|
| + "optional": true,
|
| + "description": "The title of the notification."
|
| + },
|
| + "bodyText": {
|
| + "type": "string",
|
| + "optional": true,
|
| + "description": "The text content of the notification."
|
| + },
|
| + "linkUrl": {
|
| + "type": "string",
|
| + "optional": true,
|
| + "description": "The URL for an optional link to show along with the notification. If you specify a linkUrl, you must also specify a value for linkText."
|
| + },
|
| + "linkText": {
|
| + "type": "string",
|
| + "optional": true,
|
| + "description": "If a linkUrl is provided, this is required and will be used as the linkified text. It should be relatively short."
|
| + },
|
| + "iconData": {
|
| + "type": "object",
|
| + "isInstanceOf": "ImageData",
|
| + "optional": true,
|
| + "properties": {},
|
| + "additionalProperties": { "type": "any" },
|
| + "description": "Pixel data for an image to use as the icon for this notification. Must be an ImageData object (for example, from a canvas element)."
|
| + }
|
| + }
|
| + },
|
| + {
|
| + "type": "function",
|
| + "name": "callback",
|
| + "optional": true,
|
| + "parameters": [],
|
| + "description": "A callback when the function is complete. Any errors will be reported in <a href='extension.html#property-lastError'>chrome.extension.lastError</a>."
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "name": "clearAllNotifications",
|
| + "type": "function",
|
| + "description": "Clears all previously sent notifications.",
|
| + "parameters": [
|
| + {
|
| + "type": "function",
|
| + "name": "callback",
|
| + "optional": true,
|
| + "description": "A callback when the function is complete. Any errors will be reported in <a href='extension.html#property-lastError'>chrome.extension.lastError</a>."
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "name": "setLaunchIcon",
|
| + "type": "function",
|
| + "parameters": [
|
| + {
|
| + "type": "object",
|
| + "name": "iconData",
|
| + "isInstanceOf": "ImageData",
|
| + "optional": true,
|
| + "properties": {},
|
| + "additionalProperties": { "type": "any" },
|
| + "description": "Pixel data for an image to replace the launch icon on the New Tab Page. Must be an ImageData object (for example, from a canvas element). See http://code.google.com/chrome/webstore/docs/images.html for more details."
|
| + },
|
| + {
|
| + "type": "function",
|
| + "name": "callback",
|
| + "optional": true,
|
| + "description": "A callback when the function is complete. Any errors will be reported in <a href='extension.html#property-lastError'>chrome.extension.lastError</a>."
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "name": "resetLaunchIcon",
|
| + "type": "function",
|
| + "description": "Resets the app's launch icon to its default value as specified in the manifest.json file.",
|
| + "parameters": [
|
| + {
|
| + "type": "function",
|
| + "name": "callback",
|
| + "optional": true,
|
| + "description": "A callback when the function is complete. Any errors will be reported in <a href='extension.html#property-lastError'>chrome.extension.lastError</a>."
|
| + }
|
| + ]
|
| + }
|
| + ]
|
| }
|
| ]
|
|
|