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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 this.outerBounds = null; | 379 this.outerBounds = null; |
380 /** @type {Bounds} */ | 380 /** @type {Bounds} */ |
381 this.innerBounds = null; | 381 this.innerBounds = null; |
382 }; | 382 }; |
383 | 383 |
384 AppWindow.prototype.close = function() {}; | 384 AppWindow.prototype.close = function() {}; |
385 AppWindow.prototype.drawAttention = function() {}; | 385 AppWindow.prototype.drawAttention = function() {}; |
386 AppWindow.prototype.focus = function() {}; | 386 AppWindow.prototype.focus = function() {}; |
387 AppWindow.prototype.maximize = function() {}; | 387 AppWindow.prototype.maximize = function() {}; |
388 AppWindow.prototype.minimize = function() {}; | 388 AppWindow.prototype.minimize = function() {}; |
| 389 /** |
| 390 * @param {number} left |
| 391 * @param {number} top |
| 392 */ |
| 393 AppWindow.prototype.moveTo = function(left, top) {}; |
| 394 /** |
| 395 * @param {number} width |
| 396 * @param {number} height |
| 397 */ |
| 398 AppWindow.prototype.resizeTo = function(width, height) {}; |
| 399 |
389 AppWindow.prototype.restore = function() {}; | 400 AppWindow.prototype.restore = function() {}; |
390 AppWindow.prototype.show = function() {}; | 401 AppWindow.prototype.show = function() {}; |
391 /** @return {boolean} */ | 402 /** @return {boolean} */ |
392 AppWindow.prototype.isMinimized = function() {}; | 403 AppWindow.prototype.isMinimized = function() {}; |
393 AppWindow.prototype.fullscreen = function() {}; | 404 AppWindow.prototype.fullscreen = function() {}; |
394 /** @return {boolean} */ | 405 /** @return {boolean} */ |
395 AppWindow.prototype.isFullscreen = function() {}; | 406 AppWindow.prototype.isFullscreen = function() {}; |
396 /** @return {boolean} */ | 407 /** @return {boolean} */ |
397 AppWindow.prototype.isMaximized = function() {}; | 408 AppWindow.prototype.isMaximized = function() {}; |
398 | 409 |
(...skipping 18 matching lines...) Expand all Loading... |
417 /** @constructor */ | 428 /** @constructor */ |
418 function Bounds() { | 429 function Bounds() { |
419 /** @type {number} */ | 430 /** @type {number} */ |
420 this.left = 0; | 431 this.left = 0; |
421 /** @type {number} */ | 432 /** @type {number} */ |
422 this.top = 0; | 433 this.top = 0; |
423 /** @type {number} */ | 434 /** @type {number} */ |
424 this.width = 0; | 435 this.width = 0; |
425 /** @type {number} */ | 436 /** @type {number} */ |
426 this.height = 0; | 437 this.height = 0; |
427 }; | 438 } |
428 | 439 |
429 /** @type {Object} */ | 440 /** @type {Object} */ |
430 chrome.cast = {}; | 441 chrome.cast = {}; |
431 | 442 |
432 /** @constructor */ | 443 /** @constructor */ |
433 chrome.cast.AutoJoinPolicy = function() {}; | 444 chrome.cast.AutoJoinPolicy = function() {}; |
434 | 445 |
435 /** @type {chrome.cast.AutoJoinPolicy} */ | 446 /** @type {chrome.cast.AutoJoinPolicy} */ |
436 chrome.cast.AutoJoinPolicy.PAGE_SCOPED; | 447 chrome.cast.AutoJoinPolicy.PAGE_SCOPED; |
437 | 448 |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
693 * @param {number} socketId | 704 * @param {number} socketId |
694 */ | 705 */ |
695 chrome.socket.destroy = function(socketId) {}; | 706 chrome.socket.destroy = function(socketId) {}; |
696 | 707 |
697 /** | 708 /** |
698 * @param {number} socketId | 709 * @param {number} socketId |
699 * @param {Object} options | 710 * @param {Object} options |
700 * @param {function(number):void} callback | 711 * @param {function(number):void} callback |
701 */ | 712 */ |
702 chrome.socket.secure = function(socketId, options, callback) {}; | 713 chrome.socket.secure = function(socketId, options, callback) {}; |
OLD | NEW |