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

Side by Side Diff: remoting/webapp/crd/js/connect_flow.js

Issue 1054273002: [Webapp Refactor] Implements remoting.Activity. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 unified diff | Download patch
OLDNEW
(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 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698