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

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

Issue 2817803002: MD Settings: CrOS: Focus elements on dialog close (Closed)
Patch Set: rebase Created 3 years, 8 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 | « chrome/browser/resources/settings/printing_page/cups_printers.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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-printers' is a component for showing CUPS 6 * @fileoverview 'settings-cups-printers' is a component for showing CUPS
7 * Printer settings subpage (chrome://md-settings/cupsPrinters). It is used to 7 * Printer settings subpage (chrome://md-settings/cupsPrinters). It is used to
8 * set up legacy & non-CloudPrint printers on ChromeOS by leveraging CUPS (the 8 * set up legacy & non-CloudPrint printers on ChromeOS by leveraging CUPS (the
9 * unix printing system) and the many open source drivers built for CUPS. 9 * unix printing system) and the many open source drivers built for CUPS.
10 */ 10 */
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 */ 111 */
112 printersChanged_: function(cupsPrintersList) { 112 printersChanged_: function(cupsPrintersList) {
113 this.printers = cupsPrintersList.printerList; 113 this.printers = cupsPrintersList.printerList;
114 }, 114 },
115 115
116 /** @private */ 116 /** @private */
117 onAddPrinterTap_: function() { 117 onAddPrinterTap_: function() {
118 this.$.addPrinterDialog.open(); 118 this.$.addPrinterDialog.open();
119 this.$.addPrinterErrorMessage.hidden = true; 119 this.$.addPrinterErrorMessage.hidden = true;
120 }, 120 },
121
122 /** @private */
123 onAddPrinterDialogClose_: function() {
124 this.$$('#addPrinter').focus();
125 },
121 }); 126 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/printing_page/cups_printers.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698