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

Side by Side Diff: chrome/common/extensions/api/experimental.app.json

Issue 9491002: json_schema_compiler: any, additionalProperties, functions on types (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: add any in arrays to util.h Created 8 years, 9 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
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace":"experimental.app", 3 "namespace":"experimental.app",
4 "functions": [ 4 "functions": [
5 { 5 {
6 "name": "notify", 6 "name": "notify",
7 "type": "function", 7 "type": "function",
8 "description": "Creates a notification from this app.", 8 "description": "Creates a notification from this app.",
9 "parameters": [ 9 "parameters": [
10 { 10 {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 "type": "string", 61 "type": "string",
62 "optional": true, 62 "optional": true,
63 "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." 63 "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."
64 } 64 }
65 } 65 }
66 }, 66 },
67 { 67 {
68 "type": "function", 68 "type": "function",
69 "name": "callback", 69 "name": "callback",
70 "optional": true, 70 "optional": true,
71 "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>." 71 "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>.",
72 "parameters": []
72 } 73 }
73 ] 74 ]
74 }, 75 },
75 { 76 {
76 "name": "setLaunchIcon", 77 "name": "setLaunchIcon",
77 "nodoc": true, 78 "nodoc": true,
78 "type": "function", 79 "type": "function",
79 "parameters": [ 80 "parameters": [
80 { 81 {
81 "type": "object", 82 "type": "object",
(...skipping 13 matching lines...) Expand all
95 "isInstanceOf": "ImageData", 96 "isInstanceOf": "ImageData",
96 "optional": true, 97 "optional": true,
97 "properties": {}, 98 "properties": {},
98 "additionalProperties": { "type": "any" }, 99 "additionalProperties": { "type": "any" },
99 "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." 100 "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."
100 }, 101 },
101 { 102 {
102 "type": "function", 103 "type": "function",
103 "name": "callback", 104 "name": "callback",
104 "optional": true, 105 "optional": true,
105 "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>." 106 "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>.",
107 "parameters": []
106 } 108 }
107 ] 109 ]
108 }, 110 },
109 { 111 {
110 "name": "resetLaunchIcon", 112 "name": "resetLaunchIcon",
111 "nodoc": true, 113 "nodoc": true,
112 "type": "function", 114 "type": "function",
113 "description": "Resets the app's launch icon to its default value as spe cified in the manifest.json file.", 115 "description": "Resets the app's launch icon to its default value as spe cified in the manifest.json file.",
114 "parameters": [ 116 "parameters": [
115 { 117 {
116 "type": "object", 118 "type": "object",
117 "name": "details", 119 "name": "details",
118 "optional": true, 120 "optional": true,
119 "properties": { 121 "properties": {
120 "extensionId": { 122 "extensionId": {
121 "type": "string", 123 "type": "string",
122 "optional": true, 124 "optional": true,
123 "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." 125 "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."
124 } 126 }
125 } 127 }
126 }, 128 },
127 { 129 {
128 "type": "function", 130 "type": "function",
129 "name": "callback", 131 "name": "callback",
130 "optional": true, 132 "optional": true,
131 "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>." 133 "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>.",
134 "parameters": []
132 } 135 }
133 ] 136 ]
134 } 137 }
135 ] 138 ]
136 } 139 }
137 ] 140 ]
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/experimental.accessibility.json ('k') | chrome/common/extensions/api/webstorePrivate.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698