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

Issue 2050813002: MacViews: support backgrounds for selected rows (Closed)

Created:
4 years, 6 months ago by Elly Fong-Jones
Modified:
4 years, 4 months ago
Reviewers:
tapted, sky
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MacViews: support backgrounds for selected rows This change adds support to TreeView for drawing a background on the entire selected row instead of just behind the label of the selected row, controlled by PlatformStyle::kTreeViewSelectsEntireRow. Incidentally, this CL fixes the views_unittests build with gn so that this CL can be tested. This CL is heavily inspired by https://codereview.chromium.org/1364423002/. BUG=605589 Committed: https://crrev.com/df230152824bb04c6a7d520ecc77e24b9c02eaa1 Cr-Commit-Position: refs/heads/master@{#413755}

Patch Set 1 #

Total comments: 14

Patch Set 2 : Refactor TreeView, fix views_unittests build #

Total comments: 14

Patch Set 3 : excise depth #

Total comments: 10

Patch Set 4 : GetForegroundBoundsForNode :( #

Total comments: 8

Patch Set 5 : fixes #

Patch Set 6 : rebase #

Patch Set 7 : rebase again #

Patch Set 8 : placate msvc #

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

Messages

Total messages: 40 (19 generated)
Elly Fong-Jones
tapted: ptal? :)
4 years, 6 months ago (2016-06-08 19:27:21 UTC) #3
tapted
https://codereview.chromium.org/2050813002/diff/1/ui/views/controls/tree/tree_view.cc File ui/views/controls/tree/tree_view.cc (right): https://codereview.chromium.org/2050813002/diff/1/ui/views/controls/tree/tree_view.cc#newcode648 ui/views/controls/tree/tree_view.cc:648: gfx::Rect bounds(GetBoundsForNodeImpl(node, row, depth)); This should use GetBackgroundBoundsForNode() too, ...
4 years, 6 months ago (2016-06-09 07:13:38 UTC) #4
Elly Fong-Jones
tapted: ptal? :) https://codereview.chromium.org/2050813002/diff/1/ui/views/controls/tree/tree_view.cc File ui/views/controls/tree/tree_view.cc (right): https://codereview.chromium.org/2050813002/diff/1/ui/views/controls/tree/tree_view.cc#newcode648 ui/views/controls/tree/tree_view.cc:648: gfx::Rect bounds(GetBoundsForNodeImpl(node, row, depth)); On 2016/06/09 ...
4 years, 6 months ago (2016-06-09 20:24:37 UTC) #6
tapted
Sorry I didn't manage to get to this on Friday - I like the refactor! ...
4 years, 6 months ago (2016-06-13 07:03:48 UTC) #7
Elly Fong-Jones
tapted: ptal? :) https://codereview.chromium.org/2050813002/diff/20001/ui/views/controls/tree/tree_view.cc File ui/views/controls/tree/tree_view.cc (right): https://codereview.chromium.org/2050813002/diff/20001/ui/views/controls/tree/tree_view.cc#newcode75 ui/views/controls/tree/tree_view.cc:75: return gesture.details().tap_count() == 2; On 2016/06/13 ...
4 years, 6 months ago (2016-06-14 17:21:27 UTC) #8
tapted
basically lgtm, but there's a dangling thread from an earlier patchset (I guess I could ...
4 years, 6 months ago (2016-06-15 03:17:50 UTC) #9
Elly Fong-Jones
sky: ptal? https://codereview.chromium.org/2050813002/diff/1/ui/views/controls/tree/tree_view.cc File ui/views/controls/tree/tree_view.cc (right): https://codereview.chromium.org/2050813002/diff/1/ui/views/controls/tree/tree_view.cc#newcode880 ui/views/controls/tree/tree_view.cc:880: gfx::Rect row_bounds(GetBoundsForNode(node)); On 2016/06/15 03:17:49, tapted wrote: ...
4 years, 6 months ago (2016-06-16 14:42:34 UTC) #11
sky
https://codereview.chromium.org/2050813002/diff/60001/ui/views/controls/tree/tree_view.cc File ui/views/controls/tree/tree_view.cc (right): https://codereview.chromium.org/2050813002/diff/60001/ui/views/controls/tree/tree_view.cc#newcode1041 ui/views/controls/tree/tree_view.cc:1041: int row = GetRowForInternalNode(node, &depth); Can this use GetForegroundBoundsForNode? ...
4 years, 6 months ago (2016-06-16 17:34:40 UTC) #12
Elly Fong-Jones
sky: ptal? :) https://codereview.chromium.org/2050813002/diff/60001/ui/views/controls/tree/tree_view.cc File ui/views/controls/tree/tree_view.cc (right): https://codereview.chromium.org/2050813002/diff/60001/ui/views/controls/tree/tree_view.cc#newcode1041 ui/views/controls/tree/tree_view.cc:1041: int row = GetRowForInternalNode(node, &depth); On ...
4 years, 6 months ago (2016-06-23 19:47:13 UTC) #13
sky
LGTM
4 years, 6 months ago (2016-06-23 20:55:48 UTC) #14
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/2050813002/80001
4 years, 6 months ago (2016-06-24 16:07:49 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/26275) ios-device-gn on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 6 months ago (2016-06-24 16:10:58 UTC) #19
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/2050813002/100001
4 years, 6 months ago (2016-06-24 19:31:58 UTC) #22
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/245157)
4 years, 6 months ago (2016-06-24 19:56:20 UTC) #24
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/2050813002/120001
4 years, 4 months ago (2016-08-22 18:48:45 UTC) #27
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/278352) win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, ...
4 years, 4 months ago (2016-08-22 19:45:20 UTC) #29
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/2050813002/140001
4 years, 4 months ago (2016-08-22 20:00:42 UTC) #32
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/278406)
4 years, 4 months ago (2016-08-22 21:14:48 UTC) #34
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/2050813002/140001
4 years, 4 months ago (2016-08-23 14:20:39 UTC) #36
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 4 months ago (2016-08-23 16:25:42 UTC) #38
commit-bot: I haz the power
4 years, 4 months ago (2016-08-23 16:27:14 UTC) #40
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/df230152824bb04c6a7d520ecc77e24b9c02eaa1
Cr-Commit-Position: refs/heads/master@{#413755}

Powered by Google App Engine
This is Rietveld 408576698