| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * This class implements the functionality that is specific to desktop | 7 * This class implements the functionality that is specific to desktop |
| 8 * remoting ("Chromoting" or CRD). | 8 * remoting ("Chromoting" or CRD). |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 // Reset the refresh flag so that the next connection will retry if needed. | 307 // Reset the refresh flag so that the next connection will retry if needed. |
| 308 this.refreshHostJidIfOffline_ = true; | 308 this.refreshHostJidIfOffline_ = true; |
| 309 | 309 |
| 310 var errorDiv = document.getElementById('connect-error-message'); | 310 var errorDiv = document.getElementById('connect-error-message'); |
| 311 l10n.localizeElementFromTag(errorDiv, /** @type {string} */ (errorTag)); | 311 l10n.localizeElementFromTag(errorDiv, /** @type {string} */ (errorTag)); |
| 312 | 312 |
| 313 var mode = remoting.clientSession ? remoting.desktopConnectedView.getMode() | 313 var mode = remoting.clientSession ? remoting.desktopConnectedView.getMode() |
| 314 : this.app_.getSessionConnector().getConnectionMode(); | 314 : this.app_.getSessionConnector().getConnectionMode(); |
| 315 if (mode == remoting.DesktopConnectedView.Mode.IT2ME) { | 315 if (mode == remoting.DesktopConnectedView.Mode.IT2ME) { |
| 316 remoting.setMode(remoting.AppMode.CLIENT_CONNECT_FAILED_IT2ME); | 316 remoting.setMode(remoting.AppMode.CLIENT_CONNECT_FAILED_IT2ME); |
| 317 remoting.hangoutSessionEvents.raiseEvent( | |
| 318 remoting.hangoutSessionEvents.sessionStateChanged, | |
| 319 remoting.ClientSession.State.FAILED | |
| 320 ); | |
| 321 } else { | 317 } else { |
| 322 remoting.setMode(remoting.AppMode.CLIENT_CONNECT_FAILED_ME2ME); | 318 remoting.setMode(remoting.AppMode.CLIENT_CONNECT_FAILED_ME2ME); |
| 323 } | 319 } |
| 324 }; | 320 }; |
| OLD | NEW |