Fix Javascript errors.
BUG=None TEST=Manual Review URL: http://codereview.chromium.org/8227028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105011 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
remoting/webapp/me2mom
@ -61,7 +61,7 @@ remoting.ClientSession.ConnectionError = {
|
||||
SESSION_REJECTED: 2,
|
||||
INCOMPATIBLE_PROTOCOL: 3,
|
||||
NETWORK_FAILURE: 4,
|
||||
OTHER: 5,
|
||||
OTHER: 5
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -485,16 +485,16 @@ function onClientStateChange_(oldState) {
|
||||
} else if (state == remoting.ClientSession.State.CONNECTION_FAILED) {
|
||||
remoting.debug.log('Client plugin reported connection failed');
|
||||
if (remoting.session.error ==
|
||||
remoting.ClientSession.Error.HOST_IS_OFFLINE) {
|
||||
remoting.ClientSession.ConnectionError.HOST_IS_OFFLINE) {
|
||||
showConnectError_(remoting.ClientError.HOST_IS_OFFLINE);
|
||||
} else if (remoting.session.error ==
|
||||
remoting.ClientSession.Error.SESSION_REJECTED) {
|
||||
remoting.ClientSession.ConnectionError.SESSION_REJECTED) {
|
||||
showConnectError_(remoting.ClientError.INVALID_ACCESS_CODE);
|
||||
} else if (remoting.session.error ==
|
||||
remoting.ClientSession.Error.INCOMPATIBLE_PROTOCOL) {
|
||||
remoting.ClientSession.ConnectionError.INCOMPATIBLE_PROTOCOL) {
|
||||
showConnectError_(remoting.ClientError.INCOMPATIBLE_PROTOCOL);
|
||||
} else if (remoting.session.error ==
|
||||
remoting.ClientSession.Error.NETWORK_FAILURE) {
|
||||
remoting.ClientSession.ConnectionError.NETWORK_FAILURE) {
|
||||
showConnectError_(remoting.ClientError.OTHER_ERROR);
|
||||
} else {
|
||||
showConnectError_(remoting.ClientError.OTHER_ERROR);
|
||||
|
@ -32,6 +32,12 @@ remoting.ViewerPlugin.setScaleToFit = function(scale) {};
|
||||
/** @type {number} */ remoting.ViewerPlugin.STATUS_CLOSED;
|
||||
/** @type {number} */ remoting.ViewerPlugin.STATUS_FAILED;
|
||||
|
||||
/** @type {number} */ remoting.ViewerPlugin.ERROR_NONE;
|
||||
/** @type {number} */ remoting.ViewerPlugin.ERROR_HOST_IS_OFFLINE;
|
||||
/** @type {number} */ remoting.ViewerPlugin.ERROR_SESSION_REJECTED;
|
||||
/** @type {number} */ remoting.ViewerPlugin.ERROR_INCOMPATIBLE_PROTOCOL;
|
||||
/** @type {number} */ remoting.ViewerPlugin.ERROR_NETWORK_FAILURE;
|
||||
|
||||
/** @type {number} */ remoting.ViewerPlugin.videoBandwidth;
|
||||
/** @type {number} */ remoting.ViewerPlugin.videoCaptureLatency;
|
||||
/** @type {number} */ remoting.ViewerPlugin.videoEncodeLatency;
|
||||
|
Reference in New Issue
Block a user