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

Issue 2920413002: MD Bookmarks: Focus sidebar nodes on click without showing an outline (Closed)

Created:
3 years, 6 months ago by tsergeant
Modified:
3 years, 6 months ago
Reviewers:
calamity
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, vitalyp+closure_chromium.org, michaelpg+watch-md-ui_chromium.org, arv+watch_chromium.org, jlklein+watch-closure_chromium.org, dbeam+watch-closure_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Bookmarks: Focus sidebar nodes on click without showing an outline Previously, clicking on a node in the MD Bookmarks sidebar would select that folder without actually focusing the element. It was necessary to click a second time to actually give focus and allow keyboard navigation. This CL fixes this by pulling out the code from <bookmarks-item> that prevents outlines from showing on click into a shared behavior. Implementing this behavior improves keyboard navigation in the sidebar without affecting mouse-only users. BUG=692844 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2920413002 Cr-Commit-Position: refs/heads/master@{#477916} Committed: https://chromium.googlesource.com/chromium/src/+/3c550cc85921ba59fdb1ef2655a8bd861f351174

Patch Set 1 #

Patch Set 2 : Rewrite to use a function rather than a property #

Total comments: 6

Patch Set 3 : Rebase #

Patch Set 4 : Review comments #

Total comments: 2

Patch Set 5 : Fix override comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -34 lines) Patch
M chrome/browser/browser_resources.grd View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/md_bookmarks/compiled_resources2.gyp View 1 2 4 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/resources/md_bookmarks/folder_node.html View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/md_bookmarks/folder_node.js View 1 2 3 4 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/resources/md_bookmarks/item.html View 3 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/resources/md_bookmarks/item.js View 1 4 chunks +1 line, -22 lines 0 comments Download
A chrome/browser/resources/md_bookmarks/mouse_focus_behavior.html View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/resources/md_bookmarks/mouse_focus_behavior.js View 1 2 3 1 chunk +52 lines, -0 lines 0 comments Download
M chrome/browser/resources/md_bookmarks/shared_style.html View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/md_bookmarks/md_bookmarks_ui.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/data/webui/md_bookmarks/md_bookmarks_focus_test.js View 1 2 3 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 19 (12 generated)
tsergeant
3 years, 6 months ago (2017-06-06 03:30:00 UTC) #3
calamity
lg % a question. https://codereview.chromium.org/2920413002/diff/20001/chrome/browser/resources/md_bookmarks/folder_node.js File chrome/browser/resources/md_bookmarks/folder_node.js (right): https://codereview.chromium.org/2920413002/diff/20001/chrome/browser/resources/md_bookmarks/folder_node.js#newcode73 chrome/browser/resources/md_bookmarks/folder_node.js:73: /** @return {!HTMLElement} */ @override ...
3 years, 6 months ago (2017-06-08 03:34:19 UTC) #8
tsergeant
https://codereview.chromium.org/2920413002/diff/20001/chrome/browser/resources/md_bookmarks/folder_node.js File chrome/browser/resources/md_bookmarks/folder_node.js (right): https://codereview.chromium.org/2920413002/diff/20001/chrome/browser/resources/md_bookmarks/folder_node.js#newcode73 chrome/browser/resources/md_bookmarks/folder_node.js:73: /** @return {!HTMLElement} */ On 2017/06/08 03:34:18, calamity wrote: ...
3 years, 6 months ago (2017-06-08 05:03:40 UTC) #10
calamity
lgtm https://codereview.chromium.org/2920413002/diff/80001/chrome/browser/resources/md_bookmarks/folder_node.js File chrome/browser/resources/md_bookmarks/folder_node.js (right): https://codereview.chromium.org/2920413002/diff/80001/chrome/browser/resources/md_bookmarks/folder_node.js#newcode75 chrome/browser/resources/md_bookmarks/folder_node.js:75: * @private lol. @private != @override
3 years, 6 months ago (2017-06-08 05:07:11 UTC) #11
tsergeant
https://codereview.chromium.org/2920413002/diff/80001/chrome/browser/resources/md_bookmarks/folder_node.js File chrome/browser/resources/md_bookmarks/folder_node.js (right): https://codereview.chromium.org/2920413002/diff/80001/chrome/browser/resources/md_bookmarks/folder_node.js#newcode75 chrome/browser/resources/md_bookmarks/folder_node.js:75: * @private On 2017/06/08 05:07:11, calamity wrote: > lol. ...
3 years, 6 months ago (2017-06-08 05:16:30 UTC) #12
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/2920413002/120001
3 years, 6 months ago (2017-06-08 05:23:27 UTC) #16
commit-bot: I haz the power
3 years, 6 months ago (2017-06-08 06:43:16 UTC) #19
Message was sent while issue was closed.
Committed patchset #5 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/3c550cc85921ba59fdb1ef2655a8...

Powered by Google App Engine
This is Rietveld 408576698