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

Side by Side Diff: remoting/webapp/crd/js/it2me_activity.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 /** @suppress {duplicate} */ 5 /** @suppress {duplicate} */
6 var remoting = remoting || {}; 6 var remoting = remoting || {};
7 7
8 (function() { 8 (function() {
9 9
10 'use strict'; 10 'use strict';
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 if (error.hasTag(remoting.Error.Tag.CANCELLED)) { 59 if (error.hasTag(remoting.Error.Tag.CANCELLED)) {
60 remoting.setMode(remoting.AppMode.HOME); 60 remoting.setMode(remoting.AppMode.HOME);
61 } else { 61 } else {
62 var errorDiv = document.getElementById('connect-error-message'); 62 var errorDiv = document.getElementById('connect-error-message');
63 l10n.localizeElementFromTag(errorDiv, error.getTag()); 63 l10n.localizeElementFromTag(errorDiv, error.getTag());
64 remoting.setMode(remoting.AppMode.CLIENT_CONNECT_FAILED_IT2ME); 64 remoting.setMode(remoting.AppMode.CLIENT_CONNECT_FAILED_IT2ME);
65 } 65 }
66 }); 66 });
67 }; 67 };
68 68
69 remoting.It2MeActivity.prototype.stop = function() {
70 this.desktopActivity_.stop();
71 };
72
69 /** 73 /**
70 * @param {!remoting.Error} error 74 * @param {!remoting.Error} error
71 */ 75 */
72 remoting.It2MeActivity.prototype.onConnectionFailed = function(error) { 76 remoting.It2MeActivity.prototype.onConnectionFailed = function(error) {
73 this.onError(error); 77 this.onError(error);
74 }; 78 };
75 79
76 /** 80 /**
77 * @param {!remoting.ConnectionInfo} connectionInfo 81 * @param {!remoting.ConnectionInfo} connectionInfo
78 */ 82 */
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 switch (error) { 204 switch (error) {
201 case 0: return new remoting.Error(remoting.Error.Tag.NETWORK_FAILURE); 205 case 0: return new remoting.Error(remoting.Error.Tag.NETWORK_FAILURE);
202 case 404: return new remoting.Error(remoting.Error.Tag.INVALID_ACCESS_CODE); 206 case 404: return new remoting.Error(remoting.Error.Tag.INVALID_ACCESS_CODE);
203 case 502: // No break 207 case 502: // No break
204 case 503: return new remoting.Error(remoting.Error.Tag.SERVICE_UNAVAILABLE); 208 case 503: return new remoting.Error(remoting.Error.Tag.SERVICE_UNAVAILABLE);
205 default: return remoting.Error.unexpected(); 209 default: return remoting.Error.unexpected();
206 } 210 }
207 } 211 }
208 212
209 })(); 213 })();
OLDNEW
« no previous file with comments | « remoting/webapp/crd/js/desktop_remoting_activity.js ('k') | remoting/webapp/crd/js/me2me_activity.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698