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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 * @return {Array.<string>} A list of |ClientSession.Capability|s required | 131 * @return {Array.<string>} A list of |ClientSession.Capability|s required |
132 * by this application. | 132 * by this application. |
133 */ | 133 */ |
134 remoting.DesktopRemoting.prototype.getRequiredCapabilities = function() { | 134 remoting.DesktopRemoting.prototype.getRequiredCapabilities = function() { |
135 return [ | 135 return [ |
136 remoting.ClientSession.Capability.SEND_INITIAL_RESOLUTION, | 136 remoting.ClientSession.Capability.SEND_INITIAL_RESOLUTION, |
137 remoting.ClientSession.Capability.RATE_LIMIT_RESIZE_REQUESTS, | 137 remoting.ClientSession.Capability.RATE_LIMIT_RESIZE_REQUESTS, |
138 remoting.ClientSession.Capability.VIDEO_RECORDER, | 138 remoting.ClientSession.Capability.VIDEO_RECORDER, |
139 // TODO(aiguha): Add this capability based on a gyp/command-line flag, | 139 // TODO(aiguha): Add this capability based on a gyp/command-line flag, |
140 // rather than by default. | 140 // rather than by default. |
141 remoting.ClientSession.Capability.CAST, | 141 remoting.ClientSession.Capability.CAST |
142 remoting.ClientSession.Capability.GNUBBY_AUTH | |
143 ]; | 142 ]; |
144 }; | 143 }; |
145 | 144 |
146 /** | 145 /** |
147 * Called when a new session has been connected. | 146 * Called when a new session has been connected. |
148 * | 147 * |
149 * @param {remoting.ClientSession} clientSession | 148 * @param {remoting.ClientSession} clientSession |
150 * @return {void} Nothing. | 149 * @return {void} Nothing. |
151 */ | 150 */ |
152 remoting.DesktopRemoting.prototype.handleConnected = function(clientSession) { | 151 remoting.DesktopRemoting.prototype.handleConnected = function(clientSession) { |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 if (mode == remoting.ClientSession.Mode.IT2ME) { | 289 if (mode == remoting.ClientSession.Mode.IT2ME) { |
291 remoting.setMode(remoting.AppMode.CLIENT_CONNECT_FAILED_IT2ME); | 290 remoting.setMode(remoting.AppMode.CLIENT_CONNECT_FAILED_IT2ME); |
292 remoting.hangoutSessionEvents.raiseEvent( | 291 remoting.hangoutSessionEvents.raiseEvent( |
293 remoting.hangoutSessionEvents.sessionStateChanged, | 292 remoting.hangoutSessionEvents.sessionStateChanged, |
294 remoting.ClientSession.State.FAILED | 293 remoting.ClientSession.State.FAILED |
295 ); | 294 ); |
296 } else { | 295 } else { |
297 remoting.setMode(remoting.AppMode.CLIENT_CONNECT_FAILED_ME2ME); | 296 remoting.setMode(remoting.AppMode.CLIENT_CONNECT_FAILED_ME2ME); |
298 } | 297 } |
299 }; | 298 }; |
OLD | NEW |