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

Issue 2805363002: MD Settings: Add mechanism to restore focus after subpage exiting. (Closed)

Created:
3 years, 8 months ago by dpapad
Modified:
3 years, 8 months ago
Reviewers:
tommycli, Dan Beam
CC:
arv+watch_chromium.org, chromium-reviews, dbeam+watch-settings_chromium.org, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, stevenjb+watch-md-settings_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: Add mechanism to restore focus after subpage exiting. BUG=709586 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2805363002 Cr-Commit-Position: refs/heads/master@{#463502} Committed: https://chromium.googlesource.com/chromium/src/+/5c96df5fc329e084e0d7752bf23f8a12e6acd344

Patch Set 1 #

Patch Set 2 : More #

Patch Set 3 : Lazy selectors. #

Patch Set 4 : Added test. #

Total comments: 2

Patch Set 5 : Use tag name #

Total comments: 9

Patch Set 6 : Address comments. #

Total comments: 6

Patch Set 7 : Address @dbeam comments. #

Messages

Total messages: 27 (18 generated)
dpapad
Thanks for the discussion. It helped coming up with an elegant (I think) solution. https://codereview.chromium.org/2805363002/diff/100001/chrome/browser/resources/settings/settings_page/settings_animated_pages.js ...
3 years, 8 months ago (2017-04-08 01:40:15 UTC) #13
dpapad
https://codereview.chromium.org/2805363002/diff/100001/chrome/browser/resources/settings/settings_page/settings_animated_pages.js File chrome/browser/resources/settings/settings_page/settings_animated_pages.js (right): https://codereview.chromium.org/2805363002/diff/100001/chrome/browser/resources/settings/settings_page/settings_animated_pages.js#newcode66 chrome/browser/resources/settings/settings_page/settings_animated_pages.js:66: if (e.detail.item != this.querySelector('neon-animatable')) On 2017/04/08 at 01:40:15, dpapad ...
3 years, 8 months ago (2017-04-10 19:11:27 UTC) #16
tommycli
lgtm thanks! https://codereview.chromium.org/2805363002/diff/120001/chrome/test/data/webui/settings/settings_animated_pages_test.js File chrome/test/data/webui/settings/settings_animated_pages_test.js (right): https://codereview.chromium.org/2805363002/diff/120001/chrome/test/data/webui/settings/settings_animated_pages_test.js#newcode12 chrome/test/data/webui/settings/settings_animated_pages_test.js:12: <neon-animatable route-path=${settings.Route.SEARCH_ENGINES.path}> that's interesting... does this need ...
3 years, 8 months ago (2017-04-10 22:14:37 UTC) #17
dpapad
https://codereview.chromium.org/2805363002/diff/120001/chrome/test/data/webui/settings/settings_animated_pages_test.js File chrome/test/data/webui/settings/settings_animated_pages_test.js (right): https://codereview.chromium.org/2805363002/diff/120001/chrome/test/data/webui/settings/settings_animated_pages_test.js#newcode12 chrome/test/data/webui/settings/settings_animated_pages_test.js:12: <neon-animatable route-path=${settings.Route.SEARCH_ENGINES.path}> On 2017/04/10 at 22:14:36, tommycli wrote: > ...
3 years, 8 months ago (2017-04-10 23:52:28 UTC) #18
Dan Beam
https://codereview.chromium.org/2805363002/diff/120001/chrome/browser/resources/settings/settings_page/settings_animated_pages.js File chrome/browser/resources/settings/settings_page/settings_animated_pages.js (right): https://codereview.chromium.org/2805363002/diff/120001/chrome/browser/resources/settings/settings_page/settings_animated_pages.js#newcode66 chrome/browser/resources/settings/settings_page/settings_animated_pages.js:66: if (e.detail.item.tagName != 'NEON-ANIMATABLE') nit: combine with above if ...
3 years, 8 months ago (2017-04-11 00:06:07 UTC) #19
Dan Beam
eh, guess those are nits, so lgtm
3 years, 8 months ago (2017-04-11 00:06:32 UTC) #20
dpapad
https://codereview.chromium.org/2805363002/diff/120001/chrome/browser/resources/settings/settings_page/settings_animated_pages.js File chrome/browser/resources/settings/settings_page/settings_animated_pages.js (right): https://codereview.chromium.org/2805363002/diff/120001/chrome/browser/resources/settings/settings_page/settings_animated_pages.js#newcode66 chrome/browser/resources/settings/settings_page/settings_animated_pages.js:66: if (e.detail.item.tagName != 'NEON-ANIMATABLE') On 2017/04/11 at 00:06:07, Dan ...
3 years, 8 months ago (2017-04-11 00:18:33 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2805363002/160001
3 years, 8 months ago (2017-04-11 00:56:58 UTC) #24
commit-bot: I haz the power
3 years, 8 months ago (2017-04-11 02:43:45 UTC) #27
Message was sent while issue was closed.
Committed patchset #7 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/5c96df5fc329e084e0d7752bf23f...

Powered by Google App Engine
This is Rietveld 408576698