Debian Codegraph @

contrib/externs/api/gadgets/google.container.js

raw symbols SCIP
1 /*
2 * Copyright 2010 Google Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 /**
18 * @fileoverview External declarations for common container JS.
19 *
20 * TODO(uix-eng): May want a way to conveniently generate this externs to avoid
21 * manual changes when we merge Shindig.
22 *
23 * @externs
24 */
25
26
27 google.container = {};
28
29 ////////////////////////////////////////////////////////////////////////////////
30 // Externs from container.js
31 ////////////////////////////////////////////////////////////////////////////////
32
33 google.container.ContainerConfig = {};
34
35 google.container.ContainerRender = {};
36
37 /**
38 * @param {Object} config
39 * @constructor
40 */
41 google.container.Container = function(config) {};
42
43 /**
44 * @param {Object=} opt_config
45 */
46 google.container.Container.prototype.onConstructed = function(opt_config) {};
47
48 /**
49 * Create a new gadget site.
50 * @param {Element} gadgetEl
51 * @param {Element=} opt_bufferEl
52 * @return {google.container.GadgetSite}
53 */
54 google.container.Container.prototype.newGadgetSite = function(gadgetEl,
55 opt_bufferEl) {};
56
57 /**
58 * @param {string} id
59 * @return {google.container.GadgetSite}
60 * @nosideeffects
61 */
62 google.container.Container.prototype.getGadgetSite = function(id) {};
63
64 /**
65 * @param {string} id
66 * @return {google.container.GadgetHolder}
67 * @nosideeffects
68 */
69 google.container.Container.prototype.getGadgetHolder = function(id) {};
70
71 /**
72 * @param {google.container.GadgetSite} site
73 * @param {string} gadgetUrl
74 * @param {Object} gadgetParams
75 * @param {Object} renderParams
76 * @param {Function=} opt_callback
77 */
78 google.container.Container.prototype.navigateGadget = function(
79 site, gadgetUrl, gadgetParams, renderParams, opt_callback) {};
80
81 /**
82 * @param {google.container.GadgetSite} site
83 */
84 google.container.Container.prototype.closeGadget = function(site) {};
85
86 /**
87 * @param {Object} request
88 */
89 google.container.Container.prototype.preloadGadgets = function(request) {};
90
91 /**
92 * @param {string} url
93 * @param {function(Object)=} opt_callback
94 */
95 google.container.Container.prototype.getGadgetMetadata = function(url,
96 opt_callback) {};
97
98 ////////////////////////////////////////////////////////////////////////////////
99 // Externs from gadget_site.js
100 ////////////////////////////////////////////////////////////////////////////////
101
102 /**
103 * @param {google.container.Service} service
104 * @param {Element} gadgetEl
105 * @param {Element=} opt_bufferEl
106 * @constructor
107 */
108 google.container.GadgetSite = function(service, gadgetEl, opt_bufferEl) {};
109
110 google.container.GadgetSite.prototype.onConstructed = function() {};
111
112 /**
113 * @param {number} height
114 */
115 google.container.GadgetSite.prototype.setHeight = function(height) {};
116
117 /**
118 * @param {number} width
119 */
120 google.container.GadgetSite.prototype.setWidth = function(width) {};
121
122 /**
123 * @param {number} value
124 */
125 google.container.GadgetSite.prototype.setParentId = function(value) {};
126
127 /**
128 * @return {number}
129 * @nosideeffects
130 */
131 google.container.GadgetSite.prototype.getId = function() {};
132
133 /**
134 * @return {google.container.GadgetHolder}
135 * @nosideeffects
136 */
137 google.container.GadgetSite.prototype.getActiveGadgetHolder = function() {};
138
139 /**
140 * @param {string} name
141 * @param {Object=} opt_gadgetInfo
142 * @return {Object}
143 * @nosideeffects
144 */
145 google.container.GadgetSite.prototype.getFeature = function(name,
146 opt_gadgetInfo) {};
147
148 /**
149 * @param {string} id
150 * @return {google.container.GadgetHolder}
151 * @nosideeffects
152 */
153 google.container.GadgetSite.prototype.getGadgetHolder = function(id) {};
154
155 /**
156 * @return {string}
157 * @nosideeffects
158 */
159 google.container.GadgetSite.prototype.getParentId = function() {};
160
161 /**
162 * @param {string} gadgetUrl
163 * @param {Object} gadgetParams
164 * @param {Object} renderParams
165 * @param {Function=} opt_callback
166 */
167 google.container.GadgetSite.prototype.navigateTo = function(gadgetUrl,
168 gadgetParams, renderParams, opt_callback) {};
169
170 /**
171 * @param {Object} gadgetInfo
172 * @param {Object} gadgetParams
173 * @param {Object} renderParams
174 */
175 google.container.GadgetSite.prototype.render = function(
176 gadgetInfo, gadgetParams, renderParams) {};
177
178 /**
179 * @param {string} serviceName
180 * @param {Function} callback
181 * @param {...number} var_args
182 */
183 google.container.GadgetSite.prototype.rpcCall = function(serviceName, callback,
184 var_args) {};
185
186 google.container.GadgetSite.prototype.close = function() {};
187
188 ////////////////////////////////////////////////////////////////////////////////
189 // Externs from gadget_holder.js
190 ////////////////////////////////////////////////////////////////////////////////
191
192 /**
193 * @param {number} siteId
194 * @param {Element} el
195 * @constructor
196 */
197 google.container.GadgetHolder = function(siteId, el) {};
198
199 google.container.GadgetHolder.prototype.onConstructed = function() {};
200
201 /**
202 * @return {Element}
203 * @nosideeffects
204 */
205 google.container.GadgetHolder.prototype.getElement = function() {};
206
207 /**
208 * @return {string}
209 * @nosideeffects
210 */
211 google.container.GadgetHolder.prototype.getIframeId = function() {};
212
213 /**
214 * @return {Object}
215 * @nosideeffects
216 */
217 google.container.GadgetHolder.prototype.getGadgetInfo = function() {};
218
219 google.container.GadgetHolder.prototype.dispose = function() {};
220
221 /**
222 * @return {string}
223 * @nosideeffects
224 */
225 google.container.GadgetHolder.prototype.getUrl = function() {};
226
227 /**
228 * @return {string}
229 * @nosideeffects
230 */
231 google.container.GadgetHolder.prototype.getView = function() {};
232
233 /**
234 * @return {Element}
235 * @nosideeffects
236 */
237 google.container.GadgetHolder.prototype.getIframeElement = function() {};
238
239 /**
240 * @param {string} value
241 */
242 google.container.GadgetHolder.prototype.setSecurityToken = function(value) {};
243
244 /**
245 * @param {Object} gadgetInfo
246 * @param {Object} gadgetParams
247 * @param {Object} renderParams
248 */
249 google.container.GadgetHolder.prototype.render = function(gadgetInfo,
250 gadgetParams, renderParams) {};
251
252 ////////////////////////////////////////////////////////////////////////////////
253 // Externs from service.js
254 ////////////////////////////////////////////////////////////////////////////////
255
256 google.container.ServiceConfig = {};
257
258 /**
259 * @param {Object=} opt_config
260 * @constructor
261 */
262 google.container.Service = function(opt_config) {};
263
264 /**
265 * @param {Object} request
266 * @param {function(Object)=} opt_callback
267 */
268 google.container.Service.prototype.getGadgetMetadata = function(request,
269 opt_callback) {};
270
271 /**
272 * @param {Object} request
273 * @param {function(Object)=} opt_callback
274 */
275 google.container.Service.prototype.getGadgetToken = function(request,
276 opt_callback) {};
277
278 /**
279 * @param {string} url
280 * @return {Object}
281 */
282 google.container.Service.prototype.getCachedGadgetMetadata = function(url) {};
283
284 /**
285 * @param {string} url
286 * @return {Object}
287 */
288 google.container.Service.prototype.getCachedGadgetToken = function(url) {};