Home | History | Annotate | Download | only in webapp
      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
      3 // found in the LICENSE file.
      4 
      5 // This file contains type definitions for the WCS IQ client. It is used only
      6 // with JSCompiler to verify the type-correctness of our code.
      7 
      8 /** @suppress {duplicate} */
      9 var remoting = remoting || {};
     10 
     11 /** @constructor
     12  */
     13 remoting.WcsIqClient = function() {};
     14 
     15 /** @param {function(Array.<string>): void} onMsg The function called when a
     16  *      message is received.
     17  *  @return {void} Nothing. */
     18 remoting.WcsIqClient.prototype.setOnMessage = function(onMsg) {};
     19 
     20 /** @return {void} Nothing. */
     21 remoting.WcsIqClient.prototype.connectChannel = function() {};
     22 
     23 /** @param {string} stanza An IQ stanza.
     24  *  @return {void} Nothing. */
     25 remoting.WcsIqClient.prototype.sendIq = function(stanza) {};
     26 
     27 /** @param {string} token An OAuth2 access token.
     28  *  @return {void} Nothing. */
     29 remoting.WcsIqClient.prototype.updateAccessToken = function(token) {};
     30