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

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

Issue 2811573004: MD Settings: Restore focus when exiting various subpages, part 2. (Closed)
Patch Set: Device page 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
« no previous file with comments | « chrome/browser/resources/settings/privacy_page/privacy_page.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/privacy_page/privacy_page.js
diff --git a/chrome/browser/resources/settings/privacy_page/privacy_page.js b/chrome/browser/resources/settings/privacy_page/privacy_page.js
index 0afbf099f0d883cc7006c0f0b298a38e7e44c4b6..a8ac9506de287555da0631b16c4136c9da900886 100644
--- a/chrome/browser/resources/settings/privacy_page/privacy_page.js
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page.js
@@ -101,6 +101,23 @@ Polymer({
return loadTimeData.getBoolean('enableSafeBrowsingSubresourceFilter');
}
},
+
+ /** @private {!Map<string, string>} */
+ focusConfig_: {
+ type: Object,
+ value: function() {
+ var map = new Map();
+// <if expr="use_nss_certs">
+ map.set(
+ settings.Route.CERTIFICATES.path,
+ '#manageCertificates .subpage-arrow');
+// </if>
+ map.set(
+ settings.Route.SITE_SETTINGS.path,
+ '#site-settings-subpage-trigger .subpage-arrow');
+ return map;
+ },
+ },
},
listeners: {
« no previous file with comments | « chrome/browser/resources/settings/privacy_page/privacy_page.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698