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: chrome/browser/resources/settings/printing_page/cups_printer_details_page.js

Issue 2329143002: NOT FOR REVIEW. SAMPLE CODE ONLY. (Closed)
Patch Set: rebase Created 4 years, 3 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 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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698