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

Issue 1428623005: views::Border: Added CreateRoundedRectBorder. (Closed)

Created:
5 years, 1 month ago by Matt Giuca
Modified:
5 years, 1 month ago
Reviewers:
sadrul, Evan Stade
CC:
chromium-reviews, tfarina, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@boxlayout-collapse_when_hidden
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

views::Border: Added CreateRoundedRectBorder. This draws a rounded rectangle, as opposed to CreateSolidBorder which draws square corners. Also adds a floating-point overload to Canvas::DrawRoundRect. BUG=548552, 553726 Committed: https://crrev.com/9a713fe13ad0501f25c981ef8c2c449bb4da235e Cr-Commit-Position: refs/heads/master@{#358767}

Patch Set 1 #

Patch Set 2 : Rebase. #

Total comments: 2

Patch Set 3 : Fix GetMinimumSize. #

Total comments: 8

Patch Set 4 : Fix thickness calculations. #

Patch Set 5 : Use float rect coordinates. Adds overload to Canvas. #

Patch Set 6 : Explain why the float version is preferred. #

Total comments: 2

Patch Set 7 : Reword deprecated notice. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -1 line) Patch
M ui/gfx/canvas.h View 1 2 3 4 5 6 2 chunks +7 lines, -1 line 0 comments Download
M ui/gfx/canvas.cc View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M ui/views/border.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M ui/views/border.cc View 1 2 3 4 3 chunks +54 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 31 (7 generated)
Matt Giuca
5 years, 1 month ago (2015-10-28 08:09:00 UTC) #2
sadrul
lgtm https://codereview.chromium.org/1428623005/diff/20001/ui/views/border.cc File ui/views/border.cc (right): https://codereview.chromium.org/1428623005/diff/20001/ui/views/border.cc#newcode104 ui/views/border.cc:104: return gfx::Size(thickness_, thickness_); thickness_ * 2, right?
5 years, 1 month ago (2015-10-29 06:03:26 UTC) #3
Matt Giuca
https://codereview.chromium.org/1428623005/diff/20001/ui/views/border.cc File ui/views/border.cc (right): https://codereview.chromium.org/1428623005/diff/20001/ui/views/border.cc#newcode104 ui/views/border.cc:104: return gfx::Size(thickness_, thickness_); On 2015/10/29 06:03:25, sadrul wrote: > ...
5 years, 1 month ago (2015-10-29 06:40:43 UTC) #4
Evan Stade
in my non-OWNER opinion, you should put this in the file where you need it ...
5 years, 1 month ago (2015-10-29 18:36:18 UTC) #6
Matt Giuca
On 2015/10/29 18:36:18, Evan Stade wrote: > in my non-OWNER opinion, you should put this ...
5 years, 1 month ago (2015-10-29 21:59:24 UTC) #7
sadrul
On 2015/10/29 21:59:24, Matt Giuca wrote: > On 2015/10/29 18:36:18, Evan Stade wrote: > > ...
5 years, 1 month ago (2015-10-29 22:01:45 UTC) #8
Evan Stade
> The problem if everyone takes the attitude of "you should put this where you ...
5 years, 1 month ago (2015-10-29 22:28:13 UTC) #9
Matt Giuca
On 2015/10/29 22:28:13, Evan Stade (ooo till Monday) wrote: > Yes that's a drawback, but ...
5 years, 1 month ago (2015-11-02 03:30:49 UTC) #10
sadrul
On 2015/11/02 03:30:49, Matt Giuca wrote: > On 2015/10/29 22:28:13, Evan Stade (ooo till Monday) ...
5 years, 1 month ago (2015-11-03 19:20:00 UTC) #11
Matt Giuca
On 2015/11/03 19:20:00, sadrul wrote: > I meant the latter. If this is going to ...
5 years, 1 month ago (2015-11-03 23:11:15 UTC) #12
commit-bot: I haz the power
This CL has an open dependency (Issue 1422703004 Patch 1). Please resolve the dependency and ...
5 years, 1 month ago (2015-11-03 23:11:57 UTC) #16
Evan Stade
I had a couple comments on the implementation that I think might warrant addressing.
5 years, 1 month ago (2015-11-03 23:46:42 UTC) #17
Matt Giuca
On 2015/11/03 23:46:42, Evan Stade (ooo) wrote: > I had a couple comments on the ...
5 years, 1 month ago (2015-11-04 02:13:53 UTC) #18
Matt Giuca
Will await estade's lg (though not required for OWNERS). https://codereview.chromium.org/1428623005/diff/40001/ui/views/border.cc File ui/views/border.cc (right): https://codereview.chromium.org/1428623005/diff/40001/ui/views/border.cc#newcode92 ui/views/border.cc:92: ...
5 years, 1 month ago (2015-11-09 04:44:57 UTC) #19
Evan Stade
https://codereview.chromium.org/1428623005/diff/40001/ui/views/border.cc File ui/views/border.cc (right): https://codereview.chromium.org/1428623005/diff/40001/ui/views/border.cc#newcode92 ui/views/border.cc:92: int half_thickness = thickness_ / 2; On 2015/11/09 04:44:57, ...
5 years, 1 month ago (2015-11-09 18:41:48 UTC) #20
Matt Giuca
sadrul@: PTAL for Canvas changes. (See discussion below.) https://codereview.chromium.org/1428623005/diff/40001/ui/views/border.cc File ui/views/border.cc (right): https://codereview.chromium.org/1428623005/diff/40001/ui/views/border.cc#newcode92 ui/views/border.cc:92: int ...
5 years, 1 month ago (2015-11-10 00:15:06 UTC) #21
Evan Stade
lgtm https://codereview.chromium.org/1428623005/diff/40001/ui/views/border.cc File ui/views/border.cc (right): https://codereview.chromium.org/1428623005/diff/40001/ui/views/border.cc#newcode92 ui/views/border.cc:92: int half_thickness = thickness_ / 2; On 2015/11/10 ...
5 years, 1 month ago (2015-11-10 00:22:06 UTC) #22
Matt Giuca
https://codereview.chromium.org/1428623005/diff/40001/ui/views/border.cc File ui/views/border.cc (right): https://codereview.chromium.org/1428623005/diff/40001/ui/views/border.cc#newcode92 ui/views/border.cc:92: int half_thickness = thickness_ / 2; On 2015/11/10 00:22:06, ...
5 years, 1 month ago (2015-11-10 00:28:29 UTC) #23
Evan Stade
https://codereview.chromium.org/1428623005/diff/100001/ui/gfx/canvas.h File ui/gfx/canvas.h (right): https://codereview.chromium.org/1428623005/diff/100001/ui/gfx/canvas.h#newcode254 ui/gfx/canvas.h:254: // odd-numbered thickness. I don't even think you need ...
5 years, 1 month ago (2015-11-10 00:34:32 UTC) #24
sadrul
Some notes for follow-up cleanup candidates, but otherwise lgtm. . I suppose we can't just ...
5 years, 1 month ago (2015-11-10 00:48:58 UTC) #25
Matt Giuca
Thanks for the follow-up review, Sadrul. I'll paste those notes onto the bug. I'm a ...
5 years, 1 month ago (2015-11-10 00:53:15 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1428623005/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1428623005/120001
5 years, 1 month ago (2015-11-10 00:54:42 UTC) #29
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 1 month ago (2015-11-10 02:53:38 UTC) #30
commit-bot: I haz the power
5 years, 1 month ago (2015-11-10 02:54:19 UTC) #31
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/9a713fe13ad0501f25c981ef8c2c449bb4da235e
Cr-Commit-Position: refs/heads/master@{#358767}

Powered by Google App Engine
This is Rietveld 408576698