OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 type definitions for the viewer plugin. It is used only | 5 // This file contains type definitions for the viewer plugin. It is used only |
6 // with JSCompiler to verify the type-correctness of our code. | 6 // with JSCompiler to verify the type-correctness of our code. |
7 | 7 |
8 /** @suppress {duplicate} */ | 8 /** @suppress {duplicate} */ |
9 var remoting = remoting || {}; | 9 var remoting = remoting || {}; |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... | |
25 /** | 25 /** |
26 * @param {string} hostJid The host's JID. | 26 * @param {string} hostJid The host's JID. |
27 * @param {string} hostPublicKey The host's public key. | 27 * @param {string} hostPublicKey The host's public key. |
28 * @param {string} clientJid The client's JID. | 28 * @param {string} clientJid The client's JID. |
29 * @param {string} accessCode The access code. | 29 * @param {string} accessCode The access code. |
30 * @return {void} Nothing. | 30 * @return {void} Nothing. |
31 */ | 31 */ |
32 remoting.ViewerPlugin.prototype.connect = | 32 remoting.ViewerPlugin.prototype.connect = |
33 function(hostJid, hostPublicKey, clientJid, accessCode) {}; | 33 function(hostJid, hostPublicKey, clientJid, accessCode) {}; |
34 | 34 |
35 /** @type {function(number, number): void} State change callback function. */ | |
36 remoting.ViewerPlugin.prototype.connectionInfoUpdate; | |
Wez
2011/11/16 21:58:26
Did we not need this before because of some defaul
Jamie
2011/11/17 22:06:18
It should have been there before, but the compiler
| |
37 | |
35 /** @type {number} */ remoting.ViewerPlugin.prototype.apiMinVersion; | 38 /** @type {number} */ remoting.ViewerPlugin.prototype.apiMinVersion; |
36 /** @type {number} */ remoting.ViewerPlugin.prototype.apiVersion; | 39 /** @type {number} */ remoting.ViewerPlugin.prototype.apiVersion; |
37 | 40 |
38 /** @type {number} */ remoting.ViewerPlugin.prototype.desktopHeight; | 41 /** @type {number} */ remoting.ViewerPlugin.prototype.desktopHeight; |
39 /** @type {number} */ remoting.ViewerPlugin.prototype.desktopWidth; | 42 /** @type {number} */ remoting.ViewerPlugin.prototype.desktopWidth; |
40 | 43 |
41 /** @type {number} */ remoting.ViewerPlugin.prototype.status; | 44 /** @type {number} */ remoting.ViewerPlugin.prototype.status; |
42 /** @type {number} */ remoting.ViewerPlugin.prototype.error; | 45 /** @type {number} */ remoting.ViewerPlugin.prototype.error; |
43 | 46 |
44 /** @type {number} */ remoting.ViewerPlugin.prototype.STATUS_UNKNOWN; | 47 /** @type {number} */ remoting.ViewerPlugin.prototype.STATUS_UNKNOWN; |
(...skipping 10 matching lines...) Expand all Loading... | |
55 remoting.ViewerPlugin.prototype.ERROR_INCOMPATIBLE_PROTOCOL; | 58 remoting.ViewerPlugin.prototype.ERROR_INCOMPATIBLE_PROTOCOL; |
56 /** @type {number} */ remoting.ViewerPlugin.prototype.ERROR_NETWORK_FAILURE; | 59 /** @type {number} */ remoting.ViewerPlugin.prototype.ERROR_NETWORK_FAILURE; |
57 | 60 |
58 /** @type {number} */ remoting.ViewerPlugin.prototype.videoBandwidth; | 61 /** @type {number} */ remoting.ViewerPlugin.prototype.videoBandwidth; |
59 /** @type {number} */ remoting.ViewerPlugin.prototype.videoCaptureLatency; | 62 /** @type {number} */ remoting.ViewerPlugin.prototype.videoCaptureLatency; |
60 /** @type {number} */ remoting.ViewerPlugin.prototype.videoDecodeLatency; | 63 /** @type {number} */ remoting.ViewerPlugin.prototype.videoDecodeLatency; |
61 /** @type {number} */ remoting.ViewerPlugin.prototype.videoEncodeLatency; | 64 /** @type {number} */ remoting.ViewerPlugin.prototype.videoEncodeLatency; |
62 /** @type {number} */ remoting.ViewerPlugin.prototype.videoFrameRate; | 65 /** @type {number} */ remoting.ViewerPlugin.prototype.videoFrameRate; |
63 /** @type {number} */ remoting.ViewerPlugin.prototype.videoRenderLatency; | 66 /** @type {number} */ remoting.ViewerPlugin.prototype.videoRenderLatency; |
64 /** @type {number} */ remoting.ViewerPlugin.prototype.roundTripLatency; | 67 /** @type {number} */ remoting.ViewerPlugin.prototype.roundTripLatency; |
OLD | NEW |