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

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

Issue 9317072: Allow omitting optional parameters for Extensions API functions (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Don't need this custom binding anymore. Created 8 years, 10 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 } 72 }
73 ] 73 ]
74 },
75 {
76 "name": "setLaunchIcon",
77 "nodoc": true,
78 "type": "function",
79 "parameters": [
80 {
81 "type": "object",
82 "name": "details",
83 "optional": true,
84 "properties": {
85 "extensionId": {
86 "type": "string",
87 "optional": true,
88 "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."
89 }
90 }
91 },
92 {
93 "type": "object",
94 "name": "iconData",
95 "isInstanceOf": "ImageData",
96 "optional": true,
97 "properties": {},
98 "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 },
101 {
102 "type": "function",
103 "name": "callback",
104 "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 }
107 ]
108 },
109 {
110 "name": "resetLaunchIcon",
111 "nodoc": true,
112 "type": "function",
113 "description": "Resets the app's launch icon to its default value as spe cified in the manifest.json file.",
114 "parameters": [
115 {
116 "type": "object",
117 "name": "details",
118 "optional": true,
119 "properties": {
120 "extensionId": {
121 "type": "string",
122 "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."
124 }
125 }
126 },
127 {
128 "type": "function",
129 "name": "callback",
130 "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>."
132 }
133 ]
134 } 74 }
135 ] 75 ]
136 } 76 }
137 ] 77 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698