| 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  * Interface abstracting the Application functionality. | 7  * Interface abstracting the Application functionality. | 
| 8  */ | 8  */ | 
| 9 | 9 | 
| 10 'use strict'; | 10 'use strict'; | 
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 142  * Called when the current session's connection has failed. | 142  * Called when the current session's connection has failed. | 
| 143  * | 143  * | 
| 144  * @param {!remoting.Error} error | 144  * @param {!remoting.Error} error | 
| 145  * @return {void} Nothing. | 145  * @return {void} Nothing. | 
| 146  */ | 146  */ | 
| 147 remoting.Application.prototype.onConnectionFailed = function(error) { | 147 remoting.Application.prototype.onConnectionFailed = function(error) { | 
| 148   this.delegate_.handleConnectionFailed(this.sessionConnector_, error); | 148   this.delegate_.handleConnectionFailed(this.sessionConnector_, error); | 
| 149 }; | 149 }; | 
| 150 | 150 | 
| 151 /** | 151 /** | 
| 152  * Called when the current session has reached the point where the host has |  | 
| 153  * started streaming video frames to the client. |  | 
| 154  * |  | 
| 155  * @return {void} Nothing. |  | 
| 156  */ |  | 
| 157 remoting.Application.prototype.onVideoStreamingStarted = function() { |  | 
| 158   this.delegate_.handleVideoStreamingStarted(); |  | 
| 159 }; |  | 
| 160 |  | 
| 161 /** |  | 
| 162  * Called when an error needs to be displayed to the user. | 152  * Called when an error needs to be displayed to the user. | 
| 163  * | 153  * | 
| 164  * @param {!remoting.Error} errorTag The error to be localized and displayed. | 154  * @param {!remoting.Error} errorTag The error to be localized and displayed. | 
| 165  * @return {void} Nothing. | 155  * @return {void} Nothing. | 
| 166  */ | 156  */ | 
| 167 remoting.Application.prototype.onError = function(errorTag) { | 157 remoting.Application.prototype.onError = function(errorTag) { | 
| 168   this.delegate_.handleError(errorTag); | 158   this.delegate_.handleError(errorTag); | 
| 169 }; | 159 }; | 
| 170 | 160 | 
| 171 /** | 161 /** | 
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 285  * Called when the current session's connection has failed. | 275  * Called when the current session's connection has failed. | 
| 286  * | 276  * | 
| 287  * @param {remoting.SessionConnector} connector | 277  * @param {remoting.SessionConnector} connector | 
| 288  * @param {!remoting.Error} error | 278  * @param {!remoting.Error} error | 
| 289  * @return {void} Nothing. | 279  * @return {void} Nothing. | 
| 290  */ | 280  */ | 
| 291 remoting.Application.Delegate.prototype.handleConnectionFailed = | 281 remoting.Application.Delegate.prototype.handleConnectionFailed = | 
| 292     function(connector, error) {}; | 282     function(connector, error) {}; | 
| 293 | 283 | 
| 294 /** | 284 /** | 
| 295  * Called when the current session has reached the point where the host has |  | 
| 296  * started streaming video frames to the client. |  | 
| 297  * |  | 
| 298  * @return {void} Nothing. |  | 
| 299  */ |  | 
| 300 remoting.Application.Delegate.prototype.handleVideoStreamingStarted = |  | 
| 301     function() {}; |  | 
| 302 |  | 
| 303 /** |  | 
| 304  * Called when an error needs to be displayed to the user. | 285  * Called when an error needs to be displayed to the user. | 
| 305  * | 286  * | 
| 306  * @param {!remoting.Error} errorTag The error to be localized and displayed. | 287  * @param {!remoting.Error} errorTag The error to be localized and displayed. | 
| 307  * @return {void} Nothing. | 288  * @return {void} Nothing. | 
| 308  */ | 289  */ | 
| 309 remoting.Application.Delegate.prototype.handleError = function(errorTag) {}; | 290 remoting.Application.Delegate.prototype.handleError = function(errorTag) {}; | 
| 310 | 291 | 
| 311 /** | 292 /** | 
| 312  * Perform any application-specific cleanup before exiting. This is called in | 293  * Perform any application-specific cleanup before exiting. This is called in | 
| 313  * lieu of start() if the user declines the app permissions, and will usually | 294  * lieu of start() if the user declines the app permissions, and will usually | 
| 314  * be called immediately prior to exiting, although delegates should not rely | 295  * be called immediately prior to exiting, although delegates should not rely | 
| 315  * on this. | 296  * on this. | 
| 316  */ | 297  */ | 
| 317 remoting.Application.Delegate.prototype.handleExit = function() {}; | 298 remoting.Application.Delegate.prototype.handleExit = function() {}; | 
| 318 | 299 | 
| 319 | 300 | 
| 320 /** @type {remoting.Application} */ | 301 /** @type {remoting.Application} */ | 
| 321 remoting.app = null; | 302 remoting.app = null; | 
| OLD | NEW | 
|---|