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) {}; |
+ |
+})(); |