OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 'settings-cups-printer-details-page' is the subpage for | 6 * @fileoverview 'settings-cups-printer-details-page' is the subpage for |
7 * viewing the details of a CUPS printer. | 7 * viewing the details of a CUPS printer. |
8 */ | 8 */ |
9 Polymer({ | 9 Polymer({ |
10 is: 'settings-cups-printer-details-page', | 10 is: 'settings-cups-printer-details-page', |
(...skipping 18 matching lines...) Expand all Loading... |
29 created: function() { | 29 created: function() { |
30 this.browserProxy_ = settings.CupsPrintersBrowserProxyImpl.getInstance(); | 30 this.browserProxy_ = settings.CupsPrintersBrowserProxyImpl.getInstance(); |
31 }, | 31 }, |
32 | 32 |
33 /** | 33 /** |
34 * Event triggered when the input value changes. | 34 * Event triggered when the input value changes. |
35 * @private | 35 * @private |
36 */ | 36 */ |
37 onValueChanged_: function() { | 37 onValueChanged_: function() { |
38 this.browserProxy_.updateCupsPrinter(this.printer.printerId, | 38 this.browserProxy_.updateCupsPrinter(this.printer.printerId, |
39 this.printer.printerName); | 39 this.printer.printerName, |
| 40 this.printer.printerAddress); |
40 }, | 41 }, |
41 | 42 |
42 /** | 43 /** |
43 * @param {Event} event | 44 * @param {Event} event |
44 * @private | 45 * @private |
45 */ | 46 */ |
46 toggleAdvancedExpanded_: function(event) { | 47 toggleAdvancedExpanded_: function(event) { |
47 if (event.target.id == 'expandButton') | 48 if (event.target.id == 'expandButton') |
48 return; // Already handled. | 49 return; // Already handled. |
49 this.advancedExpanded = !this.advancedExpanded; | 50 this.advancedExpanded = !this.advancedExpanded; |
50 }, | 51 }, |
51 }); | 52 }); |
OLD | NEW |