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

Issue 1826653002: Draw infobar arrow border with width of 1px on any scale factor. (Closed)

Created:
4 years, 9 months ago by Evan Stade
Modified:
4 years, 8 months ago
Reviewers:
Peter Kasting
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

Draw infobar arrow border with width of 1px on any scale factor. BUG=597069 Committed: https://crrev.com/1d9418afc9ddb2254d7c9316ea3043e3e6ff1ffd Cr-Commit-Position: refs/heads/master@{#384953}

Patch Set 1 #

Patch Set 2 : also deal with bottom separator #

Total comments: 6

Patch Set 3 : unscale, md/non-md #

Total comments: 3

Patch Set 4 : fix comment typo #

Total comments: 6

Patch Set 5 : move pixel adjustment to bg painter #

Patch Set 6 : move path calc #

Total comments: 20

Patch Set 7 : pkasting review #

Patch Set 8 : fix pre-md bug #

Patch Set 9 : git commit #

Total comments: 9

Patch Set 10 : pkasting review #

Patch Set 11 : format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -38 lines) Patch
M chrome/browser/ui/infobar_container_delegate.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/infobar_container_delegate.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +39 lines, -14 lines 0 comments Download
M chrome/browser/ui/views/infobars/infobar_background.h View 1 2 3 4 5 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/infobars/infobar_background.cc View 1 2 3 4 5 6 7 8 9 3 chunks +85 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/infobars/infobar_view.h View 1 2 3 4 5 6 3 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/infobars/infobar_view.cc View 1 2 3 4 5 6 3 chunks +7 lines, -8 lines 0 comments Download

Messages

