| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 * @return {Array.<string>} A list of |ClientSession.Capability|s required | 102 * @return {Array.<string>} A list of |ClientSession.Capability|s required |
| 103 * by this application. | 103 * by this application. |
| 104 */ | 104 */ |
| 105 remoting.DesktopRemoting.prototype.getRequiredCapabilities = function() { | 105 remoting.DesktopRemoting.prototype.getRequiredCapabilities = function() { |
| 106 return [ | 106 return [ |
| 107 remoting.ClientSession.Capability.SEND_INITIAL_RESOLUTION, | 107 remoting.ClientSession.Capability.SEND_INITIAL_RESOLUTION, |
| 108 remoting.ClientSession.Capability.RATE_LIMIT_RESIZE_REQUESTS, | 108 remoting.ClientSession.Capability.RATE_LIMIT_RESIZE_REQUESTS, |
| 109 remoting.ClientSession.Capability.VIDEO_RECORDER, | 109 remoting.ClientSession.Capability.VIDEO_RECORDER, |
| 110 // TODO(aiguha): Add this capability based on a gyp/command-line flag, | 110 // TODO(aiguha): Add this capability based on a gyp/command-line flag, |
| 111 // rather than by default. | 111 // rather than by default. |
| 112 remoting.ClientSession.Capability.CAST | 112 remoting.ClientSession.Capability.CAST, |
| 113 remoting.ClientSession.Capability.GNUBBY_AUTH |
| 113 ]; | 114 ]; |
| 114 }; | 115 }; |
| 115 | 116 |
| 116 /** | 117 /** |
| 117 * @param {remoting.ClientSession} clientSession | 118 * @param {remoting.ClientSession} clientSession |
| 118 */ | 119 */ |
| 119 remoting.DesktopRemoting.prototype.onConnected = function(clientSession) { | 120 remoting.DesktopRemoting.prototype.onConnected = function(clientSession) { |
| 120 // Set the text on the buttons shown under the error message so that they are | 121 // Set the text on the buttons shown under the error message so that they are |
| 121 // easy to understand in the case where a successful connection failed, as | 122 // easy to understand in the case where a successful connection failed, as |
| 122 // opposed to the case where a connection never succeeded. | 123 // opposed to the case where a connection never succeeded. |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 if (mode == remoting.ClientSession.Mode.IT2ME) { | 209 if (mode == remoting.ClientSession.Mode.IT2ME) { |
| 209 remoting.setMode(remoting.AppMode.CLIENT_CONNECT_FAILED_IT2ME); | 210 remoting.setMode(remoting.AppMode.CLIENT_CONNECT_FAILED_IT2ME); |
| 210 remoting.hangoutSessionEvents.raiseEvent( | 211 remoting.hangoutSessionEvents.raiseEvent( |
| 211 remoting.hangoutSessionEvents.sessionStateChanged, | 212 remoting.hangoutSessionEvents.sessionStateChanged, |
| 212 remoting.ClientSession.State.FAILED | 213 remoting.ClientSession.State.FAILED |
| 213 ); | 214 ); |
| 214 } else { | 215 } else { |
| 215 remoting.setMode(remoting.AppMode.CLIENT_CONNECT_FAILED_ME2ME); | 216 remoting.setMode(remoting.AppMode.CLIENT_CONNECT_FAILED_ME2ME); |
| 216 } | 217 } |
| 217 }; | 218 }; |
| OLD | NEW |