Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(380)

Side by Side Diff: remoting/webapp/me2mom/viewer_plugin_proto.js

Issue 8336004: Improve web-app type safety. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
11 /** @constructor 11 /** @constructor
12 * @extends HTMLElement 12 * @extends HTMLElement
13 */ 13 */
14 remoting.ViewerPlugin = function() {}; 14 remoting.ViewerPlugin = function() {};
15 15
16 /** @param {string} iq The Iq stanza received from the host. */ 16 /** @param {string} iq The Iq stanza received from the host. */
17 remoting.ViewerPlugin.onIq = function(iq) {}; 17 remoting.ViewerPlugin.prototype.onIq = function(iq) {};
18 18
19 /** @param {boolean} scale True to enable scaling, false to disable. */ 19 /** @param {boolean} scale True to enable scaling, false to disable. */
20 remoting.ViewerPlugin.setScaleToFit = function(scale) {}; 20 remoting.ViewerPlugin.prototype.setScaleToFit = function(scale) {};
21
22 /** Release all keys currently pressed by this client. */
23 remoting.ViewerPlugin.prototype.releaseAllKeys = function() {};
24
25 /**
26 * @param {string} hostJid The host's JID.
27 * @param {string} hostPublicKey The host's public key.
28 * @param {string} clientJid The client's JID.
29 * @param {string} accessCode The access code.
30 * @return {void} Nothing.
31 */
32 remoting.ViewerPlugin.prototype.connect =
33 function(hostJid, hostPublicKey, clientJid, accessCode) {};
21 34
22 /** @type {number} */ remoting.ViewerPlugin.prototype.apiMinVersion; 35 /** @type {number} */ remoting.ViewerPlugin.prototype.apiMinVersion;
23 /** @type {number} */ remoting.ViewerPlugin.prototype.apiVersion; 36 /** @type {number} */ remoting.ViewerPlugin.prototype.apiVersion;
24 37
25 /** @type {number} */ remoting.ViewerPlugin.desktopHeight; 38 /** @type {number} */ remoting.ViewerPlugin.prototype.desktopHeight;
26 /** @type {number} */ remoting.ViewerPlugin.desktopWidth; 39 /** @type {number} */ remoting.ViewerPlugin.prototype.desktopWidth;
27 40
28 /** @type {number} */ remoting.ViewerPlugin.STATUS_UNKNOWN; 41 /** @type {number} */ remoting.ViewerPlugin.prototype.status;
29 /** @type {number} */ remoting.ViewerPlugin.STATUS_CONNECTING; 42 /** @type {number} */ remoting.ViewerPlugin.prototype.error;
30 /** @type {number} */ remoting.ViewerPlugin.STATUS_INITIALIZING;
31 /** @type {number} */ remoting.ViewerPlugin.STATUS_CONNECTED;
32 /** @type {number} */ remoting.ViewerPlugin.STATUS_CLOSED;
33 /** @type {number} */ remoting.ViewerPlugin.STATUS_FAILED;
34 43
35 /** @type {number} */ remoting.ViewerPlugin.ERROR_NONE; 44 /** @type {number} */ remoting.ViewerPlugin.prototype.STATUS_UNKNOWN;
36 /** @type {number} */ remoting.ViewerPlugin.ERROR_HOST_IS_OFFLINE; 45 /** @type {number} */ remoting.ViewerPlugin.prototype.STATUS_CONNECTING;
37 /** @type {number} */ remoting.ViewerPlugin.ERROR_SESSION_REJECTED; 46 /** @type {number} */ remoting.ViewerPlugin.prototype.STATUS_INITIALIZING;
38 /** @type {number} */ remoting.ViewerPlugin.ERROR_INCOMPATIBLE_PROTOCOL; 47 /** @type {number} */ remoting.ViewerPlugin.prototype.STATUS_CONNECTED;
39 /** @type {number} */ remoting.ViewerPlugin.ERROR_NETWORK_FAILURE; 48 /** @type {number} */ remoting.ViewerPlugin.prototype.STATUS_CLOSED;
49 /** @type {number} */ remoting.ViewerPlugin.prototype.STATUS_FAILED;
40 50
41 /** @type {number} */ remoting.ViewerPlugin.videoBandwidth; 51 /** @type {number} */ remoting.ViewerPlugin.prototype.ERROR_NONE;
42 /** @type {number} */ remoting.ViewerPlugin.videoCaptureLatency; 52 /** @type {number} */ remoting.ViewerPlugin.prototype.ERROR_HOST_IS_OFFLINE;
43 /** @type {number} */ remoting.ViewerPlugin.videoEncodeLatency; 53 /** @type {number} */ remoting.ViewerPlugin.prototype.ERROR_SESSION_REJECTED;
44 /** @type {number} */ remoting.ViewerPlugin.videoDecodeLatency; 54 /** @type {number} */
45 /** @type {number} */ remoting.ViewerPlugin.videoRenderLatency; 55 remoting.ViewerPlugin.prototype.ERROR_INCOMPATIBLE_PROTOCOL;
46 /** @type {number} */ remoting.ViewerPlugin.roundTripLatency; 56 /** @type {number} */ remoting.ViewerPlugin.prototype.ERROR_NETWORK_FAILURE;
57
58 /** @type {number} */ remoting.ViewerPlugin.prototype.videoBandwidth;
59 /** @type {number} */ remoting.ViewerPlugin.prototype.videoCaptureLatency;
60 /** @type {number} */ remoting.ViewerPlugin.prototype.videoEncodeLatency;
61 /** @type {number} */ remoting.ViewerPlugin.prototype.videoDecodeLatency;
62 /** @type {number} */ remoting.ViewerPlugin.prototype.videoRenderLatency;
63 /** @type {number} */ remoting.ViewerPlugin.prototype.roundTripLatency;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698