| 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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 this.state = ''; | 339 this.state = ''; |
| 340 /** @type {string} */ | 340 /** @type {string} */ |
| 341 this.type = ''; | 341 this.type = ''; |
| 342 }; | 342 }; |
| 343 | 343 |
| 344 /** @constructor */ | 344 /** @constructor */ |
| 345 var AppWindow = function() { | 345 var AppWindow = function() { |
| 346 /** @type {Window} */ | 346 /** @type {Window} */ |
| 347 this.contentWindow = null; | 347 this.contentWindow = null; |
| 348 /** @type {chrome.Event} */ | 348 /** @type {chrome.Event} */ |
| 349 this.onClosed = null; |
| 350 /** @type {chrome.Event} */ |
| 349 this.onRestored = null; | 351 this.onRestored = null; |
| 350 /** @type {chrome.Event} */ | 352 /** @type {chrome.Event} */ |
| 351 this.onMaximized = null; | 353 this.onMaximized = null; |
| 352 /** @type {chrome.Event} */ | 354 /** @type {chrome.Event} */ |
| 353 this.onFullscreened = null; | 355 this.onFullscreened = null; |
| 354 /** @type {string} */ | 356 /** @type {string} */ |
| 355 this.id = ''; | 357 this.id = ''; |
| 356 }; | 358 }; |
| 357 | 359 |
| 358 AppWindow.prototype.close = function() {}; | 360 AppWindow.prototype.close = function() {}; |
| 359 AppWindow.prototype.drawAttention = function() {}; | 361 AppWindow.prototype.drawAttention = function() {}; |
| 360 AppWindow.prototype.maximize = function() {}; | 362 AppWindow.prototype.maximize = function() {}; |
| 361 AppWindow.prototype.minimize = function() {}; | 363 AppWindow.prototype.minimize = function() {}; |
| 362 AppWindow.prototype.restore = function() {}; | 364 AppWindow.prototype.restore = function() {}; |
| 365 AppWindow.prototype.show = function() {}; |
| 363 AppWindow.prototype.fullscreen = function() {}; | 366 AppWindow.prototype.fullscreen = function() {}; |
| 364 /** @return {boolean} */ | 367 /** @return {boolean} */ |
| 365 AppWindow.prototype.isFullscreen = function() {}; | 368 AppWindow.prototype.isFullscreen = function() {}; |
| 366 /** @return {boolean} */ | 369 /** @return {boolean} */ |
| 367 AppWindow.prototype.isMaximized = function() {}; | 370 AppWindow.prototype.isMaximized = function() {}; |
| 368 | 371 |
| 369 /** | 372 /** |
| 370 * @param {{rects: Array.<ClientRect>}} rects | 373 * @param {{rects: Array.<ClientRect>}} rects |
| 371 */ | 374 */ |
| 372 AppWindow.prototype.setShape = function(rects) {}; | 375 AppWindow.prototype.setShape = function(rects) {}; |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 */ | 517 */ |
| 515 chrome.cast.initialize = | 518 chrome.cast.initialize = |
| 516 function(apiConfig, onInitSuccess, onInitError) {}; | 519 function(apiConfig, onInitSuccess, onInitError) {}; |
| 517 | 520 |
| 518 /** | 521 /** |
| 519 * @param {function(chrome.cast.Session):void} successCallback | 522 * @param {function(chrome.cast.Session):void} successCallback |
| 520 * @param {function(chrome.cast.Error):void} errorCallback | 523 * @param {function(chrome.cast.Error):void} errorCallback |
| 521 */ | 524 */ |
| 522 chrome.cast.requestSession = | 525 chrome.cast.requestSession = |
| 523 function(successCallback, errorCallback) {}; | 526 function(successCallback, errorCallback) {}; |
| OLD | NEW |