summaryrefslogtreecommitdiffstats
path: root/remoting/webapp/viewer_plugin_proto.js
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/webapp/viewer_plugin_proto.js')
-rw-r--r--remoting/webapp/viewer_plugin_proto.js68
1 files changed, 68 insertions, 0 deletions
diff --git a/remoting/webapp/viewer_plugin_proto.js b/remoting/webapp/viewer_plugin_proto.js
new file mode 100644
index 0000000..18d6461
--- /dev/null
+++ b/remoting/webapp/viewer_plugin_proto.js
@@ -0,0 +1,68 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This file contains type definitions for the viewer plugin. It is used only
+// with JSCompiler to verify the type-correctness of our code.
+
+/** @suppress {duplicate} */
+var remoting = remoting || {};
+
+/** @constructor
+ * @extends HTMLElement
+ */
+remoting.ViewerPlugin = function() {};
+
+/** @param {string} iq The Iq stanza received from the host. */
+remoting.ViewerPlugin.prototype.onIq = function(iq) {};
+
+/** @param {boolean} scale True to enable scaling, false to disable. */
+remoting.ViewerPlugin.prototype.setScaleToFit = function(scale) {};
+
+/** Release all keys currently pressed by this client. */
+remoting.ViewerPlugin.prototype.releaseAllKeys = function() {};
+
+/**
+ * @param {string} hostJid The host's JID.
+ * @param {string} hostPublicKey The host's public key.
+ * @param {string} clientJid The client's JID.
+ * @param {string} authenticationCode The access code for IT2Me or the
+ * PIN for Me2Me.
+ * @return {void} Nothing.
+*/
+remoting.ViewerPlugin.prototype.connect =
+ function(hostJid, hostPublicKey, clientJid, authenticationCode) {};
+
+/** @type {function(number, number): void} State change callback function. */
+remoting.ViewerPlugin.prototype.connectionInfoUpdate;
+
+/** @type {number} */ remoting.ViewerPlugin.prototype.apiMinVersion;
+/** @type {number} */ remoting.ViewerPlugin.prototype.apiVersion;
+
+/** @type {number} */ remoting.ViewerPlugin.prototype.desktopHeight;
+/** @type {number} */ remoting.ViewerPlugin.prototype.desktopWidth;
+
+/** @type {number} */ remoting.ViewerPlugin.prototype.status;
+/** @type {number} */ remoting.ViewerPlugin.prototype.error;
+
+/** @type {number} */ remoting.ViewerPlugin.prototype.STATUS_UNKNOWN;
+/** @type {number} */ remoting.ViewerPlugin.prototype.STATUS_CONNECTING;
+/** @type {number} */ remoting.ViewerPlugin.prototype.STATUS_INITIALIZING;
+/** @type {number} */ remoting.ViewerPlugin.prototype.STATUS_CONNECTED;
+/** @type {number} */ remoting.ViewerPlugin.prototype.STATUS_CLOSED;
+/** @type {number} */ remoting.ViewerPlugin.prototype.STATUS_FAILED;
+
+/** @type {number} */ remoting.ViewerPlugin.prototype.ERROR_NONE;
+/** @type {number} */ remoting.ViewerPlugin.prototype.ERROR_HOST_IS_OFFLINE;
+/** @type {number} */ remoting.ViewerPlugin.prototype.ERROR_SESSION_REJECTED;
+/** @type {number} */
+ remoting.ViewerPlugin.prototype.ERROR_INCOMPATIBLE_PROTOCOL;
+/** @type {number} */ remoting.ViewerPlugin.prototype.ERROR_NETWORK_FAILURE;
+
+/** @type {number} */ remoting.ViewerPlugin.prototype.videoBandwidth;
+/** @type {number} */ remoting.ViewerPlugin.prototype.videoCaptureLatency;
+/** @type {number} */ remoting.ViewerPlugin.prototype.videoDecodeLatency;
+/** @type {number} */ remoting.ViewerPlugin.prototype.videoEncodeLatency;
+/** @type {number} */ remoting.ViewerPlugin.prototype.videoFrameRate;
+/** @type {number} */ remoting.ViewerPlugin.prototype.videoRenderLatency;
+/** @type {number} */ remoting.ViewerPlugin.prototype.roundTripLatency;