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

Side by Side Diff: chrome/browser/resources/settings/printing_page/cups_printer_details_page.js

Issue 2617663002: WIP: run clang-format-js on lots of things (Closed)
Patch Set: merge Created 3 years, 11 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 17 matching lines...) Expand all
28 /** @override */ 28 /** @override */
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(
39 this.printer.printerName); 39 this.printer.printerId, this.printer.printerName);
40 }, 40 },
41 41
42 /** 42 /**
43 * @param {Event} event 43 * @param {Event} event
44 * @private 44 * @private
45 */ 45 */
46 toggleAdvancedExpanded_: function(event) { 46 toggleAdvancedExpanded_: function(event) {
47 if (event.target.id == 'expandButton') 47 if (event.target.id == 'expandButton')
48 return; // Already handled. 48 return; // Already handled.
49 this.advancedExpanded = !this.advancedExpanded; 49 this.advancedExpanded = !this.advancedExpanded;
(...skipping 17 matching lines...) Expand all
67 return loadTimeData.getString('printerProtocolHttps'); 67 return loadTimeData.getString('printerProtocolHttps');
68 if (printerProtocol == 'socket') 68 if (printerProtocol == 'socket')
69 return loadTimeData.getString('printerProtocolAppSocket'); 69 return loadTimeData.getString('printerProtocolAppSocket');
70 if (printerProtocol == 'lpd') 70 if (printerProtocol == 'lpd')
71 return loadTimeData.getString('printerProtocolLpd'); 71 return loadTimeData.getString('printerProtocolLpd');
72 if (printerProtocol == 'usb') 72 if (printerProtocol == 'usb')
73 return loadTimeData.getString('printerProtocolUsb'); 73 return loadTimeData.getString('printerProtocolUsb');
74 assertNotReached('Illegal printer protocol!'); 74 assertNotReached('Illegal printer protocol!');
75 }, 75 },
76 }); 76 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698