| 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 /** @constructor */ | 9 /** @constructor */ |
| 10 chrome.Event = function() {}; | 10 chrome.Event = function() {}; |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 var AppWindow = function() { | 359 var AppWindow = function() { |
| 360 /** @type {Window} */ | 360 /** @type {Window} */ |
| 361 this.contentWindow = null; | 361 this.contentWindow = null; |
| 362 /** @type {chrome.Event} */ | 362 /** @type {chrome.Event} */ |
| 363 this.onClosed = null; | 363 this.onClosed = null; |
| 364 /** @type {chrome.Event} */ | 364 /** @type {chrome.Event} */ |
| 365 this.onRestored = null; | 365 this.onRestored = null; |
| 366 /** @type {chrome.Event} */ | 366 /** @type {chrome.Event} */ |
| 367 this.onMaximized = null; | 367 this.onMaximized = null; |
| 368 /** @type {chrome.Event} */ | 368 /** @type {chrome.Event} */ |
| 369 this.onMinimized = null; |
| 370 /** @type {chrome.Event} */ |
| 369 this.onFullscreened = null; | 371 this.onFullscreened = null; |
| 370 /** @type {string} */ | 372 /** @type {string} */ |
| 371 this.id = ''; | 373 this.id = ''; |
| 372 /** @type {Bounds} */ | 374 /** @type {Bounds} */ |
| 373 this.outerBounds = null; | 375 this.outerBounds = null; |
| 374 /** @type {Bounds} */ | 376 /** @type {Bounds} */ |
| 375 this.innerBounds = null; | 377 this.innerBounds = null; |
| 376 }; | 378 }; |
| 377 | 379 |
| 378 AppWindow.prototype.close = function() {}; | 380 AppWindow.prototype.close = function() {}; |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 687 * @param {number} socketId | 689 * @param {number} socketId |
| 688 */ | 690 */ |
| 689 chrome.socket.destroy = function(socketId) {}; | 691 chrome.socket.destroy = function(socketId) {}; |
| 690 | 692 |
| 691 /** | 693 /** |
| 692 * @param {number} socketId | 694 * @param {number} socketId |
| 693 * @param {Object} options | 695 * @param {Object} options |
| 694 * @param {function(number):void} callback | 696 * @param {function(number):void} callback |
| 695 */ | 697 */ |
| 696 chrome.socket.secure = function(socketId, options, callback) {}; | 698 chrome.socket.secure = function(socketId, options, callback) {}; |
| OLD | NEW |