Total messages: 32 (6 generated)
Evan Stade
4 years, 9 months ago (2016-03-22 22:12:02 UTC) #2
Evan Stade
hold on, don't review yet
4 years, 9 months ago (2016-03-22 22:16:26 UTC) #3
Peter Kasting
Be careful using hairlines. Last time I checked Skia had interesting bugs with them. Usually ...
4 years, 9 months ago (2016-03-22 23:01:16 UTC) #4
Evan Stade
The latest patch seems to work in all configurations (and uses hairlines). Screenshots posted to ...
4 years, 9 months ago (2016-03-22 23:22:33 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1826653002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1826653002/20001
4 years, 9 months ago (2016-03-22 23:22:52 UTC) #7
Peter Kasting
https://codereview.chromium.org/1826653002/diff/20001/chrome/browser/ui/views/infobars/infobar_background.cc File chrome/browser/ui/views/infobars/infobar_background.cc (right): https://codereview.chromium.org/1826653002/diff/20001/chrome/browser/ui/views/infobars/infobar_background.cc#newcode45 chrome/browser/ui/views/infobars/infobar_background.cc:45: paint.setStrokeCap(SkPaint::kRound_Cap); Why do we need to set the cap ...
4 years, 9 months ago (2016-03-22 23:39:19 UTC) #8
Evan Stade
On 2016/03/22 23:39:19, Peter Kasting wrote: > https://codereview.chromium.org/1826653002/diff/20001/chrome/browser/ui/views/infobars/infobar_background.cc > File chrome/browser/ui/views/infobars/infobar_background.cc (right): > > https://codereview.chromium.org/1826653002/diff/20001/chrome/browser/ui/views/infobars/infobar_background.cc#newcode45 ...
4 years, 9 months ago (2016-03-22 23:48:50 UTC) #9
Peter Kasting
On 2016/03/22 23:48:50, Evan Stade wrote: > It seems like you have more expertise in ...
4 years, 9 months ago (2016-03-23 00:19:43 UTC) #10
Evan Stade
On 2016/03/23 00:19:43, Peter Kasting wrote: > On 2016/03/22 23:48:50, Evan Stade wrote: > > ...
4 years, 9 months ago (2016-03-23 00:21:47 UTC) #11
Peter Kasting
In principle, I'm not opposed to at least improving things. In practice, I worry that ...
4 years, 9 months ago (2016-03-23 00:28:17 UTC) #12
Evan Stade
https://codereview.chromium.org/1826653002/diff/20001/chrome/browser/ui/views/infobars/infobar_background.cc File chrome/browser/ui/views/infobars/infobar_background.cc (right): https://codereview.chromium.org/1826653002/diff/20001/chrome/browser/ui/views/infobars/infobar_background.cc#newcode60 chrome/browser/ui/views/infobars/infobar_background.cc:60: SkScalar bottom = SkIntToScalar(view->height()) - SK_ScalarHalf; On 2016/03/23 00:28:17, ...
4 years, 9 months ago (2016-03-23 00:35:46 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-23 00:38:49 UTC) #15
Evan Stade
updated, PTAL. https://codereview.chromium.org/1826653002/diff/40001/chrome/browser/ui/views/infobars/infobar_background.cc File chrome/browser/ui/views/infobars/infobar_background.cc (right): https://codereview.chromium.org/1826653002/diff/40001/chrome/browser/ui/views/infobars/infobar_background.cc#newcode30 chrome/browser/ui/views/infobars/infobar_background.cc:30: if (ui::MaterialDesignController::IsModeMaterial()) { I found it easier ...
4 years, 9 months ago (2016-03-23 23:38:07 UTC) #16
Peter Kasting
https://codereview.chromium.org/1826653002/diff/60001/chrome/browser/ui/views/infobars/infobar_background.cc File chrome/browser/ui/views/infobars/infobar_background.cc (right): https://codereview.chromium.org/1826653002/diff/60001/chrome/browser/ui/views/infobars/infobar_background.cc#newcode30 chrome/browser/ui/views/infobars/infobar_background.cc:30: if (ui::MaterialDesignController::IsModeMaterial()) { For simplicity, can we just draw ...
4 years, 9 months ago (2016-03-25 05:07:47 UTC) #17
Evan Stade
https://codereview.chromium.org/1826653002/diff/60001/chrome/browser/ui/views/infobars/infobar_background.cc File chrome/browser/ui/views/infobars/infobar_background.cc (right): https://codereview.chromium.org/1826653002/diff/60001/chrome/browser/ui/views/infobars/infobar_background.cc#newcode30 chrome/browser/ui/views/infobars/infobar_background.cc:30: if (ui::MaterialDesignController::IsModeMaterial()) { On 2016/03/25 05:07:46, Peter Kasting wrote: ...
4 years, 8 months ago (2016-03-28 21:44:36 UTC) #18
Peter Kasting
https://codereview.chromium.org/1826653002/diff/60001/chrome/browser/ui/views/infobars/infobar_background.cc File chrome/browser/ui/views/infobars/infobar_background.cc (right): https://codereview.chromium.org/1826653002/diff/60001/chrome/browser/ui/views/infobars/infobar_background.cc#newcode30 chrome/browser/ui/views/infobars/infobar_background.cc:30: if (ui::MaterialDesignController::IsModeMaterial()) { On 2016/03/28 21:44:36, Evan Stade wrote: ...
4 years, 8 months ago (2016-03-29 01:04:01 UTC) #19
Evan Stade
So I moved the path calculation to InfoBarBackground, as you suggested. However, something as seemingly ...
4 years, 8 months ago (2016-03-29 19:41:33 UTC) #20
Peter Kasting
On 2016/03/29 19:41:33, Evan Stade wrote: > So I moved the path calculation to InfoBarBackground, ...
4 years, 8 months ago (2016-03-29 20:44:21 UTC) #21
Evan Stade
On 2016/03/29 20:44:21, Peter Kasting wrote: > On 2016/03/29 19:41:33, Evan Stade wrote: > > ...
4 years, 8 months ago (2016-03-29 21:31:23 UTC) #22
Peter Kasting
https://codereview.chromium.org/1826653002/diff/100001/chrome/browser/ui/views/infobars/infobar_background.cc File chrome/browser/ui/views/infobars/infobar_background.cc (right): https://codereview.chromium.org/1826653002/diff/100001/chrome/browser/ui/views/infobars/infobar_background.cc#newcode34 chrome/browser/ui/views/infobars/infobar_background.cc:34: InfoBarView* infobar = static_cast<InfoBarView*>(view); Nit: Google style guide suggests ...
4 years, 8 months ago (2016-03-30 00:20:26 UTC) #23
Evan Stade
https://codereview.chromium.org/1826653002/diff/100001/chrome/browser/ui/views/infobars/infobar_background.cc File chrome/browser/ui/views/infobars/infobar_background.cc (right): https://codereview.chromium.org/1826653002/diff/100001/chrome/browser/ui/views/infobars/infobar_background.cc#newcode34 chrome/browser/ui/views/infobars/infobar_background.cc:34: InfoBarView* infobar = static_cast<InfoBarView*>(view); On 2016/03/30 00:20:26, Peter Kasting ...
4 years, 8 months ago (2016-04-02 02:21:42 UTC) #24
Peter Kasting
LGTM. I commend you for sticking with this. https://codereview.chromium.org/1826653002/diff/160001/chrome/browser/ui/infobar_container_delegate.cc File chrome/browser/ui/infobar_container_delegate.cc (right): https://codereview.chromium.org/1826653002/diff/160001/chrome/browser/ui/infobar_container_delegate.cc#newcode69 chrome/browser/ui/infobar_container_delegate.cc:69: top_arrow_target_height_ ...
4 years, 8 months ago (2016-04-02 02:42:11 UTC) #25
Evan Stade
https://codereview.chromium.org/1826653002/diff/160001/chrome/browser/ui/infobar_container_delegate.cc File chrome/browser/ui/infobar_container_delegate.cc (right): https://codereview.chromium.org/1826653002/diff/160001/chrome/browser/ui/infobar_container_delegate.cc#newcode69 chrome/browser/ui/infobar_container_delegate.cc:69: top_arrow_target_height_ = std::min(height, kMaximumArrowTargetHeight); On 2016/04/02 02:42:11, Peter Kasting ...
4 years, 8 months ago (2016-04-04 17:24:29 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1826653002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1826653002/200001
4 years, 8 months ago (2016-04-04 17:26:07 UTC) #29
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 8 months ago (2016-04-04 18:04:32 UTC) #30
commit-bot: I haz the power
4 years, 8 months ago (2016-04-04 18:05:52 UTC) #32
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/1d9418afc9ddb2254d7c9316ea3043e3e6ff1ffd
Cr-Commit-Position: refs/heads/master@{#384953}

Powered by Google App Engine
This is Rietveld 408576698