OLD | NEW |
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", |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 } | 69 } |
70 }, | 70 }, |
71 { | 71 { |
72 "type": "function", | 72 "type": "function", |
73 "name": "callback", | 73 "name": "callback", |
74 "optional": true, | 74 "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>.", | 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>.", |
76 "parameters": [] | 76 "parameters": [] |
77 } | 77 } |
78 ] | 78 ] |
79 }, | |
80 { | |
81 "name": "setLaunchIcon", | |
82 "nodoc": true, | |
83 "type": "function", | |
84 "parameters": [ | |
85 { | |
86 "type": "object", | |
87 "name": "details", | |
88 "optional": true, | |
89 "properties": { | |
90 "extensionId": { | |
91 "type": "string", | |
92 "optional": true, | |
93 "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." | |
94 } | |
95 } | |
96 }, | |
97 { | |
98 "type": "object", | |
99 "name": "iconData", | |
100 "isInstanceOf": "ImageData", | |
101 "optional": true, | |
102 "additionalProperties": { "type": "any" }, | |
103 "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." | |
104 }, | |
105 { | |
106 "type": "function", | |
107 "name": "callback", | |
108 "optional": true, | |
109 "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>.", | |
110 "parameters": [] | |
111 } | |
112 ] | |
113 }, | |
114 { | |
115 "name": "resetLaunchIcon", | |
116 "nodoc": true, | |
117 "type": "function", | |
118 "description": "Resets the app's launch icon to its default value as spe
cified in the manifest.json file.", | |
119 "parameters": [ | |
120 { | |
121 "type": "object", | |
122 "name": "details", | |
123 "optional": true, | |
124 "properties": { | |
125 "extensionId": { | |
126 "type": "string", | |
127 "optional": true, | |
128 "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." | |
129 } | |
130 } | |
131 }, | |
132 { | |
133 "type": "function", | |
134 "name": "callback", | |
135 "optional": true, | |
136 "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>.", | |
137 "parameters": [] | |
138 } | |
139 ] | |
140 } | 79 } |
141 ] | 80 ] |
142 } | 81 } |
143 ] | 82 ] |
OLD | NEW |