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

Unified Diff: chrome/browser/resources/settings/printing_page/printing_page.js

Issue 2811693004: MD Settings: Restore focus after exiting various subpages. (Closed)
Patch Set: Address comments, fix test. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/printing_page/printing_page.js
diff --git a/chrome/browser/resources/settings/printing_page/printing_page.js b/chrome/browser/resources/settings/printing_page/printing_page.js
index a58001fbe48169c3ecbfe61c6a7eef9ea6682204..eb1bb21280bfe30c741c0bd5105d5520f2ca6756 100644
--- a/chrome/browser/resources/settings/printing_page/printing_page.js
+++ b/chrome/browser/resources/settings/printing_page/printing_page.js
@@ -34,6 +34,22 @@ Polymer({
searchTerm: {
type: String,
},
+
+ /** @private {!Map<string, string>} */
+ focusConfig_: {
+ type: Object,
+ value: function() {
+ var map = new Map();
+ map.set(
+ settings.Route.CLOUD_PRINTERS.path,
+ '#cloudPrinters .subpage-arrow');
+// <if expr="chromeos">
+ map.set(
+ settings.Route.CUPS_PRINTERS.path, '#cupsPrinters .subpage-arrow');
+// </if>
+ return map;
+ },
+ },
},
listeners: {

Powered by Google App Engine
This is Rietveld 408576698