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

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

Issue 988963003: Add Application.Delegate.stop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reviewer feedback. Created 5 years, 9 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/crd/js/app_launcher.js ('k') | remoting/webapp/crd/js/window_frame.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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 }); 133 });
134 }; 134 };
135 135
136 /** 136 /**
137 * Report an authentication error to the user. This is called in lieu of start() 137 * Report an authentication error to the user. This is called in lieu of start()
138 * if the user cannot be authenticated or if they decline the app permissions. 138 * if the user cannot be authenticated or if they decline the app permissions.
139 * 139 *
140 * @param {remoting.Error} error The failure reason. 140 * @param {remoting.Error} error The failure reason.
141 */ 141 */
142 remoting.DesktopRemoting.prototype.signInFailed = function(error) { 142 remoting.DesktopRemoting.prototype.signInFailed = function(error) {
143 if (error == remoting.Error.CANCELLED) { 143 remoting.showErrorMessage(error);
144 chrome.app.window.current().close();
145 } else {
146 remoting.showErrorMessage(error);
147 }
148 }; 144 };
149 145
150 /** 146 /**
151 * @return {string} Application product name to be used in UI. 147 * @return {string} Application product name to be used in UI.
152 */ 148 */
153 remoting.DesktopRemoting.prototype.getApplicationName = function() { 149 remoting.DesktopRemoting.prototype.getApplicationName = function() {
154 return chrome.i18n.getMessage(/*i18n-content*/'PRODUCT_NAME'); 150 return chrome.i18n.getMessage(/*i18n-content*/'PRODUCT_NAME');
155 }; 151 };
156 152
157 /** 153 /**
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 l10n.localizeElementFromTag(errorDiv, /** @type {string} */ (errorTag)); 318 l10n.localizeElementFromTag(errorDiv, /** @type {string} */ (errorTag));
323 319
324 var mode = remoting.clientSession ? remoting.desktopConnectedView.getMode() 320 var mode = remoting.clientSession ? remoting.desktopConnectedView.getMode()
325 : this.app_.getSessionConnector().getConnectionMode(); 321 : this.app_.getSessionConnector().getConnectionMode();
326 if (mode == remoting.DesktopConnectedView.Mode.IT2ME) { 322 if (mode == remoting.DesktopConnectedView.Mode.IT2ME) {
327 remoting.setMode(remoting.AppMode.CLIENT_CONNECT_FAILED_IT2ME); 323 remoting.setMode(remoting.AppMode.CLIENT_CONNECT_FAILED_IT2ME);
328 } else { 324 } else {
329 remoting.setMode(remoting.AppMode.CLIENT_CONNECT_FAILED_ME2ME); 325 remoting.setMode(remoting.AppMode.CLIENT_CONNECT_FAILED_ME2ME);
330 } 326 }
331 }; 327 };
328
329 /**
330 * No cleanup required for desktop remoting.
331 */
332 remoting.DesktopRemoting.prototype.handleExit = function() {
333 };
OLDNEW
« no previous file with comments | « remoting/webapp/crd/js/app_launcher.js ('k') | remoting/webapp/crd/js/window_frame.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698