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

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

Issue 1004513002: Eliminated named constants for instances of remoting.Error. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/oauth2_api_impl.js ('k') | remoting/webapp/crd/js/remoting.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 * Dialog for showing the list of clients that are paired with this host. 7 * Dialog for showing the list of clients that are paired with this host.
8 */ 8 */
9 9
10 'use strict'; 10 'use strict';
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 }; 224 };
225 225
226 /** 226 /**
227 * Error callback for delete operations. 227 * Error callback for delete operations.
228 * 228 *
229 * @param {!remoting.Error} error The error message. 229 * @param {!remoting.Error} error The error message.
230 * @private 230 * @private
231 */ 231 */
232 remoting.PairedClientManager.prototype.onError_ = function(error) { 232 remoting.PairedClientManager.prototype.onError_ = function(error) {
233 this.setWorking_(false); 233 this.setWorking_(false);
234 l10n.localizeElementFromTag(this.errorDiv_, error.tag); 234 l10n.localizeElementFromTag(this.errorDiv_, error.getTag());
235 this.errorDiv_.hidden = false; 235 this.errorDiv_.hidden = false;
236 }; 236 };
237 237
238 /** 238 /**
239 * Delete a single paired client. 239 * Delete a single paired client.
240 * 240 *
241 * @param {remoting.PairedClient} client The pairing to delete. 241 * @param {remoting.PairedClient} client The pairing to delete.
242 */ 242 */
243 remoting.PairedClientManager.prototype.deletePairedClient = function(client) { 243 remoting.PairedClientManager.prototype.deletePairedClient = function(client) {
244 this.setWorking_(true); 244 this.setWorking_(true);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 * @return {string} The client id of the first paired client in the list. 278 * @return {string} The client id of the first paired client in the list.
279 */ 279 */
280 remoting.PairedClientManager.prototype.getFirstClientIdForTesting_ = 280 remoting.PairedClientManager.prototype.getFirstClientIdForTesting_ =
281 function() { 281 function() {
282 return this.pairedClients_.length > 0 ? this.pairedClients_[0].clientId : ''; 282 return this.pairedClients_.length > 0 ? this.pairedClients_[0].clientId : '';
283 }; 283 };
284 284
285 285
286 /** @type {remoting.PairedClientManager} */ 286 /** @type {remoting.PairedClientManager} */
287 remoting.pairedClientManager = null; 287 remoting.pairedClientManager = null;
OLDNEW
« no previous file with comments | « remoting/webapp/crd/js/oauth2_api_impl.js ('k') | remoting/webapp/crd/js/remoting.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698