desktopmedia: slightly fix focus
This change: 1) Makes DesktopMediaListView un-focusable; it gives no useful indication of focus and provides no behavior when focused so it primarily serves to confuse. Note that it does have an OnKeyPressed handler, but that is invoked while its child views (the sources) are focused so that behavior remains. 2) Makes DesktopMediaSourceView use the menu selected foreground color rather than the focused border color to indicate selection. Using the latter led to the appearance of a focus ring on the selected element even when the involved source view does not have focus. 3) Makes DesktopMediaSourceView use a focus ring to indicate focus rather than an old-style dashed focus rectangle. 4) Removes DesktopMediaPickerViewsTest.ListViewHasInitialFocus since the list view is no longer supposed to have focus initially (or ever) Bug: 982226 Change-Id: I0118313883eec60c2685662e9cc9c672bccd18b0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1811758 Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org> Reviewed-by:Peter Kasting <pkasting@chromium.org> Cr-Commit-Position: refs/heads/master@{#698462}
Showing
Please register or sign in to comment