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 Description of this file. | 6 * @fileoverview Description of this file. |
7 * Class handling interaction with the cast extension session of the Chromoting | 7 * Class handling interaction with the cast extension session of the Chromoting |
8 * host. It receives and sends extension messages from/to the host through | 8 * host. It receives and sends extension messages from/to the host through |
9 * the client session. It uses the Google Cast Chrome Sender API library to | 9 * the client session. It uses the Google Cast Chrome Sender API library to |
10 * interact with nearby Cast receivers. | 10 * interact with nearby Cast receivers. |
(...skipping 20 matching lines...) Expand all Loading... |
31 | 31 |
32 /** @type {chrome.cast.Session} @private */ | 32 /** @type {chrome.cast.Session} @private */ |
33 this.session_ = null; | 33 this.session_ = null; |
34 | 34 |
35 /** @type {string} @private */ | 35 /** @type {string} @private */ |
36 this.kCastNamespace_ = 'urn:x-cast:com.chromoting.cast.all'; | 36 this.kCastNamespace_ = 'urn:x-cast:com.chromoting.cast.all'; |
37 | 37 |
38 /** @type {string} @private */ | 38 /** @type {string} @private */ |
39 this.kApplicationId_ = "8A1211E3"; | 39 this.kApplicationId_ = "8A1211E3"; |
40 | 40 |
41 /** @type {Array.<Object>} @private */ | 41 /** @type {Array<Object>} @private */ |
42 this.messageQueue_ = []; | 42 this.messageQueue_ = []; |
43 | 43 |
44 this.start_(); | 44 this.start_(); |
45 }; | 45 }; |
46 | 46 |
47 /** | 47 /** |
48 * The id of the script node. | 48 * The id of the script node. |
49 * @type {string} | 49 * @type {string} |
50 * @private | 50 * @private |
51 */ | 51 */ |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 }; | 335 }; |
336 | 336 |
337 /** | 337 /** |
338 * Listener invoked when we fail to stop the receiver application. | 338 * Listener invoked when we fail to stop the receiver application. |
339 * | 339 * |
340 * @param {chrome.cast.Error} error The error code. | 340 * @param {chrome.cast.Error} error The error code. |
341 */ | 341 */ |
342 remoting.CastExtensionHandler.prototype.onStopAppError = function(error) { | 342 remoting.CastExtensionHandler.prototype.onStopAppError = function(error) { |
343 console.error('Error Stopping App: ', error); | 343 console.error('Error Stopping App: ', error); |
344 }; | 344 }; |
OLD | NEW |