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 30 matching lines...) Expand all Loading... |
41 /** | 41 /** |
42 * Get the connection mode (Me2Me or IT2Me). | 42 * Get the connection mode (Me2Me or IT2Me). |
43 * | 43 * |
44 * @return {remoting.DesktopRemoting.Mode} | 44 * @return {remoting.DesktopRemoting.Mode} |
45 */ | 45 */ |
46 remoting.DesktopRemoting.prototype.getConnectionMode = function() { | 46 remoting.DesktopRemoting.prototype.getConnectionMode = function() { |
47 return this.connectionMode_; | 47 return this.connectionMode_; |
48 }; | 48 }; |
49 | 49 |
50 /** | 50 /** |
51 * @return {string} Application Id. | |
52 * @override {remoting.ApplicationInterface} | |
53 */ | |
54 remoting.DesktopRemoting.prototype.getApplicationId = function() { | |
55 // Application IDs are not used in desktop remoting. | |
56 return ''; | |
57 }; | |
58 | |
59 /** | |
60 * @return {string} Application product name to be used in UI. | 51 * @return {string} Application product name to be used in UI. |
61 * @override {remoting.ApplicationInterface} | 52 * @override {remoting.ApplicationInterface} |
62 */ | 53 */ |
63 remoting.DesktopRemoting.prototype.getApplicationName = function() { | 54 remoting.DesktopRemoting.prototype.getApplicationName = function() { |
64 return chrome.i18n.getMessage(/*i18n-content*/'PRODUCT_NAME'); | 55 return chrome.i18n.getMessage(/*i18n-content*/'PRODUCT_NAME'); |
65 }; | 56 }; |
66 | 57 |
67 /** | 58 /** |
68 * @param {!remoting.Error} error The failure reason. | 59 * @param {!remoting.Error} error The failure reason. |
69 * @override {remoting.ApplicationInterface} | 60 * @override {remoting.ApplicationInterface} |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 * Entry-point for It2Me connections. | 237 * Entry-point for It2Me connections. |
247 * | 238 * |
248 * @private | 239 * @private |
249 */ | 240 */ |
250 remoting.DesktopRemoting.prototype.connectIt2Me_ = function() { | 241 remoting.DesktopRemoting.prototype.connectIt2Me_ = function() { |
251 base.dispose(this.activity_); | 242 base.dispose(this.activity_); |
252 this.activity_ = new remoting.It2MeActivity(); | 243 this.activity_ = new remoting.It2MeActivity(); |
253 this.activity_.start(); | 244 this.activity_.start(); |
254 this.connectionMode_ = remoting.DesktopRemoting.Mode.IT2ME; | 245 this.connectionMode_ = remoting.DesktopRemoting.Mode.IT2ME; |
255 }; | 246 }; |
OLD | NEW |