Index: remoting/webapp/base/js/application_delegate.js |
diff --git a/remoting/webapp/base/js/application_delegate.js b/remoting/webapp/base/js/application_delegate.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5e87873608ff430becbd7feae2b0c11a17f3efe9 |
--- /dev/null |
+++ b/remoting/webapp/base/js/application_delegate.js |
@@ -0,0 +1,71 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
Jamie
2014/12/06 01:57:59
This file is no longer needed.
garykac
2014/12/06 02:15:49
Done.
|
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+/** |
+ * @fileoverview |
+ * Interface abstracting the ApplicationDelegate functionality. |
+ * |
+ * A class implementing the ApplicationDelegate interface contains the |
+ * functionality that is specific to that particular application, whereas |
+ * shared code lives in the Application class. |
+ */ |
+ |
+'use strict'; |
+ |
+/** @suppress {duplicate} */ |
+var remoting = remoting || {}; |
+ |
+/** |
+ * @interface |
+ */ |
+remoting.ApplicationDelegate = function() {}; |
+ |
+/** |
+ * Initialize the application and register all event handlers. After this |
+ * is called, the app is running and waiting for user events. |
+ * |
+ * @return {void} Nothing. |
+ */ |
+remoting.ApplicationDelegate.prototype.init = function() {}; |
+ |
+/** |
+ * Called when a new session has been connected. |
+ * |
+ * @param {remoting.ClientSession} clientSession |
+ * @return {void} Nothing. |
+ */ |
+remoting.ApplicationDelegate.prototype.onConnected = function(clientSession) {}; |
+ |
+/** |
+ * Called when the current session has been disconnected. |
+ * |
+ * @return {void} Nothing. |
+ */ |
+remoting.ApplicationDelegate.prototype.onDisconnected = function() {}; |
+ |
+/** |
+ * Called when the current session has reached the point where the host has |
+ * started streaming video frames to the client. |
+ * |
+ * @return {void} Nothing. |
+ */ |
+remoting.ApplicationDelegate.prototype.onVideoStreamingStarted = function() {}; |
+ |
+/** |
+ * Called when an extension message needs to be handled. |
+ * |
+ * @param {string} type The type of the extension message. |
+ * @param {string} data The payload of the extension message. |
+ * @return {boolean} Return true if the extension message was recognized. |
+ */ |
+remoting.ApplicationDelegate.prototype.onExtensionMessage = function( |
+ type, data) {}; |
+ |
+/** |
+ * Called when an error needs to be displayed to the user. |
+ * |
+ * @param {remoting.Error} errorTag The error to be localized and displayed. |
+ * @return {void} Nothing. |
+ */ |
+remoting.ApplicationDelegate.prototype.onError = function(errorTag) {}; |