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

Side by Side Diff: remoting/webapp/js_proto/chrome_proto.js

Issue 917093003: Shorten Closure template notation from Array.<*> to Array<*>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove cvox Created 5 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
« no previous file with comments | « remoting/webapp/crd/js/xmpp_connection.js ('k') | remoting/webapp/js_proto/dom_proto.js » ('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 // This file contains various hacks needed to inform JSCompiler of various 5 // This file contains various hacks needed to inform JSCompiler of various
6 // WebKit- and Chrome-specific properties and methods. It is used only with 6 // WebKit- and Chrome-specific properties and methods. It is used only with
7 // JSCompiler to verify the type-correctness of our code. 7 // JSCompiler to verify the type-correctness of our code.
8 8
9 /** @constructor */ 9 /** @constructor */
10 chrome.Event = function() {}; 10 chrome.Event = function() {};
(...skipping 25 matching lines...) Expand all
36 /** 36 /**
37 * @return {AppWindow} 37 * @return {AppWindow}
38 */ 38 */
39 current: function() {}, 39 current: function() {},
40 /** 40 /**
41 * @param {string} id 41 * @param {string} id
42 * @return {AppWindow} 42 * @return {AppWindow}
43 */ 43 */
44 get: function(id) {}, 44 get: function(id) {},
45 /** 45 /**
46 * @return {Array.<AppWindow>} 46 * @return {Array<AppWindow>}
47 */ 47 */
48 getAll: function() {} 48 getAll: function() {}
49 }; 49 };
50 50
51 51
52 /** @type {Object} */ 52 /** @type {Object} */
53 chrome.runtime = { 53 chrome.runtime = {
54 /** @type {Object} */ 54 /** @type {Object} */
55 lastError: { 55 lastError: {
56 /** @type {string} */ 56 /** @type {string} */
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 143
144 /** @type {chrome.Event} */ 144 /** @type {chrome.Event} */
145 chrome.extension.onMessage; 145 chrome.extension.onMessage;
146 146
147 147
148 /** @type {Object} */ 148 /** @type {Object} */
149 chrome.i18n = {}; 149 chrome.i18n = {};
150 150
151 /** 151 /**
152 * @param {string} messageName 152 * @param {string} messageName
153 * @param {(string|Array.<string>)=} opt_args 153 * @param {(string|Array<string>)=} opt_args
154 * @return {string} 154 * @return {string}
155 */ 155 */
156 chrome.i18n.getMessage = function(messageName, opt_args) {}; 156 chrome.i18n.getMessage = function(messageName, opt_args) {};
157 157
158 /** 158 /**
159 * @return {string} 159 * @return {string}
160 */ 160 */
161 chrome.i18n.getUILanguage = function() {}; 161 chrome.i18n.getUILanguage = function() {};
162 162
163 163
164 /** @type {Object} */ 164 /** @type {Object} */
165 chrome.storage = {}; 165 chrome.storage = {};
166 166
167 /** @type {chrome.Storage} */ 167 /** @type {chrome.Storage} */
168 chrome.storage.local; 168 chrome.storage.local;
169 169
170 /** @type {chrome.Storage} */ 170 /** @type {chrome.Storage} */
171 chrome.storage.sync; 171 chrome.storage.sync;
172 172
173 /** @constructor */ 173 /** @constructor */
174 chrome.Storage = function() {}; 174 chrome.Storage = function() {};
175 175
176 /** 176 /**
177 * @param {string|Array.<string>|Object.<string>} items 177 * @param {string|Array<string>|Object<string>} items
178 * @param {function(Object.<string>):void} callback 178 * @param {function(Object<string>):void} callback
179 * @return {void} 179 * @return {void}
180 */ 180 */
181 chrome.Storage.prototype.get = function(items, callback) {}; 181 chrome.Storage.prototype.get = function(items, callback) {};
182 182
183 /** 183 /**
184 * @param {Object.<string>} items 184 * @param {Object<string>} items
185 * @param {function():void=} opt_callback 185 * @param {function():void=} opt_callback
186 * @return {void} 186 * @return {void}
187 */ 187 */
188 chrome.Storage.prototype.set = function(items, opt_callback) {}; 188 chrome.Storage.prototype.set = function(items, opt_callback) {};
189 189
190 /** 190 /**
191 * @param {string|Array.<string>} items 191 * @param {string|Array<string>} items
192 * @param {function():void=} opt_callback 192 * @param {function():void=} opt_callback
193 * @return {void} 193 * @return {void}
194 */ 194 */
195 chrome.Storage.prototype.remove = function(items, opt_callback) {}; 195 chrome.Storage.prototype.remove = function(items, opt_callback) {};
196 196
197 /** 197 /**
198 * @param {function():void=} opt_callback 198 * @param {function():void=} opt_callback
199 * @return {void} 199 * @return {void}
200 */ 200 */
201 chrome.Storage.prototype.clear = function(opt_callback) {}; 201 chrome.Storage.prototype.clear = function(opt_callback) {};
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 OnClickData.prototype.editable; 251 OnClickData.prototype.editable;
252 /** @type {boolean} */ 252 /** @type {boolean} */
253 OnClickData.prototype.wasChecked; 253 OnClickData.prototype.wasChecked;
254 /** @type {boolean} */ 254 /** @type {boolean} */
255 OnClickData.prototype.checked; 255 OnClickData.prototype.checked;
256 256
257 257
258 /** @type {Object} */ 258 /** @type {Object} */
259 chrome.fileSystem = { 259 chrome.fileSystem = {
260 /** 260 /**
261 * @param {Object.<string>?} options 261 * @param {Object<string>?} options
262 * @param {function(Entry, Array.<FileEntry>):void} callback 262 * @param {function(Entry, Array<FileEntry>):void} callback
263 */ 263 */
264 chooseEntry: function(options, callback) {}, 264 chooseEntry: function(options, callback) {},
265 /** 265 /**
266 * @param {Entry} entry 266 * @param {Entry} entry
267 * @param {function(string):void} callback 267 * @param {function(string):void} callback
268 */ 268 */
269 getDisplayPath: function(entry, callback) {} 269 getDisplayPath: function(entry, callback) {}
270 }; 270 };
271 271
272 /** @param {function(FileWriter):void} callback */ 272 /** @param {function(FileWriter):void} callback */
273 Entry.prototype.createWriter = function(callback) {}; 273 Entry.prototype.createWriter = function(callback) {};
274 274
275 /** @type {Object} */ 275 /** @type {Object} */
276 chrome.identity = { 276 chrome.identity = {
277 /** 277 /**
278 * @param {Object.<string>} parameters 278 * @param {Object<string>} parameters
279 * @param {function(string):void} callback 279 * @param {function(string):void} callback
280 */ 280 */
281 getAuthToken: function(parameters, callback) {}, 281 getAuthToken: function(parameters, callback) {},
282 /** 282 /**
283 * @param {Object.<string>} parameters 283 * @param {Object<string>} parameters
284 * @param {function():void} callback 284 * @param {function():void} callback
285 */ 285 */
286 removeCachedAuthToken: function(parameters, callback) {}, 286 removeCachedAuthToken: function(parameters, callback) {},
287 /** 287 /**
288 * @param {Object.<string>} parameters 288 * @param {Object<string>} parameters
289 * @param {function(string):void} callback 289 * @param {function(string):void} callback
290 */ 290 */
291 launchWebAuthFlow: function(parameters, callback) {} 291 launchWebAuthFlow: function(parameters, callback) {}
292 }; 292 };
293 293
294 294
295 /** @type {Object} */ 295 /** @type {Object} */
296 chrome.permissions = { 296 chrome.permissions = {
297 /** 297 /**
298 * @param {Object.<string>} permissions 298 * @param {Object<string>} permissions
299 * @param {function(boolean):void} callback 299 * @param {function(boolean):void} callback
300 */ 300 */
301 contains: function(permissions, callback) {}, 301 contains: function(permissions, callback) {},
302 /** 302 /**
303 * @param {Object.<string>} permissions 303 * @param {Object<string>} permissions
304 * @param {function(boolean):void} callback 304 * @param {function(boolean):void} callback
305 */ 305 */
306 request: function(permissions, callback) {} 306 request: function(permissions, callback) {}
307 }; 307 };
308 308
309 309
310 /** @type {Object} */ 310 /** @type {Object} */
311 chrome.tabs = {}; 311 chrome.tabs = {};
312 312
313 /** @param {function(chrome.Tab):void} callback */ 313 /** @param {function(chrome.Tab):void} callback */
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 AppWindow.prototype.show = function() {}; 401 AppWindow.prototype.show = function() {};
402 /** @return {boolean} */ 402 /** @return {boolean} */
403 AppWindow.prototype.isMinimized = function() {}; 403 AppWindow.prototype.isMinimized = function() {};
404 AppWindow.prototype.fullscreen = function() {}; 404 AppWindow.prototype.fullscreen = function() {};
405 /** @return {boolean} */ 405 /** @return {boolean} */
406 AppWindow.prototype.isFullscreen = function() {}; 406 AppWindow.prototype.isFullscreen = function() {};
407 /** @return {boolean} */ 407 /** @return {boolean} */
408 AppWindow.prototype.isMaximized = function() {}; 408 AppWindow.prototype.isMaximized = function() {};
409 409
410 /** 410 /**
411 * @param {{rects: Array.<ClientRect>}} rects 411 * @param {{rects: Array<ClientRect>}} rects
412 */ 412 */
413 AppWindow.prototype.setShape = function(rects) {}; 413 AppWindow.prototype.setShape = function(rects) {};
414 414
415 /** 415 /**
416 * @param {{rects: Array.<ClientRect>}} rects 416 * @param {{rects: Array<ClientRect>}} rects
417 */ 417 */
418 AppWindow.prototype.setInputRegion = function(rects) {}; 418 AppWindow.prototype.setInputRegion = function(rects) {};
419 419
420 /** @constructor */ 420 /** @constructor */
421 var LaunchData = function() { 421 var LaunchData = function() {
422 /** @type {string} */ 422 /** @type {string} */
423 this.id = ''; 423 this.id = '';
424 /** @type {Array.<{type: string, entry: FileEntry}>} */ 424 /** @type {Array<{type: string, entry: FileEntry}>} */
425 this.items = []; 425 this.items = [];
426 }; 426 };
427 427
428 /** @constructor */ 428 /** @constructor */
429 function Bounds() { 429 function Bounds() {
430 /** @type {number} */ 430 /** @type {number} */
431 this.left = 0; 431 this.left = 0;
432 /** @type {number} */ 432 /** @type {number} */
433 this.top = 0; 433 this.top = 0;
434 /** @type {number} */ 434 /** @type {number} */
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 chrome.cast.media = {}; 477 chrome.cast.media = {};
478 478
479 /** @constructor */ 479 /** @constructor */
480 chrome.cast.media.Media = function() { 480 chrome.cast.media.Media = function() {
481 /** @type {number} */ 481 /** @type {number} */
482 this.mediaSessionId = 0; 482 this.mediaSessionId = 0;
483 }; 483 };
484 484
485 /** @constructor */ 485 /** @constructor */
486 chrome.cast.Session = function() { 486 chrome.cast.Session = function() {
487 /** @type {Array.<chrome.cast.media.Media>} */ 487 /** @type {Array<chrome.cast.media.Media>} */
488 this.media = []; 488 this.media = [];
489 489
490 /** @type {string} */ 490 /** @type {string} */
491 this.sessionId = ''; 491 this.sessionId = '';
492 }; 492 };
493 493
494 /** 494 /**
495 * @param {string} namespace 495 * @param {string} namespace
496 * @param {Object} message 496 * @param {Object} message
497 * @param {function():void} successCallback 497 * @param {function():void} successCallback
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 * @param {number} socketId 704 * @param {number} socketId
705 */ 705 */
706 chrome.socket.destroy = function(socketId) {}; 706 chrome.socket.destroy = function(socketId) {};
707 707
708 /** 708 /**
709 * @param {number} socketId 709 * @param {number} socketId
710 * @param {Object} options 710 * @param {Object} options
711 * @param {function(number):void} callback 711 * @param {function(number):void} callback
712 */ 712 */
713 chrome.socket.secure = function(socketId, options, callback) {}; 713 chrome.socket.secure = function(socketId, options, callback) {};
OLDNEW
« no previous file with comments | « remoting/webapp/crd/js/xmpp_connection.js ('k') | remoting/webapp/js_proto/dom_proto.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698