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

Unified 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, 9 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
Index: remoting/webapp/crd/js/connect_flow.js
diff --git a/remoting/webapp/crd/js/connect_flow.js b/remoting/webapp/crd/js/connect_flow.js
new file mode 100644
index 0000000000000000000000000000000000000000..a202d429a357c4ad8dc208ac4bd8e8bb6bfdb7f1
--- /dev/null
+++ b/remoting/webapp/crd/js/connect_flow.js
@@ -0,0 +1,50 @@
+// Copyright 2015 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.
+
+/** @suppress {duplicate} */
+var remoting = remoting || {};
+
+(function() {
+
+'use strict';
+
+/**
+ * @interface
+ * @extends {base.Disposable}
+ */
+remoting.ConnectFlow = function() {}
+
+/**
+ * Starts a new connection.
+ *
+ * @return {void}
+ */
+remoting.ConnectFlow.prototype.start = function() {};
+
+/**
+ * Called when the connection failed before it is connected.
+ *
+ * @param {!remoting.Error} error
+ */
+remoting.ConnectFlow.prototype.onConnectionFailed = function(error) {};
Jamie 2015/04/03 19:54:23 This interface is a bit confusing. I expected to s
+
+/**
+ * Called when a new session has been connected.
+ *
+ * @param {!remoting.ConnectionInfo} connectionInfo
+ */
+remoting.ConnectFlow.prototype.onConnected = function(connectionInfo) {};
+
+/**
+ * Called when the current session has been disconnected.
+ */
+remoting.ConnectFlow.prototype.onDisconnected = function() {};
+
+/**
+ * Called when an error needs to be displayed to the user.
+ * @param {!remoting.Error} error
+ */
+remoting.ConnectFlow.prototype.onError = function(error) {};
+
+})();

Powered by Google App Engine
This is Rietveld 408576698