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

Unified Diff: chrome/browser/resources/settings/search_page/search_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/search_page/search_page.js
diff --git a/chrome/browser/resources/settings/search_page/search_page.js b/chrome/browser/resources/settings/search_page/search_page.js
index edcf246a4aee9dae75b9b7fc3c32406af85ebb59..a307f3da2265a49dc126df62593ec9e6732dd68f 100644
--- a/chrome/browser/resources/settings/search_page/search_page.js
+++ b/chrome/browser/resources/settings/search_page/search_page.js
@@ -39,6 +39,9 @@ Polymer({
/** @private */
googleNowAvailable_: Boolean,
+
+ /** @type {?Map<string, string>} */
+ focusConfig_: Object,
},
/** @private {?settings.SearchEnginesBrowserProxy} */
@@ -70,6 +73,10 @@ Polymer({
this.browserProxy_.getGoogleNowAvailability().then(function(available) {
this.googleNowAvailabilityUpdate_(available);
}.bind(this));
+
+ this.focusConfig_ = new Map();
+ this.focusConfig_.set(
+ settings.Route.SEARCH_ENGINES.path, '#subpage-trigger .subpage-arrow');
},
/** @private */

Powered by Google App Engine
This is Rietveld 408576698