Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 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 /** @suppress {duplicate} */ | |
| 6 var remoting = remoting || {}; | |
| 7 | |
| 8 (function() { | |
| 9 | |
| 10 'use strict'; | |
| 11 | |
| 12 /** | |
| 13 * @interface | |
| 14 * @extends {base.Disposable} | |
| 15 */ | |
| 16 remoting.ConnectFlow = function() {} | |
| 17 | |
| 18 /** | |
| 19 * Starts a new connection. | |
| 20 * | |
| 21 * @return {void} | |
| 22 */ | |
| 23 remoting.ConnectFlow.prototype.start = function() {}; | |
| 24 | |
| 25 /** | |
| 26 * Called when the connection failed before it is connected. | |
| 27 * | |
| 28 * @param {!remoting.Error} error | |
| 29 */ | |
| 30 remoting.ConnectFlow.prototype.onConnectionFailed = function(error) {}; | |
|
Jamie
2015/04/03 19:54:23
This interface is a bit confusing. I expected to s
| |
| 31 | |
| 32 /** | |
| 33 * Called when a new session has been connected. | |
| 34 * | |
| 35 * @param {!remoting.ConnectionInfo} connectionInfo | |
| 36 */ | |
| 37 remoting.ConnectFlow.prototype.onConnected = function(connectionInfo) {}; | |
| 38 | |
| 39 /** | |
| 40 * Called when the current session has been disconnected. | |
| 41 */ | |
| 42 remoting.ConnectFlow.prototype.onDisconnected = function() {}; | |
| 43 | |
| 44 /** | |
| 45 * Called when an error needs to be displayed to the user. | |
| 46 * @param {!remoting.Error} error | |
| 47 */ | |
| 48 remoting.ConnectFlow.prototype.onError = function(error) {}; | |
| 49 | |
| 50 })(); | |
| OLD | NEW |