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 12 matching lines...) Expand all Loading... |
23 * @type {remoting.DesktopConnectedView} The client session view object, set | 23 * @type {remoting.DesktopConnectedView} The client session view object, set |
24 * once the connector has invoked its onOk callback. | 24 * once the connector has invoked its onOk callback. |
25 */ | 25 */ |
26 remoting.desktopConnectedView = null; | 26 remoting.desktopConnectedView = null; |
27 | 27 |
28 /** | 28 /** |
29 * @param {Array<string>} app_capabilities Array of application capabilities. | 29 * @param {Array<string>} app_capabilities Array of application capabilities. |
30 * @constructor | 30 * @constructor |
31 */ | 31 */ |
32 remoting.Application = function(app_capabilities) { | 32 remoting.Application = function(app_capabilities) { |
33 /** | 33 /** @private {remoting.Application.Delegate} */ |
34 * @type {remoting.Application.Delegate} | |
35 * @private | |
36 */ | |
37 this.delegate_ = null; | 34 this.delegate_ = null; |
38 | 35 |
39 /** | 36 /** @private {Array<string>} */ |
40 * @type {Array<string>} | |
41 * @private | |
42 */ | |
43 this.app_capabilities_ = [ | 37 this.app_capabilities_ = [ |
44 remoting.ClientSession.Capability.SEND_INITIAL_RESOLUTION, | 38 remoting.ClientSession.Capability.SEND_INITIAL_RESOLUTION, |
45 remoting.ClientSession.Capability.RATE_LIMIT_RESIZE_REQUESTS, | 39 remoting.ClientSession.Capability.RATE_LIMIT_RESIZE_REQUESTS, |
46 remoting.ClientSession.Capability.VIDEO_RECORDER | 40 remoting.ClientSession.Capability.VIDEO_RECORDER |
47 ]; | 41 ]; |
48 // Append the app-specific capabilities. | 42 // Append the app-specific capabilities. |
49 this.app_capabilities_.push.apply(this.app_capabilities_, app_capabilities); | 43 this.app_capabilities_.push.apply(this.app_capabilities_, app_capabilities); |
50 | 44 |
51 /** | 45 /** @private {remoting.SessionConnector} */ |
52 * @type {remoting.SessionConnector} | |
53 * @private | |
54 */ | |
55 this.session_connector_ = null; | 46 this.session_connector_ = null; |
56 | 47 |
57 /** @private {base.Disposable} */ | 48 /** @private {base.Disposable} */ |
58 this.sessionConnectedHooks_ = null; | 49 this.sessionConnectedHooks_ = null; |
59 }; | 50 }; |
60 | 51 |
61 /** | 52 /** |
62 * @param {remoting.Application.Delegate} appDelegate The delegate that | 53 * @param {remoting.Application.Delegate} appDelegate The delegate that |
63 * contains the app-specific functionality. | 54 * contains the app-specific functionality. |
64 */ | 55 */ |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 * Called when an error needs to be displayed to the user. | 324 * Called when an error needs to be displayed to the user. |
334 * | 325 * |
335 * @param {remoting.Error} errorTag The error to be localized and displayed. | 326 * @param {remoting.Error} errorTag The error to be localized and displayed. |
336 * @return {void} Nothing. | 327 * @return {void} Nothing. |
337 */ | 328 */ |
338 remoting.Application.Delegate.prototype.handleError = function(errorTag) {}; | 329 remoting.Application.Delegate.prototype.handleError = function(errorTag) {}; |
339 | 330 |
340 | 331 |
341 /** @type {remoting.Application} */ | 332 /** @type {remoting.Application} */ |
342 remoting.app = null; | 333 remoting.app = null; |
OLD | NEW |