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

Unified Diff: remoting/webapp/crd/js/session_connector_impl.js

Issue 955283002: Converted remoting.Error from an enum to a class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Requested changes. Created 5 years, 10 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/session_connector_impl.js
diff --git a/remoting/webapp/crd/js/session_connector_impl.js b/remoting/webapp/crd/js/session_connector_impl.js
index baf0e431a520a926a1531ba6c8ba092934cccac8..fa67e5d47b342508a22a87cccc812f869f3156f2 100644
--- a/remoting/webapp/crd/js/session_connector_impl.js
+++ b/remoting/webapp/crd/js/session_connector_impl.js
@@ -16,11 +16,11 @@ var remoting = remoting || {};
* @param {HTMLElement} clientContainer Container element for the client view.
* @param {function(remoting.ClientSession):void} onConnected Callback on
* success.
- * @param {function(remoting.Error):void} onError Callback on error.
+ * @param {function(!remoting.Error):void} onError Callback on error.
* @param {function(string, string):boolean} onExtensionMessage The handler for
* protocol extension messages. Returns true if a message is recognized;
* false otherwise.
- * @param {function(remoting.Error):void} onConnectionFailed Callback for when
+ * @param {function(!remoting.Error):void} onConnectionFailed Callback for when
* the connection fails.
* @param {Array<string>} requiredCapabilities Connector capabilities
* required by this application.
@@ -47,7 +47,7 @@ remoting.SessionConnectorImpl = function(clientContainer, onConnected, onError,
this.onConnected_ = onConnected;
/**
- * @type {function(remoting.Error):void}
+ * @type {function(!remoting.Error):void}
* @private
*/
this.onError_ = onError;
@@ -59,7 +59,7 @@ remoting.SessionConnectorImpl = function(clientContainer, onConnected, onError,
this.onExtensionMessage_ = onExtensionMessage;
/**
- * @type {function(remoting.Error):void}
+ * @type {function(!remoting.Error):void}
* @private
*/
this.onConnectionFailed_ = onConnectionFailed;
@@ -571,7 +571,7 @@ remoting.SessionConnectorImpl.prototype.onStateChange_ = function(event) {
/**
* @param {number} error An HTTP error code returned by the support-hosts
* endpoint.
- * @return {remoting.Error} The equivalent remoting.Error code.
+ * @return {!remoting.Error} The equivalent remoting.Error code.
* @private
*/
remoting.SessionConnectorImpl.prototype.translateSupportHostsError_ =
@@ -610,11 +610,11 @@ remoting.DefaultSessionConnectorFactory = function() {
* @param {HTMLElement} clientContainer Container element for the client view.
* @param {function(remoting.ClientSession):void} onConnected Callback on
* success.
- * @param {function(remoting.Error):void} onError Callback on error.
+ * @param {function(!remoting.Error):void} onError Callback on error.
* @param {function(string, string):boolean} onExtensionMessage The handler for
* protocol extension messages. Returns true if a message is recognized;
* false otherwise.
- * @param {function(remoting.Error):void} onConnectionFailed Callback for when
+ * @param {function(!remoting.Error):void} onConnectionFailed Callback for when
* the connection fails.
* @param {Array<string>} requiredCapabilities Connector capabilities
* required by this application.

Powered by Google App Engine
This is Rietveld 408576698