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

Issue 2336463002: Make the edge where BackgroundGradientView draws a divider selectable. (Closed)

Created:
4 years, 3 months ago by Sidney San Martín
Modified:
4 years, 3 months ago
Reviewers:
Nico
CC:
chromium-reviews, asanka, dbeam+watch-downloads_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make the edge where BackgroundGradientView draws a divider selectable. …and remove the duplicate divider drawing in DownloadShelfView. BUG=589943 Committed: https://crrev.com/1e6e9e83fdaca6b8021fa4372c77c54463ef339f Cr-Commit-Position: refs/heads/master@{#418641}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Use NSRectEdge. #

Patch Set 3 : Put back the highlight above the download shelf (though it'll go away w/ MD) #

Total comments: 4

Patch Set 4 : Use NSMaxYEdge for older SDKs, un-goof rect math. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -37 lines) Patch
M chrome/browser/ui/cocoa/background_gradient_view.h View 1 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/background_gradient_view.mm View 1 4 chunks +11 lines, -7 lines 0 comments Download
M chrome/browser/ui/cocoa/download/download_shelf_view_cocoa.mm View 1 2 3 3 chunks +3 lines, -25 lines 0 comments Download

Messages

Total messages: 18 (9 generated)
Sidney San Martín
4 years, 3 months ago (2016-09-12 12:02:17 UTC) #4
Nico
https://codereview.chromium.org/2336463002/diff/1/chrome/browser/ui/cocoa/background_gradient_view.h File chrome/browser/ui/cocoa/background_gradient_view.h (right): https://codereview.chromium.org/2336463002/diff/1/chrome/browser/ui/cocoa/background_gradient_view.h#newcode12 chrome/browser/ui/cocoa/background_gradient_view.h:12: enum class BackgroundGradientViewDivider { why enum class? can we ...
4 years, 3 months ago (2016-09-12 13:45:55 UTC) #5
Sidney San Martín
I think this addresses your comments so far, it feels much cleaner this way. https://codereview.chromium.org/2336463002/diff/1/chrome/browser/ui/cocoa/background_gradient_view.h ...
4 years, 3 months ago (2016-09-14 17:46:59 UTC) #6
Nico
Sorry, one more question :-) https://codereview.chromium.org/2336463002/diff/40001/chrome/browser/ui/cocoa/download/download_shelf_view_cocoa.mm File chrome/browser/ui/cocoa/download/download_shelf_view_cocoa.mm (right): https://codereview.chromium.org/2336463002/diff/40001/chrome/browser/ui/cocoa/download/download_shelf_view_cocoa.mm#newcode45 chrome/browser/ui/cocoa/download/download_shelf_view_cocoa.mm:45: [self cr_lineWidth] * 2, ...
4 years, 3 months ago (2016-09-14 18:06:37 UTC) #8
Sidney San Martín
No problem! Thank you for looking at it closely enough to come up with these ...
4 years, 3 months ago (2016-09-14 18:34:37 UTC) #11
Nico
lgtm
4 years, 3 months ago (2016-09-14 18:54:51 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/2336463002/100001
4 years, 3 months ago (2016-09-14 18:56:11 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:100001)
4 years, 3 months ago (2016-09-14 19:37:58 UTC) #16
commit-bot: I haz the power
4 years, 3 months ago (2016-09-14 19:39:52 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1e6e9e83fdaca6b8021fa4372c77c54463ef339f
Cr-Commit-Position: refs/heads/master@{#418641}

Powered by Google App Engine
This is Rietveld 408576698