diff options
Diffstat (limited to 'remoting/webapp')
-rw-r--r-- | remoting/webapp/js_proto/remoting_proto.js | 21 | ||||
-rw-r--r-- | remoting/webapp/wcs_iq_client_proto.js | 29 |
2 files changed, 21 insertions, 29 deletions
diff --git a/remoting/webapp/js_proto/remoting_proto.js b/remoting/webapp/js_proto/remoting_proto.js index a1092c5..52252e1 100644 --- a/remoting/webapp/js_proto/remoting_proto.js +++ b/remoting/webapp/js_proto/remoting_proto.js @@ -163,3 +163,24 @@ remoting.ViewerPlugin = function() { }; /** @param {string} message The message to send to the host. */ remoting.ViewerPlugin.prototype.postMessage = function(message) {}; + + +/** @constructor + */ +remoting.WcsIqClient = function() {}; + +/** @param {function(Array.<string>): void} onMsg The function called when a + * message is received. + * @return {void} Nothing. */ +remoting.WcsIqClient.prototype.setOnMessage = function(onMsg) {}; + +/** @return {void} Nothing. */ +remoting.WcsIqClient.prototype.connectChannel = function() {}; + +/** @param {string} stanza An IQ stanza. + * @return {void} Nothing. */ +remoting.WcsIqClient.prototype.sendIq = function(stanza) {}; + +/** @param {string} token An OAuth2 access token. + * @return {void} Nothing. */ +remoting.WcsIqClient.prototype.updateAccessToken = function(token) {}; diff --git a/remoting/webapp/wcs_iq_client_proto.js b/remoting/webapp/wcs_iq_client_proto.js deleted file mode 100644 index 3a484260..0000000 --- a/remoting/webapp/wcs_iq_client_proto.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2011 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 WCS IQ client. It is used only -// with JSCompiler to verify the type-correctness of our code. - -/** @suppress {duplicate} */ -var remoting = remoting || {}; - -/** @constructor - */ -remoting.WcsIqClient = function() {}; - -/** @param {function(Array.<string>): void} onMsg The function called when a - * message is received. - * @return {void} Nothing. */ -remoting.WcsIqClient.prototype.setOnMessage = function(onMsg) {}; - -/** @return {void} Nothing. */ -remoting.WcsIqClient.prototype.connectChannel = function() {}; - -/** @param {string} stanza An IQ stanza. - * @return {void} Nothing. */ -remoting.WcsIqClient.prototype.sendIq = function(stanza) {}; - -/** @param {string} token An OAuth2 access token. - * @return {void} Nothing. */ -remoting.WcsIqClient.prototype.updateAccessToken = function(token) {}; |