Chromium Code Reviews| 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 // 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 /** @type {Object} */ | 9 /** @type {Object} */ |
| 10 var chrome = {}; | 10 var chrome = {}; |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 357 /** @type {chrome.Event} */ | 357 /** @type {chrome.Event} */ |
| 358 this.onClosed = null; | 358 this.onClosed = null; |
| 359 /** @type {chrome.Event} */ | 359 /** @type {chrome.Event} */ |
| 360 this.onRestored = null; | 360 this.onRestored = null; |
| 361 /** @type {chrome.Event} */ | 361 /** @type {chrome.Event} */ |
| 362 this.onMaximized = null; | 362 this.onMaximized = null; |
| 363 /** @type {chrome.Event} */ | 363 /** @type {chrome.Event} */ |
| 364 this.onFullscreened = null; | 364 this.onFullscreened = null; |
| 365 /** @type {string} */ | 365 /** @type {string} */ |
| 366 this.id = ''; | 366 this.id = ''; |
| 367 /** @type {Bounds} */ | |
| 368 this.outerBounds = null; | |
| 369 /** @type {Bounds} */ | |
| 370 this.innerBounds = null; | |
|
Jamie
2014/10/24 22:33:33
Didn't this just land in another CL?
garykac
2014/10/27 16:25:24
...? You must be thinking of another repo...
| |
| 367 }; | 371 }; |
| 368 | 372 |
| 369 AppWindow.prototype.close = function() {}; | 373 AppWindow.prototype.close = function() {}; |
| 370 AppWindow.prototype.drawAttention = function() {}; | 374 AppWindow.prototype.drawAttention = function() {}; |
| 371 AppWindow.prototype.focus = function() {}; | 375 AppWindow.prototype.focus = function() {}; |
| 372 AppWindow.prototype.maximize = function() {}; | 376 AppWindow.prototype.maximize = function() {}; |
| 373 AppWindow.prototype.minimize = function() {}; | 377 AppWindow.prototype.minimize = function() {}; |
| 374 AppWindow.prototype.restore = function() {}; | 378 AppWindow.prototype.restore = function() {}; |
| 375 AppWindow.prototype.show = function() {}; | 379 AppWindow.prototype.show = function() {}; |
| 376 /** @return {boolean} */ | 380 /** @return {boolean} */ |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 393 | 397 |
| 394 /** @constructor */ | 398 /** @constructor */ |
| 395 var LaunchData = function() { | 399 var LaunchData = function() { |
| 396 /** @type {string} */ | 400 /** @type {string} */ |
| 397 this.id = ''; | 401 this.id = ''; |
| 398 /** @type {Array.<{type: string, entry: FileEntry}>} */ | 402 /** @type {Array.<{type: string, entry: FileEntry}>} */ |
| 399 this.items = []; | 403 this.items = []; |
| 400 }; | 404 }; |
| 401 | 405 |
| 402 /** @constructor */ | 406 /** @constructor */ |
| 407 function Bounds() { | |
| 408 /** @type {number} */ | |
| 409 this.left = 0; | |
| 410 /** @type {number} */ | |
| 411 this.top = 0; | |
| 412 /** @type {number} */ | |
| 413 this.width = 0; | |
| 414 /** @type {number} */ | |
| 415 this.height = 0; | |
| 416 }; | |
| 417 | |
| 418 /** @constructor */ | |
| 403 function ClientRect() { | 419 function ClientRect() { |
| 404 /** @type {number} */ | 420 /** @type {number} */ |
| 405 this.width = 0; | 421 this.width = 0; |
| 406 /** @type {number} */ | 422 /** @type {number} */ |
| 407 this.height = 0; | 423 this.height = 0; |
| 408 /** @type {number} */ | 424 /** @type {number} */ |
| 409 this.top = 0; | 425 this.top = 0; |
| 410 /** @type {number} */ | 426 /** @type {number} */ |
| 411 this.bottom = 0; | 427 this.bottom = 0; |
| 412 /** @type {number} */ | 428 /** @type {number} */ |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 682 * @param {number} socketId | 698 * @param {number} socketId |
| 683 */ | 699 */ |
| 684 chrome.socket.destroy = function(socketId) {}; | 700 chrome.socket.destroy = function(socketId) {}; |
| 685 | 701 |
| 686 /** | 702 /** |
| 687 * @param {number} socketId | 703 * @param {number} socketId |
| 688 * @param {Object} options | 704 * @param {Object} options |
| 689 * @param {function(number):void} callback | 705 * @param {function(number):void} callback |
| 690 */ | 706 */ |
| 691 chrome.socket.secure = function(socketId, options, callback) {}; | 707 chrome.socket.secure = function(socketId, options, callback) {}; |
| OLD | NEW |