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

Issue 2715813002: Change focus indicator for TableView and TreeView. (Closed)

Created:
3 years, 10 months ago by Evan Stade
Modified:
3 years, 10 months ago
Reviewers:
tapted, Elly Fong-Jones, sky
CC:
chromium-reviews, tfarina, mac-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change focus indicator for TableView and TreeView. This affects surfaces such as the task manager, the bookmark bubble editor, and the cookies view. The indicator for selection (the background of the row) is unchanged. When the window is focused, instead of drawing a dashed focus rect which looks dated and especially bad at fractional scales, we draw the table/tree's border in blue. This matches textfields and the general trend of blue outlines/rings for focus indication. This will change in Harmony to be a focus ring so it's mainly just an interim solution that makes the current state of the world look less bad while we wait for Harmony to arrive. BUG=695540 Review-Url: https://codereview.chromium.org/2715813002 Cr-Commit-Position: refs/heads/master@{#452876} Committed: https://chromium.googlesource.com/chromium/src/+/f084da03407bcb848d8ef8f232c28db56883d648

Patch Set 1 #

Total comments: 2

Patch Set 2 : commit the treeview change #

Total comments: 2

Patch Set 3 : rename #

Patch Set 4 : rename #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -58 lines) Patch
M chrome/browser/ui/views/collected_cookies_views.cc View 2 chunks +2 lines, -5 lines 0 comments Download
M ui/views/controls/scroll_view.h View 1 2 5 chunks +17 lines, -2 lines 0 comments Download
M ui/views/controls/scroll_view.cc View 1 2 3 6 chunks +51 lines, -24 lines 0 comments Download
M ui/views/controls/table/table_view.cc View 1 2 2 chunks +7 lines, -2 lines 0 comments Download
M ui/views/controls/tree/tree_view.h View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M ui/views/controls/tree/tree_view.cc View 1 2 4 chunks +7 lines, -16 lines 0 comments Download
M ui/views/style/platform_style.h View 1 chunk +0 lines, -3 lines 0 comments Download
M ui/views/style/platform_style.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/style/platform_style_mac.mm View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 17 (5 generated)
Evan Stade
+tapted, ellyjones for Harmony angle. +sky for Views/OWNER. bettes@ gave the OK for this change. ...
3 years, 10 months ago (2017-02-23 21:00:11 UTC) #2
tapted
https://codereview.chromium.org/2715813002/diff/1/ui/views/style/platform_style.h File ui/views/style/platform_style.h (left): https://codereview.chromium.org/2715813002/diff/1/ui/views/style/platform_style.h#oldcode60 ui/views/style/platform_style.h:60: static const bool kTreeViewHasFocusRing; On 2017/02/23 21:00:11, Evan Stade ...
3 years, 10 months ago (2017-02-23 22:55:00 UTC) #3
sky
LGTM
3 years, 10 months ago (2017-02-24 00:28:05 UTC) #4
Evan Stade
On 2017/02/23 22:55:00, tapted wrote: > https://codereview.chromium.org/2715813002/diff/1/ui/views/style/platform_style.h > File ui/views/style/platform_style.h (left): > > https://codereview.chromium.org/2715813002/diff/1/ui/views/style/platform_style.h#oldcode60 > ...
3 years, 10 months ago (2017-02-24 07:31:37 UTC) #5
tapted
On 2017/02/24 07:31:37, Evan Stade wrote: > On 2017/02/23 22:55:00, tapted wrote: > > > ...
3 years, 10 months ago (2017-02-24 11:18:59 UTC) #6
Elly Fong-Jones
On 2017/02/24 11:18:59, tapted wrote: > On 2017/02/24 07:31:37, Evan Stade wrote: > > On ...
3 years, 10 months ago (2017-02-24 14:41:36 UTC) #7
Elly Fong-Jones
lgtm thanks for killing off another PlatformStyle constant :) https://codereview.chromium.org/2715813002/diff/20001/ui/views/controls/scroll_view.h File ui/views/controls/scroll_view.h (left): https://codereview.chromium.org/2715813002/diff/20001/ui/views/controls/scroll_view.h#oldcode92 ui/views/controls/scroll_view.h:92: ...
3 years, 10 months ago (2017-02-24 14:44:30 UTC) #8
Evan Stade
thanks Elly and Trent. https://codereview.chromium.org/2715813002/diff/20001/ui/views/controls/scroll_view.h File ui/views/controls/scroll_view.h (left): https://codereview.chromium.org/2715813002/diff/20001/ui/views/controls/scroll_view.h#oldcode92 ui/views/controls/scroll_view.h:92: void SetHasFocusRing(bool has_focus_ring); On 2017/02/24 ...
3 years, 10 months ago (2017-02-24 16:55:56 UTC) #9
Evan Stade
On 2017/02/24 16:55:56, Evan Stade wrote: > thanks Elly and Trent. ... and Scott :)
3 years, 10 months ago (2017-02-24 16:56:22 UTC) #10
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/2715813002/60001
3 years, 10 months ago (2017-02-24 17:04:07 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/f084da03407bcb848d8ef8f232c28db56883d648
3 years, 10 months ago (2017-02-24 18:22:46 UTC) #16
lazyboy
3 years, 10 months ago (2017-02-24 19:01:58 UTC) #17
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/2716793004/ by lazyboy@chromium.org.

The reason for reverting is: Breaking build with [chromium-style] error.
../../ui/views/controls/scroll_view.cc:184:3: error: [chromium-style] auto
variable type must not deduce to a raw pointer type.
  auto scroll_view = new ScrollView();
  ^~~~
  auto*
.

Powered by Google App Engine
This is Rietveld 408576698