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

Unified 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: Rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/webapp/me2mom/remoting.js ('k') | remoting/webapp/me2mom/wcs.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/me2mom/viewer_plugin_proto.js
diff --git a/remoting/webapp/me2mom/viewer_plugin_proto.js b/remoting/webapp/me2mom/viewer_plugin_proto.js
index 5b87f596dcf51d98f5a9390094c83edaa8f69977..6f3115370597f765e188d36f88b6608f27a5e05b 100644
--- a/remoting/webapp/me2mom/viewer_plugin_proto.js
+++ b/remoting/webapp/me2mom/viewer_plugin_proto.js
@@ -14,33 +14,50 @@ var remoting = remoting || {};
remoting.ViewerPlugin = function() {};
/** @param {string} iq The Iq stanza received from the host. */
-remoting.ViewerPlugin.onIq = function(iq) {};
+remoting.ViewerPlugin.prototype.onIq = function(iq) {};
/** @param {boolean} scale True to enable scaling, false to disable. */
-remoting.ViewerPlugin.setScaleToFit = function(scale) {};
+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} accessCode The access code.
+ * @return {void} Nothing.
+*/
+remoting.ViewerPlugin.prototype.connect =
+ function(hostJid, hostPublicKey, clientJid, accessCode) {};
/** @type {number} */ remoting.ViewerPlugin.prototype.apiMinVersion;
/** @type {number} */ remoting.ViewerPlugin.prototype.apiVersion;
-/** @type {number} */ remoting.ViewerPlugin.desktopHeight;
-/** @type {number} */ remoting.ViewerPlugin.desktopWidth;
-
-/** @type {number} */ remoting.ViewerPlugin.STATUS_UNKNOWN;
-/** @type {number} */ remoting.ViewerPlugin.STATUS_CONNECTING;
-/** @type {number} */ remoting.ViewerPlugin.STATUS_INITIALIZING;
-/** @type {number} */ remoting.ViewerPlugin.STATUS_CONNECTED;
-/** @type {number} */ remoting.ViewerPlugin.STATUS_CLOSED;
-/** @type {number} */ remoting.ViewerPlugin.STATUS_FAILED;
-
-/** @type {number} */ remoting.ViewerPlugin.ERROR_NONE;
-/** @type {number} */ remoting.ViewerPlugin.ERROR_HOST_IS_OFFLINE;
-/** @type {number} */ remoting.ViewerPlugin.ERROR_SESSION_REJECTED;
-/** @type {number} */ remoting.ViewerPlugin.ERROR_INCOMPATIBLE_PROTOCOL;
-/** @type {number} */ remoting.ViewerPlugin.ERROR_NETWORK_FAILURE;
-
-/** @type {number} */ remoting.ViewerPlugin.videoBandwidth;
-/** @type {number} */ remoting.ViewerPlugin.videoCaptureLatency;
-/** @type {number} */ remoting.ViewerPlugin.videoEncodeLatency;
-/** @type {number} */ remoting.ViewerPlugin.videoDecodeLatency;
-/** @type {number} */ remoting.ViewerPlugin.videoRenderLatency;
-/** @type {number} */ remoting.ViewerPlugin.roundTripLatency;
+/** @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.videoEncodeLatency;
+/** @type {number} */ remoting.ViewerPlugin.prototype.videoDecodeLatency;
+/** @type {number} */ remoting.ViewerPlugin.prototype.videoRenderLatency;
+/** @type {number} */ remoting.ViewerPlugin.prototype.roundTripLatency;
« no previous file with comments | « remoting/webapp/me2mom/remoting.js ('k') | remoting/webapp/me2mom/wcs.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698