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

Side by Side Diff: remoting/webapp/app_remoting/js/app_remoting.js

Issue 1082383002: [Webapp Refactor] Remove remoting.clientSession. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix browser tests Created 5 years, 8 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
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 application 7 * This class implements the functionality that is specific to application
8 * remoting ("AppRemoting" or AR). 8 * remoting ("AppRemoting" or AR).
9 */ 9 */
10 10
(...skipping 20 matching lines...) Expand all
31 31
32 /** 32 /**
33 * @return {string} Application product name to be used in UI. 33 * @return {string} Application product name to be used in UI.
34 * @override {remoting.ApplicationInterface} 34 * @override {remoting.ApplicationInterface}
35 */ 35 */
36 remoting.AppRemoting.prototype.getApplicationName = function() { 36 remoting.AppRemoting.prototype.getApplicationName = function() {
37 var manifest = chrome.runtime.getManifest(); 37 var manifest = chrome.runtime.getManifest();
38 return manifest.name; 38 return manifest.name;
39 }; 39 };
40 40
41 remoting.AppRemoting.prototype.getActivity = function() {
42 return this.activity_;
43 };
44
41 /** 45 /**
42 * @param {!remoting.Error} error The failure reason. 46 * @param {!remoting.Error} error The failure reason.
43 * @override {remoting.ApplicationInterface} 47 * @override {remoting.ApplicationInterface}
44 */ 48 */
45 remoting.AppRemoting.prototype.signInFailed_ = function(error) { 49 remoting.AppRemoting.prototype.signInFailed_ = function(error) {
46 remoting.MessageWindow.showErrorMessage( 50 remoting.MessageWindow.showErrorMessage(
47 chrome.i18n.getMessage(/*i18n-content*/'CONNECTION_FAILED'), 51 chrome.i18n.getMessage(/*i18n-content*/'CONNECTION_FAILED'),
48 chrome.i18n.getMessage(error.getTag())); 52 chrome.i18n.getMessage(error.getTag()));
49 }; 53 };
50 54
(...skipping 14 matching lines...) Expand all
65 this.activity_.start(); 69 this.activity_.start();
66 }; 70 };
67 71
68 /** 72 /**
69 * @override {remoting.ApplicationInterface} 73 * @override {remoting.ApplicationInterface}
70 */ 74 */
71 remoting.AppRemoting.prototype.exitApplication_ = function() { 75 remoting.AppRemoting.prototype.exitApplication_ = function() {
72 this.activity_.dispose(); 76 this.activity_.dispose();
73 this.closeMainWindow_(); 77 this.closeMainWindow_();
74 }; 78 };
OLDNEW
« no previous file with comments | « chrome/test/remoting/remote_desktop_browsertest.cc ('k') | remoting/webapp/app_remoting/js/app_remoting_activity.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698