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

Issue 2411693002: views: add focus ring to TreeView (Closed)

Created:
4 years, 2 months ago by Elly Fong-Jones
Modified:
4 years, 2 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

views: add focus ring to TreeView When TreeView is focused, there should be a focus ring around the control, at least on Mac. This is mildly complicated because TreeViews are often hosted in a ScrollView, and in that case the focus ring should go around the ScrollView instead of the TreeView so the focus ring does not scroll. BUG=605589, 647515 Committed: https://crrev.com/8cbab2b4e38a3eeb48d76f7cf839d18d6a0fc433 Cr-Commit-Position: refs/heads/master@{#425662}

Patch Set 1 #

Patch Set 2 : Only do focus rings in Harmony mode #

Total comments: 1

Patch Set 3 : make this Mac-specific #

Total comments: 2

Patch Set 4 : relayout focusring in scrollview #

Total comments: 2

Patch Set 5 : move FocusRing support into ScrollView #

Total comments: 11

Patch Set 6 : add SetHasFocusRing #

Patch Set 7 : make ::Install return the FocusRing #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -4 lines) Patch
M ui/views/controls/focus_ring.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/focus_ring.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download
M ui/views/controls/scroll_view.h View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M ui/views/controls/scroll_view.cc View 1 2 3 4 5 6 3 chunks +16 lines, -0 lines 0 comments Download
M ui/views/controls/tree/tree_view.h View 1 2 3 4 5 2 chunks +7 lines, -1 line 0 comments Download
M ui/views/controls/tree/tree_view.cc View 1 2 3 4 5 5 chunks +21 lines, -0 lines 0 comments Download
M ui/views/style/platform_style.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/style/platform_style.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/style/platform_style_mac.mm View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 32 (11 generated)
Elly Fong-Jones
sky: ptal? :)
4 years, 2 months ago (2016-10-11 13:14:41 UTC) #3
sky
https://codereview.chromium.org/2411693002/diff/20001/ui/views/controls/tree/tree_view.cc File ui/views/controls/tree/tree_view.cc (right): https://codereview.chromium.org/2411693002/diff/20001/ui/views/controls/tree/tree_view.cc#newcode1082 ui/views/controls/tree/tree_view.cc:1082: if (grandparent && grandparent->GetClassName() == ScrollView::kViewClassName) Did you verify ...
4 years, 2 months ago (2016-10-11 18:17:15 UTC) #4
Elly Fong-Jones
On 2016/10/11 18:17:15, sky wrote: > https://codereview.chromium.org/2411693002/diff/20001/ui/views/controls/tree/tree_view.cc > File ui/views/controls/tree/tree_view.cc (right): > > https://codereview.chromium.org/2411693002/diff/20001/ui/views/controls/tree/tree_view.cc#newcode1082 > ...
4 years, 2 months ago (2016-10-12 12:42:37 UTC) #5
sky
https://codereview.chromium.org/2411693002/diff/40001/ui/views/controls/tree/tree_view.cc File ui/views/controls/tree/tree_view.cc (right): https://codereview.chromium.org/2411693002/diff/40001/ui/views/controls/tree/tree_view.cc#newcode360 ui/views/controls/tree/tree_view.cc:360: int width = preferred_size_.width(); I believe you'll need to ...
4 years, 2 months ago (2016-10-12 16:13:47 UTC) #6
Elly Fong-Jones
sky: ptal? :) https://codereview.chromium.org/2411693002/diff/40001/ui/views/controls/tree/tree_view.cc File ui/views/controls/tree/tree_view.cc (right): https://codereview.chromium.org/2411693002/diff/40001/ui/views/controls/tree/tree_view.cc#newcode360 ui/views/controls/tree/tree_view.cc:360: int width = preferred_size_.width(); On 2016/10/12 ...
4 years, 2 months ago (2016-10-12 19:36:06 UTC) #7
sky
https://codereview.chromium.org/2411693002/diff/60001/ui/views/controls/scroll_view.cc File ui/views/controls/scroll_view.cc (right): https://codereview.chromium.org/2411693002/diff/60001/ui/views/controls/scroll_view.cc#newcode299 ui/views/controls/scroll_view.cc:299: for (int i = 0; i < child_count(); ++i) ...
4 years, 2 months ago (2016-10-12 20:08:53 UTC) #8
Elly Fong-Jones
sky: ptal? :) https://codereview.chromium.org/2411693002/diff/60001/ui/views/controls/scroll_view.cc File ui/views/controls/scroll_view.cc (right): https://codereview.chromium.org/2411693002/diff/60001/ui/views/controls/scroll_view.cc#newcode299 ui/views/controls/scroll_view.cc:299: for (int i = 0; i ...
4 years, 2 months ago (2016-10-12 21:10:22 UTC) #9
sky
https://codereview.chromium.org/2411693002/diff/80001/ui/views/controls/focus_ring.h File ui/views/controls/focus_ring.h (right): https://codereview.chromium.org/2411693002/diff/80001/ui/views/controls/focus_ring.h#newcode19 ui/views/controls/focus_ring.h:19: FocusRing(); Move definition to match new position (style guide ...
4 years, 2 months ago (2016-10-12 23:58:01 UTC) #10
Elly Fong-Jones
sky: ptal? :) https://codereview.chromium.org/2411693002/diff/80001/ui/views/controls/focus_ring.h File ui/views/controls/focus_ring.h (right): https://codereview.chromium.org/2411693002/diff/80001/ui/views/controls/focus_ring.h#newcode19 ui/views/controls/focus_ring.h:19: FocusRing(); On 2016/10/12 23:58:01, sky wrote: ...
4 years, 2 months ago (2016-10-13 11:14:56 UTC) #11
sky
LGTM https://codereview.chromium.org/2411693002/diff/80001/ui/views/controls/scroll_view.cc File ui/views/controls/scroll_view.cc (right): https://codereview.chromium.org/2411693002/diff/80001/ui/views/controls/scroll_view.cc#newcode276 ui/views/controls/scroll_view.cc:276: if (has_focus_ring == bool(focus_ring_)) On 2016/10/13 11:14:56, Elly ...
4 years, 2 months ago (2016-10-13 17:39:45 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/2411693002/100001
4 years, 2 months ago (2016-10-13 17:46:10 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/311199)
4 years, 2 months ago (2016-10-13 18:21:03 UTC) #16
Evan Stade
why can't you just use install/uninstall like any other client of FocusRing? It's confusing to ...
4 years, 2 months ago (2016-10-14 15:07:00 UTC) #17
sky
On Fri, Oct 14, 2016 at 8:07 AM, <estade@chromium.org> wrote: > why can't you just ...
4 years, 2 months ago (2016-10-14 16:27:56 UTC) #18
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/2411693002/120001
4 years, 2 months ago (2016-10-14 18:23:58 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/146111) android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, ...
4 years, 2 months ago (2016-10-14 18:27:51 UTC) #23
Evan Stade
On 2016/10/14 16:27:56, sky wrote: > On Fri, Oct 14, 2016 at 8:07 AM, <mailto:estade@chromium.org> ...
4 years, 2 months ago (2016-10-15 01:43:58 UTC) #24
sky
It's very unusual for FocusRing to reposition itself in Layout. That works for some things, ...
4 years, 2 months ago (2016-10-16 01:49:40 UTC) #25
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/2411693002/140001
4 years, 2 months ago (2016-10-17 11:40:43 UTC) #28
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 2 months ago (2016-10-17 12:22:05 UTC) #30
commit-bot: I haz the power
4 years, 2 months ago (2016-10-17 12:25:39 UTC) #32
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/8cbab2b4e38a3eeb48d76f7cf839d18d6a0fc433
Cr-Commit-Position: refs/heads/master@{#425662}

Powered by Google App Engine
This is Rietveld 408576698