Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(616)

Side by Side Diff: chrome/common/extensions/api/extension_api.json

Issue 7187023: Adding an experimental app notification API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixing clang errors Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | chrome/common/extensions/docs/experimental.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace": "extension", 3 "namespace": "extension",
4 "unprivileged": true, 4 "unprivileged": true,
5 "types": [ 5 "types": [
6 { 6 {
7 "id": "MessageSender", 7 "id": "MessageSender",
8 "type": "object", 8 "type": "object",
9 "description": "An object containing information about the script contex t that sent a message or request.", 9 "description": "An object containing information about the script contex t that sent a message or request.",
10 "properties": { 10 "properties": {
(...skipping 6152 matching lines...) Expand 10 before | Expand all | Expand 10 after
6163 "description": "Fired when browser terminates debugging session for the tab.", 6163 "description": "Fired when browser terminates debugging session for the tab.",
6164 "parameters": [ 6164 "parameters": [
6165 { 6165 {
6166 "type": "integer", 6166 "type": "integer",
6167 "name": "tabId", 6167 "name": "tabId",
6168 "description": "The id of the tab that was detached." 6168 "description": "The id of the tab that was detached."
6169 } 6169 }
6170 ] 6170 ]
6171 } 6171 }
6172 ] 6172 ]
6173 },
6174 {
6175 "namespace":"experimental.app",
6176 "functions": [
6177 {
6178 "name": "notify",
6179 "type": "function",
6180 "description": "Creates a notification from this app.",
6181 "parameters": [
6182 {
6183 "type": "object",
6184 "name": "details",
6185 "properties": {
6186 "passive": {
6187 "type": "boolean",
6188 "optional": "true",
6189 "description": "Whether the notification should be passive (true ) or active (false). The default value is true."
6190 },
6191 "title": {
6192 "type": "string",
6193 "optional": true,
6194 "description": "The title of the notification."
6195 },
6196 "bodyText": {
6197 "type": "string",
6198 "optional": true,
6199 "description": "The text content of the notification."
6200 },
6201 "linkUrl": {
6202 "type": "string",
6203 "optional": true,
6204 "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 li nkText."
6205 },
6206 "linkText": {
6207 "type": "string",
6208 "optional": true,
6209 "description": "If a linkUrl is provided, this is required and w ill be used as the linkified text. It should be relatively short."
6210 },
6211 "iconData": {
6212 "type": "object",
6213 "isInstanceOf": "ImageData",
6214 "optional": true,
6215 "properties": {},
6216 "additionalProperties": { "type": "any" },
6217 "description": "Pixel data for an image to use as the icon for t his notification. Must be an ImageData object (for example, from a canvas elemen t)."
6218 }
6219 }
6220 },
6221 {
6222 "type": "function",
6223 "name": "callback",
6224 "optional": true,
6225 "parameters": [],
6226 "description": "A callback when the function is complete. Any errors will be reported in <a href='extension.html#property-lastError'>chrome.extensio n.lastError</a>."
6227 }
6228 ]
6229 },
6230 {
6231 "name": "clearAllNotifications",
6232 "type": "function",
6233 "description": "Clears all previously sent notifications.",
6234 "parameters": [
6235 {
6236 "type": "function",
6237 "name": "callback",
6238 "optional": true,
6239 "description": "A callback when the function is complete. Any errors will be reported in <a href='extension.html#property-lastError'>chrome.extensio n.lastError</a>."
6240 }
6241 ]
6242 },
6243 {
6244 "name": "setLaunchIcon",
6245 "type": "function",
6246 "parameters": [
6247 {
6248 "type": "object",
6249 "name": "iconData",
6250 "isInstanceOf": "ImageData",
6251 "optional": true,
6252 "properties": {},
6253 "additionalProperties": { "type": "any" },
6254 "description": "Pixel data for an image to replace the launch icon o n the New Tab Page. Must be an ImageData object (for example, from a canvas elem ent). See http://code.google.com/chrome/webstore/docs/images.html for more detai ls."
6255 },
6256 {
6257 "type": "function",
6258 "name": "callback",
6259 "optional": true,
6260 "description": "A callback when the function is complete. Any errors will be reported in <a href='extension.html#property-lastError'>chrome.extensio n.lastError</a>."
6261 }
6262 ]
6263 },
6264 {
6265 "name": "resetLaunchIcon",
6266 "type": "function",
6267 "description": "Resets the app's launch icon to its default value as spe cified in the manifest.json file.",
6268 "parameters": [
6269 {
6270 "type": "function",
6271 "name": "callback",
6272 "optional": true,
6273 "description": "A callback when the function is complete. Any errors will be reported in <a href='extension.html#property-lastError'>chrome.extensio n.lastError</a>."
6274 }
6275 ]
6276 }
6277 ]
6173 } 6278 }
6174 ] 6279 ]
OLDNEW
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | chrome/common/extensions/docs/experimental.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698