Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: remoting/webapp/crd/js/desktop_remoting.js

Issue 1179873005: [AppRemoting] Break out AppRemoting shared module (re-land). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « remoting/webapp/build_template.gni ('k') | remoting/webapp/crd/js/desktop_remoting_activity.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 /**
51 * @return {string} Application product name to be used in UI. 60 * @return {string} Application product name to be used in UI.
52 * @override {remoting.ApplicationInterface} 61 * @override {remoting.ApplicationInterface}
53 */ 62 */
54 remoting.DesktopRemoting.prototype.getApplicationName = function() { 63 remoting.DesktopRemoting.prototype.getApplicationName = function() {
55 return chrome.i18n.getMessage(/*i18n-content*/'PRODUCT_NAME'); 64 return chrome.i18n.getMessage(/*i18n-content*/'PRODUCT_NAME');
56 }; 65 };
57 66
58 /** 67 /**
59 * @param {!remoting.Error} error The failure reason. 68 * @param {!remoting.Error} error The failure reason.
60 * @override {remoting.ApplicationInterface} 69 * @override {remoting.ApplicationInterface}
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 * Entry-point for It2Me connections. 246 * Entry-point for It2Me connections.
238 * 247 *
239 * @private 248 * @private
240 */ 249 */
241 remoting.DesktopRemoting.prototype.connectIt2Me_ = function() { 250 remoting.DesktopRemoting.prototype.connectIt2Me_ = function() {
242 base.dispose(this.activity_); 251 base.dispose(this.activity_);
243 this.activity_ = new remoting.It2MeActivity(); 252 this.activity_ = new remoting.It2MeActivity();
244 this.activity_.start(); 253 this.activity_.start();
245 this.connectionMode_ = remoting.DesktopRemoting.Mode.IT2ME; 254 this.connectionMode_ = remoting.DesktopRemoting.Mode.IT2ME;
246 }; 255 };
OLDNEW
« no previous file with comments | « remoting/webapp/build_template.gni ('k') | remoting/webapp/crd/js/desktop_remoting_activity.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698