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

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

Issue 10810074: Updates to documentation for experimental.apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 4 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 | « no previous file | chrome/common/extensions/docs/apps/experimental.app.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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 [ 5 [
6 { 6 {
7 "namespace":"experimental.app", 7 "namespace":"experimental.app",
8 "functions": [ 8 "functions": [
9 { 9 {
10 "name": "notify", 10 "name": "notify",
11 "type": "function", 11 "type": "function",
12 "description": "Creates a notification from this app.", 12 "description": "Creates a notification from this app.",
13 "nodoc": true,
13 "parameters": [ 14 "parameters": [
14 { 15 {
15 "type": "object", 16 "type": "object",
16 "name": "details", 17 "name": "details",
17 "properties": { 18 "properties": {
18 "extensionId": { 19 "extensionId": {
19 "type": "string", 20 "type": "string",
20 "optional": true, 21 "optional": true,
21 "description": "An optional id to do notifications for an app ot her than the calling app. This is just to allow prototyping with an extension th at sends notifications on behalf of apps that don't support notifications yet; t his will be removed before the API becomes stable." 22 "description": "An optional id to do notifications for an app ot her than the calling app. This is just to allow prototyping with an extension th at sends notifications on behalf of apps that don't support notifications yet; t his will be removed before the API becomes stable."
22 }, 23 },
(...skipping 25 matching lines...) Expand all
48 "optional": true, 49 "optional": true,
49 "parameters": [], 50 "parameters": [],
50 "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>." 51 "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>."
51 } 52 }
52 ] 53 ]
53 }, 54 },
54 { 55 {
55 "name": "clearAllNotifications", 56 "name": "clearAllNotifications",
56 "type": "function", 57 "type": "function",
57 "description": "Clears all previously sent notifications.", 58 "description": "Clears all previously sent notifications.",
59 "nodoc": true,
58 "parameters": [ 60 "parameters": [
59 { 61 {
60 "type": "object", 62 "type": "object",
61 "name": "details", 63 "name": "details",
62 "optional": true, 64 "optional": true,
63 "properties": { 65 "properties": {
64 "extensionId": { 66 "extensionId": {
65 "type": "string", 67 "type": "string",
66 "optional": true, 68 "optional": true,
67 "description": "An optional id to do notifications for an app ot her than the calling app. This is just to allow prototyping with an extension th at sends notifications on behalf of apps that don't support notifications yet; t his will be removed before the API becomes stable." 69 "description": "An optional id to do notifications for an app ot her than the calling app. This is just to allow prototyping with an extension th at sends notifications on behalf of apps that don't support notifications yet; t his will be removed before the API becomes stable."
68 } 70 }
69 } 71 }
70 }, 72 },
71 { 73 {
72 "type": "function", 74 "type": "function",
73 "name": "callback", 75 "name": "callback",
74 "optional": true, 76 "optional": true,
75 "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>.", 77 "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>.",
76 "parameters": [] 78 "parameters": []
77 } 79 }
78 ] 80 ]
79 } 81 }
80 ], 82 ],
81 "events": [ 83 "events": [
82 { 84 {
83 "nodoc": true,
84 "name": "onLaunched", 85 "name": "onLaunched",
85 "type": "function", 86 "type": "function",
86 "description": "Fired when the app is launched.", 87 "description": "Fired when the app is launched.",
87 "parameters": [ 88 "parameters": [
88 { 89 {
89 "type": "object", 90 "type": "object",
90 "name": "launchData", 91 "name": "launchData",
91 "description": "Optional data for the launch.", 92 "description": "Optional data for the launch.",
92 "optional": true, 93 "optional": true,
93 "properties": { 94 "properties": {
(...skipping 23 matching lines...) Expand all
117 } 118 }
118 } 119 }
119 } 120 }
120 } 121 }
121 } 122 }
122 ] 123 ]
123 } 124 }
124 ] 125 ]
125 } 126 }
126 ] 127 ]
OLDNEW
« no previous file with comments | « no previous file | chrome/common/extensions/docs/apps/experimental.app.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698