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

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

Issue 2805363002: MD Settings: Add mechanism to restore focus after subpage exiting. (Closed)
Patch Set: Address @dbeam comments. 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/passwords_and_forms_page/passwords_and_forms_page.js
diff --git a/chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js b/chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js
index 0598f0298e8f8515b7fc4ba993b5e115a4c9521c..abf59371208c617568d3b1d40b059e6d0a8bad8b 100644
--- a/chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js
+++ b/chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js
@@ -10,6 +10,19 @@ Polymer({
properties: {
/** @private Filter applied to passwords and password exceptions. */
passwordFilter_: String,
+
+ /** @type {?Map<string, string>} */
+ focusConfig: Object,
+ },
+
+ /** @override */
+ ready: function() {
+ this.focusConfig_ = new Map();
+ this.focusConfig_.set(
+ settings.Route.AUTOFILL.path, '#autofillManagerButton .subpage-arrow');
+ this.focusConfig_.set(
+ settings.Route.MANAGE_PASSWORDS.path,
+ '#passwordManagerButton .subpage-arrow');
},
/**

Powered by Google App Engine
This is Rietveld 408576698