OLD | NEW |
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 Loading... |
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 Loading... |
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; |
OLD | NEW